Question: What are the last names of the teachers who teach the student called GELL TAMI?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : lastname (text) , classroom (number) , firstname (text) | teachers : lastname (text) , classroom (number) , firstname (text)


Question: How many students does LORIA ONDERSMA teaches?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)


Question: Count the number of students the teacher LORIA ONDERSMA teaches.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)


Question: How many students does KAWA GORDON teaches?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)


Question: Find the number of students taught by the teacher KAWA GORDON.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)


Question: Find the number of students taught by TARRING LEIA.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)


Question: How many students are taught by teacher TARRING LEIA?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)


Question: How many teachers does the student named CHRISSY NABOZNY have?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)


Question: Find the number of teachers who teach the student called CHRISSY NABOZNY.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)


Question: How many teachers does the student named MADLOCK RAY have?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)


Question: Find the number of teachers who teach the student called MADLOCK RAY.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)


Question: Find all first-grade students who are NOT taught by OTHA MOYER. Report their first and last names.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : firstname (text) , lastname (text) , classroom (number) , grade (number) | teachers : firstname (text) , lastname (text) , classroom (number)


Question: What are the first and last names of the first-grade students who are NOT taught by teacher OTHA MOYER?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : firstname (text) , lastname (text) , classroom (number) , grade (number) | teachers : firstname (text) , lastname (text) , classroom (number)


Question: Find the last names of the students in third grade that are not taught by COVIN JEROME.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : lastname (text) , classroom (number) , grade (number) , firstname (text) | teachers : lastname (text) , classroom (number) , firstname (text)


Question: Which students in third grade are not taught by teacher COVIN JEROME? Give me the last names of the students.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : lastname (text) , classroom (number) , grade (number) , firstname (text) | teachers : lastname (text) , classroom (number) , firstname (text)


Question: For each grade, report the grade, the number of classrooms in which it is taught and the total number of students in the grade.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : grade (number) , classroom (number) , lastname (text)


Question: For each grade, return the grade number, the number of classrooms used for the grade, and the total number of students enrolled in the grade.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : grade (number) , classroom (number) , lastname (text)


Question: For each classroom, report the classroom number and the number of grades using it.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , grade (number) , lastname (text)


Question: For each classroom, show the classroom number and count the number of distinct grades that use the room.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , grade (number) , lastname (text)


Question: Which classroom has the most students?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , lastname (text)


Question: Find the classroom that the most students use.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , lastname (text)


Question: Report the number of students in each classroom.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , lastname (text)


Question: For each classroom, show the classroom number and find how many students are using it.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , lastname (text)


Question: For each grade 0 classroom, report the total number of students.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , grade (number) , lastname (text)


Question: For each grade 0 classroom, return the classroom number and the count of students.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , grade (number) , lastname (text)


Question: Report the total number of students for each fourth-grade classroom.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , grade (number) , lastname (text)


Question: For each fourth-grade classroom, show the classroom number and the total number of students using it.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , grade (number) , lastname (text)


Question: Find the name of the teacher who teaches the largest number of students.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : firstname (text) , lastname (text) , classroom (number) | teachers : firstname (text) , lastname (text) , classroom (number)


Question: Which teacher teaches the most students? Give me the first name and last name of the teacher.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : firstname (text) , lastname (text) , classroom (number) | teachers : firstname (text) , lastname (text) , classroom (number)


Question: Find the number of students in one classroom.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , lastname (text)


Question: How many students does one classroom have?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , lastname (text)


Question: How many companies are headquartered in the US?

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 : headquarters (text) , company_id (number)


Question: List the names of companies by ascending number of sales.

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) , company_id (number)


Question: What are the headquarters and industries of all companies?

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 : headquarters (text) , industry (text) , company_id (number)


Question: Show the names of companies in the banking or retailing industry?

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) , industry (text) , company_id (number)


Question: What is the maximum and minimum market value of companies?

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 : market_value_in_billion (number) , company_id (number)


Question: What is the headquarter of the company with the largest sales?

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 : headquarters (text) , sales_in_billion (number) , company_id (number)


Question: Show the different headquarters and number of companies at each headquarter.

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 : headquarters (text) , company_id (number)


Question: Show the most common headquarter for companies.

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 : headquarters (text) , company_id (number)


Question: Show the headquarters that have at least two companies.

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 : headquarters (text) , company_id (number)


Question: Show the headquarters that have both companies in banking industry and companies in oil and gas industry.

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 : headquarters (text) , industry (text) , company_id (number)


Question: Show the names of companies and of employees.

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)


Question: Show names of companies and that of employees in descending order of number of years working for that employee.

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) , year_working (number)


Question: Show the names of employees that work for companies with sales bigger than 200.

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) , sales_in_billion (number) | employment : people_id (number) , company_id (number)


Question: 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)


Question: 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) , company_id (number)


Question: 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) , company_id (number)


Question: 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)


Question: 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)


Question: 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) , film_id (number)


Question: 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) , film_id (number)


Question: 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) , film_id (number)


Question: 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) , film_id (number)


Question: 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) , estimation_id (number)


Question: 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) , estimation_id (number)


Question: 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) , estimation_id (number)


Question: 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) , estimation_id (number)


Question: 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) , market_id (number)


Question: 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) , market_id (number)


Question: 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)


Question: 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)


Question: 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) , market_id (number)


Question: 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) , market_id (number)


Question: 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) , market_id (number)


Question: 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) , market_id (number)


Question: 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) , estimation_id (number)


Question: 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) , estimation_id (number)


Question: 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) , estimation_id (number)


Question: 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) , estimation_id (number)


Question: 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) , estimation_id (number)


Question: 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) , estimation_id (number)


Question: 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) , estimation_id (number)


Question: 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) , estimation_id (number)


Question: 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) , estimation_id (number) | market : market_id (number) , country (text)


Question: 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) , estimation_id (number) | market : market_id (number) , country (text)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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) , estimation_id (number)


Question: 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) , estimation_id (number)


Question: 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) , film_id (number)


Question: 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) , film_id (number)


Question: 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) , film_id (number)


Question: 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) , film_id (number)


Question: 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) , film_id (number)


Question: 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) , film_id (number)


Question: 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) , film_id (number)


Question: 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) , film_id (number)


Question: 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) , estimation_id (number)


Question: 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) , estimation_id (number)


Question: 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) , estimation_id (number) | market : market_id (number) , country (text)


Question: 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) , estimation_id (number) | market : market_id (number) , country (text)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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) , document_id (number)


Question: 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) , document_id (number)


Question: 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) , document_id (number)


Question: 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) , document_id (number)


Question: 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) , document_id (number)


Question: 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) , document_id (number)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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) , role_code (text)


Question: 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) , role_code (text)


Question: 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)


Question: 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)


Question: 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) , employee_id (number)


Question: 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) , employee_id (number)


Question: 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)


Question: 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)


Question: 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) , employee_id (number)


Question: 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) , employee_id (number)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: What are the roles with three or more employees? Give me the role codes.

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)


Question: Show the role code with the least 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)