richardr1126/spider-natsql-context-validation huggingface dataset:
### Instruction:

Convert text to NatSQL: Show the student IDs and numbers of friends corresponding to each. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select friend.student_id , count ( friend.* )  from friend  group by friend.student_id

### Instruction:

Convert text to NatSQL: How many friends does each student have? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select friend.student_id , count ( friend.* )  from friend  group by friend.student_id

### Instruction:

Convert text to NatSQL: Show the names of high school students and their corresponding number of friends. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name , count ( friend.* )  from friend  group by friend.student_id

### Instruction:

Convert text to NatSQL: What are the names of the high schoolers and how many friends does each have? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name , count ( friend.* )  from highschooler  group by friend.student_id

### Instruction:

Convert text to NatSQL: What is the name of the high schooler who has the greatest number of friends? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name from highschooler  group by friend.student_id  order by count ( friend.* )  desc limit 1

### Instruction:

Convert text to NatSQL: Return the name of the high school student with the most friends. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name from highschooler  group by friend.student_id  order by count ( friend.* )  desc limit 1
### Instruction:

Convert text to NatSQL: Show the names of high schoolers who have at least 3 friends. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name from highschooler  where  count ( friend.* )  >= 3  group by friend.student_id

### Instruction:

Convert text to NatSQL: What are the names of high schoolers who have 3 or more friends? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name from highschooler  where  count ( friend.* )  >= 3  group by friend.student_id

### Instruction:

Convert text to NatSQL: Show the names of all of the high schooler Kyle's friends. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name from friend  where  @.@ = friend.student_id  and  highschooler.name = "Kyle"

### Instruction:

Convert text to NatSQL: Return the names of friends of the high school student Kyle. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name from friend  where  @.@ = friend.student_id  and  highschooler.name = "Kyle"

### Instruction:

Convert text to NatSQL: How many friends does the high school student Kyle have? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select count ( friend.* )  from friend  where  highschooler.name = "Kyle"

### Instruction:

Convert text to NatSQL: Count the number of friends Kyle has. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select count ( friend.* )  from friend  where  highschooler.name = "Kyle"

### Instruction:

Convert text to NatSQL: Show ids of all students who do not have any friends. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.ID from highschooler  where  except_  @.@ is friend.*
### Instruction:

Convert text to NatSQL: What are the ids of high school students who do not have friends? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.ID from highschooler  where  except_  @.@ is friend.*

### Instruction:

Convert text to NatSQL: Show names of all high school students who do not have any friends. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name from highschooler  where  except_  @.@ is friend.*

### Instruction:

Convert text to NatSQL: What are the names of students who have no friends? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name from highschooler  where  except_  @.@ is friend.*

### Instruction:

Convert text to NatSQL: Show the ids of high schoolers who have friends and are also liked by someone else. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.ID from highschooler  where  intersect_  @.@ is likes.*

### Instruction:

Convert text to NatSQL: What are the ids of students who both have friends and are liked? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.ID from highschooler  where  intersect_  @.@ is likes.*

### Instruction:

Convert text to NatSQL: Show name of all students who have some friends and also are liked by someone else. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name from highschooler  where  @.@ join friend.*  and  @.@ = likes.liked_id
### Instruction:

Convert text to NatSQL: What are the names of high schoolers who both have friends and are liked? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name from highschooler  where  @.@ join friend.*  and  @.@ = likes.liked_id

### Instruction:

Convert text to NatSQL: Count the number of likes for each student id. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select likes.student_id , count ( likes.* )  from likes  group by likes.student_id

### Instruction:

Convert text to NatSQL: How many likes correspond to each student id? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select likes.student_id , count ( likes.* )  from likes  group by likes.student_id

### Instruction:

Convert text to NatSQL: Show the names of high schoolers who have likes, and numbers of likes for each. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name , count ( likes.* )  from likes  group by likes.student_id

### Instruction:

Convert text to NatSQL: What are the names of high schoolers who have likes, and how many likes does each have? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name , count ( likes.* )  from likes  group by likes.student_id

### Instruction:

Convert text to NatSQL: What is the name of the high schooler who has the greatest number of likes? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name from likes  group by likes.student_id  order by count ( likes.* )  desc limit 1
### Instruction:

