Question: How many heads of the departments are older than 56 ?

department : department_id (number) , name (text) , creation (text) , ranking (number) , budget_in_billions (number) , num_employees (number) | head : head_id (number) , name (text) , born_state (text) , age (number) | management : department_id (number) , head_id (number) , temporary_acting (text)


Question: List the name, born state and age of the heads of departments ordered by age.

department : department_id (number) , name (text) , creation (text) , ranking (number) , budget_in_billions (number) , num_employees (number) | head : head_id (number) , name (text) , born_state (text) , age (number) | management : department_id (number) , head_id (number) , temporary_acting (text)

head : name (text) , born_state (text) , age (number)


Question: List the creation year, name and budget of each department.

department : department_id (number) , name (text) , creation (text) , ranking (number) , budget_in_billions (number) , num_employees (number) | head : head_id (number) , name (text) , born_state (text) , age (number) | management : department_id (number) , head_id (number) , temporary_acting (text)

department : creation (text) , name (text) , budget_in_billions (number)


Question: What are the maximum and minimum budget of the departments?

department : department_id (number) , name (text) , creation (text) , ranking (number) , budget_in_billions (number) , num_employees (number) | head : head_id (number) , name (text) , born_state (text) , age (number) | management : department_id (number) , head_id (number) , temporary_acting (text)

department : budget_in_billions (number)


Question: What is the average number of employees of the departments whose rank is between 10 and 15?

department : department_id (number) , name (text) , creation (text) , ranking (number) , budget_in_billions (number) , num_employees (number) | head : head_id (number) , name (text) , born_state (text) , age (number) | management : department_id (number) , head_id (number) , temporary_acting (text)

department : num_employees (number) , ranking (number)


Question: What are the names of the heads who are born outside the California state?

department : department_id (number) , name (text) , creation (text) , ranking (number) , budget_in_billions (number) , num_employees (number) | head : head_id (number) , name (text) , born_state (text) , age (number) | management : department_id (number) , head_id (number) , temporary_acting (text)


Question: What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'?

department : department_id (number) , name (text) , creation (text) , ranking (number) , budget_in_billions (number) , num_employees (number) | head : head_id (number) , name (text) , born_state (text) , age (number) | management : department_id (number) , head_id (number) , temporary_acting (text)

department : creation (text) , department_id (number) | management : department_id (number) , head_id (number) | head : head_id (number) , born_state (text)


Question: What are the names of the states where at least 3 heads were born?

department : department_id (number) , name (text) , creation (text) , ranking (number) , budget_in_billions (number) , num_employees (number) | head : head_id (number) , name (text) , born_state (text) , age (number) | management : department_id (number) , head_id (number) , temporary_acting (text)

head : born_state (text) , head_id (number)


Question: In which year were most departments established?

department : department_id (number) , name (text) , creation (text) , ranking (number) , budget_in_billions (number) , num_employees (number) | head : head_id (number) , name (text) , born_state (text) , age (number) | management : department_id (number) , head_id (number) , temporary_acting (text)

department : creation (text) , department_id (number)


Question: Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes'?

department : department_id (number) , name (text) , creation (text) , ranking (number) , budget_in_billions (number) , num_employees (number) | head : head_id (number) , name (text) , born_state (text) , age (number) | management : department_id (number) , head_id (number) , temporary_acting (text)

department : name (text) , num_employees (number) , department_id (number) | management : department_id (number) , temporary_acting (text)


Question: How many acting statuses are there?

department : department_id (number) , name (text) , creation (text) , ranking (number) , budget_in_billions (number) , num_employees (number) | head : head_id (number) , name (text) , born_state (text) , age (number) | management : department_id (number) , head_id (number) , temporary_acting (text)


Question: How many departments are led by heads who are not mentioned?

department : department_id (number) , name (text) , creation (text) , ranking (number) , budget_in_billions (number) , num_employees (number) | head : head_id (number) , name (text) , born_state (text) , age (number) | management : department_id (number) , head_id (number) , temporary_acting (text)

department : department_id (number) | management : department_id (number)


Question: What are the distinct ages of the heads who are acting?

department : department_id (number) , name (text) , creation (text) , ranking (number) , budget_in_billions (number) , num_employees (number) | head : head_id (number) , name (text) , born_state (text) , age (number) | management : department_id (number) , head_id (number) , temporary_acting (text)

head : age (number) , head_id (number) | management : head_id (number) , temporary_acting (text)


Question: List the states where both the secretary of 'Treasury' department and the secretary of 'Homeland Security' were born.

department : department_id (number) , name (text) , creation (text) , ranking (number) , budget_in_billions (number) , num_employees (number) | head : head_id (number) , name (text) , born_state (text) , age (number) | management : department_id (number) , head_id (number) , temporary_acting (text)

