aherntech/spider-syn huggingface dataset:
Database: icfp_1
Question: Who is the author of the paper titled "Binders Unbound"? Give me the last name.
Paraphrased question: Who is the author of the paper titled "Binders Unbound"? Give me the family name.
SQL: SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t3.title  =  "Binders Unbound"
Database: icfp_1
Question: Find the first and last name of the author(s) who wrote the paper "Nameless, Painless".
Paraphrased question: Find the full name of the author(s) who wrote the paper "Nameless, Painless".
SQL: SELECT t1.fname ,  t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t3.title  =  "Nameless ,  Painless"
Database: icfp_1
Question: What are the first and last name of the author who published the paper titled "Nameless, Painless"?
Paraphrased question: What are the forename and family name of the author who published the paper titled "Nameless, Painless"?
SQL: SELECT t1.fname ,  t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t3.title  =  "Nameless ,  Painless"
Database: icfp_1
Question: What are the papers published under the institution "Indiana University"?
Paraphrased question: What are the articles published under the institution "Indiana University"?
SQL: SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid  =  t2.paperid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  "Indiana University"
Database: icfp_1
Question: List the titles of the papers whose authors are from the institution "Indiana University".
Paraphrased question: List the titles of the articles whose authors are from the institution "Indiana University".
SQL: SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid  =  t2.paperid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  "Indiana University"
Database: icfp_1
Question: Find all the papers published by the institution "Google".
Paraphrased question: Find all the articles published by the institution "Google".
SQL: SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid  =  t2.paperid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  "Google"
Database: icfp_1
Question: Which papers were written by authors from the institution "Google"?
Paraphrased question: Which articles were written by authors from the institution "Google"?
SQL: SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid  =  t2.paperid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  "Google"
Database: icfp_1
Question: How many papers are published by the institution "Tokohu University"?
Paraphrased question: How many articles are published by the institution "Tokohu University"?
SQL: SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid  =  t2.paperid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  "Tokohu University"
Database: icfp_1
Question: Find the number of papers published by authors from the institution "Tokohu University".
Paraphrased question: Find the number of articles published by authors from the institution "Tokohu University".
SQL: SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid  =  t2.paperid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  "Tokohu University"
Database: icfp_1
Question: Find the number of papers published by the institution "University of Pennsylvania".
Paraphrased question: Find the number of articles published by the institution "University of Pennsylvania".
SQL: SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid  =  t2.paperid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  "University of Pennsylvania"
Database: icfp_1
Question: How many papers are written by authors from the institution "University of Pennsylvania"?
Paraphrased question: How many articles are written by authors from the institution "University of Pennsylvania"?
SQL: SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid  =  t2.paperid JOIN inst AS t3 ON t2.instid  =  t3.instid WHERE t3.name  =  "University of Pennsylvania"
Database: icfp_1
Question: Find the papers which have "Olin Shivers" as an author.
Paraphrased question: Find the articles which have "Olin Shivers" as an author.
SQL: SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t1.fname  =  "Olin" AND t1.lname  =  "Shivers"
Database: icfp_1
Question: Which papers did the author "Olin Shivers" write? Give me the paper titles.
Paraphrased question: Which articles did the author "Olin Shivers" write? Give me the article titles.
SQL: SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t1.fname  =  "Olin" AND t1.lname  =  "Shivers"
Database: icfp_1
Question: Which papers have "Stephanie Weirich" as an author?
Paraphrased question: Which articles have "Stephanie Weirich" as an author?
SQL: SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t1.fname  =  "Stephanie" AND t1.lname  =  "Weirich"
Database: icfp_1
Question: Find the titles of the papers the author "Stephanie Weirich" wrote.
Paraphrased question: Find the titles of the articles the author "Stephanie Weirich" wrote.
SQL: SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t1.fname  =  "Stephanie" AND t1.lname  =  "Weirich"
Database: icfp_1
Question: Which paper is published in an institution in "USA" and have "Turon" as its second author?
Paraphrased question: Which articles is published in an institution in "USA" and have "Turon" as its second author?
SQL: SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid JOIN inst AS t4 ON t2.instid  =  t4.instid WHERE t4.country  =  "USA" AND t2.authorder  =  2 AND t1.lname  =  "Turon"
Database: icfp_1
Question: Find papers whose second author has last name "Turon" and is affiliated with an institution in the country "USA".
Paraphrased question: Find papers whose second writer has last name "Turon" and is affiliated with an institution in the country "USA".
SQL: SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid JOIN inst AS t4 ON t2.instid  =  t4.instid WHERE t4.country  =  "USA" AND t2.authorder  =  2 AND t1.lname  =  "Turon"
Database: icfp_1
Question: Find the titles of papers whose first author is affiliated with an institution in the country "Japan" and has last name "Ohori"?
Paraphrased question: Find the titles of papers whose first writer is affiliated with an institution in the country "Japan" and has last name "Ohori"?
SQL: SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid JOIN inst AS t4 ON t2.instid  =  t4.instid WHERE t4.country  =  "Japan" AND t2.authorder  =  1 AND t1.lname  =  "Ohori"
Database: icfp_1
Question: Which papers' first author is affiliated with an institution in the country "Japan" and has last name "Ohori"? Give me the titles of the papers.
Paraphrased question: Which papers' first writer is affiliated with an institution in the country "Japan" and has last name "Ohori"? Give me the titles of the papers.
SQL: SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid JOIN inst AS t4 ON t2.instid  =  t4.instid WHERE t4.country  =  "Japan" AND t2.authorder  =  1 AND t1.lname  =  "Ohori"
Database: icfp_1
Question: What is the last name of the author that has published the most papers?
Paraphrased question: What is the family name of the writer that has published the most papers?
SQL: SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid GROUP BY t1.fname ,  t1.lname ORDER BY count(*) DESC LIMIT 1
Database: icfp_1
Question: Which author has written the most papers? Find his or her last name.
Paraphrased question: Which author has written the most papers? Find his or her family name.
SQL: SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid GROUP BY t1.fname ,  t1.lname ORDER BY count(*) DESC LIMIT 1
Database: icfp_1
Question: Retrieve the country that has published the most papers.
Paraphrased question: Retrieve the nation that has published the most papers.
SQL: SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid  =  t2.instid JOIN papers AS t3 ON t2.paperid  =  t3.paperid GROUP BY t1.country ORDER BY count(*) DESC LIMIT 1
Database: icfp_1
Question: Find the country that the most papers are affiliated with.
Paraphrased question: Find the nation that the most papers are affiliated with.
SQL: SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid  =  t2.instid JOIN papers AS t3 ON t2.paperid  =  t3.paperid GROUP BY t1.country ORDER BY count(*) DESC LIMIT 1
Database: icfp_1
Question: Find the name of the organization that has published the largest number of papers.
Paraphrased question: Find the name of the organization that has published the largest number of papers.
SQL: SELECT t1.name FROM inst AS t1 JOIN authorship AS t2 ON t1.instid  =  t2.instid JOIN papers AS t3 ON t2.paperid  =  t3.paperid GROUP BY t1.name ORDER BY count(*) DESC LIMIT 1
Database: icfp_1
Question: Which institution has the most papers? Find the name of the institution.
Paraphrased question: Which organization has the most papers? Find the name of the organization.
SQL: SELECT t1.name FROM inst AS t1 JOIN authorship AS t2 ON t1.instid  =  t2.instid JOIN papers AS t3 ON t2.paperid  =  t3.paperid GROUP BY t1.name ORDER BY count(*) DESC LIMIT 1
Database: icfp_1
Question: Find the titles of the papers that contain the word "ML".
Paraphrased question: Find the titles of the articles that contain the word "ML".
SQL: SELECT title FROM papers WHERE title LIKE "%ML%"
Database: icfp_1
Question: Which papers have the substring "ML" in their titles? Return the titles of the papers.
Paraphrased question: Which articles have the substring "ML" in their titles? Return the titles of the articles.
SQL: SELECT title FROM papers WHERE title LIKE "%ML%"
Database: icfp_1
Question: Which paper's title contains the word "Database"?
Paraphrased question: Which article's title contains the word "Database"?
SQL: SELECT title FROM papers WHERE title LIKE "%Database%"
Database: icfp_1
Question: Which papers have the substring "Database" in their titles? Show the titles of the papers.
Paraphrased question: Which articles have the substring "Database" in their titles? Show the titles of the articles.
SQL: SELECT title FROM papers WHERE title LIKE "%Database%"
Database: icfp_1
Question: Find the first names of all the authors who have written a paper with title containing the word "Functional".
Paraphrased question: Find the forename of all the authors who have written a paper with title containing the word "Functional".
SQL: SELECT t1.fname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t3.title LIKE "%Functional%"
Database: icfp_1
Question: Who has written a paper that has the word "Functional" in its title? Return the first names of the authors.
Paraphrased question: Who has written a paper that has the word "Functional" in its title? Return the forename of the authors.
SQL: SELECT t1.fname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t3.title LIKE "%Functional%"
Database: icfp_1
Question: Find the last names of all the authors that have written a paper with title containing the word "Monadic".
Paraphrased question: Find the family names of all the authors that have written a paper with title containing the word "Monadic".
SQL: SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t3.title LIKE "%Monadic%"
Database: icfp_1
Question: Which authors have written a paper with title containing the word "Monadic"? Return their last names.
Paraphrased question: Which authors have written a paper with title containing the word "Monadic"? Return their family names.
SQL: SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t3.title LIKE "%Monadic%"
Database: icfp_1
Question: Retrieve the title of the paper that has the largest number of authors.
Paraphrased question: Retrieve the title of the paper that has the largest number of authors.
SQL: SELECT t2.title FROM authorship AS t1 JOIN papers AS t2 ON t1.paperid  =  t2.paperid WHERE t1.authorder  =  (SELECT max(authorder) FROM authorship)
Database: icfp_1
Question: Which paper has the most authors? Give me the paper title.
Paraphrased question: Which paper has the most authors? Give me the paper title.
SQL: SELECT t2.title FROM authorship AS t1 JOIN papers AS t2 ON t1.paperid  =  t2.paperid WHERE t1.authorder  =  (SELECT max(authorder) FROM authorship)
Database: icfp_1
Question: What is the first name of the author with last name "Ueno"?
Paraphrased question: What is the forename of the author with family name "Ueno"?
SQL: SELECT fname FROM authors WHERE lname  =  "Ueno"
Database: icfp_1
Question: Which authors have last name "Ueno"? List their first names.
Paraphrased question: Which authors have family name "Ueno"? List their forename.
SQL: SELECT fname FROM authors WHERE lname  =  "Ueno"
Database: icfp_1
Question: Find the last name of the author with first name "Amal".
Paraphrased question: Find the family name of the author with forename "Amal".
SQL: SELECT lname FROM authors WHERE fname  =  "Amal"
Database: icfp_1
Question: Which authors have first name "Amal"? List their last names.
Paraphrased question: Which authors have forename "Amal"? List their family names.
SQL: SELECT lname FROM authors WHERE fname  =  "Amal"
Database: icfp_1
Question: Find the first names of all the authors ordered in alphabetical order.
Paraphrased question: Find the forename of all the authors ordered in alphabetical order.
SQL: SELECT fname FROM authors ORDER BY fname
Database: icfp_1
Question: Sort the first names of all the authors in alphabetical order.
Paraphrased question: Sort the forename of all the authors in alphabetical order.
SQL: SELECT fname FROM authors ORDER BY fname
Database: icfp_1
Question: Retrieve all the last names of authors in alphabetical order.
Paraphrased question: Retrieve all the family names of authors in alphabetical order.
SQL: SELECT lname FROM authors ORDER BY lname
Database: icfp_1
Question: Give me a list of all the last names of authors sorted in alphabetical order
Paraphrased question: Give me a list of all the family names of authors sorted in alphabetical order
SQL: SELECT lname FROM authors ORDER BY lname
Database: icfp_1
Question: Retrieve all the first and last names of authors in the alphabetical order of last names.
Paraphrased question: Retrieve all the full names of authors in the alphabetical order of family names.
SQL: SELECT fname ,  lname FROM authors ORDER BY lname
Database: icfp_1
Question: Sort the list of all the first and last names of authors in alphabetical order of the last names.
Paraphrased question: Sort the list of all the forename and family name of authors in alphabetical order of the family names.
SQL: SELECT fname ,  lname FROM authors ORDER BY lname
Database: sakila_1
Question: How many different last names do the actors and actresses have?
Paraphrased question: How many different family names do the actors and actresses have?
SQL: SELECT count(DISTINCT last_name) FROM actor
Database: sakila_1
Question: Count the number of different last names actors have.
Paraphrased question: Count the number of different family names actors have.
SQL: SELECT count(DISTINCT last_name) FROM actor
Database: sakila_1
Question: What is the most popular first name of the actors?
Paraphrased question: What is the most popular forename of the actors?
SQL: SELECT first_name FROM actor GROUP BY first_name ORDER BY count(*) DESC LIMIT 1
Database: sakila_1
Question: Return the most common first name among all actors.
Paraphrased question: Return the most common forename among all actors.
SQL: SELECT first_name FROM actor GROUP BY first_name ORDER BY count(*) DESC LIMIT 1
Database: sakila_1
Question: What is the most popular full name of the actors?
Paraphrased question: What is the most popular full name of the actors?
SQL: SELECT first_name ,  last_name FROM actor GROUP BY first_name ,  last_name ORDER BY count(*) DESC LIMIT 1
Database: sakila_1
Question: Return the most common full name among all actors.
Paraphrased question: Return the most common full name among all actors.
SQL: SELECT first_name ,  last_name FROM actor GROUP BY first_name ,  last_name ORDER BY count(*) DESC LIMIT 1
Database: sakila_1
Question: Which districts have at least two addresses?
Paraphrased question: Which regions have at least two addresses?
SQL: SELECT district FROM address GROUP BY district HAVING count(*)  >=  2
Database: sakila_1
Question: Give the districts which have two or more addresses.
Paraphrased question: Give the regions which have two or more addresses.
SQL: SELECT district FROM address GROUP BY district HAVING count(*)  >=  2
Database: sakila_1
Question: What is the phone number and postal code of the address 1031 Daugavpils Parkway?
Paraphrased question: What is the telephone number and zip code of the address 1031 Daugavpils Parkway?
SQL: SELECT phone ,  postal_code FROM address WHERE address  =  '1031 Daugavpils Parkway'
Database: sakila_1
Question: Give the phone and postal code corresponding to the address '1031 Daugavpils Parkway'.
Paraphrased question: Give the telephone and zip code corresponding to the address '1031 Daugavpils Parkway'.
SQL: SELECT phone ,  postal_code FROM address WHERE address  =  '1031 Daugavpils Parkway'
Database: sakila_1
Question: Which city has the most addresses? List the city name, number of addresses, and city id.
Paraphrased question: Which town has the most addresses? List the town name, number of addresses, and town id.
SQL: SELECT T2.city ,  count(*) ,  T1.city_id FROM address AS T1 JOIN city AS T2 ON T1.city_id  =  T2.city_id GROUP BY T1.city_id ORDER BY count(*) DESC LIMIT 1
Database: sakila_1
Question: What are the city name, id, and number of addresses corresponding to the city with the most addressed?
Paraphrased question: What are the town name, id, and number of addresses corresponding to the town with the most addressed?
SQL: SELECT T2.city ,  count(*) ,  T1.city_id FROM address AS T1 JOIN city AS T2 ON T1.city_id  =  T2.city_id GROUP BY T1.city_id ORDER BY count(*) DESC LIMIT 1
Database: sakila_1
Question: How many addresses are in the district of California?
Paraphrased question: How many locations are in the district of California?
SQL: SELECT count(*) FROM address WHERE district  =  'California'
Database: sakila_1
Question: Count the number of addressed in the California district.
Paraphrased question: Count the number of addressed in the California district.
SQL: SELECT count(*) FROM address WHERE district  =  'California'
Database: sakila_1
Question: Which film is rented at a fee of 0.99 and has less than 3 in the inventory? List the film title and id.
Paraphrased question: Which movie is rented at a fee of 0.99 and has less than 3 in the inventory? List the movie title and id.
SQL: SELECT title ,  film_id FROM film WHERE rental_rate  =  0.99 INTERSECT SELECT T1.title ,  T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id  =  T2.film_id GROUP BY T1.film_id HAVING count(*)  <  3
Database: sakila_1
Question: What are the title and id of the film which has a rental rate of 0.99 and an inventory of below 3?
Paraphrased question: What are the title and id of the movie which has a rental rate of 0.99 and an inventory of below 3?
SQL: SELECT title ,  film_id FROM film WHERE rental_rate  =  0.99 INTERSECT SELECT T1.title ,  T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id  =  T2.film_id GROUP BY T1.film_id HAVING count(*)  <  3
Database: sakila_1
Question: How many cities are in Australia?
Paraphrased question: How many towns are in Australia?
SQL: SELECT count(*) FROM city AS T1 JOIN country AS T2 ON T1.country_id  =  T2.country_id WHERE T2.country  =  'Australia'
Database: sakila_1
Question: Count the number of cities in Australia.
Paraphrased question: Count the number of towns in Australia.
SQL: SELECT count(*) FROM city AS T1 JOIN country AS T2 ON T1.country_id  =  T2.country_id WHERE T2.country  =  'Australia'
Database: sakila_1
Question: Which countries have at least 3 cities?
Paraphrased question: Which nations have at least 3 cities?
SQL: SELECT T2.country FROM city AS T1 JOIN country AS T2 ON T1.country_id  =  T2.country_id GROUP BY T2.country_id HAVING count(*)  >=  3
Database: sakila_1
Question: What are the countries that contain 3 or more cities?
Paraphrased question: What are the nations that contain 3 or more cities?
SQL: SELECT T2.country FROM city AS T1 JOIN country AS T2 ON T1.country_id  =  T2.country_id GROUP BY T2.country_id HAVING count(*)  >=  3
Database: sakila_1
Question: Find all the payment dates for the payments with an amount larger than 10 and the payments handled by a staff person with the first name Elsa.
Paraphrased question: Find all the payment days for the payments with an amount larger than 10 and the payments handled by a staff person with the first name Elsa.
SQL: SELECT payment_date FROM payment WHERE amount  >  10 UNION SELECT T1.payment_date FROM payment AS T1 JOIN staff AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.first_name  =  'Elsa'
Database: sakila_1
Question: What are the payment dates for any payments that have an amount greater than 10 or were handled by a staff member with the first name Elsa?
Paraphrased question: What are the payment days for any payments that have an amount greater than 10 or were handled by a staff member with the first name Elsa?
SQL: SELECT payment_date FROM payment WHERE amount  >  10 UNION SELECT T1.payment_date FROM payment AS T1 JOIN staff AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.first_name  =  'Elsa'
Database: sakila_1
Question: How many customers have an active value of 1?
Paraphrased question: How many clients have an active value of 1?
SQL: SELECT count(*) FROM customer WHERE active = '1'
Database: sakila_1
Question: Count the number of customers who are active.
Paraphrased question: Count the number of clients who are active.
SQL: SELECT count(*) FROM customer WHERE active = '1'
Database: sakila_1
Question: Which film has the highest rental rate? And what is the rate?
Paraphrased question: Which movie has the highest rental rate? And what is the rate?
SQL: SELECT title ,  rental_rate FROM film ORDER BY rental_rate DESC LIMIT 1
Database: sakila_1
Question: What are the title and rental rate of the film with the highest rental rate?
Paraphrased question: What are the title and rental rate of the movie with the highest rental rate?
SQL: SELECT title ,  rental_rate FROM film ORDER BY rental_rate DESC LIMIT 1
Database: sakila_1
Question: Which film has the most number of actors or actresses? List the film name, film id and description.
Paraphrased question: Which movie has the most number of actors or actresses? List the movie name, movie id and describing content.
SQL: SELECT T2.title ,  T2.film_id ,  T2.description FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id GROUP BY T2.film_id ORDER BY count(*) DESC LIMIT 1
Database: sakila_1
Question: What are the title, id, and description of the movie with the greatest number of actors?
Paraphrased question: What are the title, id, and describing content of the movie with the greatest number of actors?
SQL: SELECT T2.title ,  T2.film_id ,  T2.description FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id GROUP BY T2.film_id ORDER BY count(*) DESC LIMIT 1
Database: sakila_1
Question: Which film actor (actress) starred the most films? List his or her first name, last name and actor id.
Paraphrased question: Which movie actor (actress) starred the most movies? List his or her forename, family name and actor id.
SQL: SELECT T2.first_name ,  T2.last_name ,  T2.actor_id FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id  =  T2.actor_id GROUP BY T2.actor_id ORDER BY count(*) DESC LIMIT 1
Database: sakila_1
Question: Return the full name and id of the actor or actress who starred in the greatest number of films.
Paraphrased question: Return the full name and id of the actor or actress who starred in the greatest number of movies.
SQL: SELECT T2.first_name ,  T2.last_name ,  T2.actor_id FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id  =  T2.actor_id GROUP BY T2.actor_id ORDER BY count(*) DESC LIMIT 1
Database: sakila_1
Question: Which film actors (actresses) played a role in more than 30 films? List his or her first name and last name.
Paraphrased question: Which film actors (actresses) played a role in more than 30 films? List his or her full name.
SQL: SELECT T2.first_name ,  T2.last_name FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id  =  T2.actor_id GROUP BY T2.actor_id HAVING count(*)  >  30
Database: sakila_1
Question: What are the full names of actors who had roles in more than 30 films?
Paraphrased question: What are the full names of actors who had roles in more than 30 films?
SQL: SELECT T2.first_name ,  T2.last_name FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id  =  T2.actor_id GROUP BY T2.actor_id HAVING count(*)  >  30
Database: sakila_1
Question: Which store owns most items?
Paraphrased question: Which store owns most items?
SQL: SELECT store_id FROM inventory GROUP BY store_id ORDER BY count(*) DESC LIMIT 1
Database: sakila_1
Question: What is the id of the store that has the most items in inventory?
Paraphrased question: What is the id of the warehouse that has the most commodity in inventory?
SQL: SELECT store_id FROM inventory GROUP BY store_id ORDER BY count(*) DESC LIMIT 1
Database: sakila_1
Question: What is the total amount of all payments?
Paraphrased question: What is the total amount of all payments?
SQL: SELECT sum(amount) FROM payment
Database: sakila_1
Question: Return the sum of all payment amounts.
Paraphrased question: Return the sum of all payment amounts.
SQL: SELECT sum(amount) FROM payment
Database: sakila_1
Question: Which customer, who has made at least one payment, has spent the least money? List his or her first name, last name, and the id.
Paraphrased question: Which client, who has made at least one payment, has spent the least money? List his or her full name, and the id.
SQL: SELECT T1.first_name ,  T1.last_name ,  T1.customer_id FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY sum(amount) ASC LIMIT 1
Database: sakila_1
Question: What is the full name and id of the customer who has the lowest total amount of payment?
Paraphrased question: What is the full name and id of the customer who has the lowest total amount of payment?
SQL: SELECT T1.first_name ,  T1.last_name ,  T1.customer_id FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY sum(amount) ASC LIMIT 1
Database: sakila_1
Question: What is the genre name of the film HUNGER ROOF?
Paraphrased question: What is the genre name of the film HUNGER ROOF?
SQL: SELECT T1.name FROM category AS T1 JOIN film_category AS T2 ON T1.category_id  =  T2.category_id JOIN film AS T3 ON T2.film_id  =  T3.film_id WHERE T3.title  =  'HUNGER ROOF'
Database: sakila_1
Question: Return the name of the category to which the film 'HUNGER ROOF' belongs.
Paraphrased question: Return the name of the type to which the film 'HUNGER ROOF' belongs.
SQL: SELECT T1.name FROM category AS T1 JOIN film_category AS T2 ON T1.category_id  =  T2.category_id JOIN film AS T3 ON T2.film_id  =  T3.film_id WHERE T3.title  =  'HUNGER ROOF'
Database: sakila_1
Question: How many films are there in each category? List the genre name, genre id and the count.
Paraphrased question: How many movies are there in each category? List the genre name, genre id and the count.
SQL: SELECT T2.name ,  T1.category_id ,  count(*) FROM film_category AS T1 JOIN category AS T2 ON T1.category_id  =  T2.category_id GROUP BY T1.category_id
Database: sakila_1
Question: What are the names and ids of the different categories, and how many films are in each?
Paraphrased question: What are the names and ids of the different types, and how many movies are in each?
SQL: SELECT T2.name ,  T1.category_id ,  count(*) FROM film_category AS T1 JOIN category AS T2 ON T1.category_id  =  T2.category_id GROUP BY T1.category_id
Database: sakila_1
Question: Which film has the most copies in the inventory? List both title and id.
Paraphrased question: Which movie has the most copies in the inventory? List both title and id.
SQL: SELECT T1.title ,  T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id  =  T2.film_id GROUP BY T1.film_id ORDER BY count(*) DESC LIMIT 1
Database: sakila_1
Question: What is the title and id of the film that has the greatest number of copies in inventory?
Paraphrased question: What is the title and id of the movie that has the greatest number of copies in inventory?
SQL: SELECT T1.title ,  T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id  =  T2.film_id GROUP BY T1.film_id ORDER BY count(*) DESC LIMIT 1
Database: sakila_1
Question: What is the film title and inventory id of the item in the inventory which was rented most frequently?
Paraphrased question: What is the movie title and inventory id of the item in the inventory which was rented most frequently?
SQL: SELECT T1.title ,  T2.inventory_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id  =  T2.film_id JOIN rental AS T3 ON T2.inventory_id  =  T3.inventory_id GROUP BY T2.inventory_id ORDER BY count(*) DESC LIMIT 1
Database: sakila_1
Question: Return the title and inventory id of the film that is rented most often.
Paraphrased question: Return the title and inventory id of the movie that is rented most often.
SQL: SELECT T1.title ,  T2.inventory_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id  =  T2.film_id JOIN rental AS T3 ON T2.inventory_id  =  T3.inventory_id GROUP BY T2.inventory_id ORDER BY count(*) DESC LIMIT 1
Database: sakila_1
Question: How many languages are in these films?
Paraphrased question: How many languages are in these movies?
SQL: SELECT count(DISTINCT language_id) FROM film
Database: sakila_1
Question: Count the number of different languages in these films.
Paraphrased question: Count the number of different languages in these movies.
SQL: SELECT count(DISTINCT language_id) FROM film
Database: sakila_1
Question: What are all the movies rated as R? List the titles.
Paraphrased question: What are all the movies rated as R? List the titles.
SQL: SELECT title FROM film WHERE rating  =  'R'
Database: sakila_1
Question: Return the titles of any movies with an R rating.
Paraphrased question: Return the titles of any movies with an R rating.
SQL: SELECT title FROM film WHERE rating  =  'R'
Database: sakila_1
Question: Where is store 1 located?
Paraphrased question: Where is store 1 located?
SQL: SELECT T2.address FROM store AS T1 JOIN address AS T2 ON T1.address_id  =  T2.address_id WHERE store_id  =  1
Database: sakila_1
Question: Return the address of store 1.
Paraphrased question: Return the location of store 1.
SQL: SELECT T2.address FROM store AS T1 JOIN address AS T2 ON T1.address_id  =  T2.address_id WHERE store_id  =  1
Database: sakila_1
Question: Which staff handled least number of payments? List the full name and the id.
Paraphrased question: Which staff handled least number of payments? List the full name and the id.
SQL: SELECT T1.first_name ,  T1.last_name ,  T1.staff_id FROM staff AS T1 JOIN payment AS T2 ON T1.staff_id  =  T2.staff_id GROUP BY T1.staff_id ORDER BY count(*) ASC LIMIT 1
Database: sakila_1
Question: Give the full name and staff id of the staff who has handled the fewest payments.
Paraphrased question: Give the full name and staff id of the staff who has handled the fewest payments.
SQL: SELECT T1.first_name ,  T1.last_name ,  T1.staff_id FROM staff AS T1 JOIN payment AS T2 ON T1.staff_id  =  T2.staff_id GROUP BY T1.staff_id ORDER BY count(*) ASC LIMIT 1
Database: sakila_1
Question: Which language does the film AIRPORT POLLOCK use? List the language name.
Paraphrased question: Which language does the movie AIRPORT POLLOCK use? List the language name.
SQL: SELECT T2.name FROM film AS T1 JOIN LANGUAGE AS T2 ON T1.language_id  =  T2.language_id WHERE T1.title  =  'AIRPORT POLLOCK'
Database: sakila_1
Question: What is the name of the language that the film 'AIRPORT POLLOCK' is in?
Paraphrased question: What is the name of the language that the movie 'AIRPORT POLLOCK' is in?
SQL: SELECT T2.name FROM film AS T1 JOIN LANGUAGE AS T2 ON T1.language_id  =  T2.language_id WHERE T1.title  =  'AIRPORT POLLOCK'
Database: sakila_1
Question: How many stores are there?
Paraphrased question: How many warehouses are there?
SQL: SELECT count(*) FROM store
Database: sakila_1
Question: Count the number of stores.
Paraphrased question: Count the number of warehouse.
SQL: SELECT count(*) FROM store
Database: sakila_1
Question: How many kinds of different ratings are listed?
Paraphrased question: How many kinds of different ratings are listed?
SQL: SELECT count(DISTINCT rating) FROM film
Database: sakila_1
Question: Count the number of different film ratings.
Paraphrased question: Count the number of different movie scores.
SQL: SELECT count(DISTINCT rating) FROM film
Database: sakila_1
Question: Which movies have 'Deleted Scenes' as a substring in the special feature?
Paraphrased question: Which movies have 'Deleted Scenes' as a substring in the special feature?
SQL: SELECT title FROM film WHERE special_features LIKE '%Deleted Scenes%'
Database: sakila_1
Question: Return the titles of films that include 'Deleted Scenes' in their special feature section.
Paraphrased question: Return the titles of movies that include 'Deleted Scenes' in their special feature section.
SQL: SELECT title FROM film WHERE special_features LIKE '%Deleted Scenes%'
Database: sakila_1
Question: How many items in inventory does store 1 have?
Paraphrased question: How many items in inventory does store 1 have?
SQL: SELECT count(*) FROM inventory WHERE store_id  =  1
Database: sakila_1
Question: Count the number of items store 1 has in stock.
Paraphrased question: Count the number of items store 1 has in stock.
SQL: SELECT count(*) FROM inventory WHERE store_id  =  1
Database: sakila_1
Question: When did the first payment happen?
Paraphrased question: When did the first payment happen?
SQL: SELECT payment_date FROM payment ORDER BY payment_date ASC LIMIT 1
Database: sakila_1
Question: What was the date of the earliest payment?
Paraphrased question: What was the day of the earliest payment?
SQL: SELECT payment_date FROM payment ORDER BY payment_date ASC LIMIT 1
Database: sakila_1
Question: Where does the customer with the first name Linda live? And what is her email?
Paraphrased question: Where does the client with the forename Linda live? And what is her email?
SQL: SELECT T2.address ,  T1.email FROM customer AS T1 JOIN address AS T2 ON T2.address_id  =  T1.address_id WHERE T1.first_name  =  'LINDA'
Database: sakila_1
Question: Return the address and email of the customer with the first name Linda.
Paraphrased question: Return the location and email of the client with the forename Linda.
SQL: SELECT T2.address ,  T1.email FROM customer AS T1 JOIN address AS T2 ON T2.address_id  =  T1.address_id WHERE T1.first_name  =  'LINDA'
Database: sakila_1
Question: Find all the films longer than 100 minutes, or rated PG, except those who cost more than 200 for replacement. List the titles.
Paraphrased question: Find all the movies longer than 100 minutes, or rated PG, except those who cost more than 200 for replacement. List the titles.
SQL: SELECT title FROM film WHERE LENGTH  >  100 OR rating  =  'PG' EXCEPT SELECT title FROM film WHERE replacement_cost  >  200
Database: sakila_1
Question: What are the titles of films that are either longer than 100 minutes or rated PG other than those that cost more than 200 to replace?
Paraphrased question: What are the titles of movies that are either longer than 100 minutes or rated PG other than those that cost more than 200 to replace?
SQL: SELECT title FROM film WHERE LENGTH  >  100 OR rating  =  'PG' EXCEPT SELECT title FROM film WHERE replacement_cost  >  200
Database: sakila_1
Question: What is the first name and the last name of the customer who made the earliest rental?
Paraphrased question: What is the forename and the family name of the customer who made the earliest rental?
SQL: SELECT T1.first_name ,  T1.last_name FROM customer AS T1 JOIN rental AS T2 ON T1.customer_id  =  T2.customer_id ORDER BY T2.rental_date ASC LIMIT 1
Database: sakila_1
Question: Return the full name of the customer who made the first rental.
Paraphrased question: Return the full name of the client who made the first rental.
SQL: SELECT T1.first_name ,  T1.last_name FROM customer AS T1 JOIN rental AS T2 ON T1.customer_id  =  T2.customer_id ORDER BY T2.rental_date ASC LIMIT 1
Database: sakila_1
Question: What is the full name of the staff member who has rented a film to a customer with the first name April and the last name Burns?
Paraphrased question: What is the full name of the staff member who has rented a film to a customer with the first name April and the last name Burns?
SQL: SELECT DISTINCT T1.first_name ,  T1.last_name FROM staff AS T1 JOIN rental AS T2 ON T1.staff_id  =  T2.staff_id JOIN customer AS T3 ON T2.customer_id  =  T3.customer_id WHERE T3.first_name  =  'APRIL' AND T3.last_name  =  'BURNS'
Database: sakila_1
Question: Return the full name of the staff who provided a customer with the first name April and the last name Burns with a film rental.
Paraphrased question: Return the full name of the staff who provided a customer with the first name April and the last name Burns with a film rental.
SQL: SELECT DISTINCT T1.first_name ,  T1.last_name FROM staff AS T1 JOIN rental AS T2 ON T1.staff_id  =  T2.staff_id JOIN customer AS T3 ON T2.customer_id  =  T3.customer_id WHERE T3.first_name  =  'APRIL' AND T3.last_name  =  'BURNS'
Database: sakila_1
Question: Which store has most the customers?
Paraphrased question: Which warehouse has most the clients?
SQL: SELECT store_id FROM customer GROUP BY store_id ORDER BY count(*) DESC LIMIT 1
Database: sakila_1
Question: Return the id of the store with the most customers.
Paraphrased question: Return the id of the warehouse with the most clients.
SQL: SELECT store_id FROM customer GROUP BY store_id ORDER BY count(*) DESC LIMIT 1
Database: sakila_1
Question: What is the largest payment amount?
Paraphrased question: What is the largest payment amount?
SQL: SELECT amount FROM payment ORDER BY amount DESC LIMIT 1
Database: sakila_1
Question: Return the amount of the largest payment.
Paraphrased question: Return the amount of the largest payment.
SQL: SELECT amount FROM payment ORDER BY amount DESC LIMIT 1
Database: sakila_1
Question: Where does the staff member with the first name Elsa live?
Paraphrased question: Where does the employee member with the forename Elsa live?
SQL: SELECT T2.address FROM staff AS T1 JOIN address AS T2 ON T1.address_id  =  T2.address_id WHERE T1.first_name  =  'Elsa'
Database: sakila_1
Question: Give the address of the staff member who has the first name Elsa.
Paraphrased question: Give the location of the staff member who has the forename Elsa.
SQL: SELECT T2.address FROM staff AS T1 JOIN address AS T2 ON T1.address_id  =  T2.address_id WHERE T1.first_name  =  'Elsa'
Database: sakila_1
Question: What are the first names of customers who have not rented any films after '2005-08-23 02:06:01'?
Paraphrased question: What are the forename of customers who have not rented any films after '2005-08-23 02:06:01'?
SQL: SELECT first_name FROM customer WHERE customer_id NOT IN( SELECT customer_id FROM rental WHERE rental_date  >  '2005-08-23 02:06:01' )
Database: sakila_1
Question: Return the first names of customers who did not rented a film after the date '2005-08-23 02:06:01'.
Paraphrased question: Return the forename of customers who did not rented a film after the date '2005-08-23 02:06:01'.
SQL: SELECT first_name FROM customer WHERE customer_id NOT IN( SELECT customer_id FROM rental WHERE rental_date  >  '2005-08-23 02:06:01' )
Database: loan_1
Question: How many bank branches are there?
Paraphrased question: How many bank branches are there?
SQL: SELECT count(*) FROM bank
Database: loan_1
Question: Count the number of bank branches.
Paraphrased question: Count the number of bank branches.
SQL: SELECT count(*) FROM bank
Database: loan_1
Question: How many customers are there?
Paraphrased question: How many clients are there?
SQL: SELECT sum(no_of_customers) FROM bank
Database: loan_1
Question: What is the total number of customers across banks?
Paraphrased question: What is the total number of clients across banks?
SQL: SELECT sum(no_of_customers) FROM bank
Database: loan_1
Question: Find the number of customers in the banks at New York City.
Paraphrased question: Find the number of clients in the banks at New York City.
SQL: SELECT sum(no_of_customers) FROM bank WHERE city  =  'New York City'
Database: loan_1
Question: What is the total number of customers who use banks in New York City?
Paraphrased question: What is the total number of clients who use banks in New York City?
SQL: SELECT sum(no_of_customers) FROM bank WHERE city  =  'New York City'
Database: loan_1
Question: Find the average number of customers in all banks of Utah state.
Paraphrased question: Find the average number of clients in all banks of Utah state.
SQL: SELECT avg(no_of_customers) FROM bank WHERE state  =  'Utah'
Database: loan_1
Question: What is the average number of customers across banks in the state of Utah?
Paraphrased question: What is the average number of clients across banks in the state of Utah?
SQL: SELECT avg(no_of_customers) FROM bank WHERE state  =  'Utah'
Database: loan_1
Question: Find the average number of customers cross all banks.
Paraphrased question: Find the average number of clients cross all banks.
SQL: SELECT avg(no_of_customers) FROM bank
Database: loan_1
Question: What is the average number of bank customers?
Paraphrased question: What is the average number of bank clients?
SQL: SELECT avg(no_of_customers) FROM bank
Database: loan_1
Question: Find the city and state of the bank branch named morningside.
Paraphrased question: Find the city and state of the bank branch named morningside.
SQL: SELECT city ,  state FROM bank WHERE bname  =  'morningside'
Database: loan_1
Question: What city and state is the bank with the name morningside in?
Paraphrased question: What city and state is the bank with the name morningside in?
SQL: SELECT city ,  state FROM bank WHERE bname  =  'morningside'
Database: loan_1
Question: Find the branch names of banks in the New York state.
Paraphrased question: Find the branch names of banks in the New York state.
SQL: SELECT bname FROM bank WHERE state  =  'New York'
Database: loan_1
Question: What are the names of banks in the state of New York?
Paraphrased question: What are the names of banks in the state of New York?
SQL: SELECT bname FROM bank WHERE state  =  'New York'
Database: loan_1
Question: List the name of all customers sorted by their account balance in ascending order.
Paraphrased question: List the name of all clients sorted by their account balance in ascending order.
SQL: SELECT cust_name FROM customer ORDER BY acc_bal
Database: loan_1
Question: What are the names of all customers, ordered by account balance?
Paraphrased question: What are the names of all clients, ordered by account balance?
SQL: SELECT cust_name FROM customer ORDER BY acc_bal
Database: loan_1
Question: List the name of all different customers who have some loan sorted by their total loan amount.
Paraphrased question: List the name of all different clients who have some loan sorted by their total loan amount.
SQL: SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount)
Database: loan_1
Question: What are the names of the different customers who have taken out a loan, ordered by the total amount that they have taken?
Paraphrased question: What are the names of the different clients who have taken out a loan, ordered by the total amount that they have taken?
SQL: SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount)
Database: loan_1
Question: Find the state, account type, and credit score of the customer whose number of loan is 0.
Paraphrased question: Find the state, account type, and credit score of the client whose number of loan is 0.
SQL: SELECT state ,  acc_type ,  credit_score FROM customer WHERE no_of_loans  =  0
Database: loan_1
Question: What are the states, account types, and credit scores for customers who have 0 loans?
Paraphrased question: What are the states, account types, and credit scores for clients who have 0 loans?
SQL: SELECT state ,  acc_type ,  credit_score FROM customer WHERE no_of_loans  =  0
Database: loan_1
Question: Find the number of different cities which banks are located at.
Paraphrased question: Find the number of different cities which banks are located at.
SQL: SELECT count(DISTINCT city) FROM bank
Database: loan_1
Question: In how many different cities are banks located?
Paraphrased question: In how many different cities are banks located?
SQL: SELECT count(DISTINCT city) FROM bank
Database: loan_1
Question: Find the number of different states which banks are located at.
Paraphrased question: Find the number of different states which banks are located at.
SQL: SELECT count(DISTINCT state) FROM bank
Database: loan_1
Question: In how many different states are banks located?
Paraphrased question: In how many different states are banks located?
SQL: SELECT count(DISTINCT state) FROM bank
Database: loan_1
Question: How many distinct types of accounts are there?
Paraphrased question: How many different categories of accounts are there?
SQL: SELECT count(DISTINCT acc_type) FROM customer
Database: loan_1
Question: Count the number of different account types.
Paraphrased question: Count the number of different account categories.
SQL: SELECT count(DISTINCT acc_type) FROM customer
Database: loan_1
Question: Find the name and account balance of the customer whose name includes the letter ‘a’.
Paraphrased question: Find the name and account balance of the client whose name includes the letter ‘a’.
SQL: SELECT cust_name ,  acc_bal FROM customer WHERE cust_name LIKE '%a%'
Database: loan_1
Question: What are the names and account balances of customers with the letter a in their names?
Paraphrased question: What are the names and account balances of clients with the letter a in their names?
SQL: SELECT cust_name ,  acc_bal FROM customer WHERE cust_name LIKE '%a%'
Database: loan_1
Question: Find the total account balance of each customer from Utah or Texas.
Paraphrased question: Find the total account balance of each client from Utah or Texas.
SQL: SELECT sum(acc_bal) FROM customer WHERE state  =  'Utah' OR state  =  'Texas'
Database: loan_1
Question: What are the total account balances for each customer from Utah or Texas?
Paraphrased question: What are the total account balances for each client from Utah or Texas?
SQL: SELECT sum(acc_bal) FROM customer WHERE state  =  'Utah' OR state  =  'Texas'
Database: loan_1
Question: Find the name of customers who have both saving and checking account types.
Paraphrased question: Find the name of clients who have both saving and checking account types.
SQL: SELECT cust_name FROM customer WHERE acc_type  =  'saving' INTERSECT SELECT cust_name FROM customer WHERE acc_type  =  'checking'