Question: Find the average life expectancy and total population for each continent where the average life expectancy is shorter than 72?

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

city : population (number) , id (number) | country : population (number) , lifeexpectancy (number) , continent (text) , code (number)


Question: What are the different continents and the total popuation and average life expectancy corresponding to each, for continents that have an average life expectancy less than 72?

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

city : population (number) , id (number) | country : population (number) , lifeexpectancy (number) , continent (text) , code (number)


Question: What are the names and areas of countries with the top 5 largest area?

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

city : name (text) , id (number) | sqlite_sequence : name (text) | country : name (text) , surfacearea (number) , code (number)


Question: Return the names and surface areas of the 5 largest countries.

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

city : name (text) , id (number) | sqlite_sequence : name (text) | country : name (text) , surfacearea (number) , code (number)


Question: What are names of countries with the top 3 largest population?

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

city : name (text) , population (number) , id (number) | sqlite_sequence : name (text) | country : name (text) , population (number) , code (number)


Question: Return the names of the 3 most populated countries.

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

city : name (text) , population (number) , id (number) | sqlite_sequence : name (text) | country : name (text) , population (number) , code (number)


Question: What are the names of the nations with the 3 lowest populations?

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

city : name (text) , population (number) , id (number) | sqlite_sequence : name (text) | country : name (text) , population (number) , code (number)


Question: Return the names of the 3 countries with the fewest people.

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

city : name (text) , population (number) , id (number) | sqlite_sequence : name (text) | country : name (text) , population (number) , code (number)


Question: how many countries are in Asia?

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

country : continent (text) , code (number)


Question: Count the number of countries in Asia.

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

country : continent (text) , code (number)


Question: What are the names of the countries that are in the continent of Europe and have a population of 80000?

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

city : name (text) , population (number) , id (number) | sqlite_sequence : name (text) | country : name (text) , continent (text) , population (number) , code (number)


Question: Give the names of countries that are in Europe and have a population equal to 80000.

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

city : name (text) , population (number) , id (number) | sqlite_sequence : name (text) | country : name (text) , continent (text) , population (number) , code (number)


Question: What is the total population and average area of countries in the continent of North America whose area is bigger than 3000 ?

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

city : population (number) , id (number) | country : population (number) , surfacearea (number) , continent (text) , code (number)


Question: Give the total population and average surface area corresponding to countries in North America that have a surface area greater than 3000 .

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

city : population (number) , id (number) | country : population (number) , surfacearea (number) , continent (text) , code (number)


Question: What are the cities whose population is between 160000 and 900000?

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

city : name (text) , population (number) , id (number) | sqlite_sequence : name (text) | country : name (text) , population (number) , code (number)


Question: Return the names of cities that have a population between 160000 and 900000 .

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

city : name (text) , population (number) , id (number) | sqlite_sequence : name (text) | country : name (text) , population (number) , code (number)


Question: Which language is spoken by the largest number of countries?

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

countrylanguage : language (text) , countrycode (number)


Question: Give the language that is spoken in the most countries.

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

countrylanguage : language (text) , countrycode (number)


Question: What is the language spoken by the largest percentage of people in each country?

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

countrylanguage : language (text) , countrycode (text) , percentage (number) , countrycode (number) | city : countrycode (text) , id (number)


Question: What are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each?

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

countrylanguage : language (text) , countrycode (text) , percentage (number) , countrycode (number) | city : countrycode (text) , id (number)


Question: What is the total number of countries where Spanish is spoken by the largest percentage of people?

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

countrylanguage : percentage (number) , language (text) , countrycode (text) , countrycode (number) | city : countrycode (text) , id (number)


Question: Count the number of countries for which Spanish is the predominantly spoken language.

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

countrylanguage : percentage (number) , language (text) , countrycode (text) , countrycode (number) | city : countrycode (text) , id (number)


Question: What are the codes of countries where Spanish is spoken by the largest percentage of people?

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

city : countrycode (text) , id (number) | countrylanguage : countrycode (text) , percentage (number) , language (text) , countrycode (number)