head : born_state (text) , head_id (number) , name (text) | department : department_id (number) , name (text) | management : department_id (number) , head_id (number)


Question: Which department has more than 1 head at a time? List the id, name and the number of heads.

department : department_id (number) , name (text) , creation (text) , ranking (number) , budget_in_billions (number) , num_employees (number) | head : head_id (number) , name (text) , born_state (text) , age (number) | management : department_id (number) , head_id (number) , temporary_acting (text)

department : department_id (number) , name (text) | management : department_id (number)


Question: Which head's name has the substring 'Ha'? List the id and name.

department : department_id (number) , name (text) , creation (text) , ranking (number) , budget_in_billions (number) , num_employees (number) | head : head_id (number) , name (text) , born_state (text) , age (number) | management : department_id (number) , head_id (number) , temporary_acting (text)


Question: How many farms are there?

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)


Question: Count the number of farms.

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)


Question: List the total number of horses on farms in ascending order.

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)


Question: What is the total horses record for each farm, sorted ascending?

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)


Question: What are the hosts of competitions whose theme is not "Aliens"?

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

farm_competition : hosts (text) , theme (text)


Question: Return the hosts of competitions for which the theme is not Aliens?

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

farm_competition : hosts (text) , theme (text)


Question: What are the themes of farm competitions sorted by year in ascending order?

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

farm_competition : theme (text) , year (number)


Question: Return the themes of farm competitions, sorted by year ascending.

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

farm_competition : theme (text) , year (number)


Question: What is the average number of working horses of farms with more than 5000 total number of horses?

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

farm : working_horses (number) , total_horses (number)


Question: Give the average number of working horses on farms with more than 5000 total horses.

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

farm : working_horses (number) , total_horses (number)


Question: What are the maximum and minimum number of cows across all farms.

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)


Question: Return the maximum and minimum number of cows across all farms.

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)


Question: How many different statuses do cities have?

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)


Question: Count the number of different statuses.

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)


Question: List official names of cities in descending order of population.

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

city : official_name (text) , population (number)


Question: What are the official names of cities, ordered descending by population?

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

city : official_name (text) , population (number)


Question: List the official name and status of the city with the largest population.

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

city : official_name (text) , status (text) , population (number)


Question: What is the official name and status of the city with the most residents?

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

city : official_name (text) , status (text) , population (number)


Question: Show the years and the official names of the host cities of competitions.

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

farm_competition : year (number) , host_city_id (number) | city : official_name (text) , city_id (number)


Question: Give the years and official names of the cities of each competition.

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

farm_competition : year (number) , host_city_id (number) | city : official_name (text) , city_id (number)


Question: Show the official names of the cities that have hosted more than one competition.

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

city : official_name (text) , city_id (number) | farm_competition : host_city_id (number) , competition_id (number)


Question: What are the official names of cities that have hosted more than one competition?

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

city : official_name (text) , city_id (number) | farm_competition : host_city_id (number) , competition_id (number)


Question: Show the status of the city that has hosted the greatest number of competitions.

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

city : status (text) , city_id (number) | farm_competition : host_city_id (number) , competition_id (number)


Question: What is the status of the city that has hosted the most competitions?

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

city : status (text) , city_id (number) | farm_competition : host_city_id (number) , competition_id (number)


Question: Please show the themes of competitions with host cities having populations larger than 1000.

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

farm_competition : theme (text) , host_city_id (number) | city : city_id (number) , population (number)


Question: What are the themes of competitions that have corresponding host cities with more than 1000 residents?

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

farm_competition : theme (text) , host_city_id (number) | city : city_id (number) , population (number)


Question: Please show the different statuses of cities and the average population of cities with each status.

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

city : status (text) , population (number)


Question: What are the statuses and average populations of each city?

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

city : status (text) , population (number)


Question: Please show the different statuses, ordered by the number of cities that have each.

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)


Question: Return the different statuses of cities, ascending by frequency.

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)


Question: List the most common type of Status across cities.

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)


Question: What is the most common status across all cities?

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)


Question: List the official names of cities that have not held any competition.

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

city : official_name (text) , city_id (number) | farm_competition : host_city_id (number)


Question: What are the official names of cities that have not hosted a farm competition?

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

city : official_name (text) , city_id (number) | farm_competition : host_city_id (number)


Question: Show the status shared by cities with population bigger than 1500 and smaller than 500.

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

city : status (text) , population (number)


Question: Which statuses correspond to both cities that have a population over 1500 and cities that have a population lower than 500?

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

city : status (text) , population (number)


Question: Find the official names of cities with population bigger than 1500 or smaller than 500.

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

city : official_name (text) , population (number)


Question: What are the official names of cities that have population over 1500 or less than 500?

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

city : official_name (text) , population (number)


Question: Show the census ranking of cities whose status are not "Village".

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

city : census_ranking (text) , status (text)


