aherntech/spider-syn huggingface dataset:
Database: chinook_1
Question: What is the average unit price of tracks that belong to Jazz genre?
Paraphrased question: What is the average unit price of tracks that belong to Jazz genre?
SQL: SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  "Jazz"
Database: chinook_1
Question: Find the average unit price of jazz tracks.
Paraphrased question: Find the average unit price of jazz tracks.
SQL: SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  "Jazz"
Database: chinook_1
Question: What is the first name and last name of the customer that has email "luisg@embraer.com.br"?
Paraphrased question: What is the full name of the customer that has email "luisg@embraer.com.br"?
SQL: SELECT FirstName ,  LastName FROM CUSTOMER WHERE Email  =  "luisg@embraer.com.br"
Database: chinook_1
Question: Find the full name of the customer with the email "luisg@embraer.com.br".
Paraphrased question: Find the full name of the customer with the email "luisg@embraer.com.br".
SQL: SELECT FirstName ,  LastName FROM CUSTOMER WHERE Email  =  "luisg@embraer.com.br"
Database: chinook_1
Question: How many customers have email that contains "gmail.com"?
Paraphrased question: How many clients have email that contains "gmail.com"?
SQL: SELECT COUNT(*) FROM CUSTOMER WHERE Email LIKE "%gmail.com%"
Database: chinook_1
Question: Count the number of customers that have an email containing "gmail.com".
Paraphrased question: Count the number of customers that have an email containing "gmail.com".
SQL: SELECT COUNT(*) FROM CUSTOMER WHERE Email LIKE "%gmail.com%"
Database: chinook_1
Question: What is the first name and last name employee helps the customer with first name Leonie?
Paraphrased question: What is the full name employee helps the customer with first name Leonie?
SQL: SELECT T2.FirstName ,  T2.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId  =  T2.EmployeeId WHERE T1.FirstName  =  "Leonie"
Database: chinook_1
Question: Find the full names of employees who help customers with the first name Leonie.
Paraphrased question: Find the full names of employees who help customers with the first name Leonie.
SQL: SELECT T2.FirstName ,  T2.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId  =  T2.EmployeeId WHERE T1.FirstName  =  "Leonie"
Database: chinook_1
Question: What city does the employee who helps the customer with postal code 70174 live in?
Paraphrased question: What city does the employee who helps the customer with postal code 70174 live in?
SQL: SELECT T2.City FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId  =  T2.EmployeeId WHERE T1.PostalCode  =  "70174"
Database: chinook_1
Question: Find the cities corresponding to employees who help customers with the postal code 70174.
Paraphrased question: Find the cities corresponding to employees who help customers with the postal code 70174.
SQL: SELECT T2.City FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId  =  T2.EmployeeId WHERE T1.PostalCode  =  "70174"
Database: chinook_1
Question: How many distinct cities does the employees live in?
Paraphrased question: How many different cities does the employees live in?
SQL: SELECT COUNT(DISTINCT city) FROM EMPLOYEE
Database: chinook_1
Question: Find the number of different cities that employees live in.
Paraphrased question: Find the number of different cities that employees live in.
SQL: SELECT COUNT(DISTINCT city) FROM EMPLOYEE
Database: chinook_1
Question: Find all invoice dates corresponding to customers with first name Astrid and last name Gruber.
Paraphrased question: Find all invoice dates corresponding to customers with first name Astrid and last name Gruber.
SQL: SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId  =  T2.CustomerId WHERE T1.FirstName  =  "Astrid" AND LastName  =  "Gruber"
Database: chinook_1
Question: What are the invoice dates for customers with the first name Astrid and the last name Gruber?
Paraphrased question: What are the invoice dates for customers with the first name Astrid and the last name Gruber?
SQL: SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId  =  T2.CustomerId WHERE T1.FirstName  =  "Astrid" AND LastName  =  "Gruber"
Database: chinook_1
Question: Find all the customer last names that do not have invoice totals larger than 20.
Paraphrased question: Find all the customer family names that do not have invoice totals larger than 20.
SQL: SELECT LastName FROM CUSTOMER EXCEPT SELECT T1.LastName FROM CUSTOMER AS T1 JOIN Invoice AS T2 ON T1.CustomerId  =  T2.CustomerId WHERE T2.total  >  20
Database: chinook_1
Question: What are the last names of customers without invoice totals exceeding 20?
Paraphrased question: What are the family names of customers without invoice totals exceeding 20?
SQL: SELECT LastName FROM CUSTOMER EXCEPT SELECT T1.LastName FROM CUSTOMER AS T1 JOIN Invoice AS T2 ON T1.CustomerId  =  T2.CustomerId WHERE T2.total  >  20
Database: chinook_1
Question: Find the first names of all customers that live in Brazil and have an invoice.
Paraphrased question: Find the forename of all customers that live in Brazil and have an invoice.
SQL: SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId  =  T2.CustomerId WHERE T1.country  =  "Brazil"
Database: chinook_1
Question: What are the different first names for customers from Brazil who have also had an invoice?
Paraphrased question: What are the different forename for customers from Brazil who have also had an invoice?
SQL: SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId  =  T2.CustomerId WHERE T1.country  =  "Brazil"
Database: chinook_1
Question: Find the address of all customers that live in Germany and have invoice.
Paraphrased question: Find the location of all customers that live in Germany and have invoice.
SQL: SELECT DISTINCT T1.Address FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId  =  T2.CustomerId WHERE T1.country  =  "Germany"
Database: chinook_1
Question: What are the addresses of customers living in Germany who have had an invoice?
Paraphrased question: What are the location of customers living in Germany who have had an invoice?
SQL: SELECT DISTINCT T1.Address FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId  =  T2.CustomerId WHERE T1.country  =  "Germany"
Database: chinook_1
Question: List the phone numbers of all employees.
Paraphrased question: List the telephone numbers of all employees.
SQL: SELECT Phone FROM EMPLOYEE
Database: chinook_1
Question: What are the phone numbers for each employee?
Paraphrased question: What are the mobile numbers for each employee?
SQL: SELECT Phone FROM EMPLOYEE
Database: chinook_1
Question: How many tracks are in the AAC audio file media type?
Paraphrased question: How many tracks are in the AAC audio file media type?
SQL: SELECT COUNT(*) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId  =  T2.MediaTypeId WHERE T1.Name  =  "AAC audio file"
Database: chinook_1
Question: Count the number of tracks that are of the media type "AAC audio file".
Paraphrased question: Count the number of tracks that are of the media type "AAC audio file".
SQL: SELECT COUNT(*) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId  =  T2.MediaTypeId WHERE T1.Name  =  "AAC audio file"
Database: chinook_1
Question: What is the average duration in milliseconds of tracks that belong to Latin or Pop genre?
Paraphrased question: What is the average duration in milliseconds of tracks that belong to Latin or Pop genre?
SQL: SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  "Latin" OR T1.Name  =  "Pop"
Database: chinook_1
Question: Find the average millisecond length of Latin and Pop tracks.
Paraphrased question: Find the average millisecond length of Latin and Pop tracks.
SQL: SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  "Latin" OR T1.Name  =  "Pop"
Database: chinook_1
Question: Please show the employee first names and ids of employees who serve at least 10 customers.
Paraphrased question: Please show the employee forename and ids of employees who serve at least 10 customers.
SQL: SELECT T1.FirstName ,  T1.SupportRepId FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId  =  T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*)  >=  10
Database: chinook_1
Question: What are the first names and support rep ids for employees serving 10 or more customers?
Paraphrased question: What are the forename and support rep ids for employees serving 10 or more customers?
SQL: SELECT T1.FirstName ,  T1.SupportRepId FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId  =  T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*)  >=  10
Database: chinook_1
Question: Please show the employee last names that serves no more than 20 customers.
Paraphrased question: Please show the employee family name that serves no more than 20 customers.
SQL: SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId  =  T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*)  <=  20
Database: chinook_1
Question: What are the last names of employees who serve at most 20 customers?
Paraphrased question: What are the family name of employees who serve at most 20 customers?
SQL: SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId  =  T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*)  <=  20
Database: chinook_1
Question: Please list all album titles in alphabetical order.
Paraphrased question: Please list all album names in alphabetical order.
SQL: SELECT Title FROM ALBUM ORDER BY Title
Database: chinook_1
Question: What are all the album titles, in alphabetical order?
Paraphrased question: What are all the album names, in alphabetical order?
SQL: SELECT Title FROM ALBUM ORDER BY Title
Database: chinook_1
Question: Please list the name and id of all artists that have at least 3 albums in alphabetical order.
Paraphrased question: Please list the name and id of all artists that have at least 3 albums in alphabetical order.
SQL: SELECT T2.Name ,  T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT(*)  >=  3 ORDER BY T2.Name
Database: chinook_1
Question: What are the names and ids of artists with 3 or more albums, listed in alphabetical order?
Paraphrased question: What are the names and ids of artists with 3 or more albums, listed in alphabetical order?
SQL: SELECT T2.Name ,  T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT(*)  >=  3 ORDER BY T2.Name
Database: chinook_1
Question: Find the names of artists that do not have any albums.
Paraphrased question: Find the names of artists that do not have any albums.
SQL: SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId
Database: chinook_1
Question: What are the names of artists who have not released any albums?
Paraphrased question: What are the names of artists who have not released any albums?
SQL: SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId
Database: chinook_1
Question: What is the average unit price of rock tracks?
Paraphrased question: What is the average unit price of rock tracks?
SQL: SELECT AVG(T2.UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  "Rock"
Database: chinook_1
Question: Find the average unit price of tracks from the Rock genre.
Paraphrased question: Find the average unit price of tracks from the Rock genre.
SQL: SELECT AVG(T2.UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  "Rock"
Database: chinook_1
Question: What are the duration of the longest and shortest pop tracks in milliseconds?
Paraphrased question: What are the duration of the longest and shortest pop tracks in milliseconds?
SQL: SELECT max(Milliseconds) ,  min(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  "Pop"
Database: chinook_1
Question: Find the maximum and minimum millisecond lengths of pop tracks.
Paraphrased question: Find the maximum and minimum millisecond lengths of pop tracks.
SQL: SELECT max(Milliseconds) ,  min(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  "Pop"
Database: chinook_1
Question: What are the birth dates of employees living in Edmonton?
Paraphrased question: What are the birthdays of employees living in Edmonton?
SQL: SELECT BirthDate FROM EMPLOYEE WHERE City  =  "Edmonton"
Database: chinook_1
Question: Find the birth dates corresponding to employees who live in the city of Edmonton.
Paraphrased question: Find the birthdays corresponding to employees who live in the city of Edmonton.
SQL: SELECT BirthDate FROM EMPLOYEE WHERE City  =  "Edmonton"
Database: chinook_1
Question: What are the distinct unit prices of all tracks?
Paraphrased question: What are the different unit prices of all tracks?
SQL: SELECT distinct UnitPrice FROM TRACK
Database: chinook_1
Question: Find the distinct unit prices for tracks.
Paraphrased question: Find the different unit prices for tracks.
SQL: SELECT distinct UnitPrice FROM TRACK
Database: chinook_1
Question: How many artists do not have any album?
Paraphrased question: How many artists do not have any album?
SQL: SELECT count(*) FROM ARTIST WHERE artistid NOT IN(SELECT artistid FROM ALBUM)
Database: chinook_1
Question: Cound the number of artists who have not released an album.
Paraphrased question: Cound the number of artists who have not released an album.
SQL: SELECT count(*) FROM ARTIST WHERE artistid NOT IN(SELECT artistid FROM ALBUM)
Database: chinook_1
Question: What are the album titles for albums containing both 'Reggae' and 'Rock' genre tracks?
Paraphrased question: What are the album names for albums containing both 'Reggae' and 'Rock' genre tracks?
SQL: SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId  =  T2.AlbumId JOIN Genre AS T3 ON T2.GenreID  =  T3.GenreID WHERE T3.Name  =  'Reggae' INTERSECT SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId  =  T2.AlbumId JOIN Genre AS T3 ON T2.GenreID  =  T3.GenreID WHERE T3.Name  =  'Rock'
Database: chinook_1
Question: Find the titles of albums that contain tracks of both the Reggae and Rock genres.
Paraphrased question: Find the names of albums that contain tracks of both the Reggae and Rock genres.
SQL: SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId  =  T2.AlbumId JOIN Genre AS T3 ON T2.GenreID  =  T3.GenreID WHERE T3.Name  =  'Reggae' INTERSECT SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId  =  T2.AlbumId JOIN Genre AS T3 ON T2.GenreID  =  T3.GenreID WHERE T3.Name  =  'Rock'
Database: insurance_fnol
Question: Find all the phone numbers.
Paraphrased question: Find all the telephone numbers.
SQL: SELECT customer_phone FROM available_policies
Database: insurance_fnol
Question: What are all the phone numbers?
Paraphrased question: What are all the telephone numbers?
SQL: SELECT customer_phone FROM available_policies
Database: insurance_fnol
Question: What are the customer phone numbers under the policy "Life Insurance"?
Paraphrased question: What are the client mobile numbers under the policy "Life Insurance"?
SQL: SELECT customer_phone FROM available_policies WHERE policy_type_code  =  "Life Insurance"
Database: insurance_fnol
Question: What are the phone numbers of customers using the policy with the code "Life Insurance"?
Paraphrased question: What are the mobile numbers of clients using the policy with the code "Life Insurance"?
SQL: SELECT customer_phone FROM available_policies WHERE policy_type_code  =  "Life Insurance"
Database: insurance_fnol
Question: Which policy type has the most records in the database?
Paraphrased question: Which insurance type has the most records in the database?
SQL: SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1
Database: insurance_fnol
Question: Which policy type appears most frequently in the available policies?
Paraphrased question: Which insurance type appears most frequently in the available policies?
SQL: SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1
Database: insurance_fnol
Question: What are all the customer phone numbers under the most popular policy type?
Paraphrased question: What are all the client telephone numbers under the most popular policy type?
SQL: SELECT customer_phone FROM available_policies WHERE policy_type_code  =  (SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1)
Database: insurance_fnol
Question: Find the phone numbers of customers using the most common policy type among the available policies.
Paraphrased question: Find the telephone numbers of clients using the most common policy type among the available policies.
SQL: SELECT customer_phone FROM available_policies WHERE policy_type_code  =  (SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1)
Database: insurance_fnol
Question: Find the policy type used by more than 4 customers.
Paraphrased question: Find the insurance category used by more than 4 customers.
SQL: SELECT policy_type_code FROM available_policies GROUP BY policy_type_code HAVING count(*)  >  4
Database: insurance_fnol
Question: Find the policy types more than 4 customers use. Show their type code.
Paraphrased question: Find the insurance categories more than 4 customers use. Show their category code.
SQL: SELECT policy_type_code FROM available_policies GROUP BY policy_type_code HAVING count(*)  >  4
Database: insurance_fnol
Question: Find the total and average amount of settlements.
Paraphrased question: Find the total and average amount of settlements.
SQL: SELECT sum(settlement_amount) ,  avg(settlement_amount) FROM settlements
Database: insurance_fnol
Question: Return the sum and average of all settlement amounts.
Paraphrased question: Return the sum and average of all settlement amounts.
SQL: SELECT sum(settlement_amount) ,  avg(settlement_amount) FROM settlements
Database: insurance_fnol
Question: Find the name of services that have been used for more than 2 times in first notification of loss.
Paraphrased question: Find the name of services that have been used for more than 2 times in first notification of loss.
SQL: SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id  =  t2.service_id GROUP BY t1.service_id HAVING count(*)  >  2
Database: insurance_fnol
Question: Which services have been used more than twice in first notification of loss? Return the service name.
Paraphrased question: Which services have been used more than twice in first notification of loss? Return the service name.
SQL: SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id  =  t2.service_id GROUP BY t1.service_id HAVING count(*)  >  2
Database: insurance_fnol
Question: What is the effective date of the claim that has the largest amount of total settlement?
Paraphrased question: What is the effective day of the claim that has the largest amount of total settlement?
SQL: SELECT t1.Effective_Date FROM claims AS t1 JOIN settlements AS t2 ON t1.claim_id  =  t2.claim_id GROUP BY t1.claim_id ORDER BY sum(t2.settlement_amount) DESC LIMIT 1
Database: insurance_fnol
Question: Find the claim that has the largest total settlement amount. Return the effective date of the claim.
Paraphrased question: Find the claim that has the largest total settlement amount. Return the effective day of the claim.
SQL: SELECT t1.Effective_Date FROM claims AS t1 JOIN settlements AS t2 ON t1.claim_id  =  t2.claim_id GROUP BY t1.claim_id ORDER BY sum(t2.settlement_amount) DESC LIMIT 1
Database: insurance_fnol
Question: How many policies are listed for the customer named "Dayana Robel"?
Paraphrased question: How many policies are listed for the client named "Dayana Robel"?
SQL: SELECT count(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.customer_name  =  "Dayana Robel"
Database: insurance_fnol
Question: Count the total number of policies used by the customer named "Dayana Robel".
Paraphrased question: Count the total number of policies used by the client named "Dayana Robel".
SQL: SELECT count(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.customer_name  =  "Dayana Robel"
Database: insurance_fnol
Question: What is the name of the customer who has the most policies listed?
Paraphrased question: What is the name of the client who has the most policies listed?
SQL: SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1
Database: insurance_fnol
Question: Which customer uses the most policies? Give me the customer name.
Paraphrased question: Which client uses the most policies? Give me the client name.
SQL: SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1
Database: insurance_fnol
Question: What are all the policy types of the customer named "Dayana Robel"?
Paraphrased question: What are all the insurance categories of the client named "Dayana Robel"?
SQL: SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id JOIN available_policies AS t3 ON t2.policy_id  =  t3.policy_id WHERE t1.customer_name  =  "Dayana Robel"
Database: insurance_fnol
Question: Tell me the types of the policy used by the customer named "Dayana Robel".
Paraphrased question: Tell me the categories of the insurance used by the client named "Dayana Robel".
SQL: SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id JOIN available_policies AS t3 ON t2.policy_id  =  t3.policy_id WHERE t1.customer_name  =  "Dayana Robel"
Database: insurance_fnol
Question: What are all the policy types of the customer that has the most policies listed?
Paraphrased question: What are all the insurance categories of the client that has the most policies listed?
SQL: SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id JOIN available_policies AS t3 ON t2.policy_id  =  t3.policy_id WHERE t1.customer_name  =  (SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1)
Database: insurance_fnol
Question: List all the policy types used by the customer enrolled in the most policies.
Paraphrased question: List all the insurance categories used by the client enrolled in the most policies.
SQL: SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id JOIN available_policies AS t3 ON t2.policy_id  =  t3.policy_id WHERE t1.customer_name  =  (SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1)
Database: insurance_fnol
Question: List all the services in the alphabetical order.
Paraphrased question: List all the services in the alphabetical order.
SQL: SELECT service_name FROM services ORDER BY service_name
Database: insurance_fnol
Question: Give me a list of all the service names sorted alphabetically.
Paraphrased question: Give me a list of all the service names sorted alphabetically.
SQL: SELECT service_name FROM services ORDER BY service_name
Database: insurance_fnol
Question: How many services are there?
Paraphrased question: How many services are there?
SQL: SELECT count(*) FROM services
Database: insurance_fnol
Question: Count the total number of available services.
Paraphrased question: Count the total number of available services.
SQL: SELECT count(*) FROM services
Database: insurance_fnol
Question: Find the names of users who do not have a first notification of loss record.
Paraphrased question: Find the names of users who do not have a first notification of loss record.
SQL: SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id
Database: insurance_fnol
Question: Which customers do not have a first notification of loss record? Give me the customer names.
Paraphrased question: Which users do not have a first notification of loss record? Give me the user names.
SQL: SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id
Database: insurance_fnol
Question: Find the names of customers who have used either the service "Close a policy" or the service "Upgrade a policy".
Paraphrased question: Find the names of users who have used either the service "Close a policy" or the service "Upgrade a policy".
SQL: SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id WHERE t3.service_name  =  "Close a policy" OR t3.service_name  =  "Upgrade a policy"
Database: insurance_fnol
Question: Which customers have used the service named "Close a policy" or "Upgrade a policy"? Give me the customer names.
Paraphrased question: Which users have used the service named "Close a policy" or "Upgrade a policy"? Give me the user names.
SQL: SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id WHERE t3.service_name  =  "Close a policy" OR t3.service_name  =  "Upgrade a policy"
Database: insurance_fnol
Question: Find the names of customers who have used both the service "Close a policy" and the service "New policy application".
Paraphrased question: Find the names of users who have used both the service "Close a policy" and the service "New policy application".
SQL: SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id WHERE t3.service_name  =  "Close a policy" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id WHERE t3.service_name  =  "New policy application"
Database: insurance_fnol
Question: Which customers have used both the service named "Close a policy" and the service named "Upgrade a policy"? Give me the customer names.
Paraphrased question: Which users have used both the service named "Close a policy" and the service named "Upgrade a policy"? Give me the user names.
SQL: SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id WHERE t3.service_name  =  "Close a policy" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id WHERE t3.service_name  =  "New policy application"
Database: insurance_fnol
Question: Find the IDs of customers whose name contains "Diana".
Paraphrased question: Find the IDs of users whose name contains "Diana".
SQL: SELECT customer_id FROM customers WHERE customer_name LIKE "%Diana%"
Database: insurance_fnol
Question: What are the IDs of customers who have "Diana" in part of their names?
Paraphrased question: What are the IDs of users who have "Diana" in part of their names?
SQL: SELECT customer_id FROM customers WHERE customer_name LIKE "%Diana%"
Database: insurance_fnol
Question: What are the maximum and minimum settlement amount on record?
Paraphrased question: What are the maximum and minimum settlement amount on record?
SQL: SELECT max(settlement_amount) ,  min(settlement_amount) FROM settlements
Database: insurance_fnol
Question: Find the maximum and minimum settlement amount.
Paraphrased question: Find the maximum and minimum settlement amount.
SQL: SELECT max(settlement_amount) ,  min(settlement_amount) FROM settlements
Database: insurance_fnol
Question: List all the customers in increasing order of IDs.
Paraphrased question: List all the users in increasing order of IDs.
SQL: SELECT customer_id ,  customer_name FROM customers ORDER BY customer_id ASC
Database: insurance_fnol
Question: What is the ordered list of customer ids?
Paraphrased question: What is the ordered list of user ids?
SQL: SELECT customer_id ,  customer_name FROM customers ORDER BY customer_id ASC
Database: insurance_fnol
Question: Retrieve the open and close dates of all the policies associated with the customer whose name contains "Diana"
Paraphrased question: Retrieve the open and close dates of all the policies associated with the customer whose name contains "Diana"
SQL: SELECT t2.date_opened ,  t2.date_closed FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.customer_name LIKE "%Diana%"
Database: insurance_fnol
Question: What are the open and close dates of all the policies used by the customer who have "Diana" in part of their names?
Paraphrased question: What are the open and close dates of all the policies used by the customer who have "Diana" in part of their names?
SQL: SELECT t2.date_opened ,  t2.date_closed FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.customer_name LIKE "%Diana%"
Database: medicine_enzyme_interaction
Question: How many kinds of enzymes are there?
Paraphrased question: How many kinds of enzymes are there?
SQL: SELECT count(*) FROM enzyme
Database: medicine_enzyme_interaction
Question: What is the total count of enzymes?
Paraphrased question: What is the total count of enzymes?
SQL: SELECT count(*) FROM enzyme
Database: medicine_enzyme_interaction
Question: List the name of enzymes in descending lexicographical order.
Paraphrased question: List the name of enzymes in descending lexicographical order.
SQL: SELECT name FROM enzyme ORDER BY name DESC
Database: medicine_enzyme_interaction
Question: What are the names of enzymes in descending order?
Paraphrased question: What are the names of enzymes in descending order?
SQL: SELECT name FROM enzyme ORDER BY name DESC
Database: medicine_enzyme_interaction
Question: List the names and the locations that the enzymes can make an effect.
Paraphrased question: List the names and the position that the enzymes can make an effect.
SQL: SELECT name ,  LOCATION FROM enzyme
Database: medicine_enzyme_interaction
Question: What are the names and locations of all enzymes listed?
Paraphrased question: What are the names and position of all enzymes listed?
SQL: SELECT name ,  LOCATION FROM enzyme
Database: medicine_enzyme_interaction
Question: What is the maximum Online Mendelian Inheritance in Man (OMIM) value of the enzymes?
Paraphrased question: What is the maximum Online Mendelian Inheritance in Man (OMIM) value of the enzymes?
SQL: SELECT max(OMIM) FROM enzyme
Database: medicine_enzyme_interaction
Question: What is the maximum OMIM value in the database?
Paraphrased question: What is the maximum OMIM value in the database?
SQL: SELECT max(OMIM) FROM enzyme
Database: medicine_enzyme_interaction
Question: What is the product, chromosome and porphyria related to the enzymes which take effect at the location 'Cytosol'?
Paraphrased question: What is the goods, chromosome and porphyria related to the enzymes which take effect at the location 'Cytosol'?
SQL: SELECT product ,  chromosome ,  porphyria FROM enzyme WHERE LOCATION  =  'Cytosol'
Database: medicine_enzyme_interaction
Question: What is the product, chromosome, and porphyria of the enzymes located at 'Cytosol'?
Paraphrased question: What is the goods, chromosome, and porphyria of the enzymes located at 'Cytosol'?
SQL: SELECT product ,  chromosome ,  porphyria FROM enzyme WHERE LOCATION  =  'Cytosol'
Database: medicine_enzyme_interaction
Question: What are the names of enzymes who does not produce 'Heme'?
Paraphrased question: What are the names of enzymes who does not produce 'Heme'?
SQL: SELECT name FROM enzyme WHERE product != 'Heme'
Database: medicine_enzyme_interaction
Question: What are the names of enzymes whose product is not 'Heme'?
Paraphrased question: What are the names of enzymes whose goods is not 'Heme'?
SQL: SELECT name FROM enzyme WHERE product != 'Heme'
Database: medicine_enzyme_interaction
Question: What are the names and trade names of the medicines which has 'Yes' value in the FDA record?
Paraphrased question: What are the names and trade names of the medicines which has 'Yes' value in the FDA record?
SQL: SELECT name ,  trade_name FROM medicine WHERE FDA_approved  =  'Yes'
Database: medicine_enzyme_interaction
Question: What are the names and trade names of the medcines that are FDA approved?
Paraphrased question: What are the names and trade names of the medcines that are FDA approved?
SQL: SELECT name ,  trade_name FROM medicine WHERE FDA_approved  =  'Yes'
Database: medicine_enzyme_interaction
Question: What are the names of enzymes in the medicine named 'Amisulpride' that can serve as an 'inhibitor'?
Paraphrased question: What are the names of enzymes in the medicine named 'Amisulpride' that can serve as an 'inhibitor'?
SQL: SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id  =  T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id  =  T3.id WHERE T3.name  =  'Amisulpride' AND T2.interaction_type  =  'inhibitor'
Database: medicine_enzyme_interaction
Question: What are the names of the enzymes used in the medicine  Amisulpride that acts as inhibitors?
Paraphrased question: What are the names of the enzymes used in the medicine  Amisulpride that acts as inhibitors?
SQL: SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id  =  T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id  =  T3.id WHERE T3.name  =  'Amisulpride' AND T2.interaction_type  =  'inhibitor'
Database: medicine_enzyme_interaction
Question: What are the ids and names of the medicine that can interact with two or more enzymes?
Paraphrased question: What are the ids and names of the medicine that can interact with two or more enzymes?
SQL: SELECT T1.id ,  T1.Name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id HAVING count(*)  >=  2
Database: medicine_enzyme_interaction
Question: For every medicine id, what are the names of the medicines that can interact with more than one enzyme?
Paraphrased question: For every medicine id, what are the names of the medicines that can interact with more than one enzyme?
SQL: SELECT T1.id ,  T1.Name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id HAVING count(*)  >=  2
Database: medicine_enzyme_interaction
Question: What are the ids, names and FDA approval status of medicines in descending order of the number of enzymes that it can interact with.
Paraphrased question: What are the ids, names and FDA approval status of medicines in descending order of the number of enzymes that it can interact with.
SQL: SELECT T1.id ,  T1.Name ,  T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id ORDER BY count(*) DESC
Database: medicine_enzyme_interaction
Question: What are the ids, names, and FDA approval status for medicines ordered by descending number of possible enzyme interactions?
Paraphrased question: What are the ids, names, and FDA approval status for medicines ordered by descending number of possible enzyme interactions?
SQL: SELECT T1.id ,  T1.Name ,  T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id ORDER BY count(*) DESC
Database: medicine_enzyme_interaction
Question: What is the id and name of the enzyme with most number of medicines that can interact as 'activator'?
Paraphrased question: What is the id and name of the enzyme with most number of medicines that can interact as 'activator'?
SQL: SELECT T1.id ,  T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id  =  T2.enzyme_id WHERE T2.interaction_type  =  'activitor' GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1
Database: medicine_enzyme_interaction
Question: What is the id and name of the enzyme that can interact with the most medicines as an activator?
Paraphrased question: What is the id and name of the enzyme that can interact with the most medicines as an activator?
SQL: SELECT T1.id ,  T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id  =  T2.enzyme_id WHERE T2.interaction_type  =  'activitor' GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1
Database: medicine_enzyme_interaction
Question: What is the interaction type of the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'?
Paraphrased question: What is the interplay category of the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'?
SQL: SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id  =  T2.id JOIN enzyme AS T3 ON T1.enzyme_id  =  T3.id WHERE T3.name  =  'ALA synthase' AND T2.name  =  'Aripiprazole'
Database: medicine_enzyme_interaction
Question: What is the type of interaction for the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'?
Paraphrased question: What is the category of interplay for the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'?
SQL: SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id  =  T2.id JOIN enzyme AS T3 ON T1.enzyme_id  =  T3.id WHERE T3.name  =  'ALA synthase' AND T2.name  =  'Aripiprazole'
Database: medicine_enzyme_interaction
Question: What is the most common interaction type between enzymes and medicine? And how many are there?
Paraphrased question: What is the most common interplay category between enzymes and medicine? And how many are there?
SQL: SELECT interaction_type ,  count(*) FROM medicine_enzyme_interaction GROUP BY interaction_type ORDER BY count(*) DESC LIMIT 1
Database: medicine_enzyme_interaction
Question: What are the most common types of interactions between enzymes and medicine, and how many types are there?
Paraphrased question: What are the most common categories of interplay between enzymes and medicine, and how many categories are there?
SQL: SELECT interaction_type ,  count(*) FROM medicine_enzyme_interaction GROUP BY interaction_type ORDER BY count(*) DESC LIMIT 1
Database: medicine_enzyme_interaction
Question: How many medicines have the FDA approval status 'No' ?
Paraphrased question: How many medicines have the FDA approval status 'No' ?
SQL: SELECT count(*) FROM medicine WHERE FDA_approved  =  'No'
Database: medicine_enzyme_interaction
Question: How many medicines were not approved by the FDA?
Paraphrased question: How many medicines were not approved by the FDA?
SQL: SELECT count(*) FROM medicine WHERE FDA_approved  =  'No'
Database: medicine_enzyme_interaction
Question: How many enzymes do not have any interactions?
Paraphrased question: How many enzymes do not have any interactions?
SQL: SELECT count(*) FROM enzyme WHERE id NOT IN ( SELECT enzyme_id FROM medicine_enzyme_interaction );
Database: medicine_enzyme_interaction
Question: What is the count of enzymes without any interactions?
Paraphrased question: What is the count of enzymes without any interactions?
SQL: SELECT count(*) FROM enzyme WHERE id NOT IN ( SELECT enzyme_id FROM medicine_enzyme_interaction );
Database: medicine_enzyme_interaction
Question: What is the id and trade name of the medicines can interact with at least 3 enzymes?
Paraphrased question: What is the id and trade name of the medicines can interact with at least 3 enzymes?
SQL: SELECT T1.id ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id HAVING COUNT(*)  >=  3
Database: medicine_enzyme_interaction
Question: What are the ids and trade names of the medicine that can interact with at least 3 enzymes?
Paraphrased question: What are the ids and trade names of the medicine that can interact with at least 3 enzymes?
SQL: SELECT T1.id ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id HAVING COUNT(*)  >=  3
Database: medicine_enzyme_interaction
Question: What are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction?
Paraphrased question: What are the different name, position and goods of the enzymes which has any 'inhibitor' interaction?
SQL: SELECT DISTINCT T1.name ,  T1.location ,  T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id  =  T1.id WHERE T2.interaction_type  =  'inhibitor'
Database: medicine_enzyme_interaction
Question: What are the different names, locations, and products of the enzymes that are capable inhibitor interactions?
Paraphrased question: What are the different names, positions, and goods of the enzymes that are capable inhibitor interactions?
SQL: SELECT DISTINCT T1.name ,  T1.location ,  T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id  =  T1.id WHERE T2.interaction_type  =  'inhibitor'
Database: medicine_enzyme_interaction
Question: List the medicine name and trade name which can both interact as 'inhibitor' and 'activitor' with enzymes.
Paraphrased question: List the medicine name and trade name which can both interact as 'inhibitor' and 'activitor' with enzymes.
SQL: SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id WHERE interaction_type  =  'inhibitor' INTERSECT SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id WHERE interaction_type  =  'activitor'
Database: medicine_enzyme_interaction
Question: What are the medicine and trade names that can interact as an inhibitor and activitor with enzymes?
Paraphrased question: What are the medicine and trade names that can interact as an inhibitor and activitor with enzymes?
SQL: SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id WHERE interaction_type  =  'inhibitor' INTERSECT SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id WHERE interaction_type  =  'activitor'
Database: medicine_enzyme_interaction
Question: Show the medicine names and trade names that cannot interact with the enzyme with product 'Heme'.
Paraphrased question: Show the medicine names and trade names that cannot interact with the enzyme with product 'Heme'.
SQL: SELECT name ,  trade_name FROM medicine EXCEPT SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id JOIN enzyme AS T3 ON T3.id  =  T2.enzyme_id WHERE T3.product  =  'Protoporphyrinogen IX'
Database: medicine_enzyme_interaction
Question: What are the medicine and trade names that cannot interact with the enzyme with the product 'Heme'?
Paraphrased question: What are the medicine and trade names that cannot interact with the enzyme with the product 'Heme'?
SQL: SELECT name ,  trade_name FROM medicine EXCEPT SELECT T1.name ,  T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id JOIN enzyme AS T3 ON T3.id  =  T2.enzyme_id WHERE T3.product  =  'Protoporphyrinogen IX'
Database: medicine_enzyme_interaction
Question: How many distinct FDA approval statuses are there for the medicines?
Paraphrased question: How many different FDA approval statuses are there for the medicines?
SQL: SELECT count(DISTINCT FDA_approved) FROM medicine
Database: medicine_enzyme_interaction
Question: How many different FDA approval statuses exist for medicines?
Paraphrased question: How many different FDA approval statuses exist for medicines?
SQL: SELECT count(DISTINCT FDA_approved) FROM medicine
Database: medicine_enzyme_interaction
Question: Which enzyme names have the substring "ALA"?
Paraphrased question: Which enzyme names have the substring "ALA"?
SQL: SELECT name FROM enzyme WHERE name LIKE "%ALA%"
Database: medicine_enzyme_interaction
Question: What are the names of enzymes that include the string 'ALA'?
Paraphrased question: What are the names of enzymes that include the string 'ALA'?
SQL: SELECT name FROM enzyme WHERE name LIKE "%ALA%"
Database: medicine_enzyme_interaction
Question: find the number of medicines offered by each trade.
Paraphrased question: find the number of medicines offered by each trade.
SQL: SELECT trade_name ,  count(*) FROM medicine GROUP BY trade_name
Database: medicine_enzyme_interaction
Question: How many medicines are offered by each trade name?
Paraphrased question: How many medicines are offered by each trade name?
SQL: SELECT trade_name ,  count(*) FROM medicine GROUP BY trade_name
Database: university_basketball
Question: List all schools and their nicknames in the order of founded year.
Paraphrased question: List all schools and their monicker in the order of founded year.
SQL: SELECT school ,  nickname FROM university ORDER BY founded
Database: university_basketball
Question: What are the different schools and their nicknames, ordered by their founding years?
Paraphrased question: What are the different schools and their monicker, ordered by their founding years?
SQL: SELECT school ,  nickname FROM university ORDER BY founded
Database: university_basketball
Question: List all public schools and their locations.
Paraphrased question: List all public schools and their addresses.
SQL: SELECT school ,  LOCATION FROM university WHERE affiliation  =  'Public'
Database: university_basketball
Question: What are the public schools and what are their locations?
Paraphrased question: What are the public schools and what are their addresses?
SQL: SELECT school ,  LOCATION FROM university WHERE affiliation  =  'Public'
Database: university_basketball
Question: When was the school with the largest enrollment founded?
Paraphrased question: When was the school with the largest enrollment established?
SQL: SELECT founded FROM university ORDER BY enrollment DESC LIMIT 1
Database: university_basketball
Question: Return the founded year for the school with the largest enrollment.
Paraphrased question: Return the established year for the school with the largest enrollment.
SQL: SELECT founded FROM university ORDER BY enrollment DESC LIMIT 1
Database: university_basketball
Question: Find the founded year of the newest non public school.
Paraphrased question: Find the established year of the newest non public school.
SQL: SELECT founded FROM university WHERE affiliation != 'Public' ORDER BY founded DESC LIMIT 1
Database: university_basketball
Question: What is the founded year of the non public school that was founded most recently?
Paraphrased question: What is the established year of the non public school that was founded most recently?
SQL: SELECT founded FROM university WHERE affiliation != 'Public' ORDER BY founded DESC LIMIT 1
Database: university_basketball
Question: How many schools are in the basketball match?
Paraphrased question: How many schools are in the basketball match?
SQL: SELECT count(DISTINCT school_id) FROM basketball_match
Database: university_basketball
Question: Count the number of schools that have had basketball matches.
Paraphrased question: Count the number of schools that have had basketball matches.
SQL: SELECT count(DISTINCT school_id) FROM basketball_match
Database: university_basketball
Question: What is the highest acc percent score in the competition?
Paraphrased question: What is the highest acc percent score in the competition?
SQL: SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1
Database: university_basketball
Question: Return the highest acc percent across all basketball matches.
Paraphrased question: Return the highest acc percent across all basketball matches.
SQL: SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1