Question: Return the codes of countries for which Spanish is the predominantly spoken language.

city : id (number) , name (text) , countrycode (text) , district (text) , population (number) | sqlite_sequence : name (text) , seq (text) | country : code (text) , name (text) , continent (text) , region (text) , surfacearea (number) , indepyear (number) , population (number) , lifeexpectancy (number) , gnp (number) , gnpold (number) , localname (text) , governmentform (text) , headofstate (text) , capital (number) , code2 (text) | countrylanguage : countrycode (text) , language (text) , isofficial (text) , percentage (number)

city : countrycode (text) , id (number) | countrylanguage : countrycode (text) , percentage (number) , language (text) , countrycode (number)


Question: How many conductors are there?

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)


Question: Count the number of conductors.

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)


Question: List the names of conductors in ascending order of age.

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

conductor : name (text) , age (number) , conductor_id (number)


Question: What are the names of conductors, ordered by age?

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

conductor : name (text) , age (number) , conductor_id (number)


Question: What are the names of conductors whose nationalities are not "USA"?

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

conductor : name (text) , nationality (text) , conductor_id (number)


Question: Return the names of conductors that do not have the nationality "USA".

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

conductor : name (text) , nationality (text) , conductor_id (number)


Question: What are the record companies of orchestras in descending order of years in which they were founded?

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

orchestra : record_company (text) , orchestra (text) , year_of_founded (number) , orchestra_id (number)


Question: Return the record companies of orchestras, sorted descending by the years in which they were founded.

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

orchestra : record_company (text) , orchestra (text) , year_of_founded (number) , orchestra_id (number)


Question: What is the average attendance of shows?

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)


Question: Return the average attendance across all shows.

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)


Question: What are the maximum and minimum share of performances whose type is not "Live final".

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

performance : share (text) , type (text) , performance_id (number)


Question: Return the maximum and minimum shares for performances that do not have the type "Live final".

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

performance : share (text) , type (text) , performance_id (number)


Question: How many different nationalities do conductors have?

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

conductor : nationality (text) , conductor_id (number)


Question: Count the number of different nationalities of conductors.

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

conductor : nationality (text) , conductor_id (number)


Question: List names of conductors in descending order of years of work.

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

conductor : name (text) , year_of_work (number) , conductor_id (number)


Question: What are the names of conductors, sorted descending by the number of years they have worked?

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

conductor : name (text) , year_of_work (number) , conductor_id (number)


Question: List the name of the conductor with the most years of work.

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

conductor : name (text) , year_of_work (number) , conductor_id (number)


Question: What is the name of the conductor who has worked the greatest number of years?

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

conductor : name (text) , year_of_work (number) , conductor_id (number)


Question: Show the names of conductors and the orchestras they have conducted.

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

conductor : name (text) , conductor_id (number) | orchestra : orchestra (text) , conductor_id (number) , orchestra_id (number)


Question: What are the names of conductors as well as the corresonding orchestras that they have conducted?

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

conductor : name (text) , conductor_id (number) | orchestra : orchestra (text) , conductor_id (number) , orchestra_id (number)


Question: Show the names of conductors that have conducted more than one orchestras.

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

conductor : name (text) , conductor_id (number) | orchestra : orchestra (text) , conductor_id (number) , orchestra_id (number)


Question: What are the names of conductors who have conducted at more than one orchestra?

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

conductor : name (text) , conductor_id (number) | orchestra : orchestra (text) , conductor_id (number) , orchestra_id (number)


Question: Show the name of the conductor that has conducted the most number of orchestras.

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

conductor : name (text) , conductor_id (number) | orchestra : orchestra (text) , conductor_id (number) , orchestra_id (number)


Question: What is the name of the conductor who has conducted the most orchestras?

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

conductor : name (text) , conductor_id (number) | orchestra : orchestra (text) , conductor_id (number) , orchestra_id (number)


Question: Please show the name of the conductor that has conducted orchestras founded after 2008.

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

