Datasets:
db_id
stringclasses 140
values | question
stringlengths 16
224
| schema
stringclasses 140
values | summarized-schema
stringlengths 18
304
| shrink-score
float64 0
1
|
---|---|---|---|---|
department_management | 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) | head : age (number) , head_id (number) | 0.846154 |
department_management | 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) | 0.769231 |
department_management | 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) | 0.769231 |
department_management | 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) | 0.923077 |
department_management | 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) | 0.846154 |
department_management | 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) | head : name (text) , born_state (text) | 0.846154 |
department_management | 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) | 0.538462 |
department_management | 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) | 0.846154 |
department_management | 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) | 0.846154 |
department_management | 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) | 0.615385 |
department_management | 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) | management : temporary_acting (text) | 0.923077 |
department_management | 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) | 0.846154 |
department_management | 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) | 0.692308 |
department_management | 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) | 0.461538 |
department_management | 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) | 0.769231 |
department_management | 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) | head : head_id (number) , name (text) | 0.846154 |
farm | 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) | farm : farm_id (number) | 0.958333 |
farm | 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) | farm : farm_id (number) | 0.958333 |
farm | 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) | farm : total_horses (number) | 0.958333 |
farm | 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) | farm : total_horses (number) | 0.958333 |
farm | 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) | 0.916667 |
farm | 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) | 0.916667 |
farm | 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) | 0.916667 |
farm | 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) | 0.916667 |
farm | 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) | 0.916667 |
farm | 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) | 0.916667 |
farm | 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) | farm : cows (number) | 0.958333 |
farm | 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) | farm : cows (number) | 0.958333 |
farm | 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) | city : status (text) | 0.958333 |
farm | 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) | city : status (text) | 0.958333 |
farm | 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) | 0.916667 |
farm | 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) | 0.916667 |
farm | 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) | 0.875 |
farm | 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) | 0.875 |
farm | 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) | 0.833333 |
farm | 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) | 0.833333 |
farm | 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) | 0.833333 |
farm | 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) | 0.833333 |
farm | 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) | 0.833333 |
farm | 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) | 0.833333 |
farm | 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) | 0.833333 |
farm | 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) | 0.833333 |
farm | 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) | 0.916667 |
farm | 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) | 0.916667 |
farm | 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) | city : status (text) , city_id (number) | 0.916667 |
farm | 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) | city : status (text) , city_id (number) | 0.916667 |
farm | 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) | city : status (text) , city_id (number) | 0.916667 |
farm | 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) | city : status (text) , city_id (number) | 0.916667 |
farm | 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) | 0.875 |
farm | 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) | 0.875 |
farm | 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) | 0.916667 |
farm | 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) | 0.916667 |
farm | 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) | 0.916667 |
farm | 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) | 0.916667 |
farm | 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) | 0.916667 |
farm | 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) | 0.916667 |
student_assessment | 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) | 0.894737 |
student_assessment | 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) | 0.894737 |
student_assessment | 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) | student_course_registrations : student_id (number) | 0.973684 |
student_assessment | 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) | student_course_registrations : student_id (number) | 0.973684 |
student_assessment | 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) | 0.894737 |
student_assessment | 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) | 0.894737 |
student_assessment | 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) | 0.947368 |
student_assessment | 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) | 0.947368 |
student_assessment | 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) | student_course_attendance : student_id (number) | 0.973684 |
student_assessment | 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) | student_course_attendance : student_id (number) | 0.973684 |
student_assessment | 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) | 0.894737 |
student_assessment | 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) | 0.894737 |
student_assessment | 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) | 0.894737 |
student_assessment | 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) | 0.894737 |
student_assessment | 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) | 0.894737 |
student_assessment | 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) | 0.921053 |
student_assessment | 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) | 0.921053 |
student_assessment | 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) | 0.921053 |
student_assessment | 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) | 0.921053 |
student_assessment | 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) | 0.947368 |
student_assessment | 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) | 0.947368 |
student_assessment | 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) | 0.921053 |
student_assessment | 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) | 0.921053 |
student_assessment | 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) | 0.947368 |
student_assessment | 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) | 0.947368 |
student_assessment | 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) | 0.868421 |
student_assessment | 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) | 0.868421 |
student_assessment | 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) | 0.947368 |
student_assessment | 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) | 0.947368 |
student_assessment | 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) | 0.868421 |
student_assessment | 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) | 0.868421 |
student_assessment | 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) | student_course_attendance : student_id (number) , course_id (number) | 0.947368 |
student_assessment | 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) | student_course_attendance : student_id (number) , course_id (number) | 0.947368 |
student_assessment | 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) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | 0.921053 |
student_assessment | 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) | student_course_attendance : student_id (number) , course_id (number) , date_of_attendance (time) | 0.921053 |
student_assessment | 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) | 0.921053 |
student_assessment | 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) | 0.921053 |
student_assessment | 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) | 0.868421 |
student_assessment | 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) | 0.868421 |
student_assessment | 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) | courses : course_name (text) | 0.973684 |
student_assessment | 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) | courses : course_name (text) | 0.973684 |
student_assessment | 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) | people : first_name (text) | 0.973684 |
student_assessment | 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) | people : first_name (text) | 0.973684 |
student_assessment | 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) | 0.947368 |
Dataset Card for schema-summarization_spider
Dataset Description
Dataset Summary
This dataset has been built to train and benchmark models uppon the schema-summarization task. This task aims to generate the smallest schema needed to answer a NL question with the help of the original database schema. This dataset has been build by crossing these two datasets :
xlangai/spider
richardr1126/spider-schema
With the first dataset we take the natural language question and the SQL query. With the second dataset we take the associated schema of the database id used to answer the question. We then generate the summarized-schema with the help of the SQL query
Languages
As the xlangai/spider
and richardr1126/spider-schema
are only labelled in english, this dataset is also labelled in english
Dataset Structure
Data Fields
- db_id : The Database name
- question : The natural language question
- schema : The full schema
- summarized-schema : A subset of the full schema to answer the question
- shrink-score : The percentage of columns removed from the original schema
Data Splits
- train : 6985 questions, schema and summarized-schema tuples
- validation : 1032 questions, schema and summarized-schema tuples
Dataset Creation
Process
So in order to create the summarized schema we proceded into several steps. First we go through every words in the orginal SQL query and see if it matches any column names in the original schema. And we add every column that we find this way. In order to leverage the '*' wildcard we automatically include the primary key of each table that is within the original SQL query
Source Data
As explained above the natural question and SQL queries that answers this question are extracted from the xlangai/spider
dataset and the databases schemas are extracted from the richardr1126/spider-schema
dataset.
TODO
- Fix rows with empty summarized-schema
- Fix overwhelmingly long summarized-schema. Sometimes the needed columns has the same name in diferent tables. We need to only include it once (Maybe ?)
- Remove primary key from summarized-schema when the '*' wildcard is not used
- Add a shrinking score
- Prompt engineer
Llama3.1:70b
with a 1-shot example to generate better summarized-schema - Find a way to add data from WikiSQL
- Downloads last month
- 77