input stringlengths 191 7.13k | output stringlengths 19 578 |
|---|---|
Tables: people, company, employment
Columns: people.People_ID, people.Age, people.Name, people.Nationality, people.Graduation_College, company.Company_ID, company.Name, company.Headquarters, company.Industry, company.Sales_in_Billion, company.Profits_in_Billion, company.Assets_in_Billion, company.Market_Value_in_Billion, employment.Company_ID, employment.People_ID, employment.Year_working
Question: What is the maximum and minimum market value of companies? [/INST] | SELECT max(Market_Value_in_Billion) , min(Market_Value_in_Billion) FROM company; |
Tables: people, company, employment
Columns: people.People_ID, people.Age, people.Name, people.Nationality, people.Graduation_College, company.Company_ID, company.Name, company.Headquarters, company.Industry, company.Sales_in_Billion, company.Profits_in_Billion, company.Assets_in_Billion, company.Market_Value_in_Billion, employment.Company_ID, employment.People_ID, employment.Year_working
Question: What is the headquarter of the company with the largest sales? [/INST] | SELECT Headquarters FROM company ORDER BY Sales_in_Billion DESC LIMIT 1; |
Tables: people, company, employment
Columns: people.People_ID, people.Age, people.Name, people.Nationality, people.Graduation_College, company.Company_ID, company.Name, company.Headquarters, company.Industry, company.Sales_in_Billion, company.Profits_in_Billion, company.Assets_in_Billion, company.Market_Value_in_Billion, employment.Company_ID, employment.People_ID, employment.Year_working
Question: Show the different headquarters and number of companies at each headquarter. [/INST] | SELECT Headquarters , COUNT(*) FROM company GROUP BY Headquarters; |
Tables: people, company, employment
Columns: people.People_ID, people.Age, people.Name, people.Nationality, people.Graduation_College, company.Company_ID, company.Name, company.Headquarters, company.Industry, company.Sales_in_Billion, company.Profits_in_Billion, company.Assets_in_Billion, company.Market_Value_in_Billion, employment.Company_ID, employment.People_ID, employment.Year_working
Question: Show the most common headquarter for companies. [/INST] | SELECT Headquarters FROM company GROUP BY Headquarters ORDER BY COUNT(*) DESC LIMIT 1; |
Tables: people, company, employment
Columns: people.People_ID, people.Age, people.Name, people.Nationality, people.Graduation_College, company.Company_ID, company.Name, company.Headquarters, company.Industry, company.Sales_in_Billion, company.Profits_in_Billion, company.Assets_in_Billion, company.Market_Value_in_Billion, employment.Company_ID, employment.People_ID, employment.Year_working
Question: Show the headquarters that have at least two companies. [/INST] | SELECT Headquarters FROM company GROUP BY Headquarters HAVING COUNT(*) >= 2; |
Tables: people, company, employment
Columns: people.People_ID, people.Age, people.Name, people.Nationality, people.Graduation_College, company.Company_ID, company.Name, company.Headquarters, company.Industry, company.Sales_in_Billion, company.Profits_in_Billion, company.Assets_in_Billion, company.Market_Value_in_Billion, employment.Company_ID, employment.People_ID, employment.Year_working
Question: Show the headquarters that have both companies in banking industry and companies in oil and gas industry. [/INST] | SELECT Headquarters FROM company WHERE Industry = "Banking" INTERSECT SELECT Headquarters FROM company WHERE Industry = "Oil and gas"; |
Tables: people, company, employment
Columns: people.People_ID, people.Age, people.Name, people.Nationality, people.Graduation_College, company.Company_ID, company.Name, company.Headquarters, company.Industry, company.Sales_in_Billion, company.Profits_in_Billion, company.Assets_in_Billion, company.Market_Value_in_Billion, employment.Company_ID, employment.People_ID, employment.Year_working
Question: Show the names of companies and of employees. [/INST] | SELECT T3.Name , T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID; |
Tables: people, company, employment
Columns: people.People_ID, people.Age, people.Name, people.Nationality, people.Graduation_College, company.Company_ID, company.Name, company.Headquarters, company.Industry, company.Sales_in_Billion, company.Profits_in_Billion, company.Assets_in_Billion, company.Market_Value_in_Billion, employment.Company_ID, employment.People_ID, employment.Year_working
Question: Show names of companies and that of employees in descending order of number of years working for that employee. [/INST] | SELECT T3.Name , T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID ORDER BY T1.Year_working; |
Tables: people, company, employment
Columns: people.People_ID, people.Age, people.Name, people.Nationality, people.Graduation_College, company.Company_ID, company.Name, company.Headquarters, company.Industry, company.Sales_in_Billion, company.Profits_in_Billion, company.Assets_in_Billion, company.Market_Value_in_Billion, employment.Company_ID, employment.People_ID, employment.Year_working
Question: Show the names of employees that work for companies with sales bigger than 200. [/INST] | SELECT T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID WHERE T3.Sales_in_Billion > 200; |
Tables: people, company, employment
Columns: people.People_ID, people.Age, people.Name, people.Nationality, people.Graduation_College, company.Company_ID, company.Name, company.Headquarters, company.Industry, company.Sales_in_Billion, company.Profits_in_Billion, company.Assets_in_Billion, company.Market_Value_in_Billion, employment.Company_ID, employment.People_ID, employment.Year_working
Question: Show the names of companies and the number of employees they have [/INST] | SELECT T3.Name , COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID GROUP BY T3.Name; |
Tables: people, company, employment
Columns: people.People_ID, people.Age, people.Name, people.Nationality, people.Graduation_College, company.Company_ID, company.Name, company.Headquarters, company.Industry, company.Sales_in_Billion, company.Profits_in_Billion, company.Assets_in_Billion, company.Market_Value_in_Billion, employment.Company_ID, employment.People_ID, employment.Year_working
Question: List the names of people that are not employed by any company [/INST] | SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM employment); |
Tables: people, company, employment
Columns: people.People_ID, people.Age, people.Name, people.Nationality, people.Graduation_College, company.Company_ID, company.Name, company.Headquarters, company.Industry, company.Sales_in_Billion, company.Profits_in_Billion, company.Assets_in_Billion, company.Market_Value_in_Billion, employment.Company_ID, employment.People_ID, employment.Year_working
Question: list the names of the companies with more than 200 sales in the descending order of sales and profits. [/INST] | SELECT name FROM company WHERE Sales_in_Billion > 200 ORDER BY Sales_in_Billion , Profits_in_Billion DESC; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: How many film are there? [/INST] | SELECT count(*) FROM film; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: Count the number of films. [/INST] | SELECT count(*) FROM film; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: List the distinct director of all films. [/INST] | SELECT DISTINCT Director FROM film; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: What are the different film Directors? [/INST] | SELECT DISTINCT Director FROM film; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: What is the average ticket sales gross in dollars of films? [/INST] | SELECT avg(Gross_in_dollar) FROM film; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: Return the average gross sales in dollars across all films. [/INST] | SELECT avg(Gross_in_dollar) FROM film; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: What are the low and high estimates of film markets? [/INST] | SELECT Low_Estimate , High_Estimate FROM film_market_estimation; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: Return the low and high estimates for all film markets. [/INST] | SELECT Low_Estimate , High_Estimate FROM film_market_estimation; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: What are the types of film market estimations in year 1995? [/INST] | SELECT TYPE FROM film_market_estimation WHERE YEAR = 1995; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: Return the types of film market estimations in 1995. [/INST] | SELECT TYPE FROM film_market_estimation WHERE YEAR = 1995; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: What are the maximum and minimum number of cities in all markets. [/INST] | SELECT max(Number_cities) , min(Number_cities) FROM market; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: Return the maximum and minimum number of cities across all markets. [/INST] | SELECT max(Number_cities) , min(Number_cities) FROM market; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: How many markets have number of cities smaller than 300? [/INST] | SELECT count(*) FROM market WHERE Number_cities < 300; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: Count the number of markets that have a number of cities lower than 300. [/INST] | SELECT count(*) FROM market WHERE Number_cities < 300; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: List all countries of markets in ascending alphabetical order. [/INST] | SELECT Country FROM market ORDER BY Country ASC; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: What are the countries for each market, ordered alphabetically? [/INST] | SELECT Country FROM market ORDER BY Country ASC; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: List all countries of markets in descending order of number of cities. [/INST] | SELECT Country FROM market ORDER BY Number_cities DESC; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: What are the countries for each market ordered by decreasing number of cities? [/INST] | SELECT Country FROM market ORDER BY Number_cities DESC; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: Please show the titles of films and the types of market estimations. [/INST] | SELECT T1.Title , T2.Type FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: What are the titles of films and corresponding types of market estimations? [/INST] | SELECT T1.Title , T2.Type FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: Show the distinct director of films with market estimation in the year of 1995. [/INST] | SELECT DISTINCT T1.Director FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID WHERE T2.Year = 1995; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: Who are the different directors of films which had market estimation in 1995? [/INST] | SELECT DISTINCT T1.Director FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID WHERE T2.Year = 1995; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: What is the average number of cities of markets with low film market estimate bigger than 10000? [/INST] | SELECT avg(T2.Number_cities) FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T1.Low_Estimate > 10000; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: Give the average number of cities within markets that had a low market estimation larger than 10000? [/INST] | SELECT avg(T2.Number_cities) FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T1.Low_Estimate > 10000; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: Please list the countries and years of film market estimations. [/INST] | SELECT T2.Country , T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: What are the countries of markets and their corresponding years of market estimation? [/INST] | SELECT T2.Country , T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: Please list the years of film market estimations when the market is in country "Japan" in descending order. [/INST] | SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T2.Country = "Japan" ORDER BY T1.Year DESC; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: What are the years of film market estimation for the market of Japan, ordered by year descending? [/INST] | SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T2.Country = "Japan" ORDER BY T1.Year DESC; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: List the studios of each film and the number of films produced by that studio. [/INST] | SELECT Studio , COUNT(*) FROM film GROUP BY Studio; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: How films are produced by each studio? [/INST] | SELECT Studio , COUNT(*) FROM film GROUP BY Studio; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: List the name of film studio that have the most number of films. [/INST] | SELECT Studio FROM film GROUP BY Studio ORDER BY COUNT(*) DESC LIMIT 1; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: What is the name of teh studio that created the most films? [/INST] | SELECT Studio FROM film GROUP BY Studio ORDER BY COUNT(*) DESC LIMIT 1; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: List the names of studios that have at least two films. [/INST] | SELECT Studio FROM film GROUP BY Studio HAVING COUNT(*) >= 2; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: What are the names of studios that have made two or more films? [/INST] | SELECT Studio FROM film GROUP BY Studio HAVING COUNT(*) >= 2; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: List the title of films that do not have any market estimation. [/INST] | SELECT Title FROM film WHERE Film_ID NOT IN (SELECT Film_ID FROM film_market_estimation); |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: What are the titles of films that do not have a film market estimation? [/INST] | SELECT Title FROM film WHERE Film_ID NOT IN (SELECT Film_ID FROM film_market_estimation); |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: Show the studios that have produced films with director "Nicholas Meyer" and "Walter Hill". [/INST] | SELECT Studio FROM film WHERE Director = "Nicholas Meyer" INTERSECT SELECT Studio FROM film WHERE Director = "Walter Hill"; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: What are the names of studios that have produced films with both Nicholas Meyer and Walter Hill? [/INST] | SELECT Studio FROM film WHERE Director = "Nicholas Meyer" INTERSECT SELECT Studio FROM film WHERE Director = "Walter Hill"; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: Find the titles and studios of the films that are produced by some film studios that contained the word "Universal". [/INST] | SELECT title , Studio FROM film WHERE Studio LIKE "%Universal%"; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: What are the titles and studios of films that have been produced by a studio whose name contains "Universal"? [/INST] | SELECT title , Studio FROM film WHERE Studio LIKE "%Universal%"; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: Show the studios that have not produced films with director "Walter Hill". [/INST] | SELECT Studio FROM film EXCEPT SELECT Studio FROM film WHERE Director = "Walter Hill"; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: Which studios have never worked with the director Walter Hill? [/INST] | SELECT Studio FROM film EXCEPT SELECT Studio FROM film WHERE Director = "Walter Hill"; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: List the studios which average gross is above 4500000. [/INST] | SELECT Studio FROM film GROUP BY Studio HAVING avg(Gross_in_dollar) >= 4500000; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: Which studios have an average gross of over 4500000? [/INST] | SELECT Studio FROM film GROUP BY Studio HAVING avg(Gross_in_dollar) >= 4500000; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: What is the title of the film that has the highest high market estimation. [/INST] | SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID ORDER BY high_estimate DESC LIMIT 1; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: Return the title of the film with the highest high estimate? [/INST] | SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID ORDER BY high_estimate DESC LIMIT 1; |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: What are the titles and directors of the films were never presented in China? [/INST] | SELECT title , director FROM film WHERE film_id NOT IN (SELECT film_id FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.market_id = T2.Market_ID WHERE country = 'China'); |
Tables: film, market, film_market_estimation
Columns: film.Film_ID, film.Title, film.Studio, film.Director, film.Gross_in_dollar, market.Market_ID, market.Country, market.Number_cities, film_market_estimation.Estimation_ID, film_market_estimation.Low_Estimate, film_market_estimation.High_Estimate, film_market_estimation.Film_ID, film_market_estimation.Type, film_market_estimation.Market_ID, film_market_estimation.Year
Question: Return the titles and directors of films that were never in the market of China. [/INST] | SELECT title , director FROM film WHERE film_id NOT IN (SELECT film_id FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.market_id = T2.Market_ID WHERE country = 'China'); |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: How many calendar items do we have? [/INST] | SELECT count(*) FROM Ref_calendar; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: Count the number of all the calendar items. [/INST] | SELECT count(*) FROM Ref_calendar; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: Show all calendar dates and day Numbers. [/INST] | SELECT calendar_date , day_Number FROM Ref_calendar; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: What are all the calendar dates and day Numbers? [/INST] | SELECT calendar_date , day_Number FROM Ref_calendar; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: Show the number of document types. [/INST] | SELECT count(*) FROM Ref_document_types; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: How many document types are there? [/INST] | SELECT count(*) FROM Ref_document_types; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: List all document type codes and document type names. [/INST] | SELECT document_type_code , document_type_name FROM Ref_document_types; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: What are all the document type codes and document type names? [/INST] | SELECT document_type_code , document_type_name FROM Ref_document_types; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: What is the name and description for document type code RV? [/INST] | SELECT document_type_name , document_type_description FROM Ref_document_types WHERE document_type_code = "RV"; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: Give me the name and description of the document type code RV. [/INST] | SELECT document_type_name , document_type_description FROM Ref_document_types WHERE document_type_code = "RV"; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: What is the document type code for document type "Paper"? [/INST] | SELECT document_type_code FROM Ref_document_types WHERE document_type_name = "Paper"; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: Find the code of the document type "Paper". [/INST] | SELECT document_type_code FROM Ref_document_types WHERE document_type_name = "Paper"; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: Show the number of documents with document type code CV or BK. [/INST] | SELECT count(*) FROM All_documents WHERE document_type_code = "CV" OR document_type_code = "BK"; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: How many documents have document type code CV or BK? [/INST] | SELECT count(*) FROM All_documents WHERE document_type_code = "CV" OR document_type_code = "BK"; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: What is the date when the document "Marry CV" was stored? [/INST] | SELECT date_stored FROM All_documents WHERE Document_name = "Marry CV"; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: When was the document named "Marry CV" stored? Give me the date. [/INST] | SELECT date_stored FROM All_documents WHERE Document_name = "Marry CV"; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: What is the day Number and date of all the documents? [/INST] | SELECT T2.day_Number , T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored = T2.calendar_date; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: Return the day Number and stored date for all the documents. [/INST] | SELECT T2.day_Number , T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored = T2.calendar_date; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: What is the document type name for the document with name "How to read a book"? [/INST] | SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = "How to read a book"; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: Find the document type name of the document named "How to read a book". [/INST] | SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = "How to read a book"; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: Show the number of locations. [/INST] | SELECT count(*) FROM Ref_locations; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: How many locations are listed in the database? [/INST] | SELECT count(*) FROM Ref_locations; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: List all location codes and location names. [/INST] | SELECT location_code , location_name FROM Ref_locations; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: What are all the location codes and location names? [/INST] | SELECT location_code , location_name FROM Ref_locations; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: What are the name and description for location code x? [/INST] | SELECT location_name , location_description FROM Ref_locations WHERE location_code = "x"; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: Give me the name and description of the location with code x. [/INST] | SELECT location_name , location_description FROM Ref_locations WHERE location_code = "x"; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: What is the location code for the country "Canada"? [/INST] | SELECT location_code FROM Ref_locations WHERE location_name = "Canada"; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: Show the location code of the country "Canada". [/INST] | SELECT location_code FROM Ref_locations WHERE location_name = "Canada"; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: How many roles are there? [/INST] | SELECT count(*) FROM ROLES; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: Count the total number of roles listed. [/INST] | SELECT count(*) FROM ROLES; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: List all role codes, role names, and role descriptions. [/INST] | SELECT role_code , role_name , role_description FROM ROLES; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: What are all the role codes, role names, and role descriptions? [/INST] | SELECT role_code , role_name , role_description FROM ROLES; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: What are the name and description for role code "MG"? [/INST] | SELECT role_name , role_description FROM ROLES WHERE role_code = "MG"; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: Find the name and description of the role with code "MG". [/INST] | SELECT role_name , role_description FROM ROLES WHERE role_code = "MG"; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: Show the description for role name "Proof Reader". [/INST] | SELECT role_description FROM ROLES WHERE role_name = "Proof Reader"; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: What is the description of the role named "Proof Reader"? [/INST] | SELECT role_description FROM ROLES WHERE role_name = "Proof Reader"; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: How many employees do we have? [/INST] | SELECT count(*) FROM Employees; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: Find the number of employees we have. [/INST] | SELECT count(*) FROM Employees; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: Show the name, role code, and date of birth for the employee with name 'Armani'. [/INST] | SELECT employee_name , role_code , date_of_birth FROM Employees WHERE employee_Name = 'Armani'; |
Tables: Ref_Document_Types, Ref_Calendar, Ref_Locations, Roles, All_Documents, Employees, Document_Locations, Documents_to_be_Destroyed
Columns: Ref_Document_Types.Document_Type_Code, Ref_Document_Types.Document_Type_Name, Ref_Document_Types.Document_Type_Description, Ref_Calendar.Calendar_Date, Ref_Calendar.Day_Number, Ref_Locations.Location_Code, Ref_Locations.Location_Name, Ref_Locations.Location_Description, Roles.Role_Code, Roles.Role_Name, Roles.Role_Description, All_Documents.Document_ID, All_Documents.Date_Stored, All_Documents.Document_Type_Code, All_Documents.Document_Name, All_Documents.Document_Description, All_Documents.Other_Details, Employees.Employee_ID, Employees.Role_Code, Employees.Employee_Name, Employees.Gender_MFU, Employees.Date_of_Birth, Employees.Other_Details, Document_Locations.Document_ID, Document_Locations.Location_Code, Document_Locations.Date_in_Location_From, Document_Locations.Date_in_Locaton_To, Documents_to_be_Destroyed.Document_ID, Documents_to_be_Destroyed.Destruction_Authorised_by_Employee_ID, Documents_to_be_Destroyed.Destroyed_by_Employee_ID, Documents_to_be_Destroyed.Planned_Destruction_Date, Documents_to_be_Destroyed.Actual_Destruction_Date, Documents_to_be_Destroyed.Other_Details
Question: What are the name, role code, and date of birth of the employee named 'Armani'? [/INST] | SELECT employee_name , role_code , date_of_birth FROM Employees WHERE employee_Name = 'Armani'; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.