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_88 (country VARCHAR, to_par VARCHAR) ### Question: What country was the player who was 11 off par from? ### Answer: SELECT country FROM table_name_88 WHERE to_par = 11
Below is an context that describes a 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_4 (route_of_administration VARCHAR, status VARCHAR) ### Question: What is the route of administration that has several ongoing and complete? ### Answer: SELECT route_of_administration FROM table_name_4 WHERE status = "several ongoing and complete"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_20760407_1 (date VARCHAR, game VARCHAR) ### Question: What was the date for game 9? ### Answer: SELECT date FROM table_20760407_1 WHERE game = 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 Person (job VARCHAR, age INTEGER, gender VARCHAR) ### Question: What is average age of male for different job title? ### Answer: SELECT AVG(age), job FROM Person WHERE gender = 'male' GROUP BY job
Below is an context that describes a 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 (january INTEGER, record VARCHAR, game VARCHAR, score VARCHAR) ### Question: What is the lowest January, when Game is less than 46, when Score is "5 - 3", and when Record is "15-22-8"? ### Answer: SELECT MIN(january) FROM table_name_94 WHERE game < 46 AND score = "5 - 3" AND record = "15-22-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_88 (event VARCHAR, name VARCHAR) ### Question: What event did Rastislav Turecek participate in? ### Answer: SELECT event FROM table_name_88 WHERE name = "rastislav turecek"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_28243691_2 (founded VARCHAR, team_nickname VARCHAR) ### Question: In how many different years was the team nicknamed Comets founded? ### Answer: SELECT COUNT(founded) FROM table_28243691_2 WHERE team_nickname = "Comets"
Below is an context that describes a 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 (gold VARCHAR, nation VARCHAR, total VARCHAR) ### Question: How many golds have denmark as the nation, with a total less than 1? ### Answer: SELECT COUNT(gold) FROM table_name_86 WHERE nation = "denmark" AND total < 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_67 (team__number2 VARCHAR, team__number1 VARCHAR) ### Question: with team #1 as lukoil academic what is team #2? ### Answer: SELECT team__number2 FROM table_name_67 WHERE team__number1 = "lukoil academic"
Below is an context that describes a 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 (player VARCHAR, score VARCHAR) ### Question: Which player had a score of 71-73-68-75=287? ### Answer: SELECT player FROM table_name_53 WHERE score = 71 - 73 - 68 - 75 = 287
Below is an context that describes a 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 (kanji VARCHAR, name VARCHAR) ### Question: What is the Kanji for the Ayanami dd-45? ### Answer: SELECT kanji FROM table_name_84 WHERE name = "ayanami dd-45"
Below is an context that describes a 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_89 (score VARCHAR, opponent VARCHAR, date VARCHAR) ### Question: What was the score against the devil rays on september 14? ### Answer: SELECT score FROM table_name_89 WHERE opponent = "devil rays" AND date = "september 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_29 (player VARCHAR, loaned_to VARCHAR) ### Question: What player loaned to of Leeds United? ### Answer: SELECT player FROM table_name_29 WHERE loaned_to = "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_1037590_1 (touchdowns INTEGER, completion__percentage VARCHAR) ### Question: How many touchdowns were scored in the year with a completion percentage of 56.0? ### Answer: SELECT MIN(touchdowns) FROM table_1037590_1 WHERE completion__percentage = "56.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_54 (week INTEGER, date VARCHAR) ### Question: In what week was the game on August 10, 1956 played? ### Answer: SELECT AVG(week) FROM table_name_54 WHERE date = "august 10, 1956"
Below is an context that describes a 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 (hanyu_pinyin VARCHAR, density___km²_ VARCHAR) ### Question: What is the Pinyin for the item that has a density of 77? ### Answer: SELECT hanyu_pinyin FROM table_name_65 WHERE density___km²_ = "77"
Below is an context that describes a 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 (points INTEGER, entrant VARCHAR, year VARCHAR) ### Question: What is the most points when the entrant was Jaguar racing earlier than 2001? ### Answer: SELECT MAX(points) FROM table_name_25 WHERE entrant = "jaguar racing" AND 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_1342218_43 (candidates VARCHAR, result VARCHAR, district VARCHAR) ### Question: What candidate has a result of being re-elected in the Texas 7 District? ### Answer: SELECT candidates FROM table_1342218_43 WHERE result = "Re-elected" AND district = "Texas 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_12 (place VARCHAR, points VARCHAR, lost VARCHAR) ### Question: Whate place has 18 points with lost less than 8? ### Answer: SELECT COUNT(place) FROM table_name_12 WHERE points = 18 AND lost < 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_2012187_3 (team_s_ VARCHAR, top_10 VARCHAR) ### Question: What team or teams with 18 in the top 10? ### Answer: SELECT team_s_ FROM table_2012187_3 WHERE top_10 = 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_91 (score VARCHAR, competition VARCHAR) ### Question: What was the score of the 2014 World Cup Qualification? ### Answer: SELECT score FROM table_name_91 WHERE competition = "2014 world cup qualification"
Below is an context that describes a 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_89 (to_par VARCHAR, player VARCHAR) ### Question: What is the t o par for Ralph Guldahl? ### Answer: SELECT to_par FROM table_name_89 WHERE player = "ralph guldahl"
Below is an context that describes a 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 (visitor VARCHAR, home VARCHAR, date VARCHAR) ### Question: What visitor has detroit red wings as the home, and march 30 as the date? ### Answer: SELECT visitor FROM table_name_79 WHERE home = "detroit red wings" AND date = "march 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_name_82 (home VARCHAR, visitor VARCHAR, series VARCHAR) ### Question: What is the Home with a Visitor of chicago, and a Series with 3 – 2? ### Answer: SELECT home FROM table_name_82 WHERE visitor = "chicago" AND series = "3 – 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 rooms (roomid VARCHAR, room VARCHAR); CREATE TABLE reservations (roomid VARCHAR, room VARCHAR) ### Question: Find the number of rooms that do not have any reservation. ### Answer: SELECT COUNT(*) FROM rooms WHERE NOT roomid IN (SELECT DISTINCT room FROM reservations)
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_14977252_2 (artist VARCHAR, draw VARCHAR) ### Question: Name the artist of 2 draw ### Answer: SELECT artist FROM table_14977252_2 WHERE draw = 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_29 (laps VARCHAR, qual VARCHAR) ### Question: What is the total number of laps with a 128.260 qual? ### Answer: SELECT COUNT(laps) FROM table_name_29 WHERE qual = "128.260"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_24425976_2 (original_air_date VARCHAR, production_code VARCHAR) ### Question: What date did the episode with code 110 originally air? ### Answer: SELECT original_air_date FROM table_24425976_2 WHERE production_code = "110"
Below is an context that describes a 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 (away_team VARCHAR, home_team VARCHAR) ### Question: Who was the team who played home team woking? ### Answer: SELECT away_team FROM table_name_16 WHERE home_team = "woking"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE Visits_Restaurant (Id VARCHAR); CREATE TABLE Student (Id VARCHAR); CREATE TABLE Restaurant (Id VARCHAR) ### Question: How many times has the student Linda Smith visited Subway? ### Answer: SELECT COUNT(*) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith" AND Restaurant.ResName = "Subway"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_27571406_1 (f_laps VARCHAR, podiums VARCHAR) ### Question: What's the f/laps count for the team with 8 podiums? ### Answer: SELECT f_laps FROM table_27571406_1 WHERE podiums = 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_56 (points INTEGER, team_chassis VARCHAR) ### Question: What is the total number of points team Alfa Romeo 184T won? ### Answer: SELECT SUM(points) FROM table_name_56 WHERE team_chassis = "alfa romeo 184t"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_20928661_1 (game VARCHAR, record VARCHAR) ### Question: Name the game for record being 3-0 ### Answer: SELECT game FROM table_20928661_1 WHERE record = "3-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_42 (record VARCHAR, date VARCHAR) ### Question: What is the record for April 21? ### Answer: SELECT record FROM table_name_42 WHERE date = "april 21"
Below is an context that describes a 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 (name VARCHAR, laps VARCHAR, time_retired VARCHAR) ### Question: What team had less than 159 laps and a time or retired time of 4:00:30.7537 (retired - fire)? ### Answer: SELECT name FROM table_name_14 WHERE laps < 159 AND time_retired = "4:00:30.7537 (retired - fire)"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE party_events (Id VARCHAR) ### Question: How many party events do we have? ### Answer: SELECT COUNT(*) FROM party_events
Below is an context that describes a 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 (score VARCHAR, date VARCHAR) ### Question: What was the score on October 30? ### Answer: SELECT score FROM table_name_64 WHERE date = "october 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_1847180_4 (vacator VARCHAR, successor VARCHAR) ### Question: Who did Walter B. Jones, Sr. (d) succeeded in office? ### Answer: SELECT vacator FROM table_1847180_4 WHERE successor = "Walter B. Jones, Sr. (D)"
Below is an context that describes a 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 (lead_margin INTEGER, dates_administered VARCHAR) ### Question: Name the average Lead Margin on november 13-november 19, 2007? ### Answer: SELECT AVG(lead_margin) FROM table_name_86 WHERE dates_administered = "november 13-november 19, 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_16 (nationality VARCHAR, school_club_team VARCHAR) ### Question: What Nationality is the Colorado State team? ### Answer: SELECT nationality FROM table_name_16 WHERE school_club_team = "colorado"
Below is an context that describes a 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 (competition VARCHAR, position VARCHAR, event VARCHAR, year VARCHAR) ### Question: Which Competition has an Event of 50km, a Year earlier than 2010 and a Position of 3rd? ### Answer: SELECT competition FROM table_name_46 WHERE event = "50km" AND year < 2010 AND position = "3rd"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_27882867_4 (game VARCHAR, score VARCHAR) ### Question: Name the total number of games for w 112-94 ### Answer: SELECT COUNT(game) FROM table_27882867_4 WHERE score = "W 112-94"
Below is an context that describes a 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 (driver VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR) ### Question: I want the driver for ferrari who made Laps less than 26 and grids more than 9 ### Answer: SELECT driver FROM table_name_69 WHERE grid > 9 AND laps < 26 AND constructor = "ferrari"
Below is an context that describes a 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 (location VARCHAR, time VARCHAR) ### Question: In which location did the fight last just 0:31? ### Answer: SELECT location FROM table_name_96 WHERE time = "0:31"
Below is an context that describes a 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_31 (rowers VARCHAR, time VARCHAR) ### Question: Who are the Rowers with a Time of 6:39.49? ### Answer: SELECT rowers FROM table_name_31 WHERE time = "6:39.49"
Below is an context that describes a 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 (film VARCHAR, leading_man VARCHAR, year VARCHAR) ### Question: What film has a leading man of adolphe menjou in 1939? ### Answer: SELECT film FROM table_name_91 WHERE leading_man = "adolphe menjou" AND year = 1939
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_18946749_1 (island VARCHAR, peak VARCHAR) ### Question: When mount gauttier is the peak what is the island? ### Answer: SELECT island FROM table_18946749_1 WHERE peak = "Mount Gauttier"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_21501564_1 (week__number VARCHAR, theme VARCHAR) ### Question: What week # featured first solo as the theme? ### Answer: SELECT week__number FROM table_21501564_1 WHERE theme = "First Solo"
Below is an context that describes 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 (zip_postcode VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR) ### Question: What is the zip code of staff with first name as Janessa and last name as Sawayn lived? ### Answer: SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"
Below is an context that describes a 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 (date VARCHAR, crowd INTEGER) ### Question: What date was there a crowd larger than 30,343? ### Answer: SELECT date FROM table_name_97 WHERE crowd > 30 OFFSET 343
Below is an context that describes a 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_49 (competition VARCHAR, goal VARCHAR) ### Question: What competition has a goal number of 13? ### Answer: SELECT competition FROM table_name_49 WHERE goal = 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_1982739_2 (traditional_chinese VARCHAR, area VARCHAR) ### Question: What is the traditional Chinese character set for the location that has an area of 181? ### Answer: SELECT traditional_chinese FROM table_1982739_2 WHERE area = 181
Below is an context that describes a 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 (gold INTEGER, silver VARCHAR, bronze VARCHAR) ### Question: What is the highest Gold that has a Silver less than 7 and Bronze less than 0 ### Answer: SELECT MAX(gold) FROM table_name_17 WHERE silver < 7 AND bronze < 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_93 (crowd INTEGER, home_team VARCHAR) ### Question: What was total size of the crowd at a home game for north melbourne? ### Answer: SELECT SUM(crowd) FROM table_name_93 WHERE home_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 election (Date VARCHAR, Vote_Percent VARCHAR) ### Question: List the dates and vote percents of elections. ### Answer: SELECT Date, Vote_Percent FROM election
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1341897_6 (incumbent VARCHAR, district VARCHAR) ### Question: Who was the incumbent in the Arkansas 2 district election? ### Answer: SELECT incumbent FROM table_1341897_6 WHERE district = "Arkansas 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_1 (quantity INTEGER, class_from_1928 VARCHAR) ### Question: What's the sum of Quantity for the Class of 1928 of CI-30? ### Answer: SELECT SUM(quantity) FROM table_name_1 WHERE class_from_1928 = "ci-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_name_69 (date VARCHAR, score1 VARCHAR, opponent VARCHAR) ### Question: On what date is there a score1 of 2 - 4 with the opponent Chelsea under 18s? ### Answer: SELECT date FROM table_name_69 WHERE score1 = "2 - 4" AND opponent = "chelsea under 18s"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_14406743_5 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, outgoing_manager VARCHAR) ### Question: Name the total number of date of vacancy for manner of departure being resigned and outgoing manager is geninho ### Answer: SELECT COUNT(date_of_vacancy) FROM table_14406743_5 WHERE manner_of_departure = "Resigned" AND outgoing_manager = "Geninho"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_23670057_6 (height__m_ VARCHAR, year_born VARCHAR) ### Question: Name the height for the player born in 1981 ### Answer: SELECT height__m_ FROM table_23670057_6 WHERE year_born = 1981
Below is an context that describes a 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 (operator VARCHAR, width VARCHAR, type_designation VARCHAR) ### Question: Which Operator has a Width of 2.65 m, and a Type designation of m5000? ### Answer: SELECT operator FROM table_name_13 WHERE width = "2.65 m" AND type_designation = "m5000"
Below is an context that describes a 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 (date VARCHAR, home_team VARCHAR) ### Question: What date was the game that home team torquay united played? ### Answer: SELECT date FROM table_name_76 WHERE home_team = "torquay 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_148386_2 (role VARCHAR, casino_theatre_1888 VARCHAR) ### Question: How many roles include George Broderick in the casino 1888 theater? ### Answer: SELECT role FROM table_148386_2 WHERE casino_theatre_1888 = "George Broderick"
Below is an context that describes a 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 (source VARCHAR, internet_explorer VARCHAR) ### Question: Which source date has an Internet Explorer usage of 60.2%? ### Answer: SELECT source FROM table_name_52 WHERE internet_explorer = "60.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_34 (ceased_to_be_duchess VARCHAR, birth VARCHAR) ### Question: Which duchess was born on 9 october 1574? ### Answer: SELECT ceased_to_be_duchess FROM table_name_34 WHERE birth = "9 october 1574"
Below is an context that describes a 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 (attendance VARCHAR, date VARCHAR) ### Question: On September 10, 1989 how many people attended the game? ### Answer: SELECT attendance FROM table_name_65 WHERE date = "september 10, 1989"
Below is an context that describes a 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 (team_2 VARCHAR, team_1 VARCHAR) ### Question: What team 2 has a team 1 of harbour view? ### Answer: SELECT team_2 FROM table_name_82 WHERE team_1 = "harbour view"
Below is an context that describes a 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 (matches VARCHAR, strike_rate VARCHAR, balls VARCHAR) ### Question: Can you tell me the total number of Matched that has the Strike Rate smallet than 152.3, and the Balls of 395? ### Answer: SELECT COUNT(matches) FROM table_name_88 WHERE strike_rate < 152.3 AND balls = 395
Below is an context that describes a 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 (year_s__won VARCHAR, total INTEGER) ### Question: What is Year(s) Won, when Total is less than 285? ### Answer: SELECT year_s__won FROM table_name_48 WHERE total < 285
Below is an context that describes a 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_33 (type_of_game VARCHAR, results¹ VARCHAR) ### Question: What Type of game has a Results¹ of 10:1? ### Answer: SELECT type_of_game FROM table_name_33 WHERE results¹ = "10: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_31 (gold INTEGER, nation VARCHAR, bronze VARCHAR) ### Question: What is the largest number of gold medals for Canada with more than 7 bronze medals? ### Answer: SELECT MAX(gold) FROM table_name_31 WHERE nation = "canada" AND bronze > 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_13 (college VARCHAR, position VARCHAR) ### Question: What college was the draft pick from who plays center position? ### Answer: SELECT college FROM table_name_13 WHERE position = "center"
Below is an context that describes a 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_5 (decision VARCHAR, series VARCHAR, visitor VARCHAR, score VARCHAR) ### Question: Which Decision has a Visitor of calgary, a Score of 2 – 1, and a Series of 4 – 3? ### Answer: SELECT decision FROM table_name_5 WHERE visitor = "calgary" AND score = "2 – 1" AND series = "4 – 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_27615896_18 (points INTEGER, new_points VARCHAR) ### Question: How many points were won where new points was 1680? ### Answer: SELECT MIN(points) AS won FROM table_27615896_18 WHERE new_points = 1680
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_19908313_2 (_number VARCHAR, listed_owner_s_ VARCHAR) ### Question: What number truck is owned by Stephen Germain? ### Answer: SELECT _number FROM table_19908313_2 WHERE listed_owner_s_ = "Stephen Germain"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_17516922_1 (pregame_host VARCHAR, network VARCHAR, color_commentator VARCHAR) ### Question: What pregame host was on espn and had taylor twellman color commentating? ### Answer: SELECT pregame_host FROM table_17516922_1 WHERE network = "ESPN" AND color_commentator = "Taylor Twellman"
Below is an context that describes a 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 (to_par VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR) ### Question: what was steve flesch's to par when he was placed at t3 in the united states? ### Answer: SELECT to_par FROM table_name_71 WHERE place = "t3" AND country = "united states" AND player = "steve flesch"
Below is an context that describes a 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 (event VARCHAR, medal VARCHAR, olympics VARCHAR) ### Question: What is the event in the 2000 summer olympics with a bronze medal? ### Answer: SELECT event FROM table_name_68 WHERE medal = "bronze" AND olympics = "2000 summer olympics"
Below is an context that describes a 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 (population_in_1000__1931_ VARCHAR, car_plates__since_1937_ VARCHAR) ### Question: tell me the population in 1000(1931) that has car plates since 1937 of 35-39. ### Answer: SELECT population_in_1000__1931_ FROM table_name_62 WHERE car_plates__since_1937_ = "35-39"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_15780049_6 (score VARCHAR, game VARCHAR) ### Question: What is the score of game 33? ### Answer: SELECT score FROM table_15780049_6 WHERE game = 33
Below is an context that describes a 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 (award VARCHAR, category VARCHAR, result VARCHAR, year VARCHAR, work VARCHAR) ### Question: Which Award has a Year smaller than 2004, and a Work of the clone, and a Result of won, and a Category of favourite actress? ### Answer: SELECT award FROM table_name_45 WHERE year < 2004 AND work = "the clone" AND result = "won" AND category = "favourite actress"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1342359_17 (district VARCHAR, first_elected VARCHAR) ### Question: how many people won in 1914 ### Answer: SELECT COUNT(district) FROM table_1342359_17 WHERE first_elected = 1914
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1176371_1 (location VARCHAR, name_of_ground VARCHAR) ### Question: Where is ropery lane located? ### Answer: SELECT location FROM table_1176371_1 WHERE name_of_ground = "Ropery Lane"
Below is an context that describes a 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 (director_s_ VARCHAR, recipient VARCHAR) ### Question: Who directed the film that Avie Luthra received an award for? ### Answer: SELECT director_s_ FROM table_name_63 WHERE recipient = "avie luthra"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_22570439_1 (original_air_date VARCHAR, written_by VARCHAR) ### Question: What is the original air date where tracy poust & jon kinnally was written by? ### Answer: SELECT original_air_date FROM table_22570439_1 WHERE written_by = "Tracy Poust & Jon Kinnally"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE payment (payment_date VARCHAR) ### Question: When did the first payment happen? ### Answer: SELECT payment_date FROM payment ORDER BY payment_date 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_49 (bronze INTEGER, rank VARCHAR, gold VARCHAR, total VARCHAR) ### Question: What is the sum of Bronze, when Gold is less than 1, when Total is greater than 1, and when Rank is 10? ### Answer: SELECT SUM(bronze) FROM table_name_49 WHERE gold < 1 AND total > 1 AND rank = 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_12 (country VARCHAR, to_par VARCHAR) ### Question: Which Country has a To par of –13? ### Answer: SELECT country FROM table_name_12 WHERE to_par = "–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_51 (loss VARCHAR, record VARCHAR) ### Question: What was the score of the game that put the team at 27-32? ### Answer: SELECT loss FROM table_name_51 WHERE record = "27-32"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_14966537_1 (result VARCHAR, opponent VARCHAR) ### Question: What is the result of the game against the Chicago Bears? ### Answer: SELECT result FROM table_14966537_1 WHERE opponent = "Chicago Bears"
Below is an context that describes a 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 (date VARCHAR, week VARCHAR) ### Question: What is Date, when Week is 11? ### Answer: SELECT date FROM table_name_45 WHERE week = 11
Below is an context that describes a 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_59 (losses INTEGER, played VARCHAR, points VARCHAR, position VARCHAR, wins VARCHAR) ### Question: What was the highest number of losses for a position less than 6, with more than 11 wins and 36 points, with a played entry of more than 30? ### Answer: SELECT MAX(losses) FROM table_name_59 WHERE position < 6 AND wins > 11 AND points = 36 AND played > 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_name_5 (auckland VARCHAR, otago VARCHAR) ### Question: What is Auckland thats got Otago of 184 R.C. Blunt & W. Hawksworth V (C) 1931/32? ### Answer: SELECT auckland FROM table_name_5 WHERE otago = "184 r.c. blunt & w. hawksworth v (c) 1931/32"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_2668243_8 (first_elected VARCHAR, incumbent VARCHAR) ### Question: When was Henry Daniel first elected? ### Answer: SELECT first_elected FROM table_2668243_8 WHERE incumbent = "Henry Daniel"
Below is an context that describes a 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 (elected INTEGER, status VARCHAR, incumbent VARCHAR) ### Question: Status of reelected, and a Incumbent of danny marshall iii is what highest elected? ### Answer: SELECT MAX(elected) FROM table_name_75 WHERE status = "reelected" AND incumbent = "danny marshall iii"
Below is an context that describes a 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 (party VARCHAR, incumbent VARCHAR, result VARCHAR, first_elected VARCHAR) ### Question: Which party had a result of retired democratic hold and a first elected earlier than 1884 with an incumbent of samuel dibble? ### Answer: SELECT party FROM table_name_32 WHERE result = "retired democratic hold" AND first_elected < 1884 AND incumbent = "samuel dibble"
Below is an context that describes a 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 (opponent VARCHAR, loss VARCHAR) ### Question: What opponent has a loss of McCaskill (9-11)? ### Answer: SELECT opponent FROM table_name_10 WHERE loss = "mccaskill (9-11)"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_11545282_17 (years_for_jazz VARCHAR, player VARCHAR) ### Question: Wht years did truck robinson play? ### Answer: SELECT years_for_jazz FROM table_11545282_17 WHERE player = "Truck Robinson"
Below is an context that describes a 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 (events VARCHAR, wins VARCHAR, top_5 VARCHAR, cuts_made VARCHAR) ### Question: How many events total is the Top-5 2, and 4 is the cuts made, and less than 0 wins? ### Answer: SELECT COUNT(events) FROM table_name_58 WHERE top_5 = 2 AND cuts_made = 4 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 member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE round (Name VARCHAR, Member_ID VARCHAR) ### Question: List the names of members who did not participate in any round. ### Answer: SELECT Name FROM member WHERE NOT Member_ID IN (SELECT Member_ID FROM round)

Dataset Card for "text-2-sql-with-context"

This dataset is prepared in Alpaca format introduced by Stanford to train LLMs. This dataset has been used in fine-tuning Chat Llama-2 7B. For more information, Please visit : Huggingface.

Downloads last month
59
Edit dataset card

Models trained or fine-tuned on ekshat/text-2-sql-with-context