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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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


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)


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)


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)


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)


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)


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


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)


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)

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)

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)


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)


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)


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)


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) | professionals : state (text)


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) | professionals : state (text)


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)


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)


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)


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)


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)


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)


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) | professionals : first_name (text) | dogs : name (text)


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) | professionals : first_name (text) | dogs : name (text)


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)


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)


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)


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)


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)


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)


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) | 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) | 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) | 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) | 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) | treatments : treatment_type_code (text) , cost_of_treatment (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) | treatments : treatment_type_code (text) , cost_of_treatment (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) | treatments : dog_id (number) , cost_of_treatment (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) | treatments : dog_id (number) , cost_of_treatment (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)


Question: Find the id and cell phone of the professionals who operate two or more types of 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) , cell_number (text) | treatments : professional_id (number) , treatment_id (number)


Question: What are the first name and last name of the professionals who have done treatment with cost below average?

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 : first_name (text) , last_name (text) | treatments : cost_of_treatment (number)


Question: Which professionals have operated a treatment that costs less than the average? Give me theor first names and last 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)

professionals : first_name (text) , last_name (text) | treatments : cost_of_treatment (number)


Question: List the date of each treatment, together with the first name of the professional who operated it.

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)

treatments : date_of_treatment (time) , professional_id (number) | professionals : first_name (text) , professional_id (number)


Question: What are the date and the operating professional's first name of each 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)

treatments : date_of_treatment (time) , professional_id (number) | professionals : first_name (text) , professional_id (number)


Question: List the cost of each treatment and the corresponding treatment type description.

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)

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


Question: What are the cost and treatment type description of each 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)

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


Question: List each owner's first name, last name, and the size of his for her dog.

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) , last_name (text) , owner_id (number) | dogs : size_code (text) , owner_id (number)


Question: What are each owner's first name, last name, and the size of their dog?

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) , last_name (text) , owner_id (number) | dogs : size_code (text) , owner_id (number)


Question: List pairs of the owner's first name and the dogs's 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 : first_name (text) , owner_id (number) | dogs : name (text) , owner_id (number)


Question: What are each owner's first name and their dogs's 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 : first_name (text) , owner_id (number) | dogs : name (text) , owner_id (number)


Question: List the names of the dogs of the rarest breed and the treatment dates of them.

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) , breed_code (text) | treatments : date_of_treatment (time) , dog_id (number) , treatment_id (number)


Question: Which dogs are of the rarest breed? Show their names and treatment dates.

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) , breed_code (text) | treatments : date_of_treatment (time) , dog_id (number) , treatment_id (number)


Question: Which dogs are owned by someone who lives in Virginia? List the owner's first name and the dog's 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 : first_name (text) , owner_id (number) , state (text) | dogs : name (text) , owner_id (number)


Question: Find the first names of owners living in Virginia and the names of dogs they own.

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) , state (text) | dogs : name (text) , owner_id (number)


Question: What are the arriving date and the departing date of the dogs who have gone through a 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 : date_arrived (time) , date_departed (time) , dog_id (number) | treatments : dog_id (number)


Question: Find the arriving date and the departing date of the dogs that received a 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 : date_arrived (time) , date_departed (time) , dog_id (number) | treatments : dog_id (number)


Question: List the last name of the owner owning the youngest dog.

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 : last_name (text) , owner_id (number) | dogs : owner_id (number) , age (text)


Question: Who owns the youngest dog? Give me his or her 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 : last_name (text) , owner_id (number) | dogs : owner_id (number) , age (text)


Question: List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin.

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 : email_address (text) , state (text)


Question: What are the emails of the professionals living in either the state of Hawaii or the state of Wisconsin?

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 : email_address (text) , state (text)


Question: What are the arriving date and the departing date of all the 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)

dogs : date_arrived (time) , date_departed (time)


Question: List the arrival date and the departure date for all the 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)

dogs : date_arrived (time) , date_departed (time)


Question: How many dogs went 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)


Question: Count the number of dogs that went through a 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)


Question: How many professionals have performed any treatment to 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)


Question: Find the number of professionals who have ever treated 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)


Question: Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state.

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 : role_code (text) , street (text) , city (text) , state (text)


Question: Find the role, street, city and state of the professionals living in a city that contains the substring 'West'.

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 : role_code (text) , street (text) , city (text) , state (text)