conductor : name (text) , conductor_id (number) | orchestra : orchestra (text) , conductor_id (number) , year_of_founded (number) , orchestra_id (number)


Question: What are the names of conductors who have conducted orchestras founded after the year 2008?

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

conductor : name (text) , conductor_id (number) | orchestra : orchestra (text) , conductor_id (number) , year_of_founded (number) , orchestra_id (number)


Question: Please show the different record companies and the corresponding number of orchestras.

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

orchestra : record_company (text) , orchestra (text) , orchestra_id (number)


Question: How many orchestras does each record company manage?

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

orchestra : record_company (text) , orchestra (text) , orchestra_id (number)


Question: Please show the record formats of orchestras in ascending order of count.

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

orchestra : major_record_format (text) , orchestra (text) , orchestra_id (number)


Question: What are the major record formats of orchestras, sorted by their frequency?

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

orchestra : major_record_format (text) , orchestra (text) , orchestra_id (number)


Question: List the record company shared by the most number of orchestras.

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

orchestra : record_company (text) , orchestra (text) , orchestra_id (number)


Question: What is the record company used by the greatest number of orchestras?

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

orchestra : record_company (text) , orchestra (text) , orchestra_id (number)


Question: List the names of orchestras that have no performance.

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

orchestra : orchestra (text) , orchestra_id (number) | performance : orchestra_id (number) , performance_id (number)


Question: What are the orchestras that do not have any performances?

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

orchestra : orchestra (text) , orchestra_id (number) | performance : orchestra_id (number) , performance_id (number)


Question: Show the record companies shared by orchestras founded before 2003 and after 2003.

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

orchestra : record_company (text) , orchestra (text) , year_of_founded (number) , orchestra_id (number)


Question: What are the record companies that are used by both orchestras founded before 2003 and those founded after 2003?

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

orchestra : record_company (text) , orchestra (text) , year_of_founded (number) , orchestra_id (number)


Question: Find the number of orchestras whose record format is "CD" or "DVD".

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

orchestra : orchestra (text) , major_record_format (text) , orchestra_id (number)


Question: Count the number of orchestras that have CD or DVD as their record format.

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

orchestra : orchestra (text) , major_record_format (text) , orchestra_id (number)


Question: Show the years in which orchestras that have given more than one performance are founded.

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

orchestra : year_of_founded (number) , orchestra (text) , orchestra_id (number) | performance : orchestra_id (number) , performance_id (number)


Question: What are years of founding for orchestras that have had more than a single performance?

conductor : conductor_id (number) , name (text) , age (number) , nationality (text) , year_of_work (number) | orchestra : orchestra_id (number) , orchestra (text) , conductor_id (number) , record_company (text) , year_of_founded (number) , major_record_format (text) | performance : performance_id (number) , orchestra_id (number) , type (text) , date (text) , official_ratings_(millions) (number) , weekly_rank (text) , share (text) | show : show_id (number) , performance_id (number) , if_first_show (others) , result (text) , attendance (number)

orchestra : year_of_founded (number) , orchestra (text) , orchestra_id (number) | performance : orchestra_id (number) , performance_id (number)


Question: How many high schoolers are there?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)


Question: Count the number of high schoolers.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)


Question: Show the names and grades of each high schooler.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , grade (number) , id (number)


Question: What are the names and grades for each high schooler?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , grade (number) , id (number)


Question: Show all the grades of the high schoolers.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : grade (number) , id (number)


Question: What is the grade of each high schooler?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : grade (number) , id (number)


Question: What grade is Kyle in?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : grade (number) , name (text) , id (number)


Question: Return the grade for the high schooler named Kyle.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : grade (number) , name (text) , id (number)


Question: Show the names of all high schoolers in grade 10.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , grade (number) , id (number)


Question: What are the names of all high schoolers in grade 10?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , grade (number) , id (number)


Question: Show the ID of the high schooler named Kyle.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)


Question: What is Kyle's id?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)