Convert text to NatSQL: Give the name of the student with the most likes. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name from likes  group by likes.student_id  order by count ( likes.* )  desc limit 1

### Instruction:

Convert text to NatSQL: Show the names of students who have at least 2 likes. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name from highschooler  where  count ( likes.* )  >= 2  group by likes.student_id

### Instruction:

Convert text to NatSQL: What are the names of students who have 2 or more likes? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name from highschooler  where  count ( likes.* )  >= 2  group by likes.student_id

### Instruction:

Convert text to NatSQL: Show the names of students who have a grade higher than 5 and have at least 2 friends. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name from highschooler  where  highschooler.grade > 5  and  count ( friend.* )  >= 2  group by friend.student_id

### Instruction:

Convert text to NatSQL: What are the names of high schoolers who have a grade of over 5 and have 2 or more friends? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name from highschooler  where  highschooler.grade > 5  and  count ( friend.* )  >= 2  group by friend.student_id

### Instruction:

Convert text to NatSQL: How many likes does Kyle have? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select count ( likes.* )  from likes  where  highschooler.name = "Kyle"
### Instruction:

Convert text to NatSQL: Return the number of likes that the high schooler named Kyle has. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select count ( likes.* )  from likes  where  highschooler.name = "Kyle"

### Instruction:

Convert text to NatSQL: Find the average grade of all students who have some friends. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select avg ( highschooler.grade )  from highschooler  where  @.@ in friend.student_id  and  @.@ join highschooler.*

### Instruction:

Convert text to NatSQL: What is the average grade of students who have friends? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select avg ( highschooler.grade )  from highschooler  where  @.@ in friend.student_id  and  @.@ join highschooler.*

### Instruction:

Convert text to NatSQL: Find the minimum grade of students who have no friends. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select min ( highschooler.grade )  from highschooler  where  @.@ not in friend.student_id  and  @.@ join highschooler.*

### Instruction:

Convert text to NatSQL: What is the lowest grade of students who do not have any friends? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select min ( highschooler.grade )  from highschooler  where  @.@ not in friend.student_id  and  @.@ join highschooler.*
### Instruction:

Convert text to NatSQL: Which states have both owners and professionals living there? | breeds : breed_code , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select owners.state from owners  where  intersect_  @.@ is professionals.*

### Instruction:

Convert text to NatSQL: Find the states where both owners and professionals live. | breeds : breed_code , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select owners.state from owners  where  intersect_  @.@ is professionals.*
### Instruction:

Convert text to NatSQL: What is the average age of the dogs who have gone through any treatments? | breeds : breed_code , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select avg ( dogs.age )  from dogs  where  @.@ in treatments.*

### Instruction:

Convert text to NatSQL: Find the average age of the dogs who went through treatments. | breeds : breed_code , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select avg ( dogs.age )  from dogs  where  @.@ in treatments.*
### Instruction:

Convert text to NatSQL: 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 , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select professionals.professional_id , professionals.last_name , professionals.cell_number from professionals  where  professionals.state = "Indiana"  or  count ( treatments.* )  > 2

### Instruction:

Convert text to NatSQL: 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 , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select professionals.professional_id , professionals.last_name , professionals.cell_number from professionals  where  professionals.state = "Indiana"  or  count ( treatments.* )  > 2
### Instruction:

Convert text to NatSQL: Which dogs have not cost their owner more than 1000 for treatment ? List the dog names . | breeds : breed_code , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select dogs.name from dogs  where  @.@ not in treatments.*  and  sum ( treatments.cost_of_treatment )  > 1000

### Instruction:

Convert text to NatSQL: What are the names of the dogs for which the owner has not spend more than 1000 for treatment ? | breeds : breed_code , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select dogs.name from dogs  where  @.@ not in treatments.*  and  sum ( treatments.cost_of_treatment )  > 1000
### Instruction:

Convert text to NatSQL: Which first names are used for professionals or owners but are not used as dog names? | breeds : breed_code , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select professionals.first_name from professionals  where  except_  @.@ is dogs.*

### Instruction:

