aherntech/spider-syn huggingface dataset:
Database: dog_kennels
Question: List pairs of the owner's first name and the dogs's name.
Paraphrased question: List pairs of the guardians's given name and the puppies's name.
SQL: SELECT T1.first_name ,  T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id
Database: dog_kennels
Question: What are each owner's first name and their dogs's name?
Paraphrased question: What are each guardians's given name and their puppies's name?
SQL: SELECT T1.first_name ,  T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id
Database: dog_kennels
Question: List the names of the dogs of the rarest breed and the treatment dates of them.
Paraphrased question: List the names of the puppies of the rarest breed and the health care dates of them.
SQL: SELECT T1.name ,  T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id  =  T2.dog_id WHERE T1.breed_code  =  ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )
Database: dog_kennels
Question: Which dogs are of the rarest breed? Show their names and treatment dates.
Paraphrased question: Which dogs are of the rarest breed? Show their names and medical care dates.
SQL: SELECT T1.name ,  T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id  =  T2.dog_id WHERE T1.breed_code  =  ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )
Database: dog_kennels
Question: Which dogs are owned by someone who lives in Virginia? List the owner's first name and the dog's name.
Paraphrased question: Which dogs are owned by someone who lives in Virginia? List the guardian's first name and the dog's name.
SQL: SELECT T1.first_name ,  T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id WHERE T1.state  =  'Virginia'
Database: dog_kennels
Question: Find the first names of owners living in Virginia and the names of dogs they own.
Paraphrased question: Find the given names of guardians living in Virginia and the names of dogs they own.
SQL: SELECT T1.first_name ,  T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id WHERE T1.state  =  'Virginia'
Database: dog_kennels
Question: What are the arriving date and the departing date of the dogs who have gone through a treatment?
Paraphrased question: What are the arriving and leaving date of the puppies who have gone through a medical care?
SQL: SELECT DISTINCT T1.date_arrived ,  T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id  =  T2.dog_id
Database: dog_kennels
Question: Find the arriving date and the departing date of the dogs that received a treatment.
Paraphrased question: Find the arriving and leaving date of the puppies that received a health care.
SQL: SELECT DISTINCT T1.date_arrived ,  T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id  =  T2.dog_id
Database: dog_kennels
Question: List the last name of the owner owning the youngest dog.
Paraphrased question: List the family name of the guardian owning the youngest puppy.
SQL: SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id WHERE T2.age  =  ( SELECT max(age) FROM Dogs )
Database: dog_kennels
Question: Who owns the youngest dog? Give me his or her last name.
Paraphrased question: Who owns the youngest puppy? Give me his or her last name.
SQL: SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id WHERE T2.age  =  ( SELECT max(age) FROM Dogs )
Database: dog_kennels
Question: List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin.
Paraphrased question: List the emails of the veterinarians who live in the state of Hawaii or the state of Wisconsin.
SQL: SELECT email_address FROM Professionals WHERE state  =  'Hawaii' OR state  =  'Wisconsin'
Database: dog_kennels
Question: What are the emails of the professionals living in either the state of Hawaii or the state of Wisconsin?
Paraphrased question: What are the emails of the veterinarians living in either the state of Hawaii or the state of Wisconsin?
SQL: SELECT email_address FROM Professionals WHERE state  =  'Hawaii' OR state  =  'Wisconsin'
Database: dog_kennels
Question: What are the arriving date and the departing date of all the dogs?
Paraphrased question: What are the arriving and leaving date of all the puppies?
SQL: SELECT date_arrived ,  date_departed FROM Dogs
Database: dog_kennels
Question: List the arrival date and the departure date for all the dogs.
Paraphrased question: List the arriving and leaving date for all the puppies.
SQL: SELECT date_arrived ,  date_departed FROM Dogs
Database: dog_kennels
Question: How many dogs went through any treatments?
Paraphrased question: How many puppies went through any health cares?
SQL: SELECT count(DISTINCT dog_id) FROM Treatments
Database: dog_kennels
Question: Count the number of dogs that went through a treatment.
Paraphrased question: Count the number of puppies that went through a health care.
SQL: SELECT count(DISTINCT dog_id) FROM Treatments
Database: dog_kennels
Question: How many professionals have performed any treatment to dogs?
Paraphrased question: How many veterinarians have performed any health care to puppies?
SQL: SELECT count(DISTINCT professional_id) FROM Treatments
Database: dog_kennels
Question: Find the number of professionals who have ever treated dogs.
Paraphrased question: Find the number of veterinarians who have ever treated puppies.
SQL: SELECT count(DISTINCT professional_id) FROM Treatments
Database: dog_kennels
Question: Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state.
Paraphrased question: Which veterinarians live in a city containing the substring 'West'? List his or her role, street, town and state.
SQL: SELECT role_code ,  street ,  city ,  state FROM professionals WHERE city LIKE '%West%'
Database: dog_kennels
Question: Find the role, street, city and state of the professionals living in a city that contains the substring 'West'.
Paraphrased question: Find the role, street, town and state of the veterinarians living in a town that contains the substring 'West'.
SQL: SELECT role_code ,  street ,  city ,  state FROM professionals WHERE city LIKE '%West%'
Database: dog_kennels
Question: Which owners live in the state whose name contains the substring 'North'? List his first name, last name and email.
Paraphrased question: Which guardians live in the state whose name contains the substring 'North'? List his given name, family name and email.
SQL: SELECT first_name ,  last_name ,  email_address FROM Owners WHERE state LIKE '%North%'
Database: dog_kennels
Question: Return the first name, last name and email of the owners living in a state whose name contains the substring 'North'.
Paraphrased question: Return the given name, family name and email of the guardians living in a state whose name contains the substring 'North'.
SQL: SELECT first_name ,  last_name ,  email_address FROM Owners WHERE state LIKE '%North%'
Database: dog_kennels
Question: How many dogs have an age below the average?
Paraphrased question: How many puppies have an age below the average?
SQL: SELECT count(*) FROM Dogs WHERE age  <  ( SELECT avg(age) FROM Dogs )
Database: dog_kennels
Question: Count the number of dogs of an age below the average.
Paraphrased question: Count the number of puppies of an age below the average.
SQL: SELECT count(*) FROM Dogs WHERE age  <  ( SELECT avg(age) FROM Dogs )
Database: dog_kennels
Question: How much does the most recent treatment cost?
Paraphrased question: How much does the most recent health-care cost?
SQL: SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1
Database: dog_kennels
Question: Show me the cost of the most recently performed treatment.
Paraphrased question: Show me the cost of the most recently performed medical care.
SQL: SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1
Database: dog_kennels
Question: How many dogs have not gone through any treatment?
Paraphrased question: How many puppies have not gone through any medical care?
SQL: SELECT count(*) FROM Dogs WHERE dog_id NOT IN ( SELECT dog_id FROM Treatments )
Database: dog_kennels
Question: Tell me the number of dogs that have received any treatment.
Paraphrased question: Tell me the number of puppies that have received any health-care.
SQL: SELECT count(*) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )
Database: dog_kennels
Question: How many owners temporarily do not have any dogs?
Paraphrased question: How many guardians temporarily do not have any puppies?
SQL: SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )
Database: dog_kennels
Question: Find the number of owners who do not own any dogs at this moment.
Paraphrased question: Find the number of guardians who do not own any puppies at this moment.
SQL: SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )
Database: dog_kennels
Question: How many professionals did not operate any treatment on dogs?
Paraphrased question: How many veterinarians did not operate any treatment on puppies?
SQL: SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments )
Database: dog_kennels
Question: Find the number of professionals who have not treated any dogs.
Paraphrased question: Find the number of veterinarians who have not treated any puppies.
SQL: SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments )
Database: dog_kennels
Question: List the dog name, age and weight of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no.
Paraphrased question: List the puppy name, age and weight of the puppies who have been abandoned? 1 stands for yes, and 0 stands for no.
SQL: SELECT name ,  age ,  weight FROM Dogs WHERE abandoned_yn  =  1
Database: dog_kennels
Question: What are the dog name, age and weight of the dogs that were abandoned? Note that 1 stands for yes, and 0 stands for no in the tables.
Paraphrased question: What are the puppy name, age and weight of the puppies that were abandoned? Note that 1 stands for yes, and 0 stands for no in the tables.
SQL: SELECT name ,  age ,  weight FROM Dogs WHERE abandoned_yn  =  1
Database: dog_kennels
Question: What is the average age of all the dogs?
Paraphrased question: What is the average age of all the puppies?
SQL: SELECT avg(age) FROM Dogs
Database: dog_kennels
Question: Compute the average age of all the dogs.
Paraphrased question: Compute the average age of all the puppies.
SQL: SELECT avg(age) FROM Dogs
Database: dog_kennels
Question: What is the age of the oldest dog?
Paraphrased question: What is the age of the oldest puppy?
SQL: SELECT max(age) FROM Dogs
Database: dog_kennels
Question: Tell me the age of the oldest dog.
Paraphrased question: Tell me the age of the oldest puppy.
SQL: SELECT max(age) FROM Dogs
Database: dog_kennels
Question: How much does each charge type costs? List both charge type and amount.
Paraphrased question: How much does each charge type costs? List both charge type and amount.
SQL: SELECT charge_type ,  charge_amount FROM Charges
Database: dog_kennels
Question: List each charge type and its amount.
Paraphrased question: List each charge type and its amount.
SQL: SELECT charge_type ,  charge_amount FROM Charges
Database: dog_kennels
Question: How much does the most expensive charge type costs?
Paraphrased question: How much does the most expensive charge type costs?
SQL: SELECT max(charge_amount) FROM Charges
Database: dog_kennels
Question: What is the charge amount of the most expensive charge type?
Paraphrased question: What is the charge amount of the most expensive charge type?
SQL: SELECT max(charge_amount) FROM Charges
Database: dog_kennels
Question: List the email, cell phone and home phone of all the professionals.
Paraphrased question: List the email, cell phone and home phone of all the veterinarians.
SQL: SELECT email_address ,  cell_number ,  home_phone FROM professionals
Database: dog_kennels
Question: What are the email, cell phone and home phone of each professional?
Paraphrased question: What are the email, cell phone and home phone of each veterinarian?
SQL: SELECT email_address ,  cell_number ,  home_phone FROM professionals
Database: dog_kennels
Question: What are all the possible breed type and size type combinations?
Paraphrased question: What are all the possible breed type and size type combinations?
SQL: SELECT DISTINCT breed_code ,  size_code FROM dogs
Database: dog_kennels
Question: Find the distinct breed type and size type combinations for dogs.
Paraphrased question: Find the distinct breed type and size type combinations for puppies.
SQL: SELECT DISTINCT breed_code ,  size_code FROM dogs
Database: dog_kennels
Question: List the first name of all the professionals along with the description of the treatment they have done.
Paraphrased question: List the given name of all the veterinarians along with the description of the medical care they have done.
SQL: SELECT DISTINCT T1.first_name ,  T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code  =  T3.treatment_type_code
Database: dog_kennels
Question: What are each professional's first name and description of the treatment they have performed?
Paraphrased question: What are each veterinarian's first name and describing details of the health-care they have performed?
SQL: SELECT DISTINCT T1.first_name ,  T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code  =  T3.treatment_type_code
Database: singer
Question: How many singers are there?
Paraphrased question: How many vocalists are there?
SQL: SELECT count(*) FROM singer
Database: singer
Question: What is the count of singers?
Paraphrased question: What is the count of  musicians?
SQL: SELECT count(*) FROM singer
Database: singer
Question: List the name of singers in ascending order of net worth.
Paraphrased question: List the name of vocalists in ascending order of net worth.
SQL: SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC
Database: singer
Question: What are the names of singers ordered by ascending net worth?
Paraphrased question: What are the names of  musicians ordered by ascending net worth?
SQL: SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC
Database: singer
Question: What are the birth year and citizenship of singers?
Paraphrased question: What are the birth year and country of vocalists?
SQL: SELECT Birth_Year ,  Citizenship FROM singer
Database: singer
Question: What are the birth years and citizenships of the singers?
Paraphrased question: What are the birth years and country of the musicians?
SQL: SELECT Birth_Year ,  Citizenship FROM singer
Database: singer
Question: List the name of singers whose citizenship is not "France".
Paraphrased question: List the name of vocalists whose citizenship is not "France".
SQL: SELECT Name FROM singer WHERE Citizenship != "France"
Database: singer
Question: What are the names of the singers who are not French citizens?
Paraphrased question: What are the names of the musicians who are not French citizens?
SQL: SELECT Name FROM singer WHERE Citizenship != "France"
Database: singer
Question: Show the name of singers whose birth year is either 1948 or 1949?
Paraphrased question: Show the name of vocalists whose birth year is either 1948 or 1949?
SQL: SELECT Name FROM singer WHERE Birth_Year  =  1948 OR Birth_Year  =  1949
Database: singer
Question: What are the names of the singers whose birth years are either 1948 or 1949?
Paraphrased question: What are the names of the musicians whose birth years are either 1948 or 1949?
SQL: SELECT Name FROM singer WHERE Birth_Year  =  1948 OR Birth_Year  =  1949
Database: singer
Question: What is the name of the singer with the largest net worth?
Paraphrased question: What is the name of the vocalist with the largest net worth?
SQL: SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1
Database: singer
Question: What is the name of the singer who is worth the most?
Paraphrased question: What is the name of the vocalist who is worth the most?
SQL: SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1
Database: singer
Question: Show different citizenship of singers and the number of singers of each citizenship.
Paraphrased question: Show different citizenship of vocalists and the number of vocalists of each country.
SQL: SELECT Citizenship ,  COUNT(*) FROM singer GROUP BY Citizenship
Database: singer
Question: For each citizenship, how many singers are from that country?
Paraphrased question: For each country, how many musicians are from that country?
SQL: SELECT Citizenship ,  COUNT(*) FROM singer GROUP BY Citizenship
Database: singer
Question: Please show the most common citizenship of singers.
Paraphrased question: Please show the most common country of vocalists.
SQL: SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1
Database: singer
Question: What is the msot common singer citizenship?
Paraphrased question: What is the msot common vocalist country?
SQL: SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1
Database: singer
Question: Show different citizenships and the maximum net worth of singers of each citizenship.
Paraphrased question: Show different country and the maximum net worth of musicians of each country.
SQL: SELECT Citizenship ,  max(Net_Worth_Millions) FROM singer GROUP BY Citizenship
Database: singer
Question: For each citizenship, what is the maximum net worth?
Paraphrased question: For each country, what is the maximum net worth?
SQL: SELECT Citizenship ,  max(Net_Worth_Millions) FROM singer GROUP BY Citizenship
Database: singer
Question: Show titles of songs and names of singers.
Paraphrased question: Show names of songs and names of musicians.
SQL: SELECT T2.Title ,  T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID
Database: singer
Question: What are the song titles and singer names?
Paraphrased question: What are the song names and vocalist names?
SQL: SELECT T2.Title ,  T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID
Database: singer
Question: Show distinct names of singers that have songs with sales more than 300000.
Paraphrased question: Show distinct names of musicians that have songs with sales more than 300000.
SQL: SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID WHERE T2.Sales  >  300000
Database: singer
Question: what are the different names of the singers that have sales more than 300000?
Paraphrased question: what are the different names of the vocalists that have sales more than 300000?
SQL: SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID WHERE T2.Sales  >  300000
Database: singer
Question: Show the names of singers that have more than one song.
Paraphrased question: Show the names of musicians that have more than one song.
SQL: SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*)  >  1
Database: singer
Question: What are the names of the singers that have more than one songs?
Paraphrased question: What are the names of the vocalists that have more than one songs?
SQL: SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*)  >  1
Database: singer
Question: Show the names of singers and the total sales of their songs.
Paraphrased question: Show the names of musicians and the total sales of their songs.
SQL: SELECT T1.Name ,  sum(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID GROUP BY T1.Name
Database: singer
Question: For each singer name, what is the total sales for their songs?
Paraphrased question: For each vocalist name, what is the total sales for their songs?
SQL: SELECT T1.Name ,  sum(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID GROUP BY T1.Name
Database: singer
Question: List the name of singers that do not have any song.
Paraphrased question: List the name of musicians that do not have any song.
SQL: SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song)
Database: singer
Question: What is the name of every sing that does not have any song?
Paraphrased question: What is the name of every vocalist that does not have any song?
SQL: SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song)
Database: singer
Question: Show the citizenship shared by singers with birth year before 1945 and after 1955.
Paraphrased question: Show the citizenship shared by musicians with birth year before 1945 and after 1955.
SQL: SELECT Citizenship FROM singer WHERE Birth_Year  <  1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year  >  1955
Database: singer
Question: What are the citizenships that are shared by singers with a birth year before 1945 and after 1955?
Paraphrased question: What are the country that are shared by musicians with a birth year before 1945 and after 1955?
SQL: SELECT Citizenship FROM singer WHERE Birth_Year  <  1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year  >  1955
Database: real_estate_properties
Question: How many available features are there in total?
Paraphrased question: How many available characteristic are there in total?
SQL: SELECT count(*) FROM Other_Available_Features
Database: real_estate_properties
Question: What is the feature type name of feature AirCon?
Paraphrased question: What is the characteristic type of feature AirCon?
SQL: SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code  =  T2.feature_type_code WHERE T1.feature_name  =  "AirCon"
Database: real_estate_properties
Question: Show the property type descriptions of properties belonging to that code.
Paraphrased question: Show the property type descriptions of properties belonging to that code.
SQL: SELECT T2.property_type_description FROM Properties AS T1 JOIN Ref_Property_Types AS T2 ON T1.property_type_code  =  T2.property_type_code GROUP BY T1.property_type_code
Database: real_estate_properties
Question: What are the names of properties that are either houses or apartments with more than 1 room?
Paraphrased question: What are the names of properties that are either houses or apartments with more than 1 room?
SQL: SELECT property_name FROM Properties WHERE property_type_code  =  "House" UNION SELECT property_name FROM Properties WHERE property_type_code  =  "Apartment" AND room_count  >  1