Question: How many high schoolers are there in grade 9 or 10?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : grade (number) , id (number)


Question: Count the number of high schoolers in grades 9 or 10.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : grade (number) , id (number)


Question: Show the number of high schoolers for each grade.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : grade (number) , id (number)


Question: How many high schoolers are in each grade?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : grade (number) , id (number)


Question: Which grade has the most high schoolers?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : grade (number) , id (number)


Question: Return the grade that has the greatest number of high schoolers.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : grade (number) , id (number)


Question: Show me all grades that have at least 4 students.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : grade (number) , id (number)


Question: Which grades have 4 or more high schoolers?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : grade (number) , id (number)


Question: Show the student IDs and numbers of friends corresponding to each.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

friend : student_id (number) | likes : student_id (number)


Question: How many friends does each student have?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

friend : student_id (number) | likes : student_id (number)


Question: Show the names of high school students and their corresponding number of friends.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , id (number) | friend : student_id (number) | likes : student_id (number)


Question: What are the names of the high schoolers and how many friends does each have?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , id (number) | friend : student_id (number) | likes : student_id (number)


Question: What is the name of the high schooler who has the greatest number of friends?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , id (number) | friend : student_id (number) | likes : student_id (number)


Question: Return the name of the high school student with the most friends.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , id (number) | friend : student_id (number) | likes : student_id (number)


Question: Show the names of high schoolers who have at least 3 friends.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , id (number) | friend : student_id (number) | likes : student_id (number)


Question: What are the names of high schoolers who have 3 or more friends?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , id (number) | friend : student_id (number) | likes : student_id (number)


Question: Show the names of all of the high schooler Kyle's friends.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , id (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number)


Question: Return the names of friends of the high school student Kyle.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , id (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number)


Question: How many friends does the high school student Kyle have?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

friend : student_id (number) | likes : student_id (number) | highschooler : id (number) , name (text)


Question: Count the number of friends Kyle has.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

friend : student_id (number) | likes : student_id (number) | highschooler : id (number) , name (text)


Question: Show ids of all students who do not have any friends.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : id (number) | friend : student_id (number) | likes : student_id (number)


Question: What are the ids of high school students who do not have friends?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : id (number) | friend : student_id (number) | likes : student_id (number)


Question: Show names of all high school students who do not have any friends.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , id (number) | friend : student_id (number) | likes : student_id (number)


Question: What are the names of students who have no friends?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , id (number) | friend : student_id (number) | likes : student_id (number)


Question: Show the ids of high schoolers who have friends and are also liked by someone else.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

friend : student_id (number) | likes : student_id (number) , liked_id (number)


Question: What are the ids of students who both have friends and are liked?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

friend : student_id (number) | likes : student_id (number) , liked_id (number)


Question: Show name of all students who have some friends and also are liked by someone else.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , id (number) | friend : student_id (number) | likes : student_id (number) , liked_id (number)


Question: What are the names of high schoolers who both have friends and are liked?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , id (number) | friend : student_id (number) | likes : student_id (number) , liked_id (number)


Question: Count the number of likes for each student id.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

friend : student_id (number) | likes : student_id (number)


Question: How many likes correspond to each student id?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

friend : student_id (number) | likes : student_id (number)


Question: Show the names of high schoolers who have likes, and numbers of likes for each.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , id (number) | friend : student_id (number) | likes : student_id (number)


Question: What are the names of high schoolers who have likes, and how many likes does each have?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , id (number) | friend : student_id (number) | likes : student_id (number)


Question: What is the name of the high schooler who has the greatest number of likes?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , id (number) | friend : student_id (number) | likes : student_id (number)


Question: Give the name of the student with the most likes.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , id (number) | friend : student_id (number) | likes : student_id (number)


Question: Show the names of students who have at least 2 likes.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , id (number) | friend : student_id (number) | likes : student_id (number)


Question: What are the names of students who have 2 or more likes?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , id (number) | friend : student_id (number) | likes : student_id (number)