Question: What are the census rankings of cities that do not have the status "Village"?

city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)

city : census_ranking (text) , status (text)


Question: which course has most number of registered students?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

courses : course_name (text) , course_id (text) | student_course_registrations : course_id (number) , student_id (number)


Question: What is the name of the course with the most registered students?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

courses : course_name (text) , course_id (text) | student_course_registrations : course_id (number) , student_id (number)


Question: what is id of students who registered some courses but the least number of courses in these students?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)


Question: What are the ids of the students who registered for some courses but had the least number of courses for all students?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)


Question: what are the first name and last name of all candidates?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

people : first_name (text) , last_name (text) , person_id (number) | candidates : candidate_id (number)


Question: What are the first and last names of all the candidates?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

people : first_name (text) , last_name (text) , person_id (number) | candidates : candidate_id (number)


Question: List the id of students who never attends courses?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

students : student_id (number) | student_course_attendance : student_id (number)


Question: What are the  ids of every student who has never attended a course?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

students : student_id (number) | student_course_attendance : student_id (number)


Question: List the id of students who attended some courses?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)


Question: What are the ids of all students who have attended at least one course?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)


Question: What are the ids of all students for courses and what are the names of those courses?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

student_course_registrations : student_id (number) , course_id (number) | courses : course_name (text) , course_id (text)


Question: What is detail of the student who most recently registered course?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

students : student_details (text) , student_id (number) | student_course_registrations : student_id (number) , registration_date (time)


Question: What details do we have on the students who registered for courses most recently?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

students : student_details (text) , student_id (number) | student_course_registrations : student_id (number) , registration_date (time)


Question: How many students attend course English?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

courses : course_id (text) , course_name (text) | student_course_attendance : course_id (number) , student_id (number)


Question: How many students are attending English courses?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

courses : course_id (text) , course_name (text) | student_course_attendance : course_id (number) , student_id (number)


Question: How many courses do the student whose id is 171 attend?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

courses : course_id (text) | student_course_attendance : course_id (number) , student_id (number)


Question: How many courses does the student with id 171 actually attend?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

courses : course_id (text) | student_course_attendance : course_id (number) , student_id (number)


Question: Find id of the candidate whose email is stanley.monahan@example.org?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

candidates : candidate_id (number) | people : person_id (number) , email_address (text)


Question: What is the id of the candidate whose email is stanley.monahan@example.org?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

candidates : candidate_id (number) | people : person_id (number) , email_address (text)


Question: Find id of the candidate who most recently accessed the course?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

candidate_assessments : candidate_id (number) , assessment_date (time)


Question: What is the id of the candidate who most recently accessed the course?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

candidate_assessments : candidate_id (number) , assessment_date (time)


Question: What is detail of the student who registered the most number of courses?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

students : student_details (text) , student_id (number) | student_course_registrations : student_id (number)


Question: What are the details of the student who registered for the most number of courses?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

students : student_details (text) , student_id (number) | student_course_registrations : student_id (number)


Question: List the id of students who registered some courses and the number of their registered courses?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

students : student_id (number) | student_course_registrations : student_id (number)


Question: For every student who is registered for some course, how many courses are they registered for?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

students : student_id (number) | student_course_registrations : student_id (number)


Question: How many registed students do each course have? List course name and the number of their registered students?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

courses : course_name (text) , course_id (text) | students : student_id (number) | student_course_registrations : student_id (number) , course_id (number)


Question: For each course id, how many students are registered and what are the course names?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

courses : course_name (text) , course_id (text) | students : student_id (number) | student_course_registrations : student_id (number) , course_id (number)


Question: Find id of candidates whose assessment code is "Pass"?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

candidate_assessments : candidate_id (number) , asessment_outcome_code (text)


Question: What are the ids of the candidates that have an outcome code of Pass?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

candidate_assessments : candidate_id (number) , asessment_outcome_code (text)


Question: Find the cell mobile number of the candidates whose assessment code is "Fail"?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

people : cell_mobile_number (text) , person_id (number) | candidates : candidate_id (number) | candidate_assessments : candidate_id (number) , asessment_outcome_code (text)


Question: What are the cell phone numbers of the candidates that received an assessment code of "Fail"?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

people : cell_mobile_number (text) , person_id (number) | candidates : candidate_id (number) | candidate_assessments : candidate_id (number) , asessment_outcome_code (text)


Question: What are the id of students who registered course 301?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)


Question: What are the ids of the students who registered for course 301?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)


Question: What is the id of the student who most recently registered course 301?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)


Question: What are the ids of the students who registered for course 301 most recently?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)


Question: Find distinct cities of addresses of people?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

addresses : city (text) , address_id (number) | people_addresses : address_id (number)


Question: What are the different cities where people live?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

addresses : city (text) , address_id (number) | people_addresses : address_id (number)


Question: Find distinct cities of address of students?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

