aherntech/spider-syn huggingface dataset:
Database: customers_and_invoices
Question: What are the invoice dates, order ids, and order details for all invoices?
Paraphrased question: What are the invoice days, order ids, and order detail for all invoices?
SQL: SELECT T1.invoice_date ,  T1.order_id ,  T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id  =  T2.order_id
Database: customers_and_invoices
Question: Show the order ids and the number of invoices for each order.
Paraphrased question: Show the order ids and the number of invoices for each order.
SQL: SELECT order_id ,  count(*) FROM Invoices GROUP BY order_id
Database: customers_and_invoices
Question: How many invoices correspond to each order id?
Paraphrased question: How many invoices correspond to each order id?
SQL: SELECT order_id ,  count(*) FROM Invoices GROUP BY order_id
Database: customers_and_invoices
Question: What is the order id and order details for the order more than two invoices.
Paraphrased question: What is the order id and order information for the order more than two invoices.
SQL: SELECT T2.order_id ,  T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id  =  T2.order_id GROUP BY T2.order_id HAVING count(*)  >  2
Database: customers_and_invoices
Question: Return the order ids and details for orderes with two or more invoices.
Paraphrased question: Return the order ids and detail for orderes with two or more invoices.
SQL: SELECT T2.order_id ,  T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id  =  T2.order_id GROUP BY T2.order_id HAVING count(*)  >  2
Database: customers_and_invoices
Question: What is the customer last name, id and phone number with most number of orders?
Paraphrased question: What is the client family name, id and telephone number with most number of orders?
SQL: SELECT T2.customer_last_name ,  T1.customer_id ,  T2.phone_number FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1
Database: customers_and_invoices
Question: Return the last name, id and phone number of the customer who has made the greatest number of orders.
Paraphrased question: Return the surname, id and telephone number of the client who has made the greatest number of orders.
SQL: SELECT T2.customer_last_name ,  T1.customer_id ,  T2.phone_number FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1
Database: customers_and_invoices
Question: Show all product names without an order.
Paraphrased question: Show all goods names without an order.
SQL: SELECT product_name FROM Products EXCEPT SELECT T1.product_name FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id  =  T2.product_id
Database: customers_and_invoices
Question: What are the names of products that have never been ordered?
Paraphrased question: What are the names of goods that have never been ordered?
SQL: SELECT product_name FROM Products EXCEPT SELECT T1.product_name FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id  =  T2.product_id
Database: customers_and_invoices
Question: Show all product names and the total quantity ordered for each product name.
Paraphrased question: Show all goods names and the total quantity ordered for each goods name.
SQL: SELECT T2.product_name ,  sum(T1.product_quantity) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id  =  T2.product_id GROUP BY T2.product_name
Database: customers_and_invoices
Question: What are the different product names, and what is the sum of quantity ordered for each product?
Paraphrased question: What are the different goods names, and what is the sum of quantity ordered for each goods?
SQL: SELECT T2.product_name ,  sum(T1.product_quantity) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id  =  T2.product_id GROUP BY T2.product_name
Database: customers_and_invoices
Question: Show the order ids and the number of items in each order.
Paraphrased question: Show the order ids and the number of items in each order.
SQL: SELECT order_id ,  count(*) FROM Order_items GROUP BY order_id
Database: customers_and_invoices
Question: How many order items correspond to each order id?
Paraphrased question: How many order items correspond to each order id?
SQL: SELECT order_id ,  count(*) FROM Order_items GROUP BY order_id
Database: customers_and_invoices
Question: Show the product ids and the number of unique orders containing each product.
Paraphrased question: Show the goods ids and the number of unique orders containing each goods.
SQL: SELECT product_id ,  count(DISTINCT order_id) FROM Order_items GROUP BY product_id
Database: customers_and_invoices
Question: How many distinct order ids correspond to each product?
Paraphrased question: How many different order ids correspond to each goods?
SQL: SELECT product_id ,  count(DISTINCT order_id) FROM Order_items GROUP BY product_id
Database: customers_and_invoices
Question: Show all product names and the number of customers having an order on each product.
Paraphrased question: Show all goods names and the number of clients having an order on each goods.
SQL: SELECT T2.product_name ,  count(*) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id  =  T2.product_id JOIN Orders AS T3 ON T3.order_id  =  T1.order_id GROUP BY T2.product_name
Database: customers_and_invoices
Question: What are teh names of the different products, as well as the number of customers who have ordered each product.
Paraphrased question: What are teh names of the different goods, as well as the number of customers who have ordered each goods.
SQL: SELECT T2.product_name ,  count(*) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id  =  T2.product_id JOIN Orders AS T3 ON T3.order_id  =  T1.order_id GROUP BY T2.product_name
Database: customers_and_invoices
Question: Show order ids and the number of products in each order.
Paraphrased question: Show order ids and the number of goods in each order.
SQL: SELECT order_id ,  count(DISTINCT product_id) FROM Order_items GROUP BY order_id
Database: customers_and_invoices
Question: How many different products correspond to each order id?
Paraphrased question: How many different goods correspond to each order id?
SQL: SELECT order_id ,  count(DISTINCT product_id) FROM Order_items GROUP BY order_id
Database: customers_and_invoices
Question: Show order ids and the total quantity in each order.
Paraphrased question: Show order ids and the total amount in each order.
SQL: SELECT order_id ,  sum(product_quantity) FROM Order_items GROUP BY order_id
Database: customers_and_invoices
Question: Give the order ids for all orders, as well as the total product quantity in each.
Paraphrased question: Give the order ids for all orders, as well as the total goods amount in each.
SQL: SELECT order_id ,  sum(product_quantity) FROM Order_items GROUP BY order_id
Database: customers_and_invoices
Question: How many products were not included in any order?
Paraphrased question: How many goods were not included in any order?
SQL: SELECT count(*) FROM products WHERE product_id NOT IN ( SELECT product_id FROM Order_items )
Database: customers_and_invoices
Question: Count the number of products that were never ordered.
Paraphrased question: Count the number of goods that were never ordered.
SQL: SELECT count(*) FROM products WHERE product_id NOT IN ( SELECT product_id FROM Order_items )
Database: wedding
Question: How many churches opened before 1850 are there?
Paraphrased question: How many churches started before 1850 are there?
SQL: SELECT count(*) FROM Church WHERE Open_Date  <  1850
Database: wedding
Question: Show the name, open date, and organizer for all churches.
Paraphrased question: Show the name, start day, and organizer for all churches.
SQL: SELECT name ,  open_date ,  organized_by FROM Church
Database: wedding
Question: List all church names in descending order of opening date.
Paraphrased question: List all church names in descending order of opening date.
SQL: SELECT name FROM church ORDER BY open_date DESC
Database: wedding
Question: Show the opening year in whcih at least two churches opened.
Paraphrased question: Show the opening year in whcih at least two churches opened.
SQL: SELECT open_date FROM church GROUP BY open_date HAVING count(*)  >=  2
Database: wedding
Question: Show the organizer and name for churches that opened between 1830 and 1840.
Paraphrased question: Show the organizer and name for churches that opened between 1830 and 1840.
SQL: SELECT organized_by ,  name FROM church WHERE open_date BETWEEN 1830 AND 1840
Database: wedding
Question: Show all opening years and the number of churches that opened in that year.
Paraphrased question: Show all opening years and the number of churches that opened in that year.
SQL: SELECT open_date ,  count(*) FROM church GROUP BY open_date
Database: wedding
Question: Show the name and opening year for three churches that opened most recently.
Paraphrased question: Show the name and opening year for three churches that opened most recently.
SQL: SELECT name ,  open_date FROM church ORDER BY open_date DESC LIMIT 3
Database: wedding
Question: How many female people are older than 30 in our record?
Paraphrased question: How many female people are older than 30 in our record?
SQL: SELECT count(*) FROM people WHERE is_male  =  'F' AND age  >  30
Database: wedding
Question: Show the country where people older than 30 and younger than 25 are from.
Paraphrased question: Show the nation where people older than 30 and younger than 25 are from.
SQL: SELECT country FROM people WHERE age  <  25 INTERSECT SELECT country FROM people WHERE age  >  30
Database: wedding
Question: Show the minimum, maximum, and average age for all people.
Paraphrased question: Show the minimum, maximum, and average age for all people.
SQL: SELECT min(age) ,  max(age) ,  avg(age) FROM people
Database: wedding
Question: Show the name and country for all people whose age is smaller than the average.
Paraphrased question: Show the name and nation for all people whose age is smaller than the average.
SQL: SELECT name ,  country FROM people WHERE age  <  (SELECT avg(age) FROM people)
Database: wedding
Question: Show the pair of male and female names in all weddings after year 2014
Paraphrased question: Show the pair of male and female names in all weddings after year 2014
SQL: SELECT T2.name ,  T3.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id  =  T2.people_id JOIN people AS T3 ON T1.female_id  =  T3.people_id WHERE T1.year  >  2014
Database: wedding
Question: Show the name and age for all male people who don't have a wedding.
Paraphrased question: Show the name and age for all male people who don't have a wedding.
SQL: SELECT name ,  age FROM people WHERE is_male  =  'T' AND people_id NOT IN (SELECT male_id FROM wedding)
Database: wedding
Question: Show all church names except for those that had a wedding in year 2015.
Paraphrased question: Show all church names except for those that had a wedding in year 2015.
SQL: SELECT name FROM church EXCEPT SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id  =  T2.church_id WHERE T2.year  =  2015
Database: wedding
Question: Show all church names that have hosted least two weddings.
Paraphrased question: Show all church names that have hosted least two weddings.
SQL: SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id  =  T2.church_id GROUP BY T1.church_id HAVING count(*)  >=  2
Database: wedding
Question: Show the names for all females from Canada having a wedding in year 2016.
Paraphrased question: Show the names for all females from Canada having a wedding in year 2016.
SQL: SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.female_id  =  T2.people_id WHERE T1.year  =  2016 AND T2.is_male  =  'F' AND T2.country  =  'Canada'
Database: wedding
Question: How many weddings are there in year 2016?
Paraphrased question: How many weddings are there in year 2016?
SQL: SELECT count(*) FROM wedding WHERE YEAR  =  2016
Database: wedding
Question: Show the church names for the weddings of all people older than 30.
Paraphrased question: Show the church names for the weddings of all people older than 30.
SQL: SELECT T4.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id  =  T2.people_id JOIN people AS T3 ON T1.female_id  =  T3.people_id JOIN church AS T4 ON T4.church_id  =  T1.church_id WHERE T2.age  >  30 OR T3.age  >  30
Database: wedding
Question: Show all countries and the number of people from each country.
Paraphrased question: Show all nations and the number of people from each nation.
SQL: SELECT country ,  count(*) FROM people GROUP BY country
Database: wedding
Question: How many churches have a wedding in year 2016?
Paraphrased question: How many churches have a wedding in year 2016?
SQL: SELECT COUNT (DISTINCT church_id) FROM wedding WHERE YEAR  =  2016
Database: theme_gallery
Question: How many artists do we have?
Paraphrased question: How many artists do we have?
SQL: SELECT count(*) FROM artist
Database: theme_gallery
Question: Count the number of artists.
Paraphrased question: Count the number of artists.
SQL: SELECT count(*) FROM artist
Database: theme_gallery
Question: Show all artist name, age, and country ordered by the yeared they joined.
Paraphrased question: Show all artist name, age, and nation ordered by the yeared they joined.
SQL: SELECT name ,  age ,  country FROM artist ORDER BY Year_Join
Database: theme_gallery
Question: What are the names, ages, and countries of artists, sorted by the year they joined?
Paraphrased question: What are the names, ages, and nations of artists, sorted by the year they joined?
SQL: SELECT name ,  age ,  country FROM artist ORDER BY Year_Join
Database: theme_gallery
Question: What are all distinct country for artists?
Paraphrased question: What are all different nation for artists?
SQL: SELECT DISTINCT country FROM artist
Database: theme_gallery
Question: Return the different countries for artists.
Paraphrased question: Return the different nations for artists.
SQL: SELECT DISTINCT country FROM artist
Database: theme_gallery
Question: Show all artist names and the year joined who are not from United States.
Paraphrased question: Show all artist names and the year joined who are not from United States.
SQL: SELECT name ,  year_join FROM artist WHERE country != 'United States'
Database: theme_gallery
Question: What are the names and year of joining for artists that do not have the country "United States"?
Paraphrased question: What are the names and year of joining for artists that do not have the country "United States"?
SQL: SELECT name ,  year_join FROM artist WHERE country != 'United States'
Database: theme_gallery
Question: How many artists are above age 46 and joined after 1990?
Paraphrased question: How many artists are above age 46 and joined after 1990?
SQL: SELECT count(*) FROM artist WHERE age  >  46 AND year_join  >  1990
Database: theme_gallery
Question: Count the number of artists who are older than 46 and joined after 1990.
Paraphrased question: Count the number of artists who are older than 46 and joined after 1990.
SQL: SELECT count(*) FROM artist WHERE age  >  46 AND year_join  >  1990
Database: theme_gallery
Question: What is the average and minimum age of all artists from United States.
Paraphrased question: What is the average and minimum age of all artists from United States.
SQL: SELECT avg(age) ,  min(age) FROM artist WHERE country  =  'United States'
Database: theme_gallery
Question: Return the average and minimum ages across artists from the United States.
Paraphrased question: Return the average and minimum ages across artists from the United States.
SQL: SELECT avg(age) ,  min(age) FROM artist WHERE country  =  'United States'
Database: theme_gallery
Question: What is the name of the artist who joined latest?
Paraphrased question: What is the name of the artist who joined latest?
SQL: SELECT name FROM artist ORDER BY year_join DESC LIMIT 1
Database: theme_gallery
Question: Return the name of the artist who has the latest join year.
Paraphrased question: Return the name of the artist who has the latest join year.
SQL: SELECT name FROM artist ORDER BY year_join DESC LIMIT 1
Database: theme_gallery
Question: How many exhibition are there in year 2005 or after?
Paraphrased question: How many exhibition are there in year 2005 or after?
SQL: SELECT count(*) FROM exhibition WHERE YEAR  >=  2005
Database: theme_gallery
Question: Count the number of exhibitions that happened in or after 2005.
Paraphrased question: Count the number of exhibitions that happened in or after 2005.
SQL: SELECT count(*) FROM exhibition WHERE YEAR  >=  2005
Database: theme_gallery
Question: Show theme and year for all exhibitions with ticket prices lower than 15.
Paraphrased question: Show topic and year for all exhibitions with ticket prices lower than 15.
SQL: SELECT theme ,  YEAR FROM exhibition WHERE ticket_price  <  15
Database: theme_gallery
Question: What are the theme and year for all exhibitions that have a ticket price under 15?
Paraphrased question: What are the topic and year for all exhibitions that have a ticket price under 15?
SQL: SELECT theme ,  YEAR FROM exhibition WHERE ticket_price  <  15
Database: theme_gallery
Question: Show all artist names and the number of exhibitions for each artist.
Paraphrased question: Show all artist names and the number of exhibitions for each artist.
SQL: SELECT T2.name ,  count(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id GROUP BY T1.artist_id
Database: theme_gallery
Question: How many exhibitions has each artist had?
Paraphrased question: How many exhibitions has each artist had?
SQL: SELECT T2.name ,  count(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id GROUP BY T1.artist_id
Database: theme_gallery
Question: What is the name and country for the artist with most number of exhibitions?
Paraphrased question: What is the name and nation for the artist with most number of exhibitions?
SQL: SELECT T2.name , T2.country FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id GROUP BY T1.artist_id ORDER BY count(*) DESC LIMIT 1
Database: theme_gallery
Question: Return the name and country corresponding to the artist who has had the most exhibitions.
Paraphrased question: Return the name and nation corresponding to the artist who has had the most exhibitions.
SQL: SELECT T2.name , T2.country FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id GROUP BY T1.artist_id ORDER BY count(*) DESC LIMIT 1
Database: theme_gallery
Question: Show names for artists without any exhibition.
Paraphrased question: Show names for artists without any exhibition.
SQL: SELECT name FROM artist WHERE artist_id NOT IN (SELECT artist_id FROM exhibition)
Database: theme_gallery
Question: What are the names of artists that have not had any exhibitions?
Paraphrased question: What are the names of artists that have not had any exhibitions?
SQL: SELECT name FROM artist WHERE artist_id NOT IN (SELECT artist_id FROM exhibition)
Database: theme_gallery
Question: What is the theme and artist name for the exhibition with a ticket price higher than the average?
Paraphrased question: What is the topic and artist name for the exhibition with a ticket price higher than the average?
SQL: SELECT T1.theme ,  T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id WHERE T1.ticket_price  >  (SELECT avg(ticket_price) FROM exhibition)
Database: theme_gallery
Question: Return the names of artists and the themes of their exhibitions that had a ticket price higher than average.
Paraphrased question: Return the names of artists and the topics of their exhibitions that had a ticket price higher than average.
SQL: SELECT T1.theme ,  T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id WHERE T1.ticket_price  >  (SELECT avg(ticket_price) FROM exhibition)
Database: theme_gallery
Question: Show the average, minimum, and maximum ticket prices for exhibitions for all years before 2009.
Paraphrased question: Show the average, minimum, and maximum ticket prices for exhibitions for all years before 2009.
SQL: SELECT avg(ticket_price) ,  min(ticket_price) ,  max(ticket_price) FROM exhibition WHERE YEAR  <  2009
Database: theme_gallery
Question: What are the average, minimum, and maximum ticket prices for exhibitions that happened prior to 2009?
Paraphrased question: What are the average, minimum, and maximum ticket prices for exhibitions that happened prior to 2009?
SQL: SELECT avg(ticket_price) ,  min(ticket_price) ,  max(ticket_price) FROM exhibition WHERE YEAR  <  2009
Database: theme_gallery
Question: Show theme and year for all exhibitions in an descending order of ticket price.
Paraphrased question: Show topic and year for all exhibitions in an descending order of ticket price.
SQL: SELECT theme ,  YEAR FROM exhibition ORDER BY ticket_price DESC
Database: theme_gallery
Question: What are the themes and years for exhibitions, sorted by ticket price descending?
Paraphrased question: What are the topics and years for exhibitions, sorted by ticket price descending?
SQL: SELECT theme ,  YEAR FROM exhibition ORDER BY ticket_price DESC
Database: theme_gallery
Question: What is the theme, date, and attendance for the exhibition in year 2004?
Paraphrased question: What is the topic, day, and number of attendees for the exhibition in year 2004?
SQL: SELECT T2.theme ,  T1.date ,  T1.attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T2.year  =  2004
Database: theme_gallery
Question: Return the themes, dates, and attendance for exhibitions that happened in 2004.
Paraphrased question: Return the topics, day, and number of attendee for exhibitions that happened in 2004.
SQL: SELECT T2.theme ,  T1.date ,  T1.attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T2.year  =  2004
Database: theme_gallery
Question: Show all artist names who didn't have an exhibition in 2004.
Paraphrased question: Show all artist names who didn't have an exhibition in 2004.
SQL: SELECT name FROM artist EXCEPT SELECT T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id WHERE T1.year  =  2004
Database: theme_gallery
Question: What are the names of artists who did not have an exhibition in 2004?
Paraphrased question: What are the names of artists who did not have an exhibition in 2004?
SQL: SELECT name FROM artist EXCEPT SELECT T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id  =  T2.artist_id WHERE T1.year  =  2004
Database: theme_gallery
Question: Show the theme for exhibitions with both records of an attendance below 100 and above 500.
Paraphrased question: Show the topic for exhibitions with both records of an attendance below 100 and above 500.
SQL: SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T1.attendance  <  100 INTERSECT SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T1.attendance  >  500
Database: theme_gallery
Question: Which themes have had corresponding exhibitions that have had attendance both below 100 and above 500?
Paraphrased question: Which topics have had corresponding exhibitions that have had attendance both below 100 and above 500?
SQL: SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T1.attendance  <  100 INTERSECT SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T1.attendance  >  500
Database: theme_gallery
Question: How many exhibitions have a attendance more than 100 or have a ticket price below 10?
Paraphrased question: How many exhibitions have a attendance more than 100 or have a ticket price below 10?
SQL: SELECT count(*) FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T1.attendance  >  100 OR T2.ticket_price  <  10
Database: theme_gallery
Question: Count the number of exhibitions that have had an attendnance of over 100 or a ticket prices under 10.
Paraphrased question: Count the number of exhibitions that have had an attendnance of over 100 or a ticket prices under 10.
SQL: SELECT count(*) FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id WHERE T1.attendance  >  100 OR T2.ticket_price  <  10
Database: theme_gallery
Question: Show all artist names with an average exhibition attendance over 200.
Paraphrased question: Show all artist names with an average exhibition attendance over 200.
SQL: SELECT T3.name FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id JOIN artist AS T3 ON T3.artist_id  =  T2.artist_id GROUP BY T3.artist_id HAVING avg(T1.attendance)  >  200
Database: theme_gallery
Question: What are the names of artist whose exhibitions draw over 200 attendees on average?
Paraphrased question: What are the names of artist whose exhibitions draw over 200 attendees on average?
SQL: SELECT T3.name FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id  =  T2.exhibition_id JOIN artist AS T3 ON T3.artist_id  =  T2.artist_id GROUP BY T3.artist_id HAVING avg(T1.attendance)  >  200
Database: epinions_1
Question: Find the id of the item whose title is "orange".
Paraphrased question: Find the id of the goods whose title is "orange".
SQL: SELECT i_id FROM item WHERE title  =  "orange"
Database: epinions_1
Question: List all information in the item table.
Paraphrased question: List all information in the goods table.
SQL: SELECT * FROM item
Database: epinions_1
Question: Find the number of reviews.
Paraphrased question: Find the number of reviews.
SQL: SELECT count(*) FROM review
Database: epinions_1
Question: How many users are there?
Paraphrased question: How many users are there?
SQL: SELECT count(*) FROM useracct
Database: epinions_1
Question: Find the average and maximum rating of all reviews.
Paraphrased question: Find the average and maximum score of all reviews.
SQL: SELECT avg(rating) ,  max(rating) FROM review
Database: epinions_1
Question: Find the highest rank of all reviews.
Paraphrased question: Find the highest rank of all reviews.
SQL: SELECT min(rank) FROM review
Database: epinions_1
Question: How many different users wrote some reviews?
Paraphrased question: How many different users wrote some reviews?
SQL: SELECT count(DISTINCT u_id) FROM review
Database: epinions_1
Question: How many different items were reviewed by some users?
Paraphrased question: How many different goods were reviewed by some users?
SQL: SELECT count(DISTINCT i_id) FROM review
Database: epinions_1
Question: Find the number of items that did not receive any review.
Paraphrased question: Find the number of goods that did not receive any review.
SQL: SELECT count(*) FROM item WHERE i_id NOT IN (SELECT i_id FROM review)
Database: epinions_1
Question: Find the names of users who did not leave any review.
Paraphrased question: Find the names of users who did not leave any review.
SQL: SELECT name FROM useracct WHERE u_id NOT IN (SELECT u_id FROM review)
Database: epinions_1
Question: Find the names of goods that receive a rating of 10.
Paraphrased question: Find the names of goods that receive a rating of 10.
SQL: SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  =  10
Database: epinions_1
Question: Find the titles of items whose rating is higher than the average review rating of all items.
Paraphrased question: Find the titles of goods whose rating is higher than the average review rating of all goods.
SQL: SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  >  (SELECT avg(rating) FROM review)
Database: epinions_1
Question: Find the titles of items that received any rating below 5.
Paraphrased question: Find the titles of goods that received any rating below 5.
SQL: SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  <  5
Database: epinions_1
Question: Find the titles of items that received both a rating higher than 8 and a rating below 5.
Paraphrased question: Find the titles of goods that received both a rating higher than 8 and a rating below 5.
SQL: SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  >  8 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rating  <  5
Database: epinions_1
Question: Find the names of items whose rank is higher than 3 and whose average rating is above 5.
Paraphrased question: Find the names of goods whose rank is higher than 3 and whose average rating is above 5.
SQL: SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id WHERE T2.rank  >  3 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id HAVING avg(T2.rating)  >  5
Database: epinions_1
Question: Find the name of the item with the lowest average rating.
Paraphrased question: Find the name of the goods with the lowest average rating.
SQL: SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id ORDER BY avg(T2.rating) LIMIT 1
Database: epinions_1
Question: List the titles of all items in alphabetic order .
Paraphrased question: List the titles of all goods in alphabetic order .
SQL: SELECT title FROM item ORDER BY title
Database: epinions_1
Question: Find the name of the user who gives the most reviews.
Paraphrased question: Find the name of the user who gives the most reviews.
SQL: SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id GROUP BY T2.u_id ORDER BY count(*) DESC LIMIT 1
Database: epinions_1
Question: Find the name and id of the item with the highest average rating.
Paraphrased question: Find the name and id of the goods with the highest average rating.
SQL: SELECT T1.title ,  T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id ORDER BY avg(T2.rating) DESC LIMIT 1
Database: epinions_1
Question: Find the name and id of the good with the highest average rank.
Paraphrased question: Find the name and id of the good with the highest average rank.
SQL: SELECT T1.title ,  T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id  =  T2.i_id GROUP BY T2.i_id ORDER BY avg(T2.rank) DESC LIMIT 1
Database: epinions_1
Question: For each user, return the name and the average rating of reviews given by them.
Paraphrased question: For each user, return the name and the average score of reviews given by them.
SQL: SELECT T1.name ,  avg(T2.rating) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id GROUP BY T2.u_id
Database: epinions_1
Question: For each user, find their name and the number of reviews written by them.
Paraphrased question: For each user, find their name and the number of reviews written by them.
SQL: SELECT T1.name ,  count(*) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id GROUP BY T2.u_id
Database: epinions_1
Question: Find the name of the user who gave the highest rating.
Paraphrased question: Find the name of the user who gave the highest rating.
SQL: SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id ORDER BY T2.rating DESC LIMIT 1
Database: epinions_1
Question: Find the name of the source user with the highest average trust score.
Paraphrased question: Find the name of the source user with the highest average trust score.
SQL: SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id  =  T2.source_u_id GROUP BY T2.source_u_id ORDER BY avg(trust) DESC LIMIT 1
Database: epinions_1
Question: Find each target user's name and average trust score.
Paraphrased question: Find each target user's name and average trust score.
SQL: SELECT T1.name ,  avg(trust) FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id  =  T2.target_u_id GROUP BY T2.target_u_id
Database: epinions_1
Question: Find the name of the target user with the lowest trust score.
Paraphrased question: Find the name of the target user with the lowest trust score.
SQL: SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id  =  T2.target_u_id ORDER BY trust LIMIT 1
Database: epinions_1
Question: Find the names of the items that did not receive any review.
Paraphrased question: Find the names of the goods that did not receive any review.
SQL: SELECT title FROM item WHERE i_id NOT IN (SELECT i_id FROM review)
Database: epinions_1
Question: Find the number of users who did not write any review.
Paraphrased question: Find the number of users who did not write any review.
SQL: SELECT count(*) FROM useracct WHERE u_id NOT IN (SELECT u_id FROM review)
Database: epinions_1
Question: Find the number of items without any review.
Paraphrased question: Find the number of goods without any review.
SQL: SELECT count(*) FROM item WHERE i_id NOT IN (SELECT i_id FROM review)
Database: riding_club
Question: How many players are there?
Paraphrased question: How many participants are there?
SQL: SELECT count(*) FROM player
Database: riding_club
Question: List the names of players in ascending order of votes.
Paraphrased question: List the names of gamers in ascending order of votes.
SQL: SELECT Player_name FROM player ORDER BY Votes ASC
Database: riding_club
Question: What are the gender and occupation of players?
Paraphrased question: What are the sex and occupation of participants?
SQL: SELECT Gender ,  Occupation FROM player
Database: riding_club
Question: List the name and residence for players whose occupation is not "Researcher".
Paraphrased question: List the name and habitation for gamers whose occupation is not "Researcher".
SQL: SELECT Player_name ,  residence FROM player WHERE Occupation != "Researcher"
Database: riding_club
Question: Show the names of sponsors of players whose residence is either "Brandon" or "Birtle".
Paraphrased question: Show the names of sponsors of participants whose residence is either "Brandon" or "Birtle".
SQL: SELECT Sponsor_name FROM player WHERE Residence  =  "Brandon" OR Residence  =  "Birtle"
Database: riding_club
Question: What is the name of the player with the largest number of votes?
Paraphrased question: What is the name of the gamer with the largest number of votes?
SQL: SELECT Player_name FROM player ORDER BY Votes DESC LIMIT 1
Database: riding_club
Question: Show different occupations along with the number of players in each occupation.
Paraphrased question: Show different occupations along with the number of participants in each occupation.
SQL: SELECT Occupation ,  COUNT(*) FROM player GROUP BY Occupation
Database: riding_club
Question: Please show the most common occupation of players.
Paraphrased question: Please show the most common occupation of participants.
SQL: SELECT Occupation FROM player GROUP BY Occupation ORDER BY COUNT(*) DESC LIMIT 1
Database: riding_club
Question: Show the residences that have at least two players.
Paraphrased question: Show the habitations that have at least two players.
SQL: SELECT Residence FROM player GROUP BY Residence HAVING COUNT(*)  >=  2
Database: riding_club
Question: Show the names of players and names of their coaches.
Paraphrased question: Show the names of participants and names of their coaches.
SQL: SELECT T3.Player_name ,  T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID
Database: riding_club
Question: Show the names of players coached by the rank 1 coach.
Paraphrased question: Show the names of participants coached by the rank 1 coach.
SQL: SELECT T3.Player_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID WHERE T2.Rank  =  1
Database: riding_club
Question: Show the names and genders of players with a coach starting after 2011.
Paraphrased question: Show the names and sex of players with a coach starting after 2011.
SQL: SELECT T3.Player_name ,  T3.gender FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID WHERE T1.Starting_year  >  2011
Database: riding_club
Question: Show the names of players and names of their coaches in descending order of the votes of players.
Paraphrased question: Show the names of participants and names of their instructors in descending order of the votes of participants.
SQL: SELECT T3.Player_name ,  T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID ORDER BY T3.Votes DESC
Database: riding_club
Question: List the names of players that do not have coaches.
Paraphrased question: List the names of participants that do not have coaches.
SQL: SELECT Player_name FROM player WHERE Player_ID NOT IN (SELECT Player_ID FROM player_coach)
Database: riding_club
Question: Show the residences that have both a player of gender "M" and a player of gender "F".
Paraphrased question: Show the habitations that have both a player of gender "M" and a player of gender "F".
SQL: SELECT Residence FROM player WHERE gender  =  "M" INTERSECT SELECT Residence FROM player WHERE gender  =  "F"
Database: riding_club
Question: How many coaches does each club has? List the club id, name and the number of coaches.
Paraphrased question: How many instructors does each club has? List the club id, name and the number of instructors.
SQL: SELECT T1.club_id ,  T1.club_name, count(*) FROM club AS T1 JOIN coach AS T2 ON T1.club_id  =  T2.club_id GROUP BY T1.club_id
Database: riding_club
Question: How many gold medals has the club with the most coaches won?
Paraphrased question: How many gold medals has the club with the most coaches won?
SQL: SELECT T1.club_id ,  T1.gold FROM match_result AS T1 JOIN coach AS T2 ON T1.club_id  =  T2.club_id GROUP BY T1.club_id ORDER BY count(*) DESC LIMIT 1
Database: gymnast
Question: How many gymnasts are there?
Paraphrased question: How many gymnastics athletes are there?
SQL: SELECT count(*) FROM gymnast
Database: gymnast
Question: Count the number of gymnasts.
Paraphrased question: Count the number of gymnastics athletes.
SQL: SELECT count(*) FROM gymnast
Database: gymnast
Question: List the total points of gymnasts in descending order.
Paraphrased question: List the gross score of gymnasts in descending order.
SQL: SELECT Total_Points FROM gymnast ORDER BY Total_Points DESC
Database: gymnast
Question: What are the total points for all gymnasts, ordered by total points descending?
Paraphrased question: What are the gross score for all gymnasts, ordered by total points descending?
SQL: SELECT Total_Points FROM gymnast ORDER BY Total_Points DESC
Database: gymnast
Question: List the total points of gymnasts in descending order of floor exercise points.
Paraphrased question: List the gross score of gymnasts in descending order of floor exercise points.
SQL: SELECT Total_Points FROM gymnast ORDER BY Floor_Exercise_Points DESC
Database: gymnast
Question: What are the total points of gymnasts, ordered by their floor exercise points descending?
Paraphrased question: What are the gross score of gymnasts, ordered by their floor exercise points descending?
SQL: SELECT Total_Points FROM gymnast ORDER BY Floor_Exercise_Points DESC
Database: gymnast
Question: What is the average horizontal bar points for all gymnasts?
Paraphrased question: What is the average horizontal bar score for all gymnasts?
SQL: SELECT avg(Horizontal_Bar_Points) FROM gymnast
Database: gymnast
Question: Return the average horizontal bar points across all gymnasts.
Paraphrased question: Return the average horizontal bar score across all gymnastics athletes.
SQL: SELECT avg(Horizontal_Bar_Points) FROM gymnast
Database: gymnast
Question: What are the names of people in ascending alphabetical order?
Paraphrased question: What are the names of people in ascending alphabetical order?
SQL: SELECT Name FROM People ORDER BY Name ASC
Database: gymnast
Question: Return the names of people, ordered alphabetically.
Paraphrased question: Return the names of people, ordered alphabetically.
SQL: SELECT Name FROM People ORDER BY Name ASC
Database: gymnast
Question: What are the names of gymnasts?
Paraphrased question: What are the names of gymnastics athletes?
SQL: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID
Database: gymnast
Question: Return the names of the gymnasts.
Paraphrased question: Return the names of the gymnastics athletes.
SQL: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID
Database: gymnast
Question: What are the names of gymnasts whose hometown is not "Santo Domingo"?
Paraphrased question: What are the names of gymnastics athletes whose hometown is not "Santo Domingo"?
SQL: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T2.Hometown != "Santo Domingo"
Database: gymnast
Question: Return the names of gymnasts who did not grow up in Santo Domingo.
Paraphrased question: Return the names of gymnastics athletes who did not grow up in Santo Domingo.
SQL: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T2.Hometown != "Santo Domingo"
Database: gymnast
Question: What is the age of the tallest person?
Paraphrased question: What is the age of the tallest person?
SQL: SELECT Age FROM people ORDER BY Height DESC LIMIT 1
Database: gymnast
Question: Return the age of the person with the greatest height.
Paraphrased question: Return the age of the person with the greatest height.
SQL: SELECT Age FROM people ORDER BY Height DESC LIMIT 1
Database: gymnast
Question: List the names of the top 5 oldest people.
Paraphrased question: List the names of the top 5 oldest people.
SQL: SELECT Name FROM People ORDER BY Age DESC LIMIT 5
Database: gymnast
Question: What are the names of the five oldest people?
Paraphrased question: What are the names of the five oldest people?
SQL: SELECT Name FROM People ORDER BY Age DESC LIMIT 5
Database: gymnast
Question: What is the total point count of the youngest gymnast?
Paraphrased question: What is the gross score count of the youngest gymnast?
SQL: SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Age ASC LIMIT 1
Database: gymnast
Question: Return the total points of the gymnast with the lowest age.
Paraphrased question: Return the gross score of the gymnast with the lowest age.
SQL: SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Age ASC LIMIT 1
Database: gymnast
Question: What is the average age of all gymnasts?
Paraphrased question: What is the average age of all gymnastics athletes?
SQL: SELECT avg(T2.Age) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID
Database: gymnast
Question: Return the average age across all gymnasts.
Paraphrased question: Return the average age across all gymnastics athletes.
SQL: SELECT avg(T2.Age) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID
Database: gymnast
Question: What are the distinct hometowns of gymnasts with total points more than 57.5?
Paraphrased question: What are the different birthplaces of gymnasts with total points more than 57.5?
SQL: SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T1.Total_Points  >  57.5
Database: gymnast
Question: Give the different hometowns of gymnasts that have a total point score of above 57.5.
Paraphrased question: Give the different birthplaces of gymnasts that have a total point score of above 57.5.
SQL: SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID WHERE T1.Total_Points  >  57.5
Database: gymnast
Question: What are the hometowns of gymnasts and the corresponding number of gymnasts?
Paraphrased question: What are the birthplaces of gymnasts and the corresponding number of gymnasts?
SQL: SELECT T2.Hometown ,  COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown
Database: gymnast
Question: How many gymnasts are from each hometown?
Paraphrased question: How many gymnasts are from each birthplace?
SQL: SELECT T2.Hometown ,  COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown
Database: gymnast
Question: What is the most common hometown of gymnasts?
Paraphrased question: What is the most common birthplace of gymnasts?
SQL: SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT(*) DESC LIMIT 1
Database: gymnast
Question: Return the hometown that is most common among gymnasts.
Paraphrased question: Return the birthplace that is most common among gymnasts.
SQL: SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT(*) DESC LIMIT 1
Database: gymnast
Question: What are the hometowns that are shared by at least two gymnasts?
Paraphrased question: What are the birthplace that are shared by at least two gymnasts?
SQL: SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*)  >=  2
Database: gymnast
Question: Give the hometowns from which two or more gymnasts are from.
Paraphrased question: Give the birthplace from which two or more gymnasts are from.
SQL: SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*)  >=  2
Database: gymnast
Question: List the names of gymnasts in ascending order by their heights.
Paraphrased question: List the names of gymnastics athletes in ascending order by their heights.
SQL: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Height ASC
Database: gymnast
Question: What are the names of gymnasts, ordered by their heights ascending?
Paraphrased question: What are the names of gymnastics athletes, ordered by their heights ascending?
SQL: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T2.Height ASC
Database: gymnast
Question: List the distinct hometowns that are not associated with any gymnast.
Paraphrased question: List the different birthplace that are not associated with any gymnast.
SQL: SELECT DISTINCT Hometown FROM people EXCEPT SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID
Database: gymnast
Question: From which hometowns did no gymnasts come from?
Paraphrased question: From which birthplace did no gymnasts come from?
SQL: SELECT DISTINCT Hometown FROM people EXCEPT SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID
Database: gymnast
Question: Show the hometowns shared by people older than 23 and younger than 20.
Paraphrased question: Show the birthplace shared by people older than 23 and younger than 20.
SQL: SELECT Hometown FROM people WHERE Age  >  23 INTERSECT SELECT Hometown FROM people WHERE Age  <  20
Database: gymnast
Question: From which hometowns did both people older than 23 and younger than 20 come from?
Paraphrased question: From which birthplace did both people older than 23 and younger than 20 come from?
SQL: SELECT Hometown FROM people WHERE Age  >  23 INTERSECT SELECT Hometown FROM people WHERE Age  <  20
Database: gymnast
Question: How many distinct hometowns did these people have?
Paraphrased question: How many different birthplace did these people have?
SQL: SELECT count(DISTINCT Hometown) FROM people
Database: gymnast
Question: Count the number of different hometowns of these people.
Paraphrased question: Count the number of different birthplaces of these people.
SQL: SELECT count(DISTINCT Hometown) FROM people
Database: gymnast
Question: Show the ages of gymnasts in descending order of total points.
Paraphrased question: Show the ages of gymnastics athletes in descending order of total points.
SQL: SELECT T2.Age FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T1.Total_Points DESC
Database: gymnast
Question: What are the ages of the gymnasts, ordered descending by their total points?
Paraphrased question: What are the ages of the gymnastics athletes, ordered descending by their total points?
SQL: SELECT T2.Age FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID  =  T2.People_ID ORDER BY T1.Total_Points DESC