aherntech/spider-syn huggingface dataset:
Database: hr_1
Question: What are the full names and department ids for the lowest paid employees across all departments.
Paraphrased question: What are the full names and division ids for the lowest paid employees across all divisions.
SQL: SELECT first_name ,  last_name ,  department_id FROM employees WHERE salary IN (SELECT MIN(salary) FROM employees GROUP BY department_id)
Database: hr_1
Question: Find the employee id for all employees who earn more than the average salary.
Paraphrased question: Find the staff id for all staffs who earn more than the average salary.
SQL: SELECT employee_id FROM employees WHERE salary  >  (SELECT AVG(salary) FROM employees)
Database: hr_1
Question: What are the employee ids for employees who make more than the average?
Paraphrased question: What are the staff ids for staffs who make more than the average?
SQL: SELECT employee_id FROM employees WHERE salary  >  (SELECT AVG(salary) FROM employees)
Database: hr_1
Question: display the employee id and salary of all employees who report to Payam (first name).
Paraphrased question: display the staff id and wage of all staffs who report to Payam (first name).
SQL: SELECT employee_id ,  salary FROM employees WHERE manager_id  =  (SELECT employee_id FROM employees WHERE first_name  =  'Payam' )
Database: hr_1
Question: What are the employee ids of employees who report to Payam, and what are their salaries?
Paraphrased question: What are the staff ids of staffs who report to Payam, and what are their wages?
SQL: SELECT employee_id ,  salary FROM employees WHERE manager_id  =  (SELECT employee_id FROM employees WHERE first_name  =  'Payam' )
Database: hr_1
Question: find the name of all departments that do actually have one or more employees assigned to them.
Paraphrased question: find the name of all divisions that do actually have one or more employees assigned to them.
SQL: SELECT DISTINCT T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id
Database: hr_1
Question: What are the names of departments that have at least one employee.
Paraphrased question: What are the names of divisions that have at least one employee.
SQL: SELECT DISTINCT T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id
Database: hr_1
Question: get the details of employees who manage a department.
Paraphrased question: get the information of staffs who manage a division.
SQL: SELECT DISTINCT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id WHERE T1.employee_id  =  T2.manager_id
Database: hr_1
Question: What is all the information regarding employees who are managers?
Paraphrased question: What is all the information regarding staffs who are managers?
SQL: SELECT DISTINCT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id WHERE T1.employee_id  =  T2.manager_id
Database: hr_1
Question: display all the information about the department Marketing.
Paraphrased question: display all the information about the division Marketing.
SQL: SELECT * FROM  departments WHERE department_name  =  'Marketing'
Database: hr_1
Question: What are the employee ids for those who had two or more jobs.
Paraphrased question: What are the staff ids for those who had two or more jobs.
SQL: SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*)  >= 2
Database: hr_1
Question: What are the unique ids of those departments where any manager is managing 4 or more employees.
Paraphrased question: What are the unique ids of those divisions where any head is managing 4 or more staffs.
SQL: SELECT DISTINCT department_id FROM employees GROUP BY department_id ,  manager_id HAVING COUNT(employee_id)  >= 4
Database: hr_1
Question: Give the distinct department ids of departments in which a manager is in charge of 4 or more employees?
Paraphrased question: Give the different division ids of divisions in which a head is in charge of 4 or more staffs?
SQL: SELECT DISTINCT department_id FROM employees GROUP BY department_id ,  manager_id HAVING COUNT(employee_id)  >= 4
Database: hr_1
Question: Find the job ID for those jobs which average salary is above 8000.
Paraphrased question: Find the occupation ID for those occupations which average wage is above 8000.
SQL: SELECT job_id FROM employees GROUP BY job_id HAVING AVG(salary) > 8000
Database: hr_1
Question: What are the job ids corresponding to jobs with average salary above 8000?
Paraphrased question: What are the occupation ids corresponding to occupations with average wage above 8000?
SQL: SELECT job_id FROM employees GROUP BY job_id HAVING AVG(salary) > 8000
Database: hr_1
Question: display the employee ID and job name for all those jobs in department 80.
Paraphrased question: display the staff ID and occupation name for all those occupations in department 80.
SQL: SELECT T1.employee_id ,  T2.job_title FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id  =  T2.job_id WHERE T1.department_id = 80
Database: hr_1
Question: what are the employee ids and job titles for employees in department 80?
Paraphrased question: what are the staff ids and occupation name for staff in department 80?
SQL: SELECT T1.employee_id ,  T2.job_title FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id  =  T2.job_id WHERE T1.department_id = 80
Database: hr_1
Question: What is the first name and job id for all employees in the Finance department?
Paraphrased question: What is the forename and occupation id for all staffs in the Finance department?
SQL: SELECT T1.first_name ,  T1.job_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id WHERE T2.department_name  =  'Finance'
Database: hr_1
Question: Give the first name and job id for all employees in the Finance department.
Paraphrased question: Give the forename and occupation id for all staffs in the Finance department.
SQL: SELECT T1.first_name ,  T1.job_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id WHERE T2.department_name  =  'Finance'
Database: hr_1
Question: display all the information of the employees whose salary if within the range of smallest salary and 2500.
Paraphrased question: display all the information of the staffs whose wage if within the range of smallest wage and 2500.
SQL: SELECT * FROM employees WHERE salary BETWEEN (SELECT MIN(salary) FROM employees) AND 2500
Database: hr_1
Question: What is all the information regarding employees with salaries above the minimum and under 2500?
Paraphrased question: What is all the information regarding staffs with wages above the minimum and under 2500?
SQL: SELECT * FROM employees WHERE salary BETWEEN (SELECT MIN(salary) FROM employees) AND 2500
Database: hr_1
Question: Find the ids of the employees who does not work in those departments where some employees works whose manager id within the range 100 and 200.
Paraphrased question: Find the ids of the staffs who does not work in those departments where some staffs works whose manager id within the range 100 and 200.
SQL: SELECT * FROM employees WHERE department_id NOT IN (SELECT department_id FROM departments WHERE manager_id BETWEEN 100 AND 200)
Database: hr_1
Question: What are the ids for employees who do not work in departments with managers that have ids between 100 and 200?
Paraphrased question: What are the ids for staffs who do not work in departments with managers that have ids between 100 and 200?
SQL: SELECT * FROM employees WHERE department_id NOT IN (SELECT department_id FROM departments WHERE manager_id BETWEEN 100 AND 200)
Database: hr_1
Question: display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara.
Paraphrased question: display the staff name ( forename and surname ) and day of hire for all staffs in the same department as Clara.
SQL: SELECT first_name ,  last_name ,  hire_date FROM employees WHERE department_id  =  (SELECT department_id FROM employees WHERE first_name  =  "Clara")
Database: hr_1
Question: What are the full names and hire dates for employees in the same department as someone with the first name Clara?
Paraphrased question: What are the full names and day of hire  for employees in the same department as someone with the forename Clara?
SQL: SELECT first_name ,  last_name ,  hire_date FROM employees WHERE department_id  =  (SELECT department_id FROM employees WHERE first_name  =  "Clara")
Database: hr_1
Question: display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara excluding Clara.
Paraphrased question: display the employee name ( forename and surname ) and day of hire for all employees in the same department as Clara excluding Clara.
SQL: SELECT first_name ,  last_name ,  hire_date FROM employees WHERE department_id  =  ( SELECT department_id FROM employees WHERE first_name  =  "Clara") AND first_name != "Clara"
Database: hr_1
Question: What are the full names and hire dates for employees in the same department as someone with the first name Clara, not including Clara?
Paraphrased question: What are the full names and day of hire for employees in the same department as someone with the forename Clara, not including Clara?
SQL: SELECT first_name ,  last_name ,  hire_date FROM employees WHERE department_id  =  ( SELECT department_id FROM employees WHERE first_name  =  "Clara") AND first_name != "Clara"
Database: hr_1
Question: display the employee number and name( first name and last name ) for all employees who work in a department with any employee whose name contains a ’T’.
Paraphrased question: display the staff number and name( forename and surname ) for all staffs who work in a department with any staff whose name contains a ’T’.
SQL: SELECT employee_id ,  first_name ,  last_name FROM employees WHERE department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%T%' )
Database: hr_1
Question: What are the ids and full names for employees who work in a department that has someone with a first name that contains the letter T?
Paraphrased question: What are the ids and full names for staffs who work in a department that has someone with a forename that contains the letter T?
SQL: SELECT employee_id ,  first_name ,  last_name FROM employees WHERE department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%T%' )
Database: hr_1
Question: display the employee number, name( first name and last name ), and salary for all employees who earn more than the average salary and who work in a department with any employee with a 'J' in their first name.
Paraphrased question: display the staff number, name( forename and family name ), and wage for all staffs who earn more than the average wage and who work in a department with any employee with a 'J' in their first name.
SQL: SELECT employee_id ,  first_name ,  last_name ,  salary FROM employees WHERE salary  >  ( SELECT AVG (salary) FROM employees ) AND department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%J%')
Database: hr_1
Question: What are the ids, full names, and salaries for employees making more than average and who work in a department with employees who have the letter J in their first name?
Paraphrased question: What are the ids, full names, and wage for staffs making more than average and who work in a department with staffs who have the letter J in their forename?
SQL: SELECT employee_id ,  first_name ,  last_name ,  salary FROM employees WHERE salary  >  ( SELECT AVG (salary) FROM employees ) AND department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%J%')
Database: hr_1
Question: display the employee number and job id for all employees whose salary is smaller than any salary of those employees whose job title is MK_MAN.
Paraphrased question: display the staff number and job id for all staffs whose salary is smaller than any salary of those staffs whose job name is MK_MAN.
SQL: SELECT employee_id ,  job_id FROM employees WHERE salary  <  ( SELECT min(salary) FROM employees WHERE job_id  =  'MK_MAN' )
Database: hr_1
Question: What are the employee ids and job ids for employees who make less than the lowest earning employee with title MK_MAN?
Paraphrased question: What are the staff ids and occupation ids for staffs who make less than the lowest earning staff with title MK_MAN?
SQL: SELECT employee_id ,  job_id FROM employees WHERE salary  <  ( SELECT min(salary) FROM employees WHERE job_id  =  'MK_MAN' )
Database: hr_1
Question: display the employee number, name( first name and last name ) and job title for all employees whose salary is more than any salary of those employees whose job title is PU_MAN.
Paraphrased question: display the staff number, name( forename and surname ) and occupation name for all staffs whose salary is more than any salary of those staffs whose occupation name is PU_MAN.
SQL: SELECT employee_id ,  first_name ,  last_name ,  job_id FROM employees WHERE salary  >  ( SELECT max(salary) FROM employees WHERE job_id  =  'PU_MAN' )
Database: hr_1
Question: What are the employee ids, full names, and job ids for employees who make more than the highest earning employee with title PU_MAN?
Paraphrased question: What are the staff ids, full names, and occupation ids for staffs who make more than the highest earning staff with title PU_MAN?
SQL: SELECT employee_id ,  first_name ,  last_name ,  job_id FROM employees WHERE salary  >  ( SELECT max(salary) FROM employees WHERE job_id  =  'PU_MAN' )
Database: hr_1
Question: display the department id and the total salary for those departments which contains at least two employees.
Paraphrased question: display the department id and the total wage for those departments which contains at least two employees.
SQL: SELECT department_id ,  SUM(salary) FROM employees GROUP BY department_id HAVING count(*)  >=  2
Database: hr_1
Question: What are total salaries and department id for each department that has more than 2 employees?
Paraphrased question: What are total wages and division id for each division that has more than 2 employees?
SQL: SELECT department_id ,  SUM(salary) FROM employees GROUP BY department_id HAVING count(*)  >=  2
Database: hr_1
Question: display all the information of those employees who did not have any job in the past.
Paraphrased question: display all the information of those staffs who did not have any job in the past.
SQL: SELECT * FROM employees WHERE employee_id NOT IN (SELECT employee_id FROM job_history)
Database: hr_1
Question: What is all the information about employees who have never had a job in the past?
Paraphrased question: What is all the information about staffs who have never had a job in the past?
SQL: SELECT * FROM employees WHERE employee_id NOT IN (SELECT employee_id FROM job_history)
Database: hr_1
Question: display the department ID, full name (first and last name), salary for those employees who is highest salary in every department.
Paraphrased question: display the division ID, full name (first and last name), wage for those employees who is highest salary in every division.
SQL: SELECT first_name ,   last_name ,   salary ,  department_id ,  MAX(salary) FROM employees GROUP BY department_id
Database: hr_1
Question: What are the department ids, full names, and salaries for employees who make the most in their departments?
Paraphrased question: What are the division ids, full names, and wages for employees who make the most in their divisions?
SQL: SELECT first_name ,   last_name ,   salary ,  department_id ,  MAX(salary) FROM employees GROUP BY department_id
Database: hr_1
Question: display the first and last name, department, city, and state province for each employee.
Paraphrased question: display the full name, division, city, and state province for each employee.
SQL: SELECT T1.first_name ,  T1.last_name ,  T2.department_name ,  T3.city ,  T3.state_province FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id
Database: hr_1
Question: What are the full names, departments, cities, and state provinces for each employee?
Paraphrased question: What are the full names, divisions, cities, and state provinces for each employee?
SQL: SELECT T1.first_name ,  T1.last_name ,  T2.department_name ,  T3.city ,  T3.state_province FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id
Database: hr_1
Question: display those employees who contain a letter z to their first name and also display their last name, city.
Paraphrased question: display those staffs who contain a letter z to their forename and also display their family name, city.
SQL: SELECT T1.first_name ,  T1.last_name ,  T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id WHERE T1.first_name LIKE '%z%'
Database: hr_1
Question: What are the full names and cities of employees who have the letter Z in their first names?
Paraphrased question: What are the full names and cities of employees who have the letter Z in their forename?
SQL: SELECT T1.first_name ,  T1.last_name ,  T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id WHERE T1.first_name LIKE '%z%'
Database: hr_1
Question: display the department name, city, and state province for each department.
Paraphrased question: display the division name, town, and state province for each division.
SQL: SELECT T1.department_name ,  T2.city ,  T2.state_province FROM departments AS T1 JOIN locations AS T2 ON T2.location_id  =  T1.location_id
Database: hr_1
Question: What are the department names, cities, and state provinces for each department?
Paraphrased question: What are the division names, towns, and state provinces for each division?
SQL: SELECT T1.department_name ,  T2.city ,  T2.state_province FROM departments AS T1 JOIN locations AS T2 ON T2.location_id  =  T1.location_id
Database: hr_1
Question: display the full name (first and last name ) of employee with ID and name of the country presently where (s)he is working.
Paraphrased question: display the full name (first and last name ) of employee with ID and name of the country presently where (s)he is working.
SQL: SELECT T1.first_name ,  T1.last_name , T1.employee_id ,  T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id JOIN countries AS T4 ON T3.country_id  =  T4.country_id
Database: hr_1
Question: What the full names, ids of each employee and the name of the country they are in?
Paraphrased question: What the full names, ids of each staff and the name of the country they are in?
SQL: SELECT T1.first_name ,  T1.last_name , T1.employee_id ,  T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id JOIN countries AS T4 ON T3.country_id  =  T4.country_id
Database: hr_1
Question: display the department name and number of employees in each of the department.
Paraphrased question: display the division name and number of staffs in each of the division.
SQL: SELECT department_name ,  COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id GROUP BY department_name
Database: hr_1
Question: What are the department names and how many employees work in each of them?
Paraphrased question: What are the division names and how many staffs work in each of them?
SQL: SELECT department_name ,  COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id GROUP BY department_name
Database: hr_1
Question: display the full name (first and last name), and salary of those employees who working in any department located in London.
Paraphrased question: display the full name (first and last name), and wage of those employees who working in any division located in London.
SQL: SELECT first_name ,  last_name ,  salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN  locations AS T3 ON T2.location_id  =  T3.location_id WHERE  T3.city  =  'London'
Database: hr_1
Question: What are full names and salaries of employees working in the city of London?
Paraphrased question: What are full names and wages of employees working in the city of London?
SQL: SELECT first_name ,  last_name ,  salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN  locations AS T3 ON T2.location_id  =  T3.location_id WHERE  T3.city  =  'London'
Database: music_1
Question: What is the name of the song that was released in the most recent year?
Paraphrased question: What is the title of the music that was released in the most recent year?
SQL: SELECT song_name ,  releasedate FROM song ORDER BY releasedate DESC LIMIT 1
Database: music_1
Question: What is the name of the song that was released most recently?
Paraphrased question: What is the title of the music that was released most recently?
SQL: SELECT song_name ,  releasedate FROM song ORDER BY releasedate DESC LIMIT 1
Database: music_1
Question: What is the id of the longest song?
Paraphrased question: What is the id of the longest song?
SQL: SELECT f_id FROM files ORDER BY duration DESC LIMIT 1
Database: music_1
Question: Find the id of the song that lasts the longest.
Paraphrased question: Find the id of the song that lasts the longest.
SQL: SELECT f_id FROM files ORDER BY duration DESC LIMIT 1
Database: music_1
Question: Find the names of all English songs.
Paraphrased question: Find the titles of all English musics.
SQL: SELECT song_name FROM song WHERE languages  =  "english"
Database: music_1
Question: What are the names of all songs in English?
Paraphrased question: What are the titles of all musics in English?
SQL: SELECT song_name FROM song WHERE languages  =  "english"
Database: music_1
Question: What are the id of songs whose format is mp3.
Paraphrased question: What are the id of songs whose format is mp3.
SQL: SELECT f_id FROM files WHERE formats  =  "mp3"
Database: music_1
Question: What are the id of all the files in mp3 format?
Paraphrased question: What are the id of all the document in mp3 format?
SQL: SELECT f_id FROM files WHERE formats  =  "mp3"
Database: music_1
Question: List the name and country of origin for all singers who have produced songs with rating above 9.
Paraphrased question: List the name and nationality of origin for all singers who have produced songs with rating above 9.
SQL: SELECT DISTINCT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.rating  >  9
Database: music_1
Question: What are the different names and countries of origins for all artists whose song ratings are above 9?
Paraphrased question: What are the different names and nations of origins for all artists whose song ratings are above 9?
SQL: SELECT DISTINCT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.rating  >  9
Database: music_1
Question: List the file size and format for all songs that have resolution lower than 800.
Paraphrased question: List the document size and format for all songs that have resolution lower than 800.
SQL: SELECT DISTINCT T1.file_size ,  T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T2.resolution  <  800
Database: music_1
Question: What are the file sizes and formats for all songs with a resolution lower than 800?
Paraphrased question: What are the document sizes and formats for all songs with a resolution lower than 800?
SQL: SELECT DISTINCT T1.file_size ,  T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T2.resolution  <  800
Database: music_1
Question: What is the name of the artist who produced the shortest song?
Paraphrased question: What is the name of the artist who produced the shortest song?
SQL: SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id  =  T2.f_id ORDER BY T2.duration LIMIT 1
Database: music_1
Question: What are the names of the artists who sang the shortest song?
Paraphrased question: What are the names of the artists who sang the shortest song?
SQL: SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id  =  T2.f_id ORDER BY T2.duration LIMIT 1
Database: music_1
Question: What are the names and countries of origin for the artists who produced the top three highly rated songs.
Paraphrased question: What are the names and nations of origin for the artists who produced the top three highly rated songs.
SQL: SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name ORDER BY T2.rating DESC LIMIT 3
Database: music_1
Question: What are the names of the singers who sang the top 3 most highly rated songs and what countries do they hail from?
Paraphrased question: What are the names of the singers who sang the top 3 most highly rated songs and what nations do they hail from?
SQL: SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name ORDER BY T2.rating DESC LIMIT 3
Database: music_1
Question: How many songs have 4 minute duration?
Paraphrased question: How many songs have 4 minute duration?
SQL: SELECT count(*) FROM files WHERE duration LIKE "4:%"
Database: music_1
Question: What is the count of the songs that last approximately 4 minutes?
Paraphrased question: What is the count of the songs that last approximately 4 minutes?
SQL: SELECT count(*) FROM files WHERE duration LIKE "4:%"
Database: music_1
Question: How many artists are from Bangladesh?
Paraphrased question: How many artists are from Bangladesh?
SQL: SELECT count(*) FROM artist WHERE country  =  "Bangladesh"
Database: music_1
Question: How many Bangladeshi artists are listed?
Paraphrased question: How many Bangladeshi artists are listed?
SQL: SELECT count(*) FROM artist WHERE country  =  "Bangladesh"
Database: music_1
Question: What is the average rating of songs produced by female artists?
Paraphrased question: What is the average score of songs produced by female artists?
SQL: SELECT avg(T2.rating) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T1.gender  =  "Female"
Database: music_1
Question: How many songs, on average, are sung by a female artist?
Paraphrased question: How many songs, on average, are sung by a female artist?
SQL: SELECT avg(T2.rating) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T1.gender  =  "Female"
Database: music_1
Question: What is the most popular file format?
Paraphrased question: What is the most popular document format?
SQL: SELECT formats FROM files GROUP BY formats ORDER BY COUNT (*) DESC LIMIT 1
Database: music_1
Question: Find the file format that is used by the most files.
Paraphrased question: Find the document format that is used by the most document.
SQL: SELECT formats FROM files GROUP BY formats ORDER BY COUNT (*) DESC LIMIT 1
Database: music_1
Question: Find the names of the artists who are from UK and have produced English songs.
Paraphrased question: Find the names of the artists who are from UK and have produced English songs.
SQL: SELECT artist_name FROM artist WHERE country  =  "UK" INTERSECT SELECT artist_name FROM song WHERE languages  =  "english"
Database: music_1
Question: What are the names of the artists that are from the UK and sang songs in English?
Paraphrased question: What are the names of the artists that are from the UK and sang songs in English?
SQL: SELECT artist_name FROM artist WHERE country  =  "UK" INTERSECT SELECT artist_name FROM song WHERE languages  =  "english"
Database: music_1
Question: Find the id of songs that are available in mp4 format and have resolution lower than 1000.
Paraphrased question: Find the id of songs that are available in mp4 format and have resolution lower than 1000.
SQL: SELECT f_id FROM files WHERE formats  =  "mp4" INTERSECT SELECT f_id FROM song WHERE resolution  <  1000
Database: music_1
Question: What is the id of the files that are available in the format of mp4 and a resolution smaller than 1000?
Paraphrased question: What is the id of the document that are available in the format of mp4 and a resolution smaller than 1000?
SQL: SELECT f_id FROM files WHERE formats  =  "mp4" INTERSECT SELECT f_id FROM song WHERE resolution  <  1000
Database: music_1
Question: What is the country of origin of the artist who is female and produced a song in Bangla?
Paraphrased question: What is the nationality of origin of the artist who is female and produced a song in Bangla?
SQL: SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T1.gender  =  "Female" AND T2.languages  =  "bangla"
Database: music_1
Question: What countries are the female artists who sung in the language Bangla from?
Paraphrased question: What nationalities are the female artists who sung in the language Bangla from?
SQL: SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T1.gender  =  "Female" AND T2.languages  =  "bangla"
Database: music_1
Question: What is the average duration of songs that have mp3 format and resolution below 800?
Paraphrased question: What is the average duration of songs that have mp3 format and resolution below 800?
SQL: SELECT avg(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.formats  =  "mp3" AND T2.resolution   <  800
Database: music_1
Question: What is the average song duration for the songs that are in mp3 format and whose resolution below 800?
Paraphrased question: What is the average song duration for the songs that are in mp3 format and whose resolution below 800?
SQL: SELECT avg(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.formats  =  "mp3" AND T2.resolution   <  800
Database: music_1
Question: What is the number of artists for each gender?
Paraphrased question: What is the number of artists for each sex?
SQL: SELECT count(*) ,  gender FROM artist GROUP BY gender
Database: music_1
Question: How many artists are male and how many are female?
Paraphrased question: How many artists are male and how many are female?
SQL: SELECT count(*) ,  gender FROM artist GROUP BY gender
Database: music_1
Question: What is the average rating of songs for each language?
Paraphrased question: What is the average score of songs for each language?
SQL: SELECT avg(rating) ,  languages FROM song GROUP BY languages
Database: music_1
Question: What is the average song rating for each language?
Paraphrased question: What is the average song score for each language?
SQL: SELECT avg(rating) ,  languages FROM song GROUP BY languages
Database: music_1
Question: Return the gender and name of artist who produced the song with the lowest resolution.
Paraphrased question: Return the sex and name of artist who produced the song with the lowest resolution.
SQL: SELECT T1.gender ,  T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name ORDER BY T2.resolution LIMIT 1
Database: music_1
Question: What is the gender and name of the artist who sang the song with the smallest resolution?
Paraphrased question: What is the sex and name of the artist who sang the song with the smallest resolution?
SQL: SELECT T1.gender ,  T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name ORDER BY T2.resolution LIMIT 1
Database: music_1
Question: For each file format, return the number of artists who released songs in that format.
Paraphrased question: For each document format, return the number of artists who released songs in that format.
SQL: SELECT count(*) ,  formats FROM files GROUP BY formats
Database: music_1
Question: How many songs were released for each format?
Paraphrased question: How many songs were released for each format?
SQL: SELECT count(*) ,  formats FROM files GROUP BY formats
Database: music_1
Question: Find the distinct names of all songs that have a higher resolution than some songs in English.
Paraphrased question: Find the different titles of all musics that have a higher resolution than some musics in English.
SQL: SELECT DISTINCT song_name FROM song WHERE resolution  >  (SELECT min(resolution) FROM song WHERE languages  =  "english")
Database: music_1
Question: What are the different names for all songs that have a higher resolution than English songs?
Paraphrased question: What are the different titles for all musics that have a higher resolution than English musics?
SQL: SELECT DISTINCT song_name FROM song WHERE resolution  >  (SELECT min(resolution) FROM song WHERE languages  =  "english")
Database: music_1
Question: What are the names of all songs that have a lower rating than some song of blues genre?
Paraphrased question: What are the titles of all musics that have a lower rating than some music of blues genre?
SQL: SELECT song_name FROM song WHERE rating  <  (SELECT max(rating) FROM song WHERE genre_is  =  "blues")
Database: music_1
Question: What are the names of the songs that have a lower rating than at least one blues song?
Paraphrased question: What are the titles of the musics that have a lower rating than at least one blues music?
SQL: SELECT song_name FROM song WHERE rating  <  (SELECT max(rating) FROM song WHERE genre_is  =  "blues")
Database: music_1
Question: What is the name and country of origin of the artist who released a song that has "love" in its title?
Paraphrased question: What is the name and nationality of origin of the artist who released a song that has "love" in its title?
SQL: SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.song_name LIKE "%love%"
Database: music_1
Question: What are the names of the artists who released a song that has the word love in its title, and where are the artists from?
Paraphrased question: What are the names of the artists who released a song that has the word love in its title, and where are the artists from?
SQL: SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.song_name LIKE "%love%"
Database: music_1
Question: List the name and gender for all artists who released songs in March.
Paraphrased question: List the name and sex for all artists who released songs in March.
SQL: SELECT T1.artist_name ,  T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.releasedate LIKE "%Mar%"
Database: music_1
Question: What are the names and genders of all artists who released songs in the month of March?
Paraphrased question: What are the names and sex of all artists who released songs in the month of March?
SQL: SELECT T1.artist_name ,  T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.releasedate LIKE "%Mar%"
Database: music_1
Question: List the names of all genres in alphabetical oder, together with its ratings.
Paraphrased question: List the names of all genres in alphabetical oder, together with its score.
SQL: SELECT g_name ,  rating FROM genre ORDER BY g_name
Database: music_1
Question: What are the names of all genres in alphabetical order, combined with its ratings?
Paraphrased question: What are the names of all genres in alphabetical order, combined with its score?
SQL: SELECT g_name ,  rating FROM genre ORDER BY g_name
Database: music_1
Question: Give me a list of the names of all songs ordered by their resolution.
Paraphrased question: Give me a list of the titles of all musics ordered by their resolution.
SQL: SELECT song_name FROM song ORDER BY resolution
Database: music_1
Question: What are the names of all songs that are ordered by their resolution numbers?
Paraphrased question: What are the titles of all musics that are ordered by their resolution numbers?
SQL: SELECT song_name FROM song ORDER BY resolution
Database: music_1
Question: What are the ids of songs that are available in either mp4 format or have resolution above 720?
Paraphrased question: What are the ids of songs that are available in either mp4 format or have resolution above 720?
SQL: SELECT f_id FROM files WHERE formats  =  "mp4" UNION SELECT f_id FROM song WHERE resolution  >  720
Database: music_1
Question: What are the ids of all songs that are available on mp4 or have a higher resolution than 720?
Paraphrased question: What are the ids of all songs that are available on mp4 or have a higher resolution than 720?
SQL: SELECT f_id FROM files WHERE formats  =  "mp4" UNION SELECT f_id FROM song WHERE resolution  >  720
Database: music_1
Question: List the names of all songs that have 4 minute duration or are in English.
Paraphrased question: List the titles of all musics that have 4 minute duration or are in English.
SQL: SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.duration LIKE "4:%" UNION SELECT song_name FROM song WHERE languages  =  "english"
Database: music_1
Question: What are the names of all songs that are approximately 4 minutes long or are in English?
Paraphrased question: What are the titles of all musics that are approximately 4 minutes long or are in English?
SQL: SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.duration LIKE "4:%" UNION SELECT song_name FROM song WHERE languages  =  "english"
Database: music_1
Question: What is the language used most often in the songs?
Paraphrased question: What is the language used most often in the songs?
SQL: SELECT languages FROM song GROUP BY languages ORDER BY count(*) DESC LIMIT 1
Database: music_1
Question: What are the languages that are used most often in songs?
Paraphrased question: What are the languages that are used most often in songs?
SQL: SELECT languages FROM song GROUP BY languages ORDER BY count(*) DESC LIMIT 1
Database: music_1
Question: What is the language that was used most often in songs with resolution above 500?
Paraphrased question: What is the language that was used most often in songs with resolution above 500?
SQL: SELECT artist_name FROM song WHERE resolution  >  500 GROUP BY languages ORDER BY count(*) DESC LIMIT 1
Database: music_1
Question: What is the name of the artist, for each language, that has the most songs with a higher resolution than 500?
Paraphrased question: What is the name of the artist, for each language, that has the most songs with a higher resolution than 500?
SQL: SELECT artist_name FROM song WHERE resolution  >  500 GROUP BY languages ORDER BY count(*) DESC LIMIT 1
Database: music_1
Question: What are the names of artists who are Male and are from UK?
Paraphrased question: What are the names of artists who are Male and are from UK?
SQL: SELECT artist_name FROM artist WHERE country  =  "UK" AND gender  =  "Male"
Database: music_1
Question: What are the names of all male British artists?
Paraphrased question: What are the names of all male British artists?
SQL: SELECT artist_name FROM artist WHERE country  =  "UK" AND gender  =  "Male"
Database: music_1
Question: Find the names of songs whose genre is modern or language is English.
Paraphrased question: Find the titles of musics whose genre is modern or language is English.
SQL: SELECT song_name FROM song WHERE genre_is  =  "modern" OR languages  =  "english"
Database: music_1
Question: What are the names of the songs that are modern or sung in English?
Paraphrased question: What are the titles of the musics that are modern or sung in English?
SQL: SELECT song_name FROM song WHERE genre_is  =  "modern" OR languages  =  "english"
Database: music_1
Question: Return the names of songs for which format is mp3 and resolution is below 1000.
Paraphrased question: Return the titles of musics for which format is mp3 and resolution is below 1000.
SQL: SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.formats  =  "mp3" INTERSECT SELECT song_name FROM song WHERE resolution  <  1000
Database: music_1
Question: What are the names of all songs that are in mp3 format and have a resolution lower than 1000?
Paraphrased question: What are the titles of all musics that are in mp3 format and have a resolution lower than 1000?
SQL: SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.formats  =  "mp3" INTERSECT SELECT song_name FROM song WHERE resolution  <  1000
Database: music_1
Question: Return the names of singers who are from UK and released an English song.
Paraphrased question: Return the names of singers who are from UK and released an English song.
SQL: SELECT artist_name FROM artist WHERE country  =  "UK" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  "english"
Database: music_1
Question: What are the names of all singers that are from the UK and released a song in English?
Paraphrased question: What are the names of all singers that are from the UK and released a song in English?
SQL: SELECT artist_name FROM artist WHERE country  =  "UK" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  "english"
Database: music_1
Question: What are the average rating and resolution of songs that are in Bangla?
Paraphrased question: What are the average score and resolution of songs that are in Bangla?
SQL: SELECT avg(rating) ,  avg(resolution) FROM song WHERE languages  =  "bangla"
Database: music_1
Question: What is the average rating and resolution of all bangla songs?
Paraphrased question: What is the average score and resolution of all bangla songs?
SQL: SELECT avg(rating) ,  avg(resolution) FROM song WHERE languages  =  "bangla"
Database: music_1
Question: What are the maximum and minimum resolution of songs whose duration is 3 minutes?
Paraphrased question: What are the maximum and minimum resolution of songs whose duration is 3 minutes?
SQL: SELECT max(T2.resolution) ,  min(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.duration LIKE "3:%"
Database: music_1
Question: What is the maximum and minimum resolution of all songs that are approximately 3 minutes long?
Paraphrased question: What is the maximum and minimum resolution of all songs that are approximately 3 minutes long?
SQL: SELECT max(T2.resolution) ,  min(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.duration LIKE "3:%"
Database: music_1
Question: What are the maximum duration and resolution of songs grouped and ordered by languages?
Paraphrased question: What are the maximum duration and resolution of songs grouped and ordered by languages?
SQL: SELECT max(T1.duration) ,  max(T2.resolution) ,  T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id GROUP BY T2.languages ORDER BY T2.languages
Database: music_1
Question: What are the maximum duration and resolution of all songs, for each language, ordered alphabetically by language?
Paraphrased question: What are the maximum duration and resolution of all songs, for each language, ordered alphabetically by language?
SQL: SELECT max(T1.duration) ,  max(T2.resolution) ,  T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id GROUP BY T2.languages ORDER BY T2.languages
Database: music_1
Question: What are the shortest duration and lowest rating of songs grouped by genre and ordered by genre?
Paraphrased question: What are the shortest duration and lowest score of songs grouped by genre and ordered by genre?
SQL: SELECT min(T1.duration) ,  min(T2.rating) ,  T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is
Database: music_1
Question: What is the shortest and most poorly rated song for each genre, ordered alphabetically by genre?
Paraphrased question: What is the shortest and most poorly rated song for each genre, ordered alphabetically by genre?
SQL: SELECT min(T1.duration) ,  min(T2.rating) ,  T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is
Database: music_1
Question: Find the names and number of works of all artists who have at least one English songs.
Paraphrased question: Find the names and number of works of all artists who have at least one English songs.
SQL: SELECT T1.artist_name ,  count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  "english" GROUP BY T2.artist_name HAVING count(*)  >=  1
Database: music_1
Question: What are the names and number of works for all artists who have sung at least one song in English?
Paraphrased question: What are the names and number of works for all artists who have sung at least one song in English?
SQL: SELECT T1.artist_name ,  count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  "english" GROUP BY T2.artist_name HAVING count(*)  >=  1
Database: music_1
Question: Find the name and country of origin for all artists who have release at least one song of resolution above 900.
Paraphrased question: Find the name and nationality of origin for all artists who have release at least one song of resolution above 900.
SQL: SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.resolution  >  900 GROUP BY T2.artist_name HAVING count(*)  >=  1
Database: music_1
Question: What is the name and country of origin for each artist who has released a song with a resolution higher than 900?
Paraphrased question: What is the name and nationality of origin for each artist who has released a song with a resolution higher than 900?
SQL: SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.resolution  >  900 GROUP BY T2.artist_name HAVING count(*)  >=  1
Database: music_1
Question: Find the names and number of works of the three artists who have produced the most songs.
Paraphrased question: Find the names and number of works of the three artists who have produced the most songs.
SQL: SELECT T1.artist_name ,  count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3
Database: music_1
Question: What are the names of the three artists who have produced the most songs, and how many works did they produce?
Paraphrased question: What are the names of the three artists who have produced the most songs, and how many works did they produce?
SQL: SELECT T1.artist_name ,  count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3
Database: music_1
Question: Find the country of origin for the artist who made the least number of songs?
Paraphrased question: Find the nationality of origin for the artist who made the least number of songs?
SQL: SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) LIMIT 1
Database: music_1
Question: What country is the artist who made the fewest songs from?
Paraphrased question: What nationality is the artist who made the fewest songs from?
SQL: SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) LIMIT 1
Database: music_1
Question: What are the names of the songs whose rating is below the rating of all songs in English?
Paraphrased question: What are the titles of the musics whose score is below the score of all songs in English?
SQL: SELECT song_name FROM song WHERE rating  <   (SELECT min(rating) FROM song WHERE languages  =  'english')
Database: music_1
Question: What are the song names for every song whose rating is less than the minimum rating for English songs?
Paraphrased question: What are the music titles for every music whose score is less than the minimum score for English musics?
SQL: SELECT song_name FROM song WHERE rating  <   (SELECT min(rating) FROM song WHERE languages  =  'english')
Database: music_1
Question: What is ids of the songs whose resolution is higher than the resolution of any songs with rating lower than 8?
Paraphrased question: What is ids of the musics whose resolution is higher than the resolution of any musics with score lower than 8?
SQL: SELECT f_id FROM song WHERE resolution  >  (SELECT max(resolution) FROM song WHERE rating  <  8)