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_54 (series VARCHAR, high_rebounds VARCHAR) ### Question: What is the Series with a High rebounds with gasol (10)? ### Answer: SELECT series FROM table_name_54 WHERE high_rebounds = "gasol (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_79 (prize_money VARCHAR, matches VARCHAR, round VARCHAR) ### Question: What is Prize Money, when Matches is less than 73, and when Round is Third Round Proper? ### Answer: SELECT prize_money FROM table_name_79 WHERE matches < 73 AND round = "third round proper"
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 (category VARCHAR, title VARCHAR, year VARCHAR, result VARCHAR) ### Question: What Category has a Year that's smaller than 2006, has Result of Nominated, and a Title of Cold Feet? ### Answer: SELECT category FROM table_name_25 WHERE year < 2006 AND result = "nominated" AND title = "cold feet"
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 (max_torque_at_rpm VARCHAR, displacement VARCHAR, engine VARCHAR) ### Question: What is the maximum torque that has 2,445 CC Displacement, and an Iveco 8144.61 engine? ### Answer: SELECT max_torque_at_rpm FROM table_name_36 WHERE displacement = "2,445 cc" AND engine = "iveco 8144.61"
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 (position VARCHAR, player VARCHAR, height VARCHAR, year_born VARCHAR) ### Question: What position does Sergio Rodríguez, who is less than 1.96 tall and was born after 1980, play? ### Answer: SELECT position FROM table_name_39 WHERE height < 1.96 AND year_born > 1980 AND player = "sergio rodríguez"
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 (laps INTEGER, time_retired VARCHAR) ### Question: What is the highest number of laps when the Time/Retired is differential? ### Answer: SELECT MAX(laps) FROM table_name_76 WHERE time_retired = "differential"
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 (year INTEGER, viewers VARCHAR) ### Question: Which Year is the lowest when the Viewers are 13.7 million? ### Answer: SELECT MIN(year) FROM table_name_7 WHERE viewers = "13.7 million"
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 (away_team VARCHAR) ### Question: What is the score for the away team of north melbourne? ### Answer: SELECT away_team AS score FROM table_name_79 WHERE away_team = "north 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 PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR) ### Question: Who are the friends of Bob? ### Answer: SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Bob'
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 (total INTEGER, to_par VARCHAR) ### Question: How many totals have a To par of –1? ### Answer: SELECT SUM(total) FROM table_name_98 WHERE to_par = "–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_27721131_2 (location_attendance VARCHAR, team VARCHAR) ### Question: What's the location attendance of the milwaukee team? ### Answer: SELECT location_attendance FROM table_27721131_2 WHERE team = "Milwaukee"
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_64 (record VARCHAR, date VARCHAR) ### Question: What was the record on May 20? ### Answer: SELECT record FROM table_name_64 WHERE date = "may 20"
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_1507806_1 (year INTEGER, runner_up VARCHAR) ### Question: WHAT WAS THE YEAR WHEN THE RUNNER-UP WAS WILLIAM MEHLHORN? ### Answer: SELECT MAX(year) FROM table_1507806_1 WHERE runner_up = "William Mehlhorn"
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 (best_jump VARCHAR, jump_1 VARCHAR, jump_2 VARCHAR) ### Question: Who has an x under Jump 1, a Jump 2 of 7.28, and what is this person's Best Jump? ### Answer: SELECT best_jump FROM table_name_48 WHERE jump_1 = "x" AND jump_2 = "7.28"
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_27 (races INTEGER, season VARCHAR, flaps VARCHAR) ### Question: WHAT ARE THE RACES FOR 2010 WITH FLAPS LARGER THAN 6? ### Answer: SELECT MAX(races) FROM table_name_27 WHERE season = "2010" AND flaps > 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_17 (home_team VARCHAR, venue VARCHAR) ### Question: Who was the home team that played at Moorabbin Oval? ### Answer: SELECT home_team FROM table_name_17 WHERE venue = "moorabbin 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_name_44 (frame_size VARCHAR, color_sampling VARCHAR, audio_coding VARCHAR, format_name VARCHAR) ### Question: What frame size has pcm 4 ch/16 bit/48khz as audio coding and dvcam as the format name and 4:1:1 as the color sampling? ### Answer: SELECT frame_size FROM table_name_44 WHERE audio_coding = "pcm 4 ch/16 bit/48khz" AND format_name = "dvcam" AND color_sampling = "4: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_70 (total INTEGER, silver INTEGER) ### Question: Name the Total which has a Silver larger than 19? ### Answer: SELECT MAX(total) FROM table_name_70 WHERE silver > 19
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_22050544_1 (winner VARCHAR, event__number VARCHAR) ### Question: What is the winner in event number 15h? ### Answer: SELECT winner FROM table_22050544_1 WHERE event__number = "15H"
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 (silver INTEGER, bronze VARCHAR, gold VARCHAR) ### Question: What is the highest number of silver when there is 1 bronze and less than 4 golds? ### Answer: SELECT MAX(silver) FROM table_name_38 WHERE bronze = 1 AND gold < 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_43 (record VARCHAR, round VARCHAR, method VARCHAR) ### Question: The match that went 1 round, and had a method of submission (rear-naked choke) had what record? ### Answer: SELECT record FROM table_name_43 WHERE round = 1 AND method = "submission (rear-naked choke)"
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 (score VARCHAR, result VARCHAR) ### Question: What was the score of the game that had a result of 5–0? ### Answer: SELECT score FROM table_name_30 WHERE result = "5–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_91 (pick__number VARCHAR, college VARCHAR) ### Question: Which 2006 cfl draft pick played college ball at Idaho state? ### Answer: SELECT pick__number FROM table_name_91 WHERE college = "idaho state"
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_1341604_19 (incumbent VARCHAR, district VARCHAR) ### Question: Who's the incumbent of the Louisiana 1 district? ### Answer: SELECT incumbent FROM table_1341604_19 WHERE district = "Louisiana 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 Addresses (document_id VARCHAR); CREATE TABLE Documents_Mailed (document_id VARCHAR) ### Question: What address was the document with id 4 mailed to? ### Answer: SELECT Addresses.address_details FROM Addresses JOIN Documents_Mailed ON Documents_Mailed.mailed_to_address_id = Addresses.address_id WHERE document_id = 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_27293285_6 (won VARCHAR, tries_for VARCHAR) ### Question: How many matches were won by the teams that scored exactly 61 tries for? ### Answer: SELECT won FROM table_27293285_6 WHERE tries_for = "61"
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 (gold VARCHAR, year VARCHAR) ### Question: How many gold medals were won in 1970? ### Answer: SELECT gold FROM table_name_61 WHERE year = "1970"
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_17766232_7 (radio_commentator VARCHAR, final_television_commentator VARCHAR) ### Question: Who was the radio commentator when the final television commentator was John Dunn? ### Answer: SELECT radio_commentator FROM table_17766232_7 WHERE final_television_commentator = "John Dunn"
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 teachers (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR); CREATE TABLE list (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR) ### Question: Find the first and last name of all the teachers that teach EVELINA BROMLEY. ### Answer: SELECT T2.firstname, T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "EVELINA" AND T1.lastname = "BROMLEY"
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 (unit VARCHAR, authors VARCHAR) ### Question: Which Unit has Authors of dalla vecchia, wild, & reitner? ### Answer: SELECT unit FROM table_name_65 WHERE authors = "dalla vecchia, wild, & reitner"
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 (opponents VARCHAR, year VARCHAR, team VARCHAR) ### Question: Which Opponents have a Year of 1999–2000, and a Team of leeds united? ### Answer: SELECT opponents FROM table_name_78 WHERE year = "1999–2000" AND team = "leeds united"
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_72 (money___ VARCHAR, player VARCHAR) ### Question: Which Money (£) has a Player of jodie mudd? ### Answer: SELECT COUNT(money___) AS £__ FROM table_name_72 WHERE player = "jodie mudd"
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_66 (tournament VARCHAR, date VARCHAR, opponents_in_the_final VARCHAR) ### Question: What is the Tournament with a Date larger than 1973, with Opponents in the final with hank pfister sherwood stewart? ### Answer: SELECT tournament FROM table_name_66 WHERE date > 1973 AND opponents_in_the_final = "hank pfister sherwood stewart"
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_2 (roll VARCHAR, area VARCHAR) ### Question: Which roll has an Area of mahia? ### Answer: SELECT roll FROM table_name_2 WHERE area = "mahia"
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_27 (winner_nominee_s_ VARCHAR, year VARCHAR) ### Question: Who were the winner and nominees in 2001? ### Answer: SELECT winner_nominee_s_ FROM table_name_27 WHERE year = 2001
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_25926120_3 (name_of_film VARCHAR, language VARCHAR) ### Question: How many films were in assamese? ### Answer: SELECT COUNT(name_of_film) FROM table_25926120_3 WHERE language = "Assamese"
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_97 (tie_no VARCHAR, away_team VARCHAR) ### Question: How many ties does Walsall have? ### Answer: SELECT tie_no FROM table_name_97 WHERE away_team = "walsall"
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 Claims (Date_Claim_Made VARCHAR, Date_Claim_Settled VARCHAR, Amount_Claimed INTEGER) ### Question: Among all the claims, which claims have a claimed amount larger than the average? List the date the claim was made and the date it was settled. ### Answer: SELECT Date_Claim_Made, Date_Claim_Settled FROM Claims WHERE Amount_Claimed > (SELECT AVG(Amount_Claimed) FROM Claims)
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_12305325_4 (arlenes_vote VARCHAR, craigs_vote VARCHAR) ### Question: What was the total of arlenes vote when craig voted for brian and karen? ### Answer: SELECT COUNT(arlenes_vote) FROM table_12305325_4 WHERE craigs_vote = "Brian and Karen"
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 (episode VARCHAR) ### Question: What is the 3rd Edition for Episode 4? ### Answer: SELECT 3 AS rd_edition FROM table_name_90 WHERE episode = "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_1474099_6 (goals INTEGER) ### Question: At maximum, what are our goals? ### Answer: SELECT MAX(goals) FROM table_1474099_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_87 (ship VARCHAR, date VARCHAR) ### Question: what is the ship with the date of 28.1.1915? ### Answer: SELECT ship FROM table_name_87 WHERE date = "28.1.1915"
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 (year_left INTEGER, mascot VARCHAR) ### Question: What is the year that the Roughriders left the conference? ### Answer: SELECT MAX(year_left) FROM table_name_25 WHERE mascot = "roughriders"
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 (games INTEGER, name VARCHAR, rank VARCHAR) ### Question: What was the game with a rank higher than 2 and a name of zendon hamilton? ### Answer: SELECT MAX(games) FROM table_name_20 WHERE name = "zendon hamilton" AND rank > 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_12 (record VARCHAR, method VARCHAR) ### Question: What was the record when the TKO (elbows) method was used? ### Answer: SELECT record FROM table_name_12 WHERE method = "tko (elbows)"
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 (authority VARCHAR, name VARCHAR, gender VARCHAR, area VARCHAR) ### Question: In the tkkm o manawatu coed school in kelvin grove, what is the Authority listed/ ### Answer: SELECT authority FROM table_name_93 WHERE gender = "coed" AND area = "kelvin grove" AND name = "tkkm o manawatu"
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 (country VARCHAR, score VARCHAR) ### Question: What is Country, when Score is "72-65=137"? ### Answer: SELECT country FROM table_name_40 WHERE score = 72 - 65 = 137
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 (laps VARCHAR, constructor VARCHAR, grid VARCHAR) ### Question: What is the number of laps for the honda vehicle, with a grid of 13? ### Answer: SELECT laps FROM table_name_17 WHERE constructor = "honda" AND grid = "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_47 (overall VARCHAR, name VARCHAR) ### Question: What is John Cole's overall pick number? ### Answer: SELECT COUNT(overall) FROM table_name_47 WHERE name = "john cole"
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_140968_1 (size___s_base_pair__ VARCHAR, molecular_weight_kda VARCHAR) ### Question: How many base pairs are there if the molecular weight is 102? ### Answer: SELECT COUNT(size___s_base_pair__) FROM table_140968_1 WHERE molecular_weight_kda = "102"
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 (year_of_recording INTEGER, orchestra VARCHAR, record_company VARCHAR) ### Question: What is the oldest year that the Royal Philharmonic Orchestra released a record with Decca Records? ### Answer: SELECT MIN(year_of_recording) FROM table_name_63 WHERE orchestra = "royal philharmonic orchestra" AND record_company = "decca records"
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 (position VARCHAR, overall VARCHAR) ### Question: What position does the player play with an overall of 304? ### Answer: SELECT position FROM table_name_76 WHERE overall = 304
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_3005450_1 (km_from_wellington VARCHAR, metlink_code VARCHAR) ### Question: what is the km from wellington where the metlink code is mast? ### Answer: SELECT km_from_wellington FROM table_3005450_1 WHERE metlink_code = "MAST"
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 (home VARCHAR, date VARCHAR) ### Question: what team played on october 8 ### Answer: SELECT home FROM table_name_32 WHERE date = "october 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_64 (main_span_feet VARCHAR, name VARCHAR) ### Question: What is the Main span of the Qincaobei Bridge ### Answer: SELECT main_span_feet FROM table_name_64 WHERE name = "qincaobei bridge"
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_25361570_2 (team VARCHAR, position_in_table VARCHAR, date_of_appointment VARCHAR) ### Question: Name the number of teams for 11th position september 10 ### Answer: SELECT COUNT(team) FROM table_25361570_2 WHERE position_in_table = "11th" AND date_of_appointment = "September 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_91 (road_team VARCHAR, home_team VARCHAR, result VARCHAR) ### Question: Which Road Team has a Home Team of boston, and a Result of 124-101? ### Answer: SELECT road_team FROM table_name_91 WHERE home_team = "boston" AND result = "124-101"
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_45 (platform_s_ VARCHAR, year VARCHAR, director VARCHAR) ### Question: What platform was used for the game directed by Bryan Walker after 2006? ### Answer: SELECT platform_s_ FROM table_name_45 WHERE year > 2006 AND director = "bryan walker"
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 (gold INTEGER, bronze VARCHAR, silver VARCHAR, nation VARCHAR) ### Question: What is the lowest gold that has a silver less than 2, Zimbabwe as the nation, and a bronze less than 1? ### Answer: SELECT MIN(gold) FROM table_name_34 WHERE silver < 2 AND nation = "zimbabwe" AND bronze < 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_26454128_9 (rank INTEGER, distance__metres_ VARCHAR) ### Question: What is the highest rank where the distance is 52.73? ### Answer: SELECT MAX(rank) FROM table_26454128_9 WHERE distance__metres_ = "52.73"
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 (score VARCHAR, date VARCHAR) ### Question: What score has February 12, 2006 as the date? ### Answer: SELECT score FROM table_name_38 WHERE date = "february 12, 2006"
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 Assets (asset_id VARCHAR, asset_details VARCHAR); CREATE TABLE Asset_Parts (asset_id VARCHAR); CREATE TABLE Fault_Log (asset_id VARCHAR) ### Question: Which assets have 2 parts and have less than 2 fault logs? List the asset id and detail. ### Answer: SELECT T1.asset_id, T1.asset_details FROM Assets AS T1 JOIN Asset_Parts AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING COUNT(*) = 2 INTERSECT SELECT T1.asset_id, T1.asset_details FROM Assets AS T1 JOIN Fault_Log AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING COUNT(*) < 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_18618707_1 (geographical_regions VARCHAR, height VARCHAR) ### Question: When 1.79 is the height what is the geographical region? ### Answer: SELECT geographical_regions FROM table_18618707_1 WHERE height = "1.79"
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 (tournament VARCHAR, date VARCHAR) ### Question: What tournament is on 18 May 1992? ### Answer: SELECT tournament FROM table_name_29 WHERE date = "18 may 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_29692554_2 (entered VARCHAR, time VARCHAR) ### Question: How many entries are shown for entered at 21:09? ### Answer: SELECT COUNT(entered) FROM table_29692554_2 WHERE time = "21:09"
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 (population VARCHAR, area__sq_mi_ VARCHAR) ### Question: What is the population for the region with an area of 6,004 sq. Mi.? ### Answer: SELECT population FROM table_name_43 WHERE area__sq_mi_ = "6,004"
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 (record VARCHAR, visitor VARCHAR) ### Question: What was the record when Vancouver was the visitor? ### Answer: SELECT record FROM table_name_9 WHERE visitor = "vancouver"
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_10 (score VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR) ### Question: What is Score, when Country is "United States", when Place is "T3", and when Player is "Phil Blackmar"? ### Answer: SELECT score FROM table_name_10 WHERE country = "united states" AND place = "t3" AND player = "phil blackmar"
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 (latitude VARCHAR, year_named VARCHAR, name VARCHAR) ### Question: Which Latitude has a Year named smaller than 1997, and a Name of aino planitia? ### Answer: SELECT latitude FROM table_name_79 WHERE year_named < 1997 AND name = "aino planitia"
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 (loses INTEGER, points VARCHAR, points_against VARCHAR, club VARCHAR) ### Question: What are the highest losses that have points agaisnt less than 956, high park demons as the club, and points less than 16? ### Answer: SELECT MAX(loses) FROM table_name_93 WHERE points_against < 956 AND club = "high park demons" AND points < 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_27756474_6 (high_assists VARCHAR, location_attendance VARCHAR) ### Question: Name the total number of high assists for fedexforum 11,283 ### Answer: SELECT COUNT(high_assists) FROM table_27756474_6 WHERE location_attendance = "FedExForum 11,283"
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_1 (attendance VARCHAR, opponent VARCHAR, week VARCHAR) ### Question: What is the Attendance for Opponent Boston Patriots and Week is greater than 14? ### Answer: SELECT COUNT(attendance) FROM table_name_1 WHERE opponent = "boston patriots" AND week > 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_55 (conventional_plans VARCHAR, pos_plans VARCHAR) ### Question: Which conventional plan has a POS of 13%? ### Answer: SELECT conventional_plans FROM table_name_55 WHERE pos_plans = "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_68 (result VARCHAR, date VARCHAR) ### Question: Tell me the result of july 16, 2000 ### Answer: SELECT result FROM table_name_68 WHERE date = "july 16, 2000"
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 (record VARCHAR, visitor VARCHAR) ### Question: What was the flyers' record when the visitors were florida? ### Answer: SELECT record FROM table_name_63 WHERE visitor = "florida"
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 Ref_Detention_Type (detention_type_description VARCHAR, detention_type_code VARCHAR); CREATE TABLE Detention (detention_type_code VARCHAR) ### Question: What are the code and description of the least frequent detention type ? ### Answer: SELECT T1.detention_type_code, T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY COUNT(*) 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 LOTS (lot_details VARCHAR) ### Question: Show all distinct lot details. ### Answer: SELECT DISTINCT lot_details FROM LOTS
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_14 (tournament VARCHAR, week VARCHAR) ### Question: What was the tournament for the week of August 4? ### Answer: SELECT tournament FROM table_name_14 WHERE week = "august 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_81 (game INTEGER, high_assists VARCHAR) ### Question: What is the highest Game when Morris Peterson (8) had the high assists? ### Answer: SELECT MAX(game) FROM table_name_81 WHERE high_assists = "morris peterson (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_86 (established VARCHAR, club VARCHAR) ### Question: What is the total number of the established club of Lehigh Valley Storm? ### Answer: SELECT COUNT(established) FROM table_name_86 WHERE club = "lehigh valley storm"
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_27683516_3 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR) ### Question: What is the date of appointment when the date of vacancy is 24 november 2010? ### Answer: SELECT date_of_appointment FROM table_27683516_3 WHERE date_of_vacancy = "24 November 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_67 (canterbury VARCHAR, central_districts VARCHAR) ### Question: Which of the Canterbury has a Central District of 276* M.D. Crowe & P.S. Briasco V (C) 1986/87? ### Answer: SELECT canterbury FROM table_name_67 WHERE central_districts = "276* m.d. crowe & p.s. briasco v (c) 1986/87"
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 tracks (genre_id VARCHAR); CREATE TABLE genres (name VARCHAR, id VARCHAR) ### Question: List the top 5 genres by number of tracks. List genres name and total tracks. ### Answer: SELECT T1.name, COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 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_50 (date VARCHAR, city VARCHAR) ### Question: When was the event in Dublin? ### Answer: SELECT date FROM table_name_50 WHERE city = "dublin"
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 (place VARCHAR, player VARCHAR) ### Question: In what place did Darren Clarke finish? ### Answer: SELECT place FROM table_name_23 WHERE player = "darren clarke"
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 (format VARCHAR, calls VARCHAR) ### Question: Tell me the format for calls of wrko ### Answer: SELECT format FROM table_name_56 WHERE calls = "wrko"
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_87 (theme_song_s_ VARCHAR, tv_station VARCHAR, average_ratings VARCHAR) ### Question: What is the Theme Song of the show on Fuji TV Station with Average Ratings of 16.65%? ### Answer: SELECT theme_song_s_ FROM table_name_87 WHERE tv_station = "fuji tv" AND average_ratings = "16.65%"
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 (finish VARCHAR, qual VARCHAR, laps VARCHAR, start VARCHAR) ### Question: Where did the driver who started 9 with a qualifing speed of 152.672 and finished fewer than 197 laps finish? ### Answer: SELECT finish FROM table_name_76 WHERE laps < 197 AND start = "9" AND qual = "152.672"
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 (series VARCHAR, score VARCHAR) ### Question: Which Series has a Score of 0–6? ### Answer: SELECT series FROM table_name_99 WHERE score = "0–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_2 (record VARCHAR, event VARCHAR, method VARCHAR) ### Question: What is Record, when Event is "Independent Event", and when Method is "Submission (Peruvian Necktie)"? ### Answer: SELECT record FROM table_name_2 WHERE event = "independent event" AND method = "submission (peruvian necktie)"
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_1 (oilers_points INTEGER, record VARCHAR, oilers_first_downs VARCHAR) ### Question: Which Oilers points have a Record of 10–6, and Oilers first downs larger than 14? ### Answer: SELECT AVG(oilers_points) FROM table_name_1 WHERE record = "10–6" AND oilers_first_downs > 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_19 (gold INTEGER, rank VARCHAR, total VARCHAR, bronze VARCHAR) ### Question: What is the gold number when total is more than 1, and bronze is 0, and rank is 5? ### Answer: SELECT SUM(gold) FROM table_name_19 WHERE total > 1 AND bronze = 0 AND rank = "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_23 (gold INTEGER, silver VARCHAR, total VARCHAR) ### Question: What is listed as the highest Gold that also has a Silver that's smaller than 1, and has a Total that's smaller than 0? ### Answer: SELECT MAX(gold) FROM table_name_23 WHERE silver < 1 AND total < 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_7 (date VARCHAR, venue VARCHAR) ### Question: When did the game at Arden Street Oval occur? ### Answer: SELECT date FROM table_name_7 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 table_1333612_1 (s_mestizo VARCHAR, population VARCHAR) ### Question: what's the s mestizo with population being 29461933 ### Answer: SELECT s_mestizo FROM table_1333612_1 WHERE population = 29461933
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_2076608_1 (accreditation VARCHAR, school VARCHAR) ### Question: What accreditation does Hollins University have? ### Answer: SELECT accreditation FROM table_2076608_1 WHERE school = "Hollins University"
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 (mascot VARCHAR, year_opened VARCHAR) ### Question: What is the mascot whose school opened in 1970? ### Answer: SELECT mascot FROM table_name_51 WHERE year_opened = "1970"
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 (game INTEGER, team VARCHAR) ### Question: What was the latest game that Sacramento played? ### Answer: SELECT MAX(game) FROM table_name_26 WHERE team = "sacramento"
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 (team_classification VARCHAR, stage VARCHAR) ### Question: Name the team classification for stage of 20 ### Answer: SELECT team_classification FROM table_name_92 WHERE stage = "20"
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_22329326_1 (market_rank_ VARCHAR, _city_of_license__market VARCHAR, station VARCHAR) ### Question: What market rank and city had the station KABC-TV? ### Answer: SELECT market_rank_ & _city_of_license__market FROM table_22329326_1 WHERE station = "KABC-TV"