Question: Show the names of students who have a grade higher than 5 and have at least 2 friends.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , id (number) , grade (number) | friend : student_id (number) | likes : student_id (number)


Question: What are the names of high schoolers who have a grade of over 5 and have 2 or more friends?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : name (text) , id (number) , grade (number) | friend : student_id (number) | likes : student_id (number)


Question: How many likes does Kyle have?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

friend : student_id (number) | likes : student_id (number) | highschooler : id (number) , name (text)


Question: Return the number of likes that the high schooler named Kyle has.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

friend : student_id (number) | likes : student_id (number) | highschooler : id (number) , name (text)


Question: Find the average grade of all students who have some friends.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : grade (number) , id (number) | friend : student_id (number) | likes : student_id (number)


Question: What is the average grade of students who have friends?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : grade (number) , id (number) | friend : student_id (number) | likes : student_id (number)


Question: Find the minimum grade of students who have no friends.

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : grade (number) , id (number) | friend : student_id (number) | likes : student_id (number)


Question: What is the lowest grade of students who do not have any friends?

highschooler : id (number) , name (text) , grade (number) | friend : student_id (number) , friend_id (number) | likes : student_id (number) , liked_id (number)

highschooler : grade (number) , id (number) | friend : student_id (number) | likes : student_id (number)


Question: Which states have both owners and professionals living there?

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

owners : state (text) , owner_id (number) | professionals : state (text) , professional_id (number)


Question: Find the states where both owners and professionals live.

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

owners : state (text) , owner_id (number) | professionals : state (text) , professional_id (number)


Question: What is the average age of the dogs who have gone through any treatments?

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

dogs : age (text) , dog_id (number) | treatments : dog_id (number) , treatment_id (number)


Question: Find the average age of the dogs who went through treatments.

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

dogs : age (text) , dog_id (number) | treatments : dog_id (number) , treatment_id (number)


Question: Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone.

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

professionals : professional_id (number) , last_name (text) , cell_number (text) , state (text) | treatments : professional_id (number) , treatment_id (number) | owners : last_name (text) , cell_number (text) , state (text) , owner_id (number)


Question: Find the id, last name and cell phone of the professionals who live in the state of Indiana or have performed more than two treatments.

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

professionals : professional_id (number) , last_name (text) , cell_number (text) , state (text) | treatments : professional_id (number) , treatment_id (number) | owners : last_name (text) , cell_number (text) , state (text) , owner_id (number)


Question: Which dogs have not cost their owner more than 1000 for treatment ? List the dog names .

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

dogs : name (text) , dog_id (number) | treatments : dog_id (number) , cost_of_treatment (number) , treatment_id (number)


Question: What are the names of the dogs for which the owner has not spend more than 1000 for treatment ?

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

dogs : name (text) , dog_id (number) | treatments : dog_id (number) , cost_of_treatment (number) , treatment_id (number)


Question: Which first names are used for professionals or owners but are not used as dog names?

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

owners : first_name (text) , owner_id (number) | professionals : first_name (text) , professional_id (number) | dogs : name (text) , dog_id (number)


Question: Find the first names that are used for professionals or owners but are not used as dog names.

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

owners : first_name (text) , owner_id (number) | professionals : first_name (text) , professional_id (number) | dogs : name (text) , dog_id (number)


Question: Which professional did not operate any treatment on dogs? List the professional's id, role and email.

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

professionals : professional_id (number) , role_code (text) , email_address (text) | treatments : professional_id (number) , treatment_id (number) | owners : email_address (text) , owner_id (number)


Question: Give me the id, role and email of the professionals who did not perform any treatment on dogs.

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

professionals : professional_id (number) , role_code (text) , email_address (text) | treatments : professional_id (number) , treatment_id (number) | owners : email_address (text) , owner_id (number)


Question: Which owner owns the most dogs? List the owner id, first name and last name.

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

owners : owner_id (number) , first_name (text) , last_name (text) | dogs : owner_id (number) , dog_id (number) | professionals : first_name (text) , last_name (text) , professional_id (number)


