db_id
stringclasses 140
values | question
stringlengths 16
224
| schema
stringclasses 140
values | summarized-schema
stringlengths 18
304
| shrink-score
float64 0
1
|
---|---|---|---|---|
company_employee | Show the names of companies and the number of employees they have | people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number) | people : name (text) , people_id (number) | company : name (text) , company_id (number) | employment : people_id (number) , company_id (number) | 0.625 |
company_employee | List the names of people that are not employed by any company | people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number) | people : name (text) , people_id (number) | employment : people_id (number) | 0.8125 |
company_employee | list the names of the companies with more than 200 sales in the descending order of sales and profits. | people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number) | company : name (text) , sales_in_billion (number) , profits_in_billion (number) | 0.8125 |
film_rank | How many film are there? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : film_id (number) | 0.933333 |
film_rank | Count the number of films. | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : film_id (number) | 0.933333 |
film_rank | List the distinct director of all films. | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : director (text) | 0.933333 |
film_rank | What are the different film Directors? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : director (text) | 0.933333 |
film_rank | What is the average ticket sales gross in dollars of films? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : gross_in_dollar (number) | 0.933333 |
film_rank | Return the average gross sales in dollars across all films. | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : gross_in_dollar (number) | 0.933333 |
film_rank | What are the low and high estimates of film markets? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film_market_estimation : low_estimate (number) , high_estimate (number) | 0.866667 |
film_rank | Return the low and high estimates for all film markets. | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film_market_estimation : low_estimate (number) , high_estimate (number) | 0.866667 |
film_rank | What are the types of film market estimations in year 1995? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film_market_estimation : type (text) , year (number) | 0.866667 |
film_rank | Return the types of film market estimations in 1995. | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film_market_estimation : type (text) , year (number) | 0.866667 |
film_rank | What are the maximum and minimum number of cities in all markets. | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | market : number_cities (number) | 0.933333 |
film_rank | Return the maximum and minimum number of cities across all markets. | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | market : number_cities (number) | 0.933333 |
film_rank | How many markets have number of cities smaller than 300? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | market : number_cities (number) , market_id (number) | 0.866667 |
film_rank | Count the number of markets that have a number of cities lower than 300. | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | market : number_cities (number) , market_id (number) | 0.866667 |
film_rank | List all countries of markets in ascending alphabetical order. | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | market : country (text) | 0.933333 |
film_rank | What are the countries for each market, ordered alphabetically? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | market : country (text) | 0.933333 |
film_rank | List all countries of markets in descending order of number of cities. | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | market : country (text) , number_cities (number) | 0.866667 |
film_rank | What are the countries for each market ordered by decreasing number of cities? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | market : country (text) , number_cities (number) | 0.866667 |
film_rank | Please show the titles of films and the types of market estimations. | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : title (text) , film_id (number) | film_market_estimation : type (text) , film_id (number) | 0.733333 |
film_rank | What are the titles of films and corresponding types of market estimations? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : title (text) , film_id (number) | film_market_estimation : type (text) , film_id (number) | 0.733333 |
film_rank | Show the distinct director of films with market estimation in the year of 1995. | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : director (text) , film_id (number) | film_market_estimation : film_id (number) , year (number) | 0.733333 |
film_rank | Who are the different directors of films which had market estimation in 1995? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : director (text) , film_id (number) | film_market_estimation : film_id (number) , year (number) | 0.733333 |
film_rank | What is the average number of cities of markets with low film market estimate bigger than 10000? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | market : number_cities (number) , market_id (number) | film_market_estimation : market_id (number) , low_estimate (number) | 0.733333 |
film_rank | Give the average number of cities within markets that had a low market estimation larger than 10000? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | market : number_cities (number) , market_id (number) | film_market_estimation : market_id (number) , low_estimate (number) | 0.733333 |
film_rank | Please list the countries and years of film market estimations. | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | market : country (text) , market_id (number) | film_market_estimation : year (number) , market_id (number) | 0.733333 |
film_rank | What are the countries of markets and their corresponding years of market estimation? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | market : country (text) , market_id (number) | film_market_estimation : year (number) , market_id (number) | 0.733333 |
film_rank | Please list the years of film market estimations when the market is in country "Japan" in descending order. | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film_market_estimation : year (number) , market_id (number) | market : market_id (number) , country (text) | 0.733333 |
film_rank | What are the years of film market estimation for the market of Japan, ordered by year descending? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film_market_estimation : year (number) , market_id (number) | market : market_id (number) , country (text) | 0.733333 |
film_rank | List the studios of each film and the number of films produced by that studio. | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : studio (text) , film_id (number) | 0.866667 |
film_rank | How films are produced by each studio? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : studio (text) , film_id (number) | 0.866667 |
film_rank | List the name of film studio that have the most number of films. | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : studio (text) , film_id (number) | 0.866667 |
film_rank | What is the name of teh studio that created the most films? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : studio (text) , film_id (number) | 0.866667 |
film_rank | List the names of studios that have at least two films. | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : studio (text) , film_id (number) | 0.866667 |
film_rank | What are the names of studios that have made two or more films? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : studio (text) , film_id (number) | 0.866667 |
film_rank | List the title of films that do not have any market estimation. | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : title (text) , film_id (number) | film_market_estimation : film_id (number) | 0.8 |
film_rank | What are the titles of films that do not have a film market estimation? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : title (text) , film_id (number) | film_market_estimation : film_id (number) | 0.8 |
film_rank | Show the studios that have produced films with director "Nicholas Meyer" and "Walter Hill". | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : studio (text) , director (text) | 0.866667 |
film_rank | What are the names of studios that have produced films with both Nicholas Meyer and Walter Hill? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : studio (text) , director (text) | 0.866667 |
film_rank | Find the titles and studios of the films that are produced by some film studios that contained the word "Universal". | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : title (text) , studio (text) | 0.866667 |
film_rank | What are the titles and studios of films that have been produced by a studio whose name contains "Universal"? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : title (text) , studio (text) | 0.866667 |
film_rank | Show the studios that have not produced films with director "Walter Hill". | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : studio (text) , director (text) | 0.866667 |
film_rank | Which studios have never worked with the director Walter Hill? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : studio (text) , director (text) | 0.866667 |
film_rank | List the studios which average gross is above 4500000. | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : studio (text) , gross_in_dollar (number) | 0.866667 |
film_rank | Which studios have an average gross of over 4500000? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : studio (text) , gross_in_dollar (number) | 0.866667 |
film_rank | What is the title of the film that has the highest high market estimation. | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : title (text) , film_id (number) | film_market_estimation : film_id (number) , high_estimate (number) | 0.733333 |
film_rank | Return the title of the film with the highest high estimate? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : title (text) , film_id (number) | film_market_estimation : film_id (number) , high_estimate (number) | 0.733333 |
film_rank | What are the titles and directors of the films were never presented in China? | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : title (text) , director (text) , film_id (number) | film_market_estimation : film_id (number) , market_id (number) | market : market_id (number) , country (text) | 0.533333 |
film_rank | Return the titles and directors of films that were never in the market of China. | film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number) | film : title (text) , director (text) , film_id (number) | film_market_estimation : film_id (number) , market_id (number) | market : market_id (number) , country (text) | 0.533333 |
cre_Doc_Tracking_DB | How many calendar items do we have? | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_calendar : calendar_date (time) | 0.969697 |
cre_Doc_Tracking_DB | Count the number of all the calendar items. | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_calendar : calendar_date (time) | 0.969697 |
cre_Doc_Tracking_DB | Show all calendar dates and day Numbers. | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_calendar : calendar_date (time) , day_number (number) | 0.939394 |
cre_Doc_Tracking_DB | What are all the calendar dates and day Numbers? | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_calendar : calendar_date (time) , day_number (number) | 0.939394 |
cre_Doc_Tracking_DB | Show the number of document types. | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_document_types : document_type_code (text) | 0.969697 |
cre_Doc_Tracking_DB | How many document types are there? | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_document_types : document_type_code (text) | 0.969697 |
cre_Doc_Tracking_DB | List all document type codes and document type names. | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_document_types : document_type_code (text) , document_type_name (text) | 0.939394 |
cre_Doc_Tracking_DB | What are all the document type codes and document type names? | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_document_types : document_type_code (text) , document_type_name (text) | 0.939394 |
cre_Doc_Tracking_DB | What is the name and description for document type code RV? | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_document_types : document_type_name (text) , document_type_description (text) , document_type_code (text) | 0.909091 |
cre_Doc_Tracking_DB | Give me the name and description of the document type code RV. | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_document_types : document_type_name (text) , document_type_description (text) , document_type_code (text) | 0.909091 |
cre_Doc_Tracking_DB | What is the document type code for document type "Paper"? | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_document_types : document_type_code (text) , document_type_name (text) | 0.939394 |
cre_Doc_Tracking_DB | Find the code of the document type "Paper". | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_document_types : document_type_code (text) , document_type_name (text) | 0.939394 |
cre_Doc_Tracking_DB | Show the number of documents with document type code CV or BK. | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | all_documents : document_type_code (text) , document_id (number) | 0.939394 |
cre_Doc_Tracking_DB | How many documents have document type code CV or BK? | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | all_documents : document_type_code (text) , document_id (number) | 0.939394 |
cre_Doc_Tracking_DB | What is the date when the document "Marry CV" was stored? | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | all_documents : date_stored (time) , document_name (text) | 0.939394 |
cre_Doc_Tracking_DB | When was the document named "Marry CV" stored? Give me the date. | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | all_documents : date_stored (time) , document_name (text) | 0.939394 |
cre_Doc_Tracking_DB | What is the day Number and date of all the documents? | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_calendar : day_number (number) , calendar_date (time) | all_documents : date_stored (time) | 0.909091 |
cre_Doc_Tracking_DB | Return the day Number and stored date for all the documents. | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_calendar : day_number (number) , calendar_date (time) | all_documents : date_stored (time) | 0.909091 |
cre_Doc_Tracking_DB | What is the document type name for the document with name "How to read a book"? | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_document_types : document_type_name (text) , document_type_code (text) | all_documents : document_type_code (text) , document_name (text) | 0.878788 |
cre_Doc_Tracking_DB | Find the document type name of the document named "How to read a book". | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_document_types : document_type_name (text) , document_type_code (text) | all_documents : document_type_code (text) , document_name (text) | 0.878788 |
cre_Doc_Tracking_DB | Show the number of locations. | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_locations : location_code (text) | 0.969697 |
cre_Doc_Tracking_DB | How many locations are listed in the database? | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_locations : location_code (text) | 0.969697 |
cre_Doc_Tracking_DB | List all location codes and location names. | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_locations : location_code (text) , location_name (text) | 0.939394 |
cre_Doc_Tracking_DB | What are all the location codes and location names? | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_locations : location_code (text) , location_name (text) | 0.939394 |
cre_Doc_Tracking_DB | What are the name and description for location code x? | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_locations : location_name (text) , location_description (text) , location_code (text) | 0.909091 |
cre_Doc_Tracking_DB | Give me the name and description of the location with code x. | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_locations : location_name (text) , location_description (text) , location_code (text) | 0.909091 |
cre_Doc_Tracking_DB | What is the location code for the country "Canada"? | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_locations : location_code (text) , location_name (text) | 0.939394 |
cre_Doc_Tracking_DB | Show the location code of the country "Canada". | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | ref_locations : location_code (text) , location_name (text) | 0.939394 |
cre_Doc_Tracking_DB | How many roles are there? | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | roles : role_code (text) | 0.969697 |
cre_Doc_Tracking_DB | Count the total number of roles listed. | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | roles : role_code (text) | 0.969697 |
cre_Doc_Tracking_DB | List all role codes, role names, and role descriptions. | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | roles : role_code (text) , role_name (text) , role_description (text) | 0.909091 |
cre_Doc_Tracking_DB | What are all the role codes, role names, and role descriptions? | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | roles : role_code (text) , role_name (text) , role_description (text) | 0.909091 |
cre_Doc_Tracking_DB | What are the name and description for role code "MG"? | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | roles : role_name (text) , role_description (text) , role_code (text) | 0.909091 |
cre_Doc_Tracking_DB | Find the name and description of the role with code "MG". | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | roles : role_name (text) , role_description (text) , role_code (text) | 0.909091 |
cre_Doc_Tracking_DB | Show the description for role name "Proof Reader". | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | roles : role_description (text) , role_name (text) | 0.939394 |
cre_Doc_Tracking_DB | What is the description of the role named "Proof Reader"? | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | roles : role_description (text) , role_name (text) | 0.939394 |
cre_Doc_Tracking_DB | How many employees do we have? | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | employees : employee_id (number) | 0.969697 |
cre_Doc_Tracking_DB | Find the number of employees we have. | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | employees : employee_id (number) | 0.969697 |
cre_Doc_Tracking_DB | Show the name, role code, and date of birth for the employee with name 'Armani'. | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | employees : employee_name (text) , role_code (text) , date_of_birth (time) | 0.909091 |
cre_Doc_Tracking_DB | What are the name, role code, and date of birth of the employee named 'Armani'? | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | employees : employee_name (text) , role_code (text) , date_of_birth (time) | 0.909091 |
cre_Doc_Tracking_DB | What is the id for the employee called Ebba? | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | employees : employee_id (number) , employee_name (text) | 0.939394 |
cre_Doc_Tracking_DB | Show the id of the employee named Ebba. | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | employees : employee_id (number) , employee_name (text) | 0.939394 |
cre_Doc_Tracking_DB | Show the names of all the employees with role "HR". | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | employees : employee_name (text) , role_code (text) | 0.939394 |
cre_Doc_Tracking_DB | Which employees have the role with code "HR"? Find their names. | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | employees : employee_name (text) , role_code (text) | 0.939394 |
cre_Doc_Tracking_DB | Show all role codes and the number of employees in each role. | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | employees : role_code (text) , employee_id (number) | 0.939394 |
cre_Doc_Tracking_DB | What is the code of each role and the number of employees in each role? | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | employees : role_code (text) , employee_id (number) | 0.939394 |
cre_Doc_Tracking_DB | What is the role code with the largest number of employees? | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | employees : role_code (text) , employee_id (number) | 0.939394 |
cre_Doc_Tracking_DB | Find the code of the role that have the most employees. | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | employees : role_code (text) , employee_id (number) | 0.939394 |
cre_Doc_Tracking_DB | Show all role codes with at least 3 employees. | ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text) | employees : role_code (text) , employee_id (number) | 0.939394 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.