prompt
stringlengths
669
1.39k
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>How many departments are led by heads who are not mentioned? SQL Table Create Statement: CREATE TABLE management (department_id VARCHAR); CREATE TABLE department (department_id VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT COUNT(*) FROM department WHERE NOT department_id IN (SELECT department_id FROM management)</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Show the years and the official names of the host cities of competitions. SQL Table Create Statement: CREATE TABLE city (Official_Name VARCHAR, City_ID VARCHAR); CREATE TABLE farm_competition (Year VARCHAR, Host_city_ID VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T2.Year, T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What is detail of the student who registered the most number of courses? SQL Table Create Statement: CREATE TABLE students (student_details VARCHAR, student_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T1.student_details FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>when does the train arriving at stamford east at 11.45 departure SQL Table Create Statement: CREATE TABLE table_18333678_2 (departure VARCHAR, arrival VARCHAR, going_to VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT departure FROM table_18333678_2 WHERE arrival = "11.45" AND going_to = "Stamford East"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Which school has a state authority and a roll of 318? SQL Table Create Statement: CREATE TABLE table_name_27 (name VARCHAR, authority VARCHAR, roll VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT name FROM table_name_27 WHERE authority = "state" AND roll = 318</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What is the zip code in which the average mean sea level pressure is the lowest? SQL Table Create Statement: CREATE TABLE weather (zip_code VARCHAR, mean_sea_level_pressure_inches INTEGER)<|end|><|assistant|><codestart type="sql">SELECT zip_code FROM weather GROUP BY zip_code ORDER BY AVG(mean_sea_level_pressure_inches) LIMIT 1</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What are names of stations that have average bike availability above 10 and are not located in San Jose city? SQL Table Create Statement: CREATE TABLE station (name VARCHAR, id VARCHAR); CREATE TABLE status (station_id VARCHAR); CREATE TABLE station (name VARCHAR, city VARCHAR, bikes_available INTEGER)<|end|><|assistant|><codestart type="sql">SELECT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING AVG(bikes_available) > 10 EXCEPT SELECT name FROM station WHERE city = "San Jose"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>When melbourne was the home team what was their score? SQL Table Create Statement: CREATE TABLE table_name_46 (home_team VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT home_team AS score FROM table_name_46 WHERE home_team = "melbourne"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>what is the sum of goals for when the position is less than 8, the losses is less than 10 the goals against is less than 35 and played is less than 38? SQL Table Create Statement: CREATE TABLE table_name_50 (goals_for INTEGER, played VARCHAR, goals_against VARCHAR, position VARCHAR, losses VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT SUM(goals_for) FROM table_name_50 WHERE position < 8 AND losses < 10 AND goals_against < 35 AND played < 38</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Name the team which has high rebounds of smith (10) SQL Table Create Statement: CREATE TABLE table_name_96 (team VARCHAR, high_rebounds VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT team FROM table_name_96 WHERE high_rebounds = "smith (10)"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>what is the mexico stat where mañana es para siempre is love never dies SQL Table Create Statement: CREATE TABLE table_18498743_1 (mexico VARCHAR, mañana_es_para_siempre VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT mexico FROM table_18498743_1 WHERE mañana_es_para_siempre = "Love Never Dies"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What's the rank for a team that has a percentage of 56% and a loss smaller than 4? SQL Table Create Statement: CREATE TABLE table_name_45 (rank INTEGER, loss VARCHAR, percentage VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT AVG(rank) FROM table_name_45 WHERE NOT percentage = "56%" AND loss < 4</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Find the name of the user who tweeted more than once, and number of tweets tweeted by them. SQL Table Create Statement: CREATE TABLE tweets (uid VARCHAR); CREATE TABLE user_profiles (name VARCHAR, uid VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T1.name, COUNT(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING COUNT(*) > 1</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Find the name and attribute ID of the attribute definitions with attribute value 0. SQL Table Create Statement: CREATE TABLE Catalog_Contents_Additional_Attributes (attribute_id VARCHAR, attribute_value VARCHAR); CREATE TABLE Attribute_Definitions (attribute_name VARCHAR, attribute_id VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT t1.attribute_name, t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id = t2.attribute_id WHERE t2.attribute_value = 0</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Show me the departure date and arrival date for all flights from Los Angeles to Honolulu. SQL Table Create Statement: CREATE TABLE Flight (departure_date VARCHAR, arrival_date VARCHAR, origin VARCHAR, destination VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT departure_date, arrival_date FROM Flight WHERE origin = "Los Angeles" AND destination = "Honolulu"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What is the score of the game that had a visiting team of Edmonton? SQL Table Create Statement: CREATE TABLE table_name_93 (score VARCHAR, visitor VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT score FROM table_name_93 WHERE visitor = "edmonton"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What year was Teresa Wright nominated best supporting actress? SQL Table Create Statement: CREATE TABLE table_18638067_1 (year__ceremony_ VARCHAR, actor_actress VARCHAR, category VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT year__ceremony_ FROM table_18638067_1 WHERE actor_actress = "Teresa Wright" AND category = "Best Supporting Actress"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Show the average age for male and female students. SQL Table Create Statement: CREATE TABLE Student (sex VARCHAR, age INTEGER)<|end|><|assistant|><codestart type="sql">SELECT AVG(age), sex FROM Student GROUP BY sex</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Find the average age of the students who have allergies with food and animal types. SQL Table Create Statement: CREATE TABLE Student (age INTEGER, StuID VARCHAR); CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR); CREATE TABLE Has_allergy (StuID VARCHAR, Allergy VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT AVG(age) FROM Student WHERE StuID IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "animal")</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What is the PI GP of Rob Flockhart, who has a pick # less than 122 and a round # less than 3? SQL Table Create Statement: CREATE TABLE table_name_44 (pl_gp INTEGER, rd__number VARCHAR, pick__number VARCHAR, player VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT SUM(pl_gp) FROM table_name_44 WHERE pick__number < 122 AND player = "rob flockhart" AND rd__number < 3</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What is the production code for episode 6 in the season? SQL Table Create Statement: CREATE TABLE table_1876825_3 (production_code VARCHAR, no_in_season VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT production_code FROM table_1876825_3 WHERE no_in_season = 6</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Who is the youngest employee in the company? List employee's first and last name. SQL Table Create Statement: CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, birth_date VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT first_name, last_name FROM employees ORDER BY birth_date DESC LIMIT 1</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>List the name of tracks belongs to genre Rock and whose media type is MPEG audio file. SQL Table Create Statement: CREATE 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)<|end|><|assistant|><codestart type="sql">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"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Find the name of tracks which are in both Movies and music playlists. SQL Table Create Statement: CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music'</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Show the id, name of each editor and the number of journal committees they are on. SQL Table Create Statement: CREATE TABLE editor (editor_id VARCHAR, Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal_committee (Editor_ID VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T1.editor_id, T1.Name, COUNT(*) FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.editor_id</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Show the first names and last names of customers without any account. SQL Table Create Statement: CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT customer_first_name, customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name, T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What is the customer id, first and last name with least number of accounts. SQL Table Create Statement: CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) LIMIT 1</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>How many times does Switzerland have under 7 golds and less than 3 silvers? SQL Table Create Statement: CREATE TABLE table_name_17 (total VARCHAR, silver VARCHAR, country VARCHAR, gold VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT COUNT(total) FROM table_name_17 WHERE country = "switzerland" AND gold < 7 AND silver < 3</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Show the name and location of track with 1 race. SQL Table Create Statement: CREATE TABLE race (track_id VARCHAR); CREATE TABLE track (name VARCHAR, location VARCHAR, track_id VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T2.name, T2.location FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id HAVING COUNT(*) = 1</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What was the gender of the contestant on RR: South Pacific season? SQL Table Create Statement: CREATE TABLE table_18974269_1 (gender VARCHAR, original_season VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT gender FROM table_18974269_1 WHERE original_season = "RR: South Pacific"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What is the least common media type in all tracks? SQL Table Create Statement: CREATE TABLE MEDIATYPE (Name VARCHAR, MediaTypeId VARCHAR); CREATE TABLE TRACK (MediaTypeId VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) LIMIT 1</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Find the first names of all customers that live in Brazil and have an invoice. SQL Table Create Statement: CREATE TABLE CUSTOMER (FirstName VARCHAR, CustomerId VARCHAR, country VARCHAR); CREATE TABLE INVOICE (CustomerId VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = "Brazil"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Find the names of artists that do not have any albums. SQL Table Create Statement: CREATE TABLE ARTIST (Name VARCHAR); CREATE TABLE ALBUM (ArtistId VARCHAR); CREATE TABLE ARTIST (Name VARCHAR, ArtistId VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What is the name of the customer who has the most policies listed? SQL Table Create Statement: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customers_policies (customer_id VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY COUNT(*) DESC LIMIT 1</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What are the names of enzymes in the medicine named 'Amisulpride' that can serve as an 'inhibitor'? SQL Table Create Statement: CREATE TABLE medicine (id VARCHAR, name VARCHAR); CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, medicine_id VARCHAR, interaction_type VARCHAR); CREATE TABLE enzyme (name VARCHAR, id VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id = T3.id WHERE T3.name = 'Amisulpride' AND T2.interaction_type = 'inhibitor'</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction? SQL Table Create Statement: CREATE TABLE enzyme (name VARCHAR, location VARCHAR, product VARCHAR, id VARCHAR); CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, interaction_type VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT DISTINCT T1.name, T1.location, T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.interaction_type = 'inhibitor'</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What is the team name and acc regular season score of the school that was founded for the longest time? SQL Table Create Statement: CREATE TABLE university (school_id VARCHAR, founded VARCHAR); CREATE TABLE basketball_match (team_name VARCHAR, ACC_Regular_Season VARCHAR, school_id VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT t2.team_name, t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t1.founded LIMIT 1</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>List the hardware model name and company name for the phone whose screen mode type is "Graphics." SQL Table Create Statement: CREATE TABLE phone (Hardware_Model_name VARCHAR, Company_name VARCHAR, screen_mode VARCHAR); CREATE TABLE screen_mode (Graphics_mode VARCHAR, Type VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T2.Hardware_Model_name, T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type = "Graphics"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What is Incumbent, when Results is "Re-Elected", when Party is "Democratic", and when District is "Minnesota 7"? SQL Table Create Statement: CREATE TABLE table_name_75 (incumbent VARCHAR, district VARCHAR, results VARCHAR, party VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT incumbent FROM table_name_75 WHERE results = "re-elected" AND party = "democratic" AND district = "minnesota 7"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>How many different finales had the English title "Beyond the Realm of Conscience"? SQL Table Create Statement: CREATE TABLE table_19210674_1 (finale VARCHAR, english_title VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT COUNT(finale) FROM table_19210674_1 WHERE english_title = "Beyond the Realm of Conscience"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Show the positions of the players from the team with name "Ryley Goldner". SQL Table Create Statement: CREATE TABLE match_season (Position VARCHAR, Team VARCHAR); CREATE TABLE team (Team_id VARCHAR, Name VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T1.Position FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Ryley Goldner"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Show the names of climbers and the heights of mountains they climb. SQL Table Create Statement: CREATE TABLE mountain (Height VARCHAR, Mountain_ID VARCHAR); CREATE TABLE climber (Name VARCHAR, Mountain_ID VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T1.Name, T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What are the birth date and birth place of the body builder with the highest total points? SQL Table Create Statement: CREATE TABLE body_builder (People_ID VARCHAR, Total VARCHAR); CREATE TABLE people (Birth_Date VARCHAR, Birth_Place VARCHAR, People_ID VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T2.Birth_Date, T2.Birth_Place FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Total DESC LIMIT 1</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What's the series number of the episode seen by 9.35 million people in the US? SQL Table Create Statement: CREATE TABLE table_19401346_1 (no_in_series INTEGER, us_viewers__millions_ VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT MIN(no_in_series) FROM table_19401346_1 WHERE us_viewers__millions_ = "9.35"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What is the average number of votes of representatives from party "Republican"? SQL Table Create Statement: CREATE TABLE election (Votes INTEGER, Representative_ID VARCHAR); CREATE TABLE representative (Representative_ID VARCHAR, Party VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT AVG(T1.Votes) FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID WHERE T2.Party = "Republican"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What are the booking start and end dates of the apartments with type code "Duplex"? SQL Table Create Statement: CREATE TABLE Apartments (apt_id VARCHAR, apt_type_code VARCHAR); CREATE TABLE Apartment_Bookings (booking_start_date VARCHAR, apt_id VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T1.booking_start_date, T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_type_code = "Duplex"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Show the average room count of the apartments that have booking status code "Provisional". SQL Table Create Statement: CREATE TABLE Apartment_Bookings (apt_id VARCHAR, booking_status_code VARCHAR); CREATE TABLE Apartments (apt_id VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT AVG(room_count) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = "Provisional"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Show the apartment type codes and the corresponding number of apartments sorted by the number of apartments in ascending order. SQL Table Create Statement: CREATE TABLE Apartments (apt_type_code VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT apt_type_code, COUNT(*) FROM Apartments GROUP BY apt_type_code ORDER BY COUNT(*)</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>How many apartments do not have any facility? SQL Table Create Statement: CREATE TABLE Apartment_Facilities (apt_id VARCHAR); CREATE TABLE Apartments (apt_id VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT COUNT(*) FROM Apartments WHERE NOT apt_id IN (SELECT apt_id FROM Apartment_Facilities)</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Who was the Winner in the AMC Round 4 at Lakeside International Raceway? SQL Table Create Statement: CREATE TABLE table_name_96 (winner VARCHAR, circuit VARCHAR, series VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT winner FROM table_name_96 WHERE circuit = "lakeside international raceway" AND series = "amc round 4"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>List the names and birthdays of the top five players in terms of potential. SQL Table Create Statement: CREATE TABLE Player_Attributes (player_api_id VARCHAR); CREATE TABLE Player (player_name VARCHAR, birthday VARCHAR, player_api_id VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT DISTINCT T1.player_name, T1.birthday FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id ORDER BY potential DESC LIMIT 5</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Show the names of members and the dates of performances they attended in descending order of attendance of the performances. SQL Table Create Statement: CREATE TABLE performance (Date VARCHAR, Performance_ID VARCHAR, Attendance VARCHAR); CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE member_attendance (Member_ID VARCHAR, Performance_ID VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T2.Name, T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID ORDER BY T3.Attendance DESC</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>How many to par has the winning score of 69-66-68=203. SQL Table Create Statement: CREATE TABLE table_19630743_2 (to_par VARCHAR, winning_score VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT to_par FROM table_19630743_2 WHERE winning_score = 69 - 66 - 68 = 203</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Find the name of instructors who are advising more than one student. SQL Table Create Statement: CREATE TABLE advisor (i_id VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id = T2.i_id GROUP BY T2.i_id HAVING COUNT(*) > 1</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Find the name and salary of the instructors who are advisors of any student from History department? SQL Table Create Statement: CREATE TABLE instructor (name VARCHAR, salary VARCHAR, id VARCHAR); CREATE TABLE advisor (i_id VARCHAR, s_id VARCHAR); CREATE TABLE student (id VARCHAR, dept_name VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T2.name, T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'History'</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What is the course title of the prerequisite of course Mobile Computing? SQL Table Create Statement: CREATE TABLE course (title VARCHAR, course_id VARCHAR); CREATE TABLE prereq (prereq_id VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, title VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'Mobile Computing')</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Find the name of students who took some course offered by Statistics department. SQL Table Create Statement: CREATE TABLE student (name VARCHAR, id VARCHAR); CREATE TABLE takes (course_id VARCHAR, id VARCHAR); CREATE TABLE course (course_id VARCHAR, dept_name VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T3.name FROM course AS T1 JOIN takes AS T2 ON T1.course_id = T2.course_id JOIN student AS T3 ON T2.id = T3.id WHERE T1.dept_name = 'Statistics'</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Find courses that ran in Fall 2009 and in Spring 2010. SQL Table Create Statement: CREATE TABLE SECTION (course_id VARCHAR, semester VARCHAR, YEAR VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 INTERSECT SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Show the names of people that are on affirmative side of debates with number of audience bigger than 200. SQL Table Create Statement: CREATE TABLE people (Name VARCHAR, People_ID VARCHAR); CREATE TABLE debate (Debate_ID VARCHAR, Num_of_Audience INTEGER); CREATE TABLE debate_people (Debate_ID VARCHAR, Affirmative VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T3.Name FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Affirmative = T3.People_ID WHERE T2.Num_of_Audience > 200</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Find the names of the customers who have an deputy policy. SQL Table Create Statement: CREATE TABLE policies (customer_id VARCHAR, policy_type_code VARCHAR); CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = "Deputy"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Show id, first name and last name for all customers and the number of accounts. SQL Table Create Statement: CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name, COUNT(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Show invoice dates and order id and details for all invoices. SQL Table Create Statement: CREATE TABLE Invoices (invoice_date VARCHAR, order_id VARCHAR); CREATE TABLE Orders (order_details VARCHAR, order_id VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T1.invoice_date, T1.order_id, T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What's the original NFL team when the POS is S and college is Georgia Tech? SQL Table Create Statement: CREATE TABLE table_name_31 (original_nfl_team VARCHAR, pos VARCHAR, college VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT original_nfl_team FROM table_name_31 WHERE pos = "s" AND college = "georgia tech"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Show the names for all females from Canada having a wedding in year 2016. SQL Table Create Statement: CREATE TABLE people (name VARCHAR, people_id VARCHAR, country VARCHAR, is_male VARCHAR); CREATE TABLE wedding (female_id VARCHAR, year VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.female_id = T2.people_id WHERE T1.year = 2016 AND T2.is_male = 'F' AND T2.country = 'Canada'</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What is the theme and artist name for the exhibition with a ticket price higher than the average? SQL Table Create Statement: CREATE TABLE exhibition (ticket_price INTEGER); CREATE TABLE exhibition (theme VARCHAR, artist_id VARCHAR, ticket_price INTEGER); CREATE TABLE artist (name VARCHAR, artist_id VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T1.theme, T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.ticket_price > (SELECT AVG(ticket_price) FROM exhibition)</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What is the Surface of the match with a Score in the final of 5–7, 6–7 (2–7)? SQL Table Create Statement: CREATE TABLE table_name_86 (surface VARCHAR, score_in_the_final VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT surface FROM table_name_86 WHERE score_in_the_final = "5–7, 6–7 (2–7)"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Find the name and id of the item with the highest average rating. SQL Table Create Statement: CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER)<|end|><|assistant|><codestart type="sql">SELECT T1.title, T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rating) DESC LIMIT 1</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Show the names of players and names of their coaches. SQL Table Create Statement: CREATE TABLE player (Player_name VARCHAR, Player_ID VARCHAR); CREATE TABLE coach (coach_name VARCHAR, Coach_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T3.Player_name, T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Show the residences that have both a player of gender "M" and a player of gender "F". SQL Table Create Statement: CREATE TABLE player (Residence VARCHAR, gender VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT Residence FROM player WHERE gender = "M" INTERSECT SELECT Residence FROM player WHERE gender = "F"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Show the hometowns shared by people older than 23 and younger than 20. SQL Table Create Statement: CREATE TABLE people (Hometown VARCHAR, Age INTEGER)<|end|><|assistant|><codestart type="sql">SELECT Hometown FROM people WHERE Age > 23 INTERSECT SELECT Hometown FROM people WHERE Age < 20</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Find the checking balance of the accounts whose savings balance is higher than the average savings balance. SQL Table Create Statement: CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE checking (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER)<|end|><|assistant|><codestart type="sql">SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name IN (SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT AVG(balance) FROM savings))</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Find the name, checking balance and saving balance of all accounts in the bank. SQL Table Create Statement: CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T2.balance, T3.balance, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>How many different kinds of clients are supported by the web clients accelerators? SQL Table Create Statement: CREATE TABLE web_client_accelerator (client VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT COUNT(DISTINCT client) FROM web_client_accelerator</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>How many points were scored by the player who played 363 games? SQL Table Create Statement: CREATE TABLE table_name_86 (points VARCHAR, games VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT points FROM table_name_86 WHERE games = "363"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Name the rufus guest for 15 december 2008 SQL Table Create Statement: CREATE TABLE table_19930660_1 (rufus_guest VARCHAR, first_broadcast VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT COUNT(rufus_guest) FROM table_19930660_1 WHERE first_broadcast = "15 December 2008"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Find the names of schools that have more than one donator with donation amount above 8.5. SQL Table Create Statement: CREATE TABLE school (School_name VARCHAR, school_id VARCHAR); CREATE TABLE endowment (school_id VARCHAR, amount INTEGER)<|end|><|assistant|><codestart type="sql">SELECT T2.School_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T1.amount > 8.5 GROUP BY T1.school_id HAVING COUNT(*) > 1</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Show the names of buildings except for those having an institution founded in 2003. SQL Table Create Statement: CREATE TABLE building (name VARCHAR, building_id VARCHAR); CREATE TABLE building (name VARCHAR); CREATE TABLE institution (building_id VARCHAR, founded VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT name FROM building EXCEPT SELECT T1.name FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id WHERE T2.founded = 2003</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What is Surface, when Opponent is "Jiří Vaněk"? SQL Table Create Statement: CREATE TABLE table_name_31 (surface VARCHAR, opponent VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT surface FROM table_name_31 WHERE opponent = "jiří vaněk"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What are the title and director of the films without any schedule? SQL Table Create Statement: CREATE TABLE schedule (title VARCHAR, directed_by VARCHAR, film_id VARCHAR); CREATE TABLE film (title VARCHAR, directed_by VARCHAR, film_id VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT title, directed_by FROM film WHERE NOT film_id IN (SELECT film_id FROM schedule)</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>How many different product types are there? SQL Table Create Statement: CREATE TABLE products_for_hire (product_type_code VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT COUNT(DISTINCT product_type_code) FROM products_for_hire</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What is the height above sea level for the station opened 175.67km from Wellington prior to 1887? SQL Table Create Statement: CREATE TABLE table_name_2 (height_above_sea_level__m_ VARCHAR, opened VARCHAR, distance_from_wellington VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT height_above_sea_level__m_ FROM table_name_2 WHERE opened < 1887 AND distance_from_wellington = "175.67km"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Show all company names and headquarters in the descending order of market value. SQL Table Create Statement: CREATE TABLE company (company VARCHAR, headquarters VARCHAR, market_value VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT company, headquarters FROM company ORDER BY market_value DESC</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Show the manager name with most number of gas stations opened after 2000. SQL Table Create Statement: CREATE TABLE gas_station (manager_name VARCHAR, open_year INTEGER)<|end|><|assistant|><codestart type="sql">SELECT manager_name FROM gas_station WHERE open_year > 2000 GROUP BY manager_name ORDER BY COUNT(*) DESC LIMIT 1</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What number pick did the CFL team bc lions (via hamilton via winnipeg ) have? SQL Table Create Statement: CREATE TABLE table_20170644_1 (pick__number INTEGER, cfl_team VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT MAX(pick__number) FROM table_20170644_1 WHERE cfl_team = "BC Lions (via Hamilton via Winnipeg )"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>who is the reader on the download/cd format of the title written by author lidster, joseph joseph lidster? SQL Table Create Statement: CREATE TABLE table_20174050_23 (reader VARCHAR, format VARCHAR, author VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT reader FROM table_20174050_23 WHERE format = "Download/CD" AND author = "Lidster, Joseph Joseph Lidster"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What tournament had an opponent of Els Callens Nancy Feber? SQL Table Create Statement: CREATE TABLE table_name_95 (tournament VARCHAR, opponents_in_the_final VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT tournament FROM table_name_95 WHERE opponents_in_the_final = "els callens nancy feber"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>List the document type code for the document with the id 2. SQL Table Create Statement: CREATE TABLE Documents (document_type_code VARCHAR, document_id VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT document_type_code FROM Documents WHERE document_id = 2</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>List all employees in the circulation history of the document with id 1. List the employee's name. SQL Table Create Statement: CREATE TABLE Circulation_History (Id VARCHAR); CREATE TABLE Employees (Id VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id WHERE Circulation_History.document_id = 1</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>what are the event details of the services that have the type code 'Marriage'? SQL Table Create Statement: CREATE TABLE EVENTS (event_details VARCHAR, Service_ID VARCHAR); CREATE TABLE Services (Service_ID VARCHAR, Service_Type_Code VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T1.event_details FROM EVENTS AS T1 JOIN Services AS T2 ON T1.Service_ID = T2.Service_ID WHERE T2.Service_Type_Code = 'Marriage'</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Which service id and type has the least number of participants? SQL Table Create Statement: CREATE TABLE Participants_in_Events (Participant_ID VARCHAR, Event_ID VARCHAR); CREATE TABLE services (Service_Type_Code VARCHAR, service_id VARCHAR); CREATE TABLE EVENTS (service_id VARCHAR, Event_ID VARCHAR); CREATE TABLE participants (Participant_ID VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T3.service_id, T4.Service_Type_Code FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID JOIN EVENTS AS T3 ON T2.Event_ID = T3.Event_ID JOIN services AS T4 ON T3.service_id = T4.service_id GROUP BY T3.service_id ORDER BY COUNT(*) LIMIT 1</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Name the sanskrit word and meaning for aquarius SQL Table Create Statement: CREATE TABLE table_20354_7 (sanskrit_word_and_meaning VARCHAR, zodiac_sign VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT sanskrit_word_and_meaning FROM table_20354_7 WHERE zodiac_sign = "Aquarius"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What are the names of races that were held after 2017 and the circuits were in the country of Spain? SQL Table Create Statement: CREATE TABLE races (name VARCHAR, circuitid VARCHAR, year VARCHAR); CREATE TABLE circuits (circuitid VARCHAR, country VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = "Spain" AND T1.year > 2017</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What is the id and last name of the driver who participated in the most races after 2010? SQL Table Create Statement: CREATE TABLE drivers (driverid VARCHAR, surname VARCHAR); CREATE TABLE races (raceid VARCHAR, year INTEGER); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY COUNT(*) DESC LIMIT 1</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Find the id, forename and number of races of all drivers who have at least participated in two races? SQL Table Create Statement: CREATE TABLE drivers (driverid VARCHAR, forename VARCHAR); CREATE TABLE races (raceid VARCHAR); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T1.driverid, T1.forename, COUNT(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING COUNT(*) >= 2</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Show names of technicians in ascending order of quality rank of the machine they are assigned. SQL Table Create Statement: CREATE TABLE repair_assignment (machine_id VARCHAR, technician_ID VARCHAR); CREATE TABLE machine (machine_id VARCHAR, quality_rank VARCHAR); CREATE TABLE technician (Name VARCHAR, technician_ID VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID ORDER BY T2.quality_rank</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>Name the guest 2 for colin murray 6 april SQL Table Create Statement: CREATE TABLE table_20466963_13 (guest_2 VARCHAR, presenter VARCHAR, date VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT COUNT(guest_2) FROM table_20466963_13 WHERE presenter = "Colin Murray" AND date = "6 April"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What is the campus fee of "San Jose State University" in year 1996? SQL Table Create Statement: CREATE TABLE csu_fees (year VARCHAR); CREATE TABLE campuses (id VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = "San Jose State University" AND T2.year = 1996</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What is the average wickets that have overs greater than 44, danish kaneria as the player, with an average greater than 13.8? SQL Table Create Statement: CREATE TABLE table_name_24 (wickets INTEGER, average VARCHAR, overs VARCHAR, player VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT AVG(wickets) FROM table_name_24 WHERE overs > 44 AND player = "danish kaneria" AND average > 13.8</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What is the number of graduates in "San Francisco State University" in year 2004? SQL Table Create Statement: CREATE TABLE discipline_enrollments (graduate INTEGER, campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR, campus VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT SUM(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = "San Francisco State University"</codeend><|end|>
<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query. Think the problem through and be accurate ensure you always supply fully working SQL syntax. SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags. Example output: <codestart type="sql">SELECT * FROM table_name;</codeend> <codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What is the chassis of rahel frey's volkswagen engine? SQL Table Create Statement: CREATE TABLE table_name_74 (chassis VARCHAR, engine VARCHAR, driver VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT chassis FROM table_name_74 WHERE engine = "volkswagen" AND driver = "rahel frey"</codeend><|end|>
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
39
Edit dataset card