Question: Return the owner id, first name and last name of the owner who has the most dogs.

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

owners : owner_id (number) , first_name (text) , last_name (text) | dogs : owner_id (number) , dog_id (number) | professionals : first_name (text) , last_name (text) , professional_id (number)


Question: Which professionals have done at least two treatments? List the professional's id, role, and first name.

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

professionals : professional_id (number) , role_code (text) , first_name (text) | treatments : professional_id (number) , treatment_id (number) | owners : first_name (text) , owner_id (number)


Question: What are the id, role, and first name of the professionals who have performed two or more treatments?

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

professionals : professional_id (number) , role_code (text) , first_name (text) | treatments : professional_id (number) , treatment_id (number) | owners : first_name (text) , owner_id (number)


Question: What is the name of the breed with the most dogs?

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

breeds : breed_name (text) , breed_code (text) , breed_code (number) | dogs : breed_code (text) , dog_id (number)


Question: Which breed do the most dogs have? Give me the breed name.

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

breeds : breed_name (text) , breed_code (text) , breed_code (number) | dogs : breed_code (text) , dog_id (number)


Question: Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

owners : owner_id (number) , last_name (text) | dogs : owner_id (number) , dog_id (number) | professionals : last_name (text) , professional_id (number) | treatments : dog_id (number) , treatment_id (number)


Question: Tell me the owner id and last name of the owner who spent the most on treatments of his or her dogs.

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

owners : owner_id (number) , last_name (text) | dogs : owner_id (number) , dog_id (number) | professionals : last_name (text) , professional_id (number) | treatments : dog_id (number) , treatment_id (number)


Question: What is the description of the treatment type that costs the least money in total?

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

treatment_types : treatment_type_description (text) , treatment_type_code (text) , treatment_type_code (number) | treatments : treatment_type_code (text) , cost_of_treatment (number) , treatment_id (number)


Question: Give me the description of the treatment type whose total cost is the lowest.

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

treatment_types : treatment_type_description (text) , treatment_type_code (text) , treatment_type_code (number) | treatments : treatment_type_code (text) , cost_of_treatment (number) , treatment_id (number)


Question: Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

owners : owner_id (number) , zip_code (text) | dogs : owner_id (number) , dog_id (number) | professionals : zip_code (text) , professional_id (number) | treatments : dog_id (number) , cost_of_treatment (number) , treatment_id (number)


Question: Find the owner id and zip code of the owner who spent the most money in total for his or her dogs.

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

owners : owner_id (number) , zip_code (text) | dogs : owner_id (number) , dog_id (number) | professionals : zip_code (text) , professional_id (number) | treatments : dog_id (number) , cost_of_treatment (number) , treatment_id (number)


Question: Which professionals have done at least two types of treatments? List the professional id and cell phone.

breeds : breed_code (text) , breed_name (text) | charges : charge_id (number) , charge_type (text) , charge_amount (number) | sizes : size_code (text) , size_description (text) | treatment_types : treatment_type_code (text) , treatment_type_description (text) | owners : owner_id (number) , first_name (text) , last_name (text) , street (text) , city (text) , state (text) , zip_code (text) , email_address (text) , home_phone (text) , cell_number (text) | dogs : dog_id (number) , owner_id (number) , abandoned_yn (text) , breed_code (text) , size_code (text) , name (text) , age (text) , date_of_birth (time) , gender (text) , weight (text) , date_arrived (time) , date_adopted (time) , date_departed (time) | professionals : professional_id (number) , role_code (text) , first_name (text) , street (text) , city (text) , state (text) , zip_code (text) , last_name (text) , email_address (text) , home_phone (text) , cell_number (text) | treatments : treatment_id (number) , dog_id (number) , professional_id (number) , treatment_type_code (text) , date_of_treatment (time) , cost_of_treatment (number)

professionals : professional_id (number) , cell_number (text) | treatments : professional_id (number) , treatment_id (number) | owners : cell_number (text) , owner_id (number)