Convert text to NatSQL: Find the first names that are used for professionals or owners but are not used as dog names. | breeds : breed_code , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select professionals.first_name from professionals  where  except_  @.@ is dogs.*
### Instruction:

Convert text to NatSQL: Which professional did not operate any treatment on dogs? List the professional's id, role and email. | breeds : breed_code , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select professionals.professional_id , professionals.role_code , professionals.email_address from professionals  where  except_  @.@ is treatments.*

### Instruction:

Convert text to NatSQL: Give me the id, role and email of the professionals who did not perform any treatment on dogs. | breeds : breed_code , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select professionals.professional_id , professionals.role_code , professionals.email_address from professionals  where  except_  @.@ is treatments.*
### Instruction:

Convert text to NatSQL: Which owner owns the most dogs? List the owner id, first name and last name. | breeds : breed_code , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select owners.owner_id , owners.first_name , owners.last_name from dogs  group by dogs.owner_id  order by count ( dogs.* )  desc limit 1

### Instruction:

Convert text to NatSQL: Return the owner id, first name and last name of the owner who has the most dogs. | breeds : breed_code , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select owners.owner_id , owners.first_name , owners.last_name from dogs  group by dogs.owner_id  order by count ( dogs.* )  desc limit 1
### Instruction:

Convert text to NatSQL: Which professionals have done at least two treatments? List the professional's id, role, and first name. | breeds : breed_code , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select professionals.professional_id , professionals.role_code , professionals.first_name from professionals  where  count ( treatments.* )  >= 2  group by professionals.professional_id

### Instruction:

Convert text to NatSQL: What are the id, role, and first name of the professionals who have performed two or more treatments? | breeds : breed_code , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select professionals.professional_id , professionals.role_code , professionals.first_name from professionals  where  count ( treatments.* )  >= 2  group by professionals.professional_id
### Instruction:

Convert text to NatSQL: What is the name of the breed with the most dogs? | breeds : breed_code , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select breeds.breed_name from breeds  group by breeds.breed_name  order by count ( dogs.* )  desc limit 1

### Instruction:

Convert text to NatSQL: Which breed do the most dogs have? Give me the breed name. | breeds : breed_code , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select breeds.breed_name from breeds  group by breeds.breed_name  order by count ( dogs.* )  desc limit 1
### Instruction:

Convert text to NatSQL: Which owner has paid for the most treatments on his or her dogs? List the owner id and last name. | breeds : breed_code , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select owners.owner_id , owners.last_name from treatments  group by owners.owner_id  order by count ( treatments.* )  desc limit 1

### Instruction:

Convert text to NatSQL: 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 , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select owners.owner_id , owners.last_name from treatments  group by owners.owner_id  order by count ( treatments.* )  desc limit 1
### Instruction:

Convert text to NatSQL: What is the description of the treatment type that costs the least money in total? | breeds : breed_code , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select treatment_types.treatment_type_description from treatment_types  group by treatment_types.treatment_type_code  order by sum ( treatments.cost_of_treatment )  asc limit 1

### Instruction:

Convert text to NatSQL: Give me the description of the treatment type whose total cost is the lowest. | breeds : breed_code , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select treatment_types.treatment_type_description from treatment_types  group by treatment_types.treatment_type_code  order by sum ( treatments.cost_of_treatment )  asc limit 1
### Instruction:

Convert text to NatSQL: Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code. | breeds : breed_code , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select owners.owner_id , owners.zip_code from owners  group by owners.owner_id  order by sum ( treatments.cost_of_treatment )  desc limit 1

### Instruction:

Convert text to NatSQL: 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 , breed_name | charges : charge_id , charge_type , charge_amount | sizes : size_code , size_description | treatment_types : treatment_type_code , treatment_type_description | owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment | dogs.owner_id = owners.owner_id | dogs.owner_id = owners.owner_id | dogs.size_code = sizes.size_code | dogs.breed_code = breeds.breed_code | treatments.dog_id = dogs.dog_id | treatments.professional_id = professionals.professional_id | treatments.treatment_type_code = treatment_types.treatment_type_code | 

### Response:

select owners.owner_id , owners.zip_code from owners  group by owners.owner_id  order by sum ( treatments.cost_of_treatment )  desc limit 1