messages listlengths 3 3 |
|---|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (score VARCHAR, runner_up VARCHAR)",
"role": "system"
},
{
"content": "What is the score of the game with Falkirk as the runner-up?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_48 WHERE runner_up = \"falkirk\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_86 (sack INTEGER, totaltk VARCHAR, asst VARCHAR)",
"role": "system"
},
{
"content": "what is the total sack when totaltk is 1 and asst. is more than 0?",
"role": "user"
},
{
"content": "SELECT SUM(sack) FROM table_name_86 WHERE totaltk = 1 AND asst > 0",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25740774_1 (f_laps VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "How many flaps are there for the team march 3 racing (1-4) top speed racing team (5-12)?",
"role": "user"
},
{
"content": "SELECT COUNT(f_laps) FROM table_25740774_1 WHERE team = \"March 3 Racing (1-4) Top Speed Racing team (5-12)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_79 (score VARCHAR, january VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Which Score has January larger than 18 and a Record of 35–15–1?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_79 WHERE january > 18 AND record = \"35–15–1\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_94 (location VARCHAR, capacity INTEGER)",
"role": "system"
},
{
"content": "Which location has a capacity larger than 52,000?",
"role": "user"
},
{
"content": "SELECT location FROM table_name_94 WHERE capacity > 52 OFFSET 000",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22597626_2 (surface VARCHAR, championship VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What is the surface made of if the year is 1979 and the championship is US Open?",
"role": "user"
},
{
"content": "SELECT surface FROM table_22597626_2 WHERE championship = \"US Open\" AND year = 1979",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_82 (height VARCHAR, stories VARCHAR)",
"role": "system"
},
{
"content": "How tall is the 52 story building?",
"role": "user"
},
{
"content": "SELECT height FROM table_name_82 WHERE stories = 52",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_275162_1 (to_par VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What was zach johnson's score to par?",
"role": "user"
},
{
"content": "SELECT to_par FROM table_275162_1 WHERE player = \"Zach Johnson\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_61 (average VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "What average has 1 as rhe rank?",
"role": "user"
},
{
"content": "SELECT average FROM table_name_61 WHERE rank = \"1\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2430014_9 (series_no INTEGER)",
"role": "system"
},
{
"content": "Name the least series number",
"role": "user"
},
{
"content": "SELECT MIN(series_no) FROM table_2430014_9",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_76 (lyrics__l____music__m_ VARCHAR, place VARCHAR)",
"role": "system"
},
{
"content": "Who did the Lyrics (l) / Music (m) for the song in 23 Place?",
"role": "user"
},
{
"content": "SELECT lyrics__l____music__m_ FROM table_name_76 WHERE place = \"23\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_83 (injured VARCHAR, place VARCHAR, killed VARCHAR)",
"role": "system"
},
{
"content": "How many people were injured in total in East Champaran, Bihar with more than 2 people killed?",
"role": "user"
},
{
"content": "SELECT COUNT(injured) FROM table_name_83 WHERE place = \"east champaran, bihar\" AND killed > 2",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17200372_2 (departure VARCHAR, going_to VARCHAR)",
"role": "system"
},
{
"content": "Name the departure for spalding",
"role": "user"
},
{
"content": "SELECT departure FROM table_17200372_2 WHERE going_to = \"Spalding\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE party (Governor VARCHAR)",
"role": "system"
},
{
"content": "Show the people that have been governor the most times.",
"role": "user"
},
{
"content": "SELECT Governor FROM party GROUP BY Governor ORDER BY COUNT(*) DESC LIMIT 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_54 (rank_by_average INTEGER, total VARCHAR, place VARCHAR)",
"role": "system"
},
{
"content": "Which Rank by average is the lowest one that has a Total of 425, and a Place larger than 1?",
"role": "user"
},
{
"content": "SELECT MIN(rank_by_average) FROM table_name_54 WHERE total = 425 AND place > 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE teaches (id VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, title VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR)",
"role": "system"
},
{
"content": "Find the name of the instructors who taught C Programming course before.",
"role": "user"
},
{
"content": "SELECT T1.name FROM instructor AS T1 JOIN teaches AS T2 ON T1.id = T2.id JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.title = 'C Programming'",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_14 (theme VARCHAR, year VARCHAR, issue_price VARCHAR)",
"role": "system"
},
{
"content": "What theme is associated with a year before 2006 and Issue Price of $25.22?",
"role": "user"
},
{
"content": "SELECT theme FROM table_name_14 WHERE year < 2006 AND issue_price = \"$25.22\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14981555_3 (jockey VARCHAR, race VARCHAR)",
"role": "system"
},
{
"content": "How many jockeys are listed running at the Sir Rupert Clarke Stakes?",
"role": "user"
},
{
"content": "SELECT COUNT(jockey) FROM table_14981555_3 WHERE race = \"Sir Rupert Clarke Stakes\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_86 (manufacturer VARCHAR, laps VARCHAR, rider VARCHAR)",
"role": "system"
},
{
"content": "Who was the manufacturer for the car that dani pedrosa did less than 9 laps in?",
"role": "user"
},
{
"content": "SELECT manufacturer FROM table_name_86 WHERE laps < 9 AND rider = \"dani pedrosa\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_12 (date VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "Which date was corio oval the venue?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_12 WHERE venue = \"corio oval\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20424140_3 (number_of_dances INTEGER)",
"role": "system"
},
{
"content": "What's the minimal number of dances a couple has danced?",
"role": "user"
},
{
"content": "SELECT MIN(number_of_dances) FROM table_20424140_3",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_68 (team_1 VARCHAR)",
"role": "system"
},
{
"content": "The 2nd leg is what for the Atlético Madrid as Team 1?",
"role": "user"
},
{
"content": "SELECT 2 AS nd_leg FROM table_name_68 WHERE team_1 = \"atlético madrid\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17382360_9 (high_rebounds VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Who had the high rebounds in the game with a final score of w 140-108?",
"role": "user"
},
{
"content": "SELECT high_rebounds FROM table_17382360_9 WHERE score = \"W 140-108\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_46 (total INTEGER, bronze VARCHAR, nation VARCHAR)",
"role": "system"
},
{
"content": "What is the least total number of medals when the bronze medals is 1, and Czech Republic (CZE) is the nation?",
"role": "user"
},
{
"content": "SELECT MIN(total) FROM table_name_46 WHERE bronze = 1 AND nation = \"czech republic (cze)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_95 (name VARCHAR, roll INTEGER)",
"role": "system"
},
{
"content": "Can you tell me the Name that has the Roll larger than 419?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_95 WHERE roll > 419",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19744915_15 (couple VARCHAR, vote_percentage VARCHAR)",
"role": "system"
},
{
"content": "What couple had a vote percentage of 7.691%",
"role": "user"
},
{
"content": "SELECT couple FROM table_19744915_15 WHERE vote_percentage = \"7.691%\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (car__number VARCHAR, driver VARCHAR)",
"role": "system"
},
{
"content": "What is Brendan Gaughan's Car #?",
"role": "user"
},
{
"content": "SELECT car__number FROM table_name_72 WHERE driver = \"brendan gaughan\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17525955_2 (rating VARCHAR, us_air_date VARCHAR)",
"role": "system"
},
{
"content": "How many rating/share values does the episode aired on Saturday, May 9, 2009?",
"role": "user"
},
{
"content": "SELECT COUNT(rating) / SHARE(18 AS –49) FROM table_17525955_2 WHERE us_air_date = \"Saturday, May 9, 2009\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22485543_1 (studio_host VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "Who is the studio host for the year 2010?",
"role": "user"
},
{
"content": "SELECT studio_host FROM table_22485543_1 WHERE year = \"2010\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_60 (region VARCHAR, catalog__number VARCHAR)",
"role": "system"
},
{
"content": "What is the region for the album with a catalog number of 7567-83061-2?",
"role": "user"
},
{
"content": "SELECT region FROM table_name_60 WHERE catalog__number = \"7567-83061-2\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Ref_Document_Status (document_status_description VARCHAR, document_status_code VARCHAR)",
"role": "system"
},
{
"content": "What is the description of document status code 'working'?",
"role": "user"
},
{
"content": "SELECT document_status_description FROM Ref_Document_Status WHERE document_status_code = \"working\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_29 (record VARCHAR, february VARCHAR)",
"role": "system"
},
{
"content": "What is the team's record on februrary 23?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_29 WHERE february = 23",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_9 (opponent VARCHAR, loss VARCHAR)",
"role": "system"
},
{
"content": "What was the opponent at the game that had a loss of Travers (0–2)?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_9 WHERE loss = \"travers (0–2)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_62 (points VARCHAR, year INTEGER)",
"role": "system"
},
{
"content": "with year greater than 1988 what is the total number of points?",
"role": "user"
},
{
"content": "SELECT COUNT(points) FROM table_name_62 WHERE year > 1988",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_7 (club_team VARCHAR, player VARCHAR, position VARCHAR, nationality VARCHAR)",
"role": "system"
},
{
"content": "Which Club Team has a Position of (d), a Nationality of canada, and a Player of andrew macwilliam?",
"role": "user"
},
{
"content": "SELECT club_team FROM table_name_7 WHERE position = \"(d)\" AND nationality = \"canada\" AND player = \"andrew macwilliam\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_2 (player VARCHAR, pick VARCHAR, nba_years_ VARCHAR, a_ VARCHAR)",
"role": "system"
},
{
"content": "What is Player, when Pick is greater than 24, and when NBA years [a ] is \"9\"?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_2 WHERE pick > 24 AND nba_years_[a_] = \"9\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_38 (pos INTEGER, car__number VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "Which Pos has a Car # larger than 2, and a Team of billy ballew motorsports?",
"role": "user"
},
{
"content": "SELECT AVG(pos) FROM table_name_38 WHERE car__number > 2 AND team = \"billy ballew motorsports\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_68 (league VARCHAR, season VARCHAR)",
"role": "system"
},
{
"content": "Season of 2012–13 is what league?",
"role": "user"
},
{
"content": "SELECT league FROM table_name_68 WHERE season = \"2012–13\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_7 (city VARCHAR, host VARCHAR)",
"role": "system"
},
{
"content": "What city is the Northeast Louisiana University located in?",
"role": "user"
},
{
"content": "SELECT city FROM table_name_7 WHERE host = \"northeast louisiana university\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1140077_2 (fastest_lap VARCHAR, race VARCHAR)",
"role": "system"
},
{
"content": "Who did the fastest lap in the dutch grand prix?",
"role": "user"
},
{
"content": "SELECT fastest_lap FROM table_1140077_2 WHERE race = \"Dutch Grand Prix\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_94 (size INTEGER, school VARCHAR)",
"role": "system"
},
{
"content": "What is the size of the International school?",
"role": "user"
},
{
"content": "SELECT MIN(size) FROM table_name_94 WHERE school = \"international\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12828723_3 (won VARCHAR, points_for VARCHAR)",
"role": "system"
},
{
"content": "what's the win with points for being 376",
"role": "user"
},
{
"content": "SELECT won FROM table_12828723_3 WHERE points_for = \"376\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_67 (player VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "Who was the player in 1981?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_67 WHERE year = \"1981\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_77 (res VARCHAR, location VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Which result has a Location of canada, and a Record of 3-3?",
"role": "user"
},
{
"content": "SELECT res FROM table_name_77 WHERE location = \"canada\" AND record = \"3-3\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11944282_1 (holding VARCHAR, allied_unrelated VARCHAR)",
"role": "system"
},
{
"content": "what is the integrated in which the holding allied-unrelated is many?",
"role": "user"
},
{
"content": "SELECT holding FROM table_11944282_1 WHERE allied_unrelated = \"Many\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_28 (format VARCHAR, note VARCHAR, catalog VARCHAR)",
"role": "system"
},
{
"content": "Name the format for 12cm note and catalog of alca-9198",
"role": "user"
},
{
"content": "SELECT format FROM table_name_28 WHERE note = \"12cm\" AND catalog = \"alca-9198\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14058433_3 (losing_bonus VARCHAR, club VARCHAR)",
"role": "system"
},
{
"content": "How many losing points does Llandudno RFC have?",
"role": "user"
},
{
"content": "SELECT losing_bonus FROM table_14058433_3 WHERE club = \"Llandudno RFC\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (bulletins_to_all_contacts VARCHAR, creator VARCHAR, transport_layer_security VARCHAR, license VARCHAR)",
"role": "system"
},
{
"content": "Were there Bulletins to all contacts of the proprietary license created by Microsoft with no transport layer of security?",
"role": "user"
},
{
"content": "SELECT bulletins_to_all_contacts FROM table_name_43 WHERE transport_layer_security = \"no\" AND license = \"proprietary\" AND creator = \"microsoft\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_74 (total INTEGER, gold VARCHAR, rank VARCHAR, bronze VARCHAR)",
"role": "system"
},
{
"content": "Which is the highest total at rank 6, bronze 2, and gold larger than 0?",
"role": "user"
},
{
"content": "SELECT MAX(total) FROM table_name_74 WHERE rank = 6 AND bronze = 2 AND gold > 0",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_57 (game__number INTEGER, record VARCHAR)",
"role": "system"
},
{
"content": "Record of 11-10-3 is what sum of game #?",
"role": "user"
},
{
"content": "SELECT SUM(game__number) FROM table_name_57 WHERE record = \"11-10-3\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_80 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)",
"role": "system"
},
{
"content": "What is the time/retired with 22 laps and a grid of 29?",
"role": "user"
},
{
"content": "SELECT time_retired FROM table_name_80 WHERE laps = 22 AND grid = 29",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_16 (player VARCHAR, place VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Who placed t7 with a score of 70-71=141?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_16 WHERE place = \"t7\" AND score = 70 - 71 = 141",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_97 (attendance INTEGER, tie_no VARCHAR)",
"role": "system"
},
{
"content": "How many attended tie number 3?",
"role": "user"
},
{
"content": "SELECT MAX(attendance) FROM table_name_97 WHERE tie_no = \"3\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341577_50 (candidates VARCHAR, first_elected VARCHAR)",
"role": "system"
},
{
"content": "Who were the candidates that ran when Jim Moody was up for reelection after 1982?",
"role": "user"
},
{
"content": "SELECT candidates FROM table_1341577_50 WHERE first_elected = 1982",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_62 (place VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What place was the golfer with a score of 67-67-66-68=268 ranked in?",
"role": "user"
},
{
"content": "SELECT place FROM table_name_62 WHERE score = 67 - 67 - 66 - 68 = 268",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE AIRPORTS (AirportCode VARCHAR, City VARCHAR); CREATE TABLE AIRLINES (uid VARCHAR, Airline VARCHAR); CREATE TABLE FLIGHTS (DestAirport VARCHAR, Airline VARCHAR)",
"role": "system"
},
{
"content": "How many United Airlines flights go to City 'Aberdeen'?",
"role": "user"
},
{
"content": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = \"Aberdeen\" AND T3.Airline = \"United Airlines\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_83 (drawn INTEGER, games INTEGER)",
"role": "system"
},
{
"content": "What is the lowest drawn that has games less than 7?",
"role": "user"
},
{
"content": "SELECT MIN(drawn) FROM table_name_83 WHERE games < 7",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_65 (unit VARCHAR, authors VARCHAR)",
"role": "system"
},
{
"content": "Which Unit has Authors of dalla vecchia, wild, & reitner?",
"role": "user"
},
{
"content": "SELECT unit FROM table_name_65 WHERE authors = \"dalla vecchia, wild, & reitner\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (team_2 VARCHAR)",
"role": "system"
},
{
"content": "What is the 1st leg of cs sfaxien?",
"role": "user"
},
{
"content": "SELECT 1 AS st_leg FROM table_name_48 WHERE team_2 = \"cs sfaxien\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_84 (date VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "What date had 51,265 attendance?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_84 WHERE attendance = \"51,265\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_84 (round INTEGER, position VARCHAR, pick VARCHAR)",
"role": "system"
},
{
"content": "Name the Round which has a Position of defensive back and a Pick of 226?",
"role": "user"
},
{
"content": "SELECT MIN(round) FROM table_name_84 WHERE position = \"defensive back\" AND pick = 226",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (driver VARCHAR, winnings VARCHAR, car__number VARCHAR, laps VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "Who is the Driver that has a Laps smaller than 498, less than 58 points, a car number bigger than 22 and who has won $93,514?",
"role": "user"
},
{
"content": "SELECT driver FROM table_name_15 WHERE laps < 498 AND points < 58 AND car__number > 22 AND winnings = \"$93,514\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20354_5 (zodiac_sign VARCHAR, transcription VARCHAR)",
"role": "system"
},
{
"content": "What's the zodiac sing for the month whose transcription is Karakadakhom?",
"role": "user"
},
{
"content": "SELECT zodiac_sign FROM table_20354_5 WHERE transcription = \"karakadakhom\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13857501_1 (year INTEGER, womens_singles VARCHAR)",
"role": "system"
},
{
"content": "Beata syta is the minimum year for womens singles.",
"role": "user"
},
{
"content": "SELECT MIN(year) FROM table_13857501_1 WHERE womens_singles = \"Beata Syta\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12321870_32 (goals VARCHAR, player_name VARCHAR)",
"role": "system"
},
{
"content": "How many goals have been scored by Tiago Gomes?",
"role": "user"
},
{
"content": "SELECT goals FROM table_12321870_32 WHERE player_name = \"Tiago Gomes\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE ship (lost_in_battle VARCHAR, location VARCHAR); CREATE TABLE battle (name VARCHAR, RESULT VARCHAR, bulgarian_commander VARCHAR); CREATE TABLE battle (name VARCHAR, result VARCHAR, bulgarian_commander VARCHAR, id VARCHAR)",
"role": "system"
},
{
"content": "Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'.",
"role": "user"
},
{
"content": "SELECT name, RESULT, bulgarian_commander FROM battle EXCEPT SELECT T1.name, T1.result, T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.location = 'English Channel'",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_74 (bronze INTEGER, rank VARCHAR, gold VARCHAR)",
"role": "system"
},
{
"content": "What is the highest number of bronzes for countries ranking over 5 with 0 golds?",
"role": "user"
},
{
"content": "SELECT MAX(bronze) FROM table_name_74 WHERE rank > 5 AND gold < 0",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_94 (result VARCHAR, runner_up VARCHAR, final_venue VARCHAR)",
"role": "system"
},
{
"content": "What was the Result in Green Lane with Kirkburton as the Runner-up?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_94 WHERE runner_up = \"kirkburton\" AND final_venue = \"green lane\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Student (Major VARCHAR)",
"role": "system"
},
{
"content": "Show all majors.",
"role": "user"
},
{
"content": "SELECT DISTINCT Major FROM Student",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (first_match VARCHAR, final_position___round VARCHAR)",
"role": "system"
},
{
"content": "Which first match had a final position/round in the third qualifying round?",
"role": "user"
},
{
"content": "SELECT first_match FROM table_name_72 WHERE final_position___round = \"third qualifying round\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24565004_20 (goals¹ INTEGER, nationality² VARCHAR)",
"role": "system"
},
{
"content": "Name the most goals for algeria",
"role": "user"
},
{
"content": "SELECT MIN(goals¹) FROM table_24565004_20 WHERE nationality² = \"Algeria\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_37 (place INTEGER, national_final VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "what is the highest place when the national final is 4th and the points is less than 139?",
"role": "user"
},
{
"content": "SELECT MAX(place) FROM table_name_37 WHERE national_final = \"4th\" AND points < 139",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_10 (championship VARCHAR, name VARCHAR, total VARCHAR, league_cup VARCHAR)",
"role": "system"
},
{
"content": "What is the championship of Jem Karacan that has a total of 2 and a league cup more than 0?",
"role": "user"
},
{
"content": "SELECT championship FROM table_name_10 WHERE total = 2 AND league_cup > 0 AND name = \"jem karacan\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14132239_3 (defensive VARCHAR, rookie VARCHAR, offensive VARCHAR)",
"role": "system"
},
{
"content": "Who was the defensive award winner when the rookie award was given to Daryl Veltman and the offensive award was given to Mark Steenhuis?",
"role": "user"
},
{
"content": "SELECT defensive FROM table_14132239_3 WHERE rookie = \"Daryl Veltman\" AND offensive = \"Mark Steenhuis\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_46 (score VARCHAR, home_team VARCHAR)",
"role": "system"
},
{
"content": "What is home team Maine Road's score?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_46 WHERE home_team = \"maine road\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24887326_6 (date VARCHAR, tie_no VARCHAR)",
"role": "system"
},
{
"content": "How many dates are there for tie number 12?",
"role": "user"
},
{
"content": "SELECT COUNT(date) FROM table_24887326_6 WHERE tie_no = 12",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2182573_2 (avg_finish VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What was the average finish in 2007?",
"role": "user"
},
{
"content": "SELECT avg_finish FROM table_2182573_2 WHERE year = 2007",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_69 (to_par VARCHAR, score VARCHAR, place VARCHAR)",
"role": "system"
},
{
"content": "With a score smaller than 71 along with a place of t6, what is the To par score?",
"role": "user"
},
{
"content": "SELECT to_par FROM table_name_69 WHERE score < 71 AND place = \"t6\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_28 (year VARCHAR, competition VARCHAR, event VARCHAR)",
"role": "system"
},
{
"content": "How many years was the 400 m event in the olympic games?",
"role": "user"
},
{
"content": "SELECT COUNT(year) FROM table_name_28 WHERE competition = \"olympic games\" AND event = \"400 m\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_59 (pick INTEGER, player VARCHAR)",
"role": "system"
},
{
"content": "What is the average pick for clarence mason?",
"role": "user"
},
{
"content": "SELECT AVG(pick) FROM table_name_59 WHERE player = \"clarence mason\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (entrant VARCHAR, year VARCHAR, chassis VARCHAR)",
"role": "system"
},
{
"content": "Name the entrant for 1975 and chassis of hill gh1",
"role": "user"
},
{
"content": "SELECT entrant FROM table_name_25 WHERE year = 1975 AND chassis = \"hill gh1\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_10 (lost INTEGER, points VARCHAR, draw VARCHAR)",
"role": "system"
},
{
"content": "What is the total value for Lost, when the value for Points is greater than 21, and when the value for Draw is 2?",
"role": "user"
},
{
"content": "SELECT SUM(lost) FROM table_name_10 WHERE points > 21 AND draw = 2",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR, media_type_id VARCHAR); CREATE TABLE media_types (id VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "List the name of tracks belongs to genre Rock and whose media type is MPEG audio file.",
"role": "user"
},
{
"content": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = \"Rock\" AND T3.name = \"MPEG audio file\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_14 (date VARCHAR, week VARCHAR)",
"role": "system"
},
{
"content": "What was the date for the game in week 7?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_14 WHERE week = 7",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27734286_6 (record VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "List records for game 29.",
"role": "user"
},
{
"content": "SELECT record FROM table_27734286_6 WHERE game = 29",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (coverage_area VARCHAR, city_of_license VARCHAR)",
"role": "system"
},
{
"content": "Name the coverage area for licesne of hillsboro, west virginia",
"role": "user"
},
{
"content": "SELECT coverage_area FROM table_name_25 WHERE city_of_license = \"hillsboro, west virginia\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1108394_24 (manhattan VARCHAR, richmond_ VARCHAR, staten_is VARCHAR)",
"role": "system"
},
{
"content": "What is the manhattan for richmond 35%?",
"role": "user"
},
{
"content": "SELECT manhattan FROM table_1108394_24 WHERE richmond_[staten_is] = \"35_percentage\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_10 (attendance VARCHAR, week VARCHAR)",
"role": "system"
},
{
"content": "What is the attendance of the game on week 4?",
"role": "user"
},
{
"content": "SELECT attendance FROM table_name_10 WHERE week = 4",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_30 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)",
"role": "system"
},
{
"content": "What grid is the lowest when the time/retired is + 5 laps and the laps is less than 161?",
"role": "user"
},
{
"content": "SELECT MIN(grid) FROM table_name_30 WHERE time_retired = \"+ 5 laps\" AND laps < 161",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_62 (result VARCHAR, extra VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What is Result, when Extra is \"Heptathlon\", and when Venue is \"Götzis , Austria\"?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_62 WHERE extra = \"heptathlon\" AND venue = \"götzis , austria\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR); CREATE TABLE Grants (organisation_id VARCHAR); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR)",
"role": "system"
},
{
"content": "What is the total grant amount of the organisations described as research?",
"role": "user"
},
{
"content": "SELECT SUM(grant_amount) FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type = T3.organisation_type WHERE T3.organisation_type_description = 'Research'",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_31 (bluetooth VARCHAR, model VARCHAR)",
"role": "system"
},
{
"content": "Does the S90i model have bluetooth?",
"role": "user"
},
{
"content": "SELECT bluetooth FROM table_name_31 WHERE model = \"s90i\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_92 (area_km_2 INTEGER, population VARCHAR, status VARCHAR, census_ranking VARCHAR)",
"role": "system"
},
{
"content": "What is the area of the village with a census ranking of 1,442 of 5,008 and a population less than 1,778?",
"role": "user"
},
{
"content": "SELECT MAX(area_km_2) FROM table_name_92 WHERE status = \"village\" AND census_ranking = \"1,442 of 5,008\" AND population < 1 OFFSET 778",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_5 (time VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What was the time when his opponent was Rudy Martin?",
"role": "user"
},
{
"content": "SELECT time FROM table_name_5 WHERE opponent = \"rudy martin\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_74 (score VARCHAR, home_team VARCHAR, tie_no VARCHAR)",
"role": "system"
},
{
"content": "What score has ipswich town as the home team, and replay as the tie no.?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_74 WHERE home_team = \"ipswich town\" AND tie_no = \"replay\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_64 (grid INTEGER, laps VARCHAR, constructor VARCHAR)",
"role": "system"
},
{
"content": "What is the high grid total for maserati with under 35 laps?",
"role": "user"
},
{
"content": "SELECT MAX(grid) FROM table_name_64 WHERE laps < 35 AND constructor = \"maserati\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_7 (opponent VARCHAR, competition VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "At the VFL Reserves, who was the opponent when the score was 18.6 (114) - 21.14 (140)?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_7 WHERE competition = \"vfl reserves\" AND score = \"18.6 (114) - 21.14 (140)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22673956_1 (race_name VARCHAR, track VARCHAR)",
"role": "system"
},
{
"content": "How many races took place on the Indianapolis Motor Speedway track?",
"role": "user"
},
{
"content": "SELECT COUNT(race_name) FROM table_22673956_1 WHERE track = \"Indianapolis Motor Speedway\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_69 (main_span_feet VARCHAR, main_span_metres VARCHAR, year_opened VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "What is the main span in feet from a year of 2009 or more recent with a rank less than 94 and 1,310 main span metres?",
"role": "user"
},
{
"content": "SELECT main_span_feet FROM table_name_69 WHERE year_opened > 2009 AND rank < 94 AND main_span_metres = \"1,310\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_74 (nation VARCHAR, second VARCHAR)",
"role": "system"
},
{
"content": "Glenys Bakker was second for which nation?",
"role": "user"
},
{
"content": "SELECT nation FROM table_name_74 WHERE second = \"glenys bakker\"",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.