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_11948857_1 (first_elected VARCHAR, district VARCHAR)",
"role": "system"
},
{
"content": "How many entries are shown for first elected for district 41?",
"role": "user"
},
{
"content": "SELECT COUNT(first_elected) FROM table_11948857_1 WHERE district = 41",
"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_73 (original_airdate VARCHAR, nightly_rank VARCHAR, viewers__millions_ VARCHAR)",
"role": "system"
},
{
"content": "Original airdate for #6 with 1.246 viewers?",
"role": "user"
},
{
"content": "SELECT original_airdate FROM table_name_73 WHERE nightly_rank = \"#6\" AND viewers__millions_ = 1.246",
"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 (city_of_license VARCHAR, call_sign VARCHAR)",
"role": "system"
},
{
"content": "What city of license has a value of k293bg for its call sign?",
"role": "user"
},
{
"content": "SELECT city_of_license FROM table_name_82 WHERE call_sign = \"k293bg\"",
"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_78 (format VARCHAR, catalog VARCHAR)",
"role": "system"
},
{
"content": "What is the Format with a Catalog that is vcrd 103?",
"role": "user"
},
{
"content": "SELECT format FROM table_name_78 WHERE catalog = \"vcrd 103\"",
"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_45 (winning_applicant VARCHAR, block VARCHAR, ensemble_name VARCHAR)",
"role": "system"
},
{
"content": "Who is the Winning Applicant of Ensemble Name Muxco Lincolnshire in Block 10D?",
"role": "user"
},
{
"content": "SELECT winning_applicant FROM table_name_45 WHERE block = \"10d\" AND ensemble_name = \"muxco lincolnshire\"",
"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 products_for_hire (product_type_code VARCHAR)",
"role": "system"
},
{
"content": "How many different product types are there?",
"role": "user"
},
{
"content": "SELECT COUNT(DISTINCT product_type_code) FROM products_for_hire",
"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 (super_g INTEGER, slalom VARCHAR, overall VARCHAR)",
"role": "system"
},
{
"content": "What was her highest Super G score with a Slalom score of 58 and an Overall larger than 2?",
"role": "user"
},
{
"content": "SELECT MAX(super_g) FROM table_name_43 WHERE slalom = \"58\" AND overall > 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_22883210_7 (score VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What was the total score for january 18?",
"role": "user"
},
{
"content": "SELECT COUNT(score) FROM table_22883210_7 WHERE date = \"January 18\"",
"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 (outcome VARCHAR, surface VARCHAR)",
"role": "system"
},
{
"content": "What was Olga Govortsova's outcome when she played on a grass surface?",
"role": "user"
},
{
"content": "SELECT outcome FROM table_name_59 WHERE surface = \"grass\"",
"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_11206916_2 (manner_of_departure VARCHAR, date_of_appointment VARCHAR)",
"role": "system"
},
{
"content": "What manner of departure is listed with an appointment date of 13 march 2008",
"role": "user"
},
{
"content": "SELECT manner_of_departure FROM table_11206916_2 WHERE date_of_appointment = \"13 March 2008\"",
"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 (laps INTEGER, grid VARCHAR)",
"role": "system"
},
{
"content": "What is the low lap total for a grid of 14?",
"role": "user"
},
{
"content": "SELECT MIN(laps) FROM table_name_12 WHERE grid = 14",
"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_96 (gp_gs VARCHAR, total_points VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "what was the gp/gs in 2003 when the total points was \"did not play\"?",
"role": "user"
},
{
"content": "SELECT gp_gs FROM table_name_96 WHERE total_points = \"did not play\" AND year = \"2003\"",
"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_3 (chassis VARCHAR, points INTEGER)",
"role": "system"
},
{
"content": "What Chassis has more than 0 points?",
"role": "user"
},
{
"content": "SELECT chassis FROM table_name_3 WHERE points > 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_67 (organized VARCHAR, occupation VARCHAR)",
"role": "system"
},
{
"content": "What is the organized date of the stake with an occupation of senior buyer for Wal-mart?",
"role": "user"
},
{
"content": "SELECT organized FROM table_name_67 WHERE occupation = \"senior buyer for wal-mart\"",
"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_44 (time VARCHAR, name VARCHAR, lane VARCHAR)",
"role": "system"
},
{
"content": "how many times is the name matt targett and the lane higher than 7?",
"role": "user"
},
{
"content": "SELECT COUNT(time) FROM table_name_44 WHERE name = \"matt targett\" AND lane > 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_20849830_1 (game VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "What game number had a record of 3-1?",
"role": "user"
},
{
"content": "SELECT game FROM table_20849830_1 WHERE record = \"3-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 buildings (name VARCHAR, id VARCHAR, building_id VARCHAR); CREATE TABLE Office_locations (name VARCHAR, id VARCHAR, building_id VARCHAR)",
"role": "system"
},
{
"content": "List the names of buildings that have no company office.",
"role": "user"
},
{
"content": "SELECT name FROM buildings WHERE NOT id IN (SELECT building_id FROM Office_locations)",
"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_28019988_5 (series__number INTEGER)",
"role": "system"
},
{
"content": "What is the highest numbered episode in the series?",
"role": "user"
},
{
"content": "SELECT MAX(series__number) FROM table_28019988_5",
"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 (city VARCHAR, iata VARCHAR)",
"role": "system"
},
{
"content": "Which city has an IATA of tsa?",
"role": "user"
},
{
"content": "SELECT city FROM table_name_69 WHERE iata = \"tsa\"",
"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_52 (country VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What country does Jeff Sluman play for?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_52 WHERE player = \"jeff sluman\"",
"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_28967275_2 (original_air_date VARCHAR, episode__number VARCHAR)",
"role": "system"
},
{
"content": "What is the original airdate of episode #31?",
"role": "user"
},
{
"content": "SELECT original_air_date FROM table_28967275_2 WHERE episode__number = 31",
"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_14342592_8 (touchdowns INTEGER, player VARCHAR)",
"role": "system"
},
{
"content": "Name the most touchdowns for norcross",
"role": "user"
},
{
"content": "SELECT MAX(touchdowns) FROM table_14342592_8 WHERE player = \"Norcross\"",
"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_81 (time VARCHAR, rider VARCHAR, bike VARCHAR, grid VARCHAR)",
"role": "system"
},
{
"content": "What is the time recorded by David Salom on his Yamaha yzf-r6 when his grid was larger than 1?",
"role": "user"
},
{
"content": "SELECT time FROM table_name_81 WHERE bike = \"yamaha yzf-r6\" AND grid > 1 AND rider = \"david salom\"",
"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_49 (year INTEGER, city VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest year that has chester-le-street as the city, with 345 runs as the score?",
"role": "user"
},
{
"content": "SELECT MIN(year) FROM table_name_49 WHERE city = \"chester-le-street\" AND score = \"345 runs\"",
"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_78 (county VARCHAR, opposition VARCHAR)",
"role": "system"
},
{
"content": "What County has Dublin as the Opposition?",
"role": "user"
},
{
"content": "SELECT county FROM table_name_78 WHERE opposition = \"dublin\"",
"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_63 (points INTEGER, date VARCHAR)",
"role": "system"
},
{
"content": "What were the Points on December 13?",
"role": "user"
},
{
"content": "SELECT MAX(points) FROM table_name_63 WHERE date = \"december 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_23988726_2 (saif_saaeed_shaheen___qat__ VARCHAR)",
"role": "system"
},
{
"content": "When daniel lincoln ( usa ) is the saif saaeed shaheen ( qat ) What is the date for September 3rd, 2004?",
"role": "user"
},
{
"content": "SELECT 3 AS _september_2004 FROM table_23988726_2 WHERE saif_saaeed_shaheen___qat__ = \"Daniel Lincoln ( USA )\"",
"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_50 (college VARCHAR, pick VARCHAR)",
"role": "system"
},
{
"content": "What college had the 93 pick?",
"role": "user"
},
{
"content": "SELECT college FROM table_name_50 WHERE pick = 93",
"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_96 (bronze INTEGER, gold VARCHAR, silver VARCHAR)",
"role": "system"
},
{
"content": "What is the average number of bronze of the nation with more than 1 gold and 1 silver medal?",
"role": "user"
},
{
"content": "SELECT AVG(bronze) FROM table_name_96 WHERE gold > 1 AND silver = 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_61 (city_of_license VARCHAR, frequency VARCHAR)",
"role": "system"
},
{
"content": "What city is 103.3 FM licensed in?",
"role": "user"
},
{
"content": "SELECT city_of_license FROM table_name_61 WHERE frequency = \"103.3 fm\"",
"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_26137666_3 (date VARCHAR, winning_driver VARCHAR)",
"role": "system"
},
{
"content": "What is every date of Mark Taylor as winning driver?",
"role": "user"
},
{
"content": "SELECT date FROM table_26137666_3 WHERE winning_driver = \"Mark Taylor\"",
"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 (event VARCHAR, year VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "what is the event for the year less than 1913 with the position of 2nd?",
"role": "user"
},
{
"content": "SELECT event FROM table_name_60 WHERE year < 1913 AND position = \"2nd\"",
"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 (team VARCHAR, stadium VARCHAR)",
"role": "system"
},
{
"content": "Who is the team at vikings stadium?",
"role": "user"
},
{
"content": "SELECT team FROM table_name_64 WHERE stadium = \"vikings stadium\"",
"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 (record VARCHAR, time VARCHAR)",
"role": "system"
},
{
"content": "What is the record of the match at 6:00?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_84 WHERE time = \"6:00\"",
"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_18335117_2 (original_air_date VARCHAR, production_code VARCHAR)",
"role": "system"
},
{
"content": "When did the episode first air that had a production code of 102?",
"role": "user"
},
{
"content": "SELECT original_air_date FROM table_18335117_2 WHERE production_code = 102",
"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_78 (grid INTEGER, laps INTEGER)",
"role": "system"
},
{
"content": "What is the average grid with more than 23 laps?",
"role": "user"
},
{
"content": "SELECT AVG(grid) FROM table_name_78 WHERE laps > 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_17 (suffix VARCHAR, prefix VARCHAR)",
"role": "system"
},
{
"content": "Which suffix has the prefix of isothiocyanato- (-ncs)?",
"role": "user"
},
{
"content": "SELECT suffix FROM table_name_17 WHERE prefix = \"isothiocyanato- (-ncs)\"",
"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_70 (points VARCHAR, scored VARCHAR, conceded VARCHAR, position VARCHAR, losses VARCHAR)",
"role": "system"
},
{
"content": "How many Points have a Position larger than 4, and Losses larger than 5, and a Conceded of 15, and a Scored larger than 11?",
"role": "user"
},
{
"content": "SELECT COUNT(points) FROM table_name_70 WHERE position > 4 AND losses > 5 AND conceded = 15 AND scored > 11",
"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_29395291_2 (subscribers__2006___thousands_ INTEGER, provider VARCHAR)",
"role": "system"
},
{
"content": "What is the maximum number of 2006 subscribers for Mobilis?",
"role": "user"
},
{
"content": "SELECT MAX(subscribers__2006___thousands_) FROM table_29395291_2 WHERE provider = \"Mobilis\"",
"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_89 (division VARCHAR, regular_season VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "When the regular season of 2nd, Northeast and the year was less than 2008 what was the total number of Division?",
"role": "user"
},
{
"content": "SELECT COUNT(division) FROM table_name_89 WHERE regular_season = \"2nd, northeast\" AND year < 2008",
"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 invoices (billing_country VARCHAR, total INTEGER)",
"role": "system"
},
{
"content": "A list of the top 8 countries by gross/total invoice size. List country name and gross invoice size.",
"role": "user"
},
{
"content": "SELECT billing_country, SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8",
"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 (seats INTEGER, _percentage_votes VARCHAR, change VARCHAR)",
"role": "system"
},
{
"content": "What are the fewest seats with fewer than 5.4% seats and more than -1 change?",
"role": "user"
},
{
"content": "SELECT MIN(seats) FROM table_name_12 WHERE _percentage_votes < 5.4 AND change > -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_97 (council VARCHAR)",
"role": "system"
},
{
"content": "What's the 2003 result for the falkirk council?",
"role": "user"
},
{
"content": "SELECT 2003 AS _result FROM table_name_97 WHERE council = \"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_1341865_23 (party VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "Name the party with edward boland",
"role": "user"
},
{
"content": "SELECT party FROM table_1341865_23 WHERE incumbent = \"Edward Boland\"",
"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_52 (Id VARCHAR)",
"role": "system"
},
{
"content": "What were the 2009 results that has 0 in 2010?",
"role": "user"
},
{
"content": "SELECT 2009 FROM table_name_52 WHERE 2010 = \"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_6 (class VARCHAR, quantity VARCHAR)",
"role": "system"
},
{
"content": "What is the class with 1 quantity?",
"role": "user"
},
{
"content": "SELECT class FROM table_name_6 WHERE quantity = \"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_37 (_number_of_prefectural_votes VARCHAR, _percentage_of_prefectural_vote VARCHAR, _number_of_seats_won VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of # Of Prefectural Votes, when % Of Prefectural Vote is 48.4%, and when # Of Seats Won is greater than 61?",
"role": "user"
},
{
"content": "SELECT COUNT(_number_of_prefectural_votes) FROM table_name_37 WHERE _percentage_of_prefectural_vote = \"48.4%\" AND _number_of_seats_won > 61",
"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_1143966_1 (won VARCHAR, standing VARCHAR, games VARCHAR)",
"role": "system"
},
{
"content": "How many games were won with 2nd oha was standing and there were 62 games?",
"role": "user"
},
{
"content": "SELECT won FROM table_1143966_1 WHERE standing = \"2nd OHA\" AND games = 62",
"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_81 (score VARCHAR, competition VARCHAR)",
"role": "system"
},
{
"content": "which Score has a Competition of match reports?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_81 WHERE competition = \"match reports\"",
"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_23050383_1 (country VARCHAR)",
"role": "system"
},
{
"content": "What is the 2008 rank of Djibouti? ",
"role": "user"
},
{
"content": "SELECT 2008 AS _rank FROM table_23050383_1 WHERE country = \"Djibouti\"",
"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_78 (grid INTEGER, laps INTEGER)",
"role": "system"
},
{
"content": "What is the total grid with laps less than 2?",
"role": "user"
},
{
"content": "SELECT SUM(grid) FROM table_name_78 WHERE laps < 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_19501664_1 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)",
"role": "system"
},
{
"content": "Name the viewers for the episode directed by tony phelan",
"role": "user"
},
{
"content": "SELECT us_viewers__millions_ FROM table_19501664_1 WHERE directed_by = \"Tony Phelan\"",
"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_23 (elevated VARCHAR, elector VARCHAR)",
"role": "system"
},
{
"content": "Which Elevated has an Elector of matteo orsini rosso?",
"role": "user"
},
{
"content": "SELECT elevated FROM table_name_23 WHERE elector = \"matteo orsini rosso\"",
"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 (pos VARCHAR, driver VARCHAR)",
"role": "system"
},
{
"content": "What was Stacy Compton's position?",
"role": "user"
},
{
"content": "SELECT pos FROM table_name_31 WHERE driver = \"stacy compton\"",
"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_178242_7 (season VARCHAR, the_mole VARCHAR)",
"role": "system"
},
{
"content": "Which season is it when Milouska was the show's mole ?",
"role": "user"
},
{
"content": "SELECT season FROM table_178242_7 WHERE the_mole = \"Milouska\"",
"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 (number VARCHAR, builder VARCHAR, works_number VARCHAR)",
"role": "system"
},
{
"content": "Baldwin Locomotive Works, also with works number 40864, is listed as what number?",
"role": "user"
},
{
"content": "SELECT number FROM table_name_2 WHERE builder = \"baldwin locomotive works\" AND works_number = 40864",
"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 (club_province VARCHAR, caps VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What Club/province have caps less than 2 and Jonathan Sexton as player?",
"role": "user"
},
{
"content": "SELECT club_province FROM table_name_74 WHERE caps < 2 AND player = \"jonathan sexton\"",
"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 (against INTEGER, opposing_team VARCHAR)",
"role": "system"
},
{
"content": "Sum of cuyo selection as the opposing team?",
"role": "user"
},
{
"content": "SELECT SUM(against) FROM table_name_86 WHERE opposing_team = \"cuyo selection\"",
"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_11 (score VARCHAR, date VARCHAR, match VARCHAR, home_away VARCHAR)",
"role": "system"
},
{
"content": "What was the score for a match before 13, and a home game on April 21, 2008?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_11 WHERE match < 13 AND home_away = \"home\" AND date = \"april 21, 2008\"",
"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 (tournament VARCHAR)",
"role": "system"
},
{
"content": "Which tournament had 2r in 2010?",
"role": "user"
},
{
"content": "SELECT tournament FROM table_name_60 WHERE 2010 = \"2r\"",
"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_15861776_1 (no_in_series VARCHAR, tv_broadcast VARCHAR)",
"role": "system"
},
{
"content": "What episode in the series is TV broadcast s03e20?",
"role": "user"
},
{
"content": "SELECT no_in_series FROM table_15861776_1 WHERE tv_broadcast = \"S03E20\"",
"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_99 (points INTEGER)",
"role": "system"
},
{
"content": "What is the lowest 2nd (m) when the points were larger than 251.6?",
"role": "user"
},
{
"content": "SELECT MIN(2 AS nd__m_) FROM table_name_99 WHERE points > 251.6",
"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_1139835_3 (winners VARCHAR, season_result VARCHAR)",
"role": "system"
},
{
"content": " who is the winners where season result is 9th",
"role": "user"
},
{
"content": "SELECT winners FROM table_1139835_3 WHERE season_result = \"9th\"",
"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 (date VARCHAR, visitor VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "What day was the visitor Cleveland when the record was 34-26?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_43 WHERE visitor = \"cleveland\" AND record = \"34-26\"",
"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_15928363_1 (aspect_ratio VARCHAR, horizontal VARCHAR)",
"role": "system"
},
{
"content": "Name the aspect ratio for 720",
"role": "user"
},
{
"content": "SELECT aspect_ratio FROM table_15928363_1 WHERE horizontal = 720",
"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 (in_service VARCHAR, origin VARCHAR, versions VARCHAR)",
"role": "system"
},
{
"content": "How many C-95 aircrafts originating in Brazil are currently in service?",
"role": "user"
},
{
"content": "SELECT in_service FROM table_name_12 WHERE origin = \"brazil\" AND versions = \"c-95\"",
"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 (college VARCHAR, height VARCHAR, school VARCHAR)",
"role": "system"
},
{
"content": "What's the college of the player with a height of 6-4 and went to lake howell high school?",
"role": "user"
},
{
"content": "SELECT college FROM table_name_68 WHERE height = \"6-4\" AND school = \"lake howell high school\"",
"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 (state VARCHAR, first_elected VARCHAR, member VARCHAR)",
"role": "system"
},
{
"content": "Which state was first elected in 1914, and a Member of edward jolley?",
"role": "user"
},
{
"content": "SELECT state FROM table_name_97 WHERE first_elected = \"1914\" AND member = \"edward jolley\"",
"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_32 (round VARCHAR, opposition VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "What round was adelaide united the opposition with an attendance of 18,345?",
"role": "user"
},
{
"content": "SELECT round FROM table_name_32 WHERE opposition = \"adelaide united\" AND attendance = \"18,345\"",
"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 (attendance INTEGER, away_team VARCHAR)",
"role": "system"
},
{
"content": "What is the average attendance when the Forest Green Rovers is the away team?",
"role": "user"
},
{
"content": "SELECT AVG(attendance) FROM table_name_82 WHERE away_team = \"forest green rovers\"",
"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 (date VARCHAR, outcome VARCHAR, opponents VARCHAR)",
"role": "system"
},
{
"content": "Tell me the date for dinah pfizenmaier anna zaja and winner",
"role": "user"
},
{
"content": "SELECT date FROM table_name_46 WHERE outcome = \"winner\" AND opponents = \"dinah pfizenmaier anna zaja\"",
"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_66 (to_par VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What is the To par when Lanny Wadkins is the player?",
"role": "user"
},
{
"content": "SELECT to_par FROM table_name_66 WHERE player = \"lanny wadkins\"",
"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_1973816_2 (location VARCHAR, institution VARCHAR)",
"role": "system"
},
{
"content": "Where is Southern Vermont College located?",
"role": "user"
},
{
"content": "SELECT location FROM table_1973816_2 WHERE institution = \"Southern Vermont College\"",
"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 (avg_g INTEGER, name VARCHAR, loss VARCHAR)",
"role": "system"
},
{
"content": "Which Avg/G has a Name of josh freeman, and a Loss smaller than 134?",
"role": "user"
},
{
"content": "SELECT SUM(avg_g) FROM table_name_59 WHERE name = \"josh freeman\" AND loss < 134",
"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_42 (first VARCHAR, surname VARCHAR)",
"role": "system"
},
{
"content": "Which First has a Surname of searle?",
"role": "user"
},
{
"content": "SELECT first FROM table_name_42 WHERE surname = \"searle\"",
"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_71 (bronze VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "Who received the bronze in 2011?",
"role": "user"
},
{
"content": "SELECT bronze FROM table_name_71 WHERE year = \"2011\"",
"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_24747844_2 (cuts_made INTEGER, player VARCHAR)",
"role": "system"
},
{
"content": "What is the minimum number of cuts made for Hunter Mahan?",
"role": "user"
},
{
"content": "SELECT MIN(cuts_made) FROM table_24747844_2 WHERE player = \"Hunter Mahan\"",
"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_40 (wins INTEGER, points VARCHAR, year VARCHAR, championship_finish VARCHAR)",
"role": "system"
},
{
"content": "Which Wins is the highest one that has a Year larger than 1996, and a Championship Finish of 1st, and Points smaller than 168?",
"role": "user"
},
{
"content": "SELECT MAX(wins) FROM table_name_40 WHERE year > 1996 AND championship_finish = \"1st\" AND points < 168",
"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_78 (wins INTEGER, position VARCHAR, scored VARCHAR)",
"role": "system"
},
{
"content": "What was the lowest number of wins for the team that scored more than 14 points and had a position of 7?",
"role": "user"
},
{
"content": "SELECT MIN(wins) FROM table_name_78 WHERE position = 7 AND scored > 14",
"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_1 (surface VARCHAR, opponents_in_the_final VARCHAR)",
"role": "system"
},
{
"content": "On what surface was the tournament with opponents kathleen horvath marcella mesker in the finals?",
"role": "user"
},
{
"content": "SELECT surface FROM table_name_1 WHERE opponents_in_the_final = \"kathleen horvath marcella mesker\"",
"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_99 (pick__number INTEGER, overall VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "What is the highest pick number of a defensive back with less than 136 overall points?",
"role": "user"
},
{
"content": "SELECT MAX(pick__number) FROM table_name_99 WHERE overall < 136 AND position = \"defensive back\"",
"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 (date VARCHAR, home VARCHAR, visitor VARCHAR)",
"role": "system"
},
{
"content": "What is the date for the home detroit and visitor was chicago?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_82 WHERE home = \"detroit\" AND visitor = \"chicago\"",
"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 (score VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is Score, when Date is \"May 11\"?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_97 WHERE date = \"may 11\"",
"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_22736523_1 (result VARCHAR, song_choice VARCHAR)",
"role": "system"
},
{
"content": "What is the result if Coba is the song choice?",
"role": "user"
},
{
"content": "SELECT result FROM table_22736523_1 WHERE song_choice = \"Coba\"",
"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 (placings INTEGER, nation VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "Which Placings have a Nation of west germany, and Points larger than 303.72?",
"role": "user"
},
{
"content": "SELECT SUM(placings) FROM table_name_31 WHERE nation = \"west germany\" AND points > 303.72",
"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_50 (current_streak VARCHAR, last_10_meetings VARCHAR)",
"role": "system"
},
{
"content": "What's the current streak with a last 10 meetings of lsu, 2-1?",
"role": "user"
},
{
"content": "SELECT current_streak FROM table_name_50 WHERE last_10_meetings = \"lsu, 2-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_17 (cuts_made VARCHAR, events VARCHAR, top_10 VARCHAR)",
"role": "system"
},
{
"content": "What were the total number of cuts made in an event larger than 4 and a top-10 smaller than 4?",
"role": "user"
},
{
"content": "SELECT COUNT(cuts_made) FROM table_name_17 WHERE events > 4 AND top_10 < 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_63 (province VARCHAR, airport VARCHAR)",
"role": "system"
},
{
"content": "Which province is Luogang International Airport located in?",
"role": "user"
},
{
"content": "SELECT province FROM table_name_63 WHERE airport = \"luogang international airport\"",
"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 (Id VARCHAR)",
"role": "system"
},
{
"content": "Name the 1821 with 1861 of 3733",
"role": "user"
},
{
"content": "SELECT 1821 FROM table_name_30 WHERE 1861 = \"3733\"",
"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_12570207_1 (rockhampton INTEGER)",
"role": "system"
},
{
"content": "what is the minimum rockhampton",
"role": "user"
},
{
"content": "SELECT MIN(rockhampton) FROM table_12570207_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_28884858_2 (team VARCHAR, capacity_percentage VARCHAR)",
"role": "system"
},
{
"content": "How many teams had a 99.3% capacity rating?",
"role": "user"
},
{
"content": "SELECT COUNT(team) FROM table_28884858_2 WHERE capacity_percentage = \"99.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_67 (result VARCHAR, category VARCHAR)",
"role": "system"
},
{
"content": "What was the result for the Outstanding director of a musical category?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_67 WHERE category = \"outstanding director of a musical\"",
"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_26 (headquarters VARCHAR, company VARCHAR)",
"role": "system"
},
{
"content": "Where is the headquarters of the getinge group located?",
"role": "user"
},
{
"content": "SELECT headquarters FROM table_name_26 WHERE company = \"getinge group\"",
"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 (score VARCHAR, game VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What is Score, when Game is greater than 49, and when Opponent is \"Pittsburgh Ironmen\"?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_10 WHERE game > 49 AND opponent = \"pittsburgh ironmen\"",
"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_71 (place INTEGER, played VARCHAR, points VARCHAR, lost VARCHAR)",
"role": "system"
},
{
"content": "What place is associated with under 28 points, under 11 games lost, and under 18 games played?",
"role": "user"
},
{
"content": "SELECT SUM(place) FROM table_name_71 WHERE points < 28 AND lost < 11 AND played < 18",
"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 FACULTY (Room VARCHAR, Rank VARCHAR, Building VARCHAR)",
"role": "system"
},
{
"content": "Find the rooms of faculties with rank professor who live in building NEB.",
"role": "user"
},
{
"content": "SELECT Room FROM FACULTY WHERE Rank = \"Professor\" AND Building = \"NEB\"",
"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 (pick INTEGER, overall VARCHAR, round VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "Which Pick has a Round larger than 8, a Name of kenny fells, and an Overall larger than 297?",
"role": "user"
},
{
"content": "SELECT SUM(pick) FROM table_name_64 WHERE round > 8 AND name = \"kenny fells\" AND overall > 297",
"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_10601843_2 (city VARCHAR, capacity VARCHAR)",
"role": "system"
},
{
"content": "Which city has a capacity of 41903?",
"role": "user"
},
{
"content": "SELECT city FROM table_10601843_2 WHERE capacity = 41903",
"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 (place VARCHAR, mark VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the place of the record on 1996-05-25 with a mark greater than 90.73?",
"role": "user"
},
{
"content": "SELECT place FROM table_name_38 WHERE mark > 90.73 AND date = \"1996-05-25\"",
"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 player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE player_award (player_id VARCHAR)",
"role": "system"
},
{
"content": "Which 3 players won the most player awards? List their full name and id.",
"role": "user"
},
{
"content": "SELECT T1.name_first, T1.name_last, T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY COUNT(*) DESC LIMIT 3",
"role": "assistant"
}
] |