addresses : city (text) , address_id (number) | people_addresses : address_id (number) , person_id (number) | students : student_id (number)


Question: What are the different cities where students live?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

addresses : city (text) , address_id (number) | people_addresses : address_id (number) , person_id (number) | students : student_id (number)


Question: List the names of courses in alphabetical order?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)


Question: What are the names of the courses in alphabetical order?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)


Question: List the first names of people in alphabetical order?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)


Question: What are the first names of the people in alphabetical order?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)


Question: What are the id of students who registered courses or attended courses?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

student_course_registrations : student_id (number) | student_course_attendance : student_id (number)


Question: What are the ids of the students who either registered or attended a course?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

student_course_registrations : student_id (number) | student_course_attendance : student_id (number)


Question: Find the id of courses which are registered or attended by student whose id is 121?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

student_course_registrations : course_id (number) , student_id (number) | student_course_attendance : course_id (number) , student_id (number)


Question: What are the ids of the courses that are registered or attended by the student whose id is 121?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

student_course_registrations : course_id (number) , student_id (number) | student_course_attendance : course_id (number) , student_id (number)


Question: What are all info of students who registered courses but not attended courses?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

student_course_registrations : student_id (number) | student_course_attendance : student_id (number)


Question: What are all details of the students who registered but did not attend any course?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

student_course_registrations : student_id (number) | student_course_attendance : student_id (number)


Question: List the id of students who registered course statistics in the order of registration date.

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | courses : course_id (text) , course_name (text)


Question: What are the ids of the students who registered course statistics by order of registration date?

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | courses : course_id (text) , course_name (text)


Question: List the id of students who attended  statistics courses in the order of attendance date.

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | courses : course_id (text) , course_name (text)


Question: What are the ids of the students who attended courses in the statistics department in order of attendance date.

addresses : address_id (number) , line_1 (text) , line_2 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | people : person_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , login_name (text) , password (text) | students : student_id (number) , student_details (text) | courses : course_id (text) , course_name (text) , course_description (text) , other_details (text) | people_addresses : person_address_id (number) , person_id (number) , address_id (number) , date_from (time) , date_to (time) | student_course_registrations : student_id (number) , course_id (number) , registration_date (time) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | candidates : candidate_id (number) , candidate_details (text) | candidate_assessments : candidate_id (number) , qualification (text) , assessment_date (time) , asessment_outcome_code (text)

student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | courses : course_id (text) , course_name (text)


Question: Give me the dates when the max temperature was higher than 85.

station : id (number) , name (text) , lat (number) , long (number) , dock_count (number) , city (text) , installation_date (text) | status : station_id (number) , bikes_available (number) , docks_available (number) , time (text) | trip : id (number) , duration (number) , start_date (text) , start_station_name (text) , start_station_id (number) , end_date (text) , end_station_name (text) , end_station_id (number) , bike_id (number) , subscription_type (text) , zip_code (number) | weather : date (text) , max_temperature_f (number) , mean_temperature_f (number) , min_temperature_f (number) , max_dew_point_f (number) , mean_dew_point_f (number) , min_dew_point_f (number) , max_humidity (number) , mean_humidity (number) , min_humidity (number) , max_sea_level_pressure_inches (number) , mean_sea_level_pressure_inches (number) , min_sea_level_pressure_inches (number) , max_visibility_miles (number) , mean_visibility_miles (number) , min_visibility_miles (number) , max_wind_speed_mph (number) , mean_wind_speed_mph (number) , max_gust_speed_mph (number) , precipitation_inches (number) , cloud_cover (number) , events (text) , wind_dir_degrees (number) , zip_code (number)


Question: What are the dates with a maximum temperature higher than 85?

station : id (number) , name (text) , lat (number) , long (number) , dock_count (number) , city (text) , installation_date (text) | status : station_id (number) , bikes_available (number) , docks_available (number) , time (text) | trip : id (number) , duration (number) , start_date (text) , start_station_name (text) , start_station_id (number) , end_date (text) , end_station_name (text) , end_station_id (number) , bike_id (number) , subscription_type (text) , zip_code (number) | weather : date (text) , max_temperature_f (number) , mean_temperature_f (number) , min_temperature_f (number) , max_dew_point_f (number) , mean_dew_point_f (number) , min_dew_point_f (number) , max_humidity (number) , mean_humidity (number) , min_humidity (number) , max_sea_level_pressure_inches (number) , mean_sea_level_pressure_inches (number) , min_sea_level_pressure_inches (number) , max_visibility_miles (number) , mean_visibility_miles (number) , min_visibility_miles (number) , max_wind_speed_mph (number) , mean_wind_speed_mph (number) , max_gust_speed_mph (number) , precipitation_inches (number) , cloud_cover (number) , events (text) , wind_dir_degrees (number) , zip_code (number)