aherntech/spider-syn huggingface dataset:
Database: allergy_1
Question: Which allergy is the most common?
Paraphrased question: Which hypersensitivity is the most common?
SQL: SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY count(*) DESC LIMIT 1
Database: allergy_1
Question: Show all allergies with number of students affected.
Paraphrased question: Show all hypersensitivities with number of students affected.
SQL: SELECT Allergy ,  count(*) FROM Has_allergy GROUP BY Allergy
Database: allergy_1
Question: How many students have each different allergy?
Paraphrased question: How many students have each different hypersensitivity?
SQL: SELECT Allergy ,  count(*) FROM Has_allergy GROUP BY Allergy
Database: allergy_1
Question: Show all allergy type with number of students affected.
Paraphrased question: Show all hypersensitivity category with number of students affected.
SQL: SELECT T2.allergytype ,  count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy  =  T2.allergy GROUP BY T2.allergytype
Database: allergy_1
Question: How many students are affected by each allergy type?
Paraphrased question: How many students are affected by each hypersensitivity category?
SQL: SELECT T2.allergytype ,  count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy  =  T2.allergy GROUP BY T2.allergytype
Database: allergy_1
Question: Find the last name and age of the student who has allergy to both milk and cat.
Paraphrased question: Find the surname and age of the student who has allergy to both milk and cat.
SQL: SELECT lname ,  age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy  =  "Milk" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy  =  "Cat")
Database: allergy_1
Question: What are the last names and ages of the students who are allergic to milk and cat?
Paraphrased question: What are the surnames and ages of the students who are allergic to milk and cat?
SQL: SELECT lname ,  age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy  =  "Milk" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy  =  "Cat")
Database: allergy_1
Question: What are the allergies and their types that the student with first name Lisa has? And order the result by name of allergies.
Paraphrased question: What are the hypersensitivities and their categories that the student with forename Lisa has? And order the result by name of hypersensitivities.
SQL: SELECT T1.Allergy ,  T1.AllergyType FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy  =  T2.Allergy JOIN Student AS T3 ON T3.StuID  =  T2.StuID WHERE T3.Fname  =  "Lisa" ORDER BY T1.Allergy
Database: allergy_1
Question: What are the allergies the girl named Lisa has? And what are the types of them? Order the result by allergy names.
Paraphrased question: What are the hypersensitivities the girl named Lisa has? And what are the categories of them? Order the result by hypersensitivity names.
SQL: SELECT T1.Allergy ,  T1.AllergyType FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy  =  T2.Allergy JOIN Student AS T3 ON T3.StuID  =  T2.StuID WHERE T3.Fname  =  "Lisa" ORDER BY T1.Allergy
Database: allergy_1
Question: Find the first name and gender of the student who has allergy to milk but not cat.
Paraphrased question: Find the forename and gender of the student who has allergy to milk but not cat.
SQL: SELECT fname ,  sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy  =  "Milk" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy  =  "Cat")
Database: allergy_1
Question: What are the first name and gender of the students who have allergy to milk but can put up with cats?
Paraphrased question: What are the forename and gender of the students who have allergy to milk but can put up with cats?
SQL: SELECT fname ,  sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy  =  "Milk" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy  =  "Cat")
Database: allergy_1
Question: Find the average age of the students who have allergies with food and animal types.
Paraphrased question: Find the average age of the students who have allergies with food and animal types.
SQL: SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  "food" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  "animal")
Database: allergy_1
Question: How old are the students with allergies to food and animal types on average?
Paraphrased question: How old are the students with allergies to food and animal types on average?
SQL: SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  "food" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  "animal")
Database: allergy_1
Question: List the first and last name of the students who do not have any food type allergy.
Paraphrased question: List the forename and surname of the students who do not have any food type allergy.
SQL: SELECT fname ,  lname FROM Student WHERE StuID NOT IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  "food")
Database: allergy_1
Question: What is the full name of each student who is not allergic to any type of food.
Paraphrased question: What is the full name of each student who is not allergic to any type of food.
SQL: SELECT fname ,  lname FROM Student WHERE StuID NOT IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  "food")
Database: allergy_1
Question: Find the number of male (sex is 'M') students who have some food type allery.
Paraphrased question: Find the number of schoolboy (sex is 'M')  who have some food type allery.
SQL: SELECT count(*) FROM Student WHERE sex  =  "M" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  "food")
Database: allergy_1
Question: How many male students (sex is 'M') are allergic to any type of food?
Paraphrased question: How many schoolboy (sex is 'M') are allergic to any type of food?
SQL: SELECT count(*) FROM Student WHERE sex  =  "M" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  "food")
Database: allergy_1
Question: Find the different first names and cities of the students who have allergy to milk or cat.
Paraphrased question: Find the different forenames and cities of the students who have allergy to milk or cat.
SQL: SELECT DISTINCT T1.fname ,  T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid  =  T2.stuid WHERE T2.Allergy  =  "Milk" OR T2.Allergy  =  "Cat"
Database: allergy_1
Question: What are the distinct first names and cities of the students who have allergy either to milk or to cat?
Paraphrased question: What are the different forenames and cities of the students who have allergy either to milk or to cat?
SQL: SELECT DISTINCT T1.fname ,  T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid  =  T2.stuid WHERE T2.Allergy  =  "Milk" OR T2.Allergy  =  "Cat"
Database: allergy_1
Question: Find the number of students who are older than 18 and do not have allergy to either food or animal.
Paraphrased question: Find the number of students who are older than 18 and do not have allergy to either food or animal.
SQL: SELECT count(*) FROM Student WHERE age  >  18 AND StuID NOT IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  "food" OR T2.allergytype  =  "animal")
Database: allergy_1
Question: How many students are over 18 and do not have allergy to food type or animal type?
Paraphrased question: How many students are over 18 and do not have allergy to food type or animal type?
SQL: SELECT count(*) FROM Student WHERE age  >  18 AND StuID NOT IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  "food" OR T2.allergytype  =  "animal")
Database: allergy_1
Question: Find the first name and major of the students who are not allegry to soy.
Paraphrased question: Find the forename and discipline of the students who are not allegry to soy.
SQL: SELECT fname ,  major FROM Student WHERE StuID NOT IN (SELECT StuID FROM Has_allergy WHERE Allergy  =  "Soy")
Database: allergy_1
Question: What are the first name and major of the students who are able to consume soy?
Paraphrased question: What are the forename and discipline of the students who are able to consume soy?
SQL: SELECT fname ,  major FROM Student WHERE StuID NOT IN (SELECT StuID FROM Has_allergy WHERE Allergy  =  "Soy")
Database: store_1
Question: A list of the top 5 countries by number of invoices. List country name and number of invoices.
Paraphrased question: A list of the top 5 nationalities by number of invoices. List nationality name and number of invoices.
SQL: SELECT billing_country ,  COUNT(*) FROM invoices GROUP BY billing_country ORDER BY count(*) DESC LIMIT 5;
Database: store_1
Question: What are the top 5 countries by number of invoices and how many do they have?
Paraphrased question: What are the top 5 nationalities by number of invoices and how many do they have?
SQL: SELECT billing_country ,  COUNT(*) FROM invoices GROUP BY billing_country ORDER BY count(*) DESC LIMIT 5;
Database: store_1
Question: A list of the top 8 countries by gross/total invoice size. List country name and gross invoice size.
Paraphrased question: A list of the top 8 nationalities by gross/total invoice size. List nationality name and gross invoice size.
SQL: SELECT billing_country ,  SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8;
Database: store_1
Question: What are the names of the top 8 countries by total invoice size and what are those sizes?
Paraphrased question: What are the names of the top 8 nationalities by gross invoice size and what are those sizes?
SQL: SELECT billing_country ,  SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8;
Database: store_1
Question: A list of the top 10 countries by average invoice size. List country name and average invoice size.
Paraphrased question: A list of the top 10 nationalities by average invoice size. List nationality name and average invoice size.
SQL: SELECT billing_country ,  AVG(total) FROM invoices GROUP BY billing_country ORDER BY AVG(total) DESC LIMIT 10;
Database: store_1
Question: What are the names of the countries and average invoice size of the top countries by size?
Paraphrased question: What are the names of the nations and average invoice size of the top nations by size?
SQL: SELECT billing_country ,  AVG(total) FROM invoices GROUP BY billing_country ORDER BY AVG(total) DESC LIMIT 10;
Database: store_1
Question: Find out 5 customers who most recently purchased something. List customers' first and last name.
Paraphrased question: Find out 5 customers who most recently purchased something. List customers' forename and family name.
SQL: SELECT T1.first_name ,  T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id ORDER BY T2.invoice_date DESC LIMIT 5;
Database: store_1
Question: What are the first and last names of the 5 customers who purchased something most recently?
Paraphrased question: What are the forename and surnames of the 5 customers who purchased something most recently?
SQL: SELECT T1.first_name ,  T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id ORDER BY T2.invoice_date DESC LIMIT 5;
Database: store_1
Question: Find out the top 10 customers by total number of orders. List customers' first and last name and the number of total orders.
Paraphrased question: Find out the top 10 customers by total number of orders. List customers' forename and surname and the number of total orders.
SQL: SELECT T1.first_name ,  T1.last_name ,  COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10;
Database: store_1
Question: What are the top 10 customers' first and last names by total number of orders and how many orders did they make?
Paraphrased question: What are the top 10 customers' forename and family name by total number of orders and how many orders did they make?
SQL: SELECT T1.first_name ,  T1.last_name ,  COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10;
Database: store_1
Question: List the top 10 customers by total gross sales. List customers' first and last name and total gross sales.
Paraphrased question: List the top 10 customers by total gross sales. List customers' forename and family name and total gross sales.
SQL: SELECT T1.first_name ,  T1.last_name ,  SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10;
Database: store_1
Question: What are the top 10 customers' first and last names with the highest gross sales, and also what are the sales?
Paraphrased question: What are the top 10 customers' forename and family name with the highest gross sales, and also what are the sales?
SQL: SELECT T1.first_name ,  T1.last_name ,  SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10;
Database: store_1
Question: List the top 5 genres by number of tracks. List genres name and total tracks.
Paraphrased question: List the top 5 genres by number of tracks. List genres name and total tracks.
SQL: SELECT T1.name ,  COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id  =  T1.id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 5;
Database: store_1
Question: How many tracks does each genre have and what are the names of the top 5?
Paraphrased question: How many tracks does each genre have and what are the names of the top 5?
SQL: SELECT T1.name ,  COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id  =  T1.id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 5;
Database: store_1
Question: List every album's title.
Paraphrased question: List every album's name.
SQL: SELECT title FROM albums;
Database: store_1
Question: What are the titles of all the albums?
Paraphrased question: What are the names of all the albums?
SQL: SELECT title FROM albums;
Database: store_1
Question: List every album ordered by album title in ascending order.
Paraphrased question: List every album ordered by album name in ascending order.
SQL: SELECT title FROM albums ORDER BY title;
Database: store_1
Question: What are the titles of all the albums alphabetically ascending?
Paraphrased question: What are the names of all the albums alphabetically ascending?
SQL: SELECT title FROM albums ORDER BY title;
Database: store_1
Question: List every album whose title starts with A in alphabetical order.
Paraphrased question: List every album whose name starts with A in alphabetical order.
SQL: SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title;
Database: store_1
Question: What are the titles of all albums that start with A in alphabetical order?
Paraphrased question: What are the names of all albums that start with A in alphabetical order?
SQL: SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title;
Database: store_1
Question: List the customers first and last name of 10 least expensive invoices.
Paraphrased question: List the customers forename and family name of 10 least expensive invoices.
SQL: SELECT T1.first_name ,  T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id ORDER BY total LIMIT 10;
Database: store_1
Question: What are the first and last names of the customers with the 10 cheapest invoices?
Paraphrased question: What are the forename and family name of the customers with the 10 cheapest invoices?
SQL: SELECT T1.first_name ,  T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id  =  T1.id ORDER BY total LIMIT 10;
Database: store_1
Question: List total amount of  invoice from Chicago, IL.
Paraphrased question: List gross amount of  invoice from Chicago, IL.
SQL: SELECT sum(total) FROM invoices WHERE billing_city  =  "Chicago" AND billing_state  =  "IL";
Database: store_1
Question: What are the total amount of money in the invoices billed from Chicago, Illinois?
Paraphrased question: What are the gross amount of money in the invoices billed from Chicago, Illinois?
SQL: SELECT sum(total) FROM invoices WHERE billing_city  =  "Chicago" AND billing_state  =  "IL";
Database: store_1
Question: List the number of invoices from Chicago, IL.
Paraphrased question: List the number of invoices from Chicago, IL.
SQL: SELECT COUNT(*) FROM invoices WHERE billing_city  =  "Chicago" AND billing_state  =  "IL";
Database: store_1
Question: How many invoices were billed from Chicago, IL?
Paraphrased question: How many invoices were billed from Chicago, IL?
SQL: SELECT COUNT(*) FROM invoices WHERE billing_city  =  "Chicago" AND billing_state  =  "IL";
Database: store_1
Question: List the number of invoices from the US, grouped by state.
Paraphrased question: List the number of invoices from the US, grouped by state.
SQL: SELECT billing_state ,  COUNT(*) FROM invoices WHERE billing_country  =  "USA" GROUP BY billing_state;
Database: store_1
Question: How many invoices were billed from each state?
Paraphrased question: How many invoices were billed from each state?
SQL: SELECT billing_state ,  COUNT(*) FROM invoices WHERE billing_country  =  "USA" GROUP BY billing_state;
Database: store_1
Question: List the state in the US with the most invoices.
Paraphrased question: List the state in the US with the most invoices.
SQL: SELECT billing_state ,  COUNT(*) FROM invoices WHERE billing_country  =  "USA" GROUP BY billing_state ORDER BY COUNT(*) DESC LIMIT 1;
Database: store_1
Question: What are the states with the most invoices?
Paraphrased question: What are the states with the most invoices?
SQL: SELECT billing_state ,  COUNT(*) FROM invoices WHERE billing_country  =  "USA" GROUP BY billing_state ORDER BY COUNT(*) DESC LIMIT 1;
Database: store_1
Question: List the number of invoices and the invoice total from California.
Paraphrased question: List the number of invoices and the invoice gross from California.
SQL: SELECT billing_state ,  COUNT(*) ,  SUM(total) FROM invoices WHERE billing_state  =  "CA";
Database: store_1
Question: What is the number of invoices and total money billed in them from CA?
Paraphrased question: What is the number of invoices and the number of money billed in them from CA?
SQL: SELECT billing_state ,  COUNT(*) ,  SUM(total) FROM invoices WHERE billing_state  =  "CA";
Database: store_1
Question: List Aerosmith's albums.
Paraphrased question: List Aerosmith's albums.
SQL: SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON  T1.artist_id = T2.id WHERE T2.name = "Aerosmith";
Database: store_1
Question: What are the titles of all the Aerosmith albums?
Paraphrased question: What are the names of all the Aerosmith albums?
SQL: SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON  T1.artist_id = T2.id WHERE T2.name = "Aerosmith";
Database: store_1
Question: How many albums does Billy Cobham has?
Paraphrased question: How many albums does Billy Cobham has?
SQL: SELECT count(*) FROM albums AS T1 JOIN artists AS T2 ON  T1.artist_id = T2.id WHERE T2.name = "Billy Cobham";
Database: store_1
Question: How many albums has Billy Cobam released?
Paraphrased question: How many albums has Billy Cobam released?
SQL: SELECT count(*) FROM albums AS T1 JOIN artists AS T2 ON  T1.artist_id = T2.id WHERE T2.name = "Billy Cobham";
Database: store_1
Question: Eduardo Martins is a customer at which company?
Paraphrased question: Eduardo Martins is a customer at which enterprise?
SQL: SELECT company FROM customers WHERE first_name = "Eduardo" AND last_name = "Martins";
Database: store_1
Question: What is the company where Eduardo Martins is a customer?
Paraphrased question: What is the enterprise where Eduardo Martins is a customer?
SQL: SELECT company FROM customers WHERE first_name = "Eduardo" AND last_name = "Martins";
Database: store_1
Question: What is Astrid Gruber's email and phone number?
Paraphrased question: What is Astrid Gruber's email and mobile number?
SQL: SELECT email ,  phone FROM customers WHERE first_name = "Astrid" AND last_name = "Gruber";
Database: store_1
Question: What is the email and phone number of Astrid Gruber the customer?
Paraphrased question: What is the email and mobile number of Astrid Gruber the customer?
SQL: SELECT email ,  phone FROM customers WHERE first_name = "Astrid" AND last_name = "Gruber";
Database: store_1
Question: How many customers live in Prague city?
Paraphrased question: How many clients live in Prague city?
SQL: SELECT count(*) FROM customers WHERE city = "Prague";
Database: store_1
Question: How many customers live in the city of Prague?
Paraphrased question: How many clients live in the city of Prague?
SQL: SELECT count(*) FROM customers WHERE city = "Prague";
Database: store_1
Question: How many customers in state of CA?
Paraphrased question: How many clients in state of CA?
SQL: SELECT count(*) FROM customers WHERE state = "CA";
Database: store_1
Question: How many customers are from California?
Paraphrased question: How many clients are from California?
SQL: SELECT count(*) FROM customers WHERE state = "CA";
Database: store_1
Question: What country does Roberto Almeida live?
Paraphrased question: What nation does Roberto Almeida live?
SQL: SELECT country FROM customers WHERE first_name = "Roberto" AND last_name = "Almeida";
Database: store_1
Question: In which country does Roberto Almeida?
Paraphrased question: In which nation does Roberto Almeida?
SQL: SELECT country FROM customers WHERE first_name = "Roberto" AND last_name = "Almeida";
Database: store_1
Question: List the name of albums that are released by aritist whose name has 'Led'
Paraphrased question: List the name of albums that are released by aritist whose name has 'Led'
SQL: SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id  =  T2.artist_id WHERE T1.name LIKE '%Led%'
Database: store_1
Question: What is the title of the album that was released by the artist whose name has the phrase 'Led'?
Paraphrased question: What is the name of the album that was released by the artist whose name has the phrase 'Led'?
SQL: SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id  =  T2.artist_id WHERE T1.name LIKE '%Led%'
Database: store_1
Question: How many customers does Steve Johnson support?
Paraphrased question: How many clients does Steve Johnson support?
SQL: SELECT count(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = "Steve" AND T1.last_name = "Johnson";
Database: store_1
Question: What is the count of customers that Steve Johnson supports?
Paraphrased question: What is the count of customers that Steve Johnson supports?
SQL: SELECT count(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = "Steve" AND T1.last_name = "Johnson";
Database: store_1
Question: What is the title, phone and hire date of Nancy Edwards?
Paraphrased question: What is the name, mobile and hire date of Nancy Edwards?
SQL: SELECT title ,  phone ,  hire_date FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards";
Database: store_1
Question: What is the title, phone number and hire date for the employee named Nancy Edwards?
Paraphrased question: What is the name, mobile number and hire date for the employee named Nancy Edwards?
SQL: SELECT title ,  phone ,  hire_date FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards";
Database: store_1
Question: find the full name of employees who report to Nancy Edwards?
Paraphrased question: find the full name of staffs who report to Nancy Edwards?
SQL: SELECT T2.first_name , T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = "Nancy" AND T1.last_name = "Edwards";
Database: store_1
Question: What is the first and last name of the employee who reports to Nancy Edwards?
Paraphrased question: What is the forename and surname of the employee who reports to Nancy Edwards?
SQL: SELECT T2.first_name , T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = "Nancy" AND T1.last_name = "Edwards";
Database: store_1
Question: What is the address of employee Nancy Edwards?
Paraphrased question: What is the location of employee Nancy Edwards?
SQL: SELECT address FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards";
Database: store_1
Question: What is Nancy Edwards's address?
Paraphrased question: What is Nancy Edwards's location?
SQL: SELECT address FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards";
Database: store_1
Question: Find the full name of employee who supported the most number of customers.
Paraphrased question: Find the full name of employee who supported the most number of customers.
SQL: SELECT T1.first_name , T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id  =  T2.support_rep_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1
Database: store_1
Question: What is the full name of the employee who has the most customers?
Paraphrased question: What is the full name of the staff who has the most customers?
SQL: SELECT T1.first_name , T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id  =  T2.support_rep_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1
Database: store_1
Question: How many employees are living in Canada?
Paraphrased question: How many staffs are living in Canada?
SQL: SELECT count(*) FROM employees WHERE country = "Canada";
Database: store_1
Question: How many employees live in Canada?
Paraphrased question: How many staffs live in Canada?
SQL: SELECT count(*) FROM employees WHERE country = "Canada";
Database: store_1
Question: What is employee Nancy Edwards's phone number?
Paraphrased question: What is employee Nancy Edwards's telephone number?
SQL: SELECT phone FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards";
Database: store_1
Question: What is the the phone number of Nancy Edwards?
Paraphrased question: What is the the telephone number of Nancy Edwards?
SQL: SELECT phone FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards";
Database: store_1
Question: Who is the youngest employee in the company? List employee's first and last name.
Paraphrased question: Who is the youngest employee in the company? List employee's full name.
SQL: SELECT first_name , last_name FROM employees ORDER BY birth_date DESC LIMIT 1;
Database: store_1
Question: What si the youngest employee's first and last name?
Paraphrased question: What si the youngest employee's full name?
SQL: SELECT first_name , last_name FROM employees ORDER BY birth_date DESC LIMIT 1;
Database: store_1
Question: List top 10 employee work longest in the company. List employee's first and last name.
Paraphrased question: List top 10 employee work longest in the company. List employee's forename and surname.
SQL: SELECT first_name , last_name FROM employees ORDER BY hire_date ASC LIMIT 10;
Database: store_1
Question: What are the first and last names of the top 10 longest-serving employees?
Paraphrased question: What are the forename and surnames of the top 10 longest-serving employees?
SQL: SELECT first_name , last_name FROM employees ORDER BY hire_date ASC LIMIT 10;
Database: store_1
Question: Find the number of employees whose title is IT Staff from each city?
Paraphrased question: Find the number of staffs whose title is IT Staff from each city?
SQL: SELECT count(*) ,  city FROM employees WHERE title  =  'IT Staff' GROUP BY city
Database: store_1
Question: How many employees who are IT staff are from each city?
Paraphrased question: How many staffs who are IT staff are from each city?
SQL: SELECT count(*) ,  city FROM employees WHERE title  =  'IT Staff' GROUP BY city
Database: store_1
Question: Which employee manage most number of peoples? List employee's first and last name, and number of people report to that employee.
Paraphrased question: Which employee manage most number of peoples? List employee's forename and surname, and number of people report to that employee.
SQL: SELECT T2.first_name , T2.last_name ,  count(distinct T1.reports_to) FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id GROUP BY T1.reports_to ORDER BY count( distinct T1.reports_to) DESC LIMIT 1;
Database: store_1
Question: What are the first and last names of all the employees and how many people report to them?
Paraphrased question: What are the forename and family name of all the employees and how many people report to them?
SQL: SELECT T2.first_name , T2.last_name ,  count(distinct T1.reports_to) FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id GROUP BY T1.reports_to ORDER BY count(distinct T1.reports_to) DESC LIMIT 1;
Database: store_1
Question: How many orders does Lucas Mancini has?
Paraphrased question: How many orders does Lucas Mancini has?
SQL: SELECT count(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini";
Database: store_1
Question: How many orders does Luca Mancini have in his invoices?
Paraphrased question: How many orders does Luca Mancini have in his invoices?
SQL: SELECT count(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini";
Database: store_1
Question: What is the total amount of money spent by Lucas Mancini?
Paraphrased question: What is the number of money spent by Lucas Mancini?
SQL: SELECT sum(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini";
Database: store_1
Question: How much money did Lucas Mancini spend?
Paraphrased question: How much money did Lucas Mancini spend?
SQL: SELECT sum(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini";
Database: store_1
Question: List all media types.
Paraphrased question: List all media types.
SQL: SELECT name FROM media_types;
Database: store_1
Question: What are the names of all the media types?
Paraphrased question: What are the names of all the media types?
SQL: SELECT name FROM media_types;
Database: store_1
Question: List all different genre types.
Paraphrased question: List all different genre types.
SQL: SELECT DISTINCT name FROM genres;
Database: store_1
Question: What are the different names of the genres?
Paraphrased question: What are the different names of the genres?
SQL: SELECT DISTINCT name FROM genres;
Database: store_1
Question: List the name of all playlist.
Paraphrased question: List the name of all playlist.
SQL: SELECT name FROM playlists;
Database: store_1
Question: What are the names of all the playlists?
Paraphrased question: What are the names of all the playlists?
SQL: SELECT name FROM playlists;
Database: store_1
Question: Who is the composer of track Fast As a Shark?
Paraphrased question: Who is the songwriter of track Fast As a Shark?
SQL: SELECT composer FROM tracks WHERE name = "Fast As a Shark";
Database: store_1
Question: What is the composer who created the track "Fast As a Shark"?
Paraphrased question: What is the songwriter who created the track "Fast As a Shark"?
SQL: SELECT composer FROM tracks WHERE name = "Fast As a Shark";
Database: store_1
Question: How long does track Fast As a Shark has?
Paraphrased question: How long does track Fast As a Shark has?
SQL: SELECT milliseconds FROM tracks WHERE name = "Fast As a Shark";
Database: store_1
Question: How many milliseconds long is Fast As a Shark?
Paraphrased question: How many milliseconds long is Fast As a Shark?
SQL: SELECT milliseconds FROM tracks WHERE name = "Fast As a Shark";
Database: store_1
Question: What is the name of tracks whose genre is Rock?
Paraphrased question: What is the name of tracks whose genre is Rock?
SQL: SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = "Rock";
Database: store_1
Question: What is the name of all tracks in the Rock genre?
Paraphrased question: What is the name of all tracks in the Rock genre?
SQL: SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = "Rock";
Database: store_1
Question: What is title of album which track Balls to the Wall belongs to?
Paraphrased question: What is name of album which track Balls to the Wall belongs to?
SQL: SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T2.name = "Balls to the Wall";
Database: store_1
Question: What is the name of the album that has the track Ball to the Wall?
Paraphrased question: What is the name of the album that has the track Ball to the Wall?
SQL: SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T2.name = "Balls to the Wall";
Database: store_1
Question: List name of all tracks in Balls to the Wall.
Paraphrased question: List name of all tracks in Balls to the Wall.
SQL: SELECT T2.name FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.title = "Balls to the Wall";
Database: store_1
Question: What is the name of all tracks in the album named Balls to the Wall?
Paraphrased question: What is the name of all tracks in the album named Balls to the Wall?
SQL: SELECT T2.name FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.title = "Balls to the Wall";
Database: store_1
Question: List title of albums have the number of tracks greater than 10.
Paraphrased question: List name of albums have the number of tracks greater than 10.
SQL: SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING count(T1.id)  >  10;
Database: store_1
Question: What are the names of the albums that have more than 10 tracks?
Paraphrased question: What are the names of the albums that have more than 10 tracks?
SQL: SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING count(T1.id)  >  10;
Database: store_1
Question: List the name of tracks belongs to genre Rock and whose media type is MPEG audio file.
Paraphrased question: List the name of tracks belongs to genre Rock and whose media type is MPEG audio file.
SQL: SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = "Rock" AND T3.name = "MPEG audio file";
Database: store_1
Question: What are the names of all Rock tracks that are stored on MPEG audio files?
Paraphrased question: What are the names of all Rock tracks that are stored on MPEG audio files?
SQL: SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = "Rock" AND T3.name = "MPEG audio file";
Database: store_1
Question: List the name of tracks belongs to genre Rock or media type is MPEG audio file.
Paraphrased question: List the name of tracks belongs to genre Rock or media type is MPEG audio file.
SQL: SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = "Rock" OR T3.name = "MPEG audio file";
Database: store_1
Question: What are the names of all tracks that belong to the Rock genre and whose media type is MPEG?
Paraphrased question: What are the names of all tracks that belong to the Rock genre and whose media type is MPEG?
SQL: SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = "Rock" OR T3.name = "MPEG audio file";
Database: store_1
Question: List the name of tracks belongs to genre Rock or genre Jazz.
Paraphrased question: List the name of tracks belongs to genre Rock or genre Jazz.
SQL: SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = "Rock" OR T1.name = "Jazz"
Database: store_1
Question: What are the names of the tracks that are Rock or Jazz songs?
Paraphrased question: What are the names of the tracks that are Rock or Jazz songs?
SQL: SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = "Rock" OR T1.name = "Jazz"
Database: store_1
Question: List the name of all tracks in the playlists of Movies.
Paraphrased question: List the name of all tracks in the playlists of Movies.
SQL: SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = "Movies";
Database: store_1
Question: What are the names of all tracks that are on playlists titled Movies?
Paraphrased question: What are the names of all tracks that are on playlists titled Movies?
SQL: SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = "Movies";
Database: store_1
Question: List the name of playlist which has number of tracks greater than 100.
Paraphrased question: List the name of playlist which has number of tracks greater than 100.
SQL: SELECT T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id HAVING count(T1.track_id)  >  100;
Database: store_1
Question: What are the names of all playlists that have more than 100 tracks?
Paraphrased question: What are the names of all playlists that have more than 100 tracks?
SQL: SELECT T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id HAVING count(T1.track_id)  >  100;
Database: store_1
Question: List all tracks bought by customer Daan Peeters.
Paraphrased question: List all tracks bought by customer Daan Peeters.
SQL: SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = "Daan" AND T4.last_name = "Peeters";
Database: store_1
Question: What are the tracks that Dean Peeters bought?
Paraphrased question: What are the tracks that Dean Peeters bought?
SQL: SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = "Daan" AND T4.last_name = "Peeters";
Database: store_1
Question: How much is the track Fast As a Shark?
Paraphrased question: How much is the track Fast As a Shark?
SQL: SELECT unit_price FROM tracks WHERE name = "Fast As a Shark";
Database: store_1
Question: What is the unit price of the tune "Fast As a Shark"?
Paraphrased question: What is the unit price of the tune "Fast As a Shark"?
SQL: SELECT unit_price FROM tracks WHERE name = "Fast As a Shark";
Database: store_1
Question: Find the name of tracks which are in Movies playlist but not in music playlist.
Paraphrased question: Find the name of tracks which are in Movies playlist but not in music playlist.
SQL: SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Movies' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Music'
Database: store_1
Question: What are the names of all tracks that are on the Movies playlist but not in the music playlist?
Paraphrased question: What are the names of all tracks that are on the Movies playlist but not in the music playlist?
SQL: SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Movies' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Music'
Database: store_1
Question: Find the name of tracks which are in both Movies and music playlists.
Paraphrased question: Find the name of tracks which are in both Movies and music playlists.
SQL: SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Movies' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Music'
Database: store_1
Question: What are the names of all the tracks that are in both the Movies and music playlists?
Paraphrased question: What are the names of all the tracks that are in both the Movies and music playlists?
SQL: SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Movies' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id  =  T2.track_id JOIN playlists AS T3 ON T2.playlist_id  =  T3.id WHERE T3.name  =  'Music'
Database: store_1
Question: Find number of tracks in each genre?
Paraphrased question: Find number of tracks in each genre?
SQL: SELECT count(*) ,  T1.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name;
Database: store_1
Question: How many tracks are in each genre?
Paraphrased question: How many tracks are in each genre?
SQL: SELECT count(*) ,  T1.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name;
Database: journal_committee
Question: How many editors are there?
Paraphrased question: How many editors are there?
SQL: SELECT count(*) FROM editor
Database: journal_committee
Question: List the names of editors in ascending order of age.
Paraphrased question: List the names of editors in ascending order of age.
SQL: SELECT Name FROM editor ORDER BY Age ASC
Database: journal_committee
Question: What are the names and ages of editors?
Paraphrased question: What are the names and ages of editors?
SQL: SELECT Name ,  Age FROM editor
Database: journal_committee
Question: List the names of editors who are older than 25.
Paraphrased question: List the names of editors who are older than 25.
SQL: SELECT Name FROM editor WHERE Age  >  25
Database: journal_committee
Question: Show the names of editors of age either 24 or 25.
Paraphrased question: Show the names of editors of age either 24 or 25.
SQL: SELECT Name FROM editor WHERE Age  =  24 OR Age  =  25
Database: journal_committee
Question: What is the name of the youngest editor?
Paraphrased question: What is the name of the youngest editor?
SQL: SELECT Name FROM editor ORDER BY Age ASC LIMIT 1
Database: journal_committee
Question: What are the different ages of editors? Show each age along with the number of editors of that age.
Paraphrased question: What are the different ages of editors? Show each age along with the number of editors of that age.
SQL: SELECT Age ,  COUNT(*) FROM editor GROUP BY Age
Database: journal_committee
Question: Please show the most common age of editors.
Paraphrased question: Please show the most common age of editors.
SQL: SELECT Age FROM editor GROUP BY Age ORDER BY COUNT(*) DESC LIMIT 1
Database: journal_committee
Question: Show the distinct themes of journals.
Paraphrased question: Show the different topics of journals.
SQL: SELECT DISTINCT Theme FROM journal
Database: journal_committee
Question: Show the names of editors and the theme of journals for which they serve on committees.
Paraphrased question: Show the names of editors and the topic of journals for which they serve on committees.
SQL: SELECT T2.Name ,  T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID
Database: journal_committee
Question: For each journal_committee, find the editor name and the journal theme.
Paraphrased question: For each journal_committee, find the editor name and the journal topic.
SQL: SELECT T2.Name ,  T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID
Database: journal_committee
Question: Show the names and ages of editors and the theme of journals for which they serve on committees, in ascending alphabetical order of theme.
Paraphrased question: Show the names and ages of editors and the topic of journals for which they serve on committees, in ascending alphabetical order of theme.
SQL: SELECT T2.Name ,  T2.age ,  T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID ORDER BY T3.Theme ASC
Database: journal_committee
Question: Show the names of editors that are on the committee of journals with sales bigger than 3000.
Paraphrased question: Show the names of editors that are on the committee of journals with sales bigger than 3000.
SQL: SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID WHERE T3.Sales  >  3000
Database: journal_committee
Question: Show the id, name of each editor and the number of journal committees they are on.
Paraphrased question: Show the id, name of each editor and the number of journal committees they are on.
SQL: SELECT T1.editor_id ,  T1.Name ,  COUNT(*) FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID  =  T2.Editor_ID GROUP BY T1.editor_id
Database: journal_committee
Question: Show the names of editors that are on at least two journal committees.
Paraphrased question: Show the names of editors that are on at least two journal committees.
SQL: SELECT T1.Name FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID  =  T2.Editor_ID GROUP BY T1.Name HAVING COUNT(*)  >=  2
Database: journal_committee
Question: List the names of editors that are not on any journal committee.
Paraphrased question: List the names of editors that are not on any journal committee.
SQL: SELECT Name FROM editor WHERE editor_id NOT IN (SELECT editor_id FROM journal_committee)
Database: journal_committee
Question: List the date, theme and sales of the journal which did not have any of the listed editors serving on committee.
Paraphrased question: List the day, topic and sales volume of the journal which did not have any of the listed editors serving on committee.
SQL: SELECT date ,  theme ,  sales FROM journal EXCEPT SELECT T1.date ,  T1.theme ,  T1.sales FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID  =  T2.journal_ID
Database: journal_committee
Question: What is the average sales of the journals that have an editor whose work type is 'Photo'?
Paraphrased question: What is the average sales of the journals that have an editor whose work type is 'Photo'?
SQL: SELECT avg(T1.sales) FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID  =  T2.journal_ID WHERE T2.work_type  =  'Photo'
Database: customers_card_transactions
Question: How many accounts do we have?
Paraphrased question: How many accounts do we have?
SQL: SELECT count(*) FROM Accounts
Database: customers_card_transactions
Question: Count the number of accounts.
Paraphrased question: Count the number of accounts.
SQL: SELECT count(*) FROM Accounts
Database: customers_card_transactions
Question: Show ids, customer ids, names for all accounts.
Paraphrased question: Show ids, client ids, names for all accounts.
SQL: SELECT account_id ,  customer_id ,  account_name FROM Accounts
Database: customers_card_transactions
Question: What are the account ids, customer ids, and account names for all the accounts?
Paraphrased question: What are the account ids, client ids, and account names for all the accounts?
SQL: SELECT account_id ,  customer_id ,  account_name FROM Accounts
Database: customers_card_transactions
Question: Show other account details for account with name 338.
Paraphrased question: Show other account information for account with name 338.
SQL: SELECT other_account_details FROM Accounts WHERE account_name  =  "338"
Database: customers_card_transactions
Question: What are the other account details for the account with the name 338?
Paraphrased question: What are the other account information for the account with the name 338?
SQL: SELECT other_account_details FROM Accounts WHERE account_name  =  "338"