aherntech/spider-syn huggingface dataset:
Database: customers_card_transactions
Question: What is the first name, last name, and phone of the customer with account name 162?
Paraphrased question: What is the full name, and mobile of the client with account name 162?
SQL: SELECT T2.customer_first_name ,  T2.customer_last_name ,  T2.customer_phone FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.account_name  =  "162"
Database: customers_card_transactions
Question: Give the full name and phone of the customer who has the account name 162.
Paraphrased question: Give the full name and telephone of the client who has the account name 162.
SQL: SELECT T2.customer_first_name ,  T2.customer_last_name ,  T2.customer_phone FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.account_name  =  "162"
Database: customers_card_transactions
Question: How many accounts does the customer with first name Art and last name Turcotte have?
Paraphrased question: How many accounts does the client with first name Art and last name Turcotte have?
SQL: SELECT count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  "Art" AND T2.customer_last_name  =  "Turcotte"
Database: customers_card_transactions
Question: Return the number of accounts that the customer with the first name Art and last name Turcotte has.
Paraphrased question: Return the number of accounts that the client with the first name Art and last name Turcotte has.
SQL: SELECT count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  "Art" AND T2.customer_last_name  =  "Turcotte"
Database: customers_card_transactions
Question: Show all customer ids and the number of accounts for each customer.
Paraphrased question: Show all client ids and the number of accounts for each client.
SQL: SELECT customer_id ,  count(*) FROM Accounts GROUP BY customer_id
Database: customers_card_transactions
Question: How many accounts are there for each customer id?
Paraphrased question: How many accounts are there for each client id?
SQL: SELECT customer_id ,  count(*) FROM Accounts GROUP BY customer_id
Database: customers_card_transactions
Question: Show the customer id and number of accounts with most accounts.
Paraphrased question: Show the client id and number of accounts with most accounts.
SQL: SELECT customer_id ,  count(*) FROM Accounts GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1
Database: customers_card_transactions
Question: What is the customer id of the customer with the most accounts, and how many accounts does this person have?
Paraphrased question: What is the client id of the client with the most accounts, and how many accounts does this person have?
SQL: SELECT customer_id ,  count(*) FROM Accounts GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1
Database: customers_card_transactions
Question: What is the customer first, last name and id with least number of accounts.
Paraphrased question: What is the client full name and id with least number of accounts.
SQL: SELECT T2.customer_first_name ,  T2.customer_last_name ,  T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1
Database: customers_card_transactions
Question: Give the full name and customer id of the customer with the fewest accounts.
Paraphrased question: Give the full name and client id of the client with the fewest accounts.
SQL: SELECT T2.customer_first_name ,  T2.customer_last_name ,  T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1
Database: customers_card_transactions
Question: Show the number of all customers without an account.
Paraphrased question: Show the number of all clients without an account.
SQL: SELECT count(*) FROM Customers WHERE customer_id NOT IN (SELECT customer_id FROM Accounts)
Database: customers_card_transactions
Question: How many customers do not have an account?
Paraphrased question: How many clients do not have an account?
SQL: SELECT count(*) FROM Customers WHERE customer_id NOT IN (SELECT customer_id FROM Accounts)
Database: customers_card_transactions
Question: Show the first names and last names of customers without any account.
Paraphrased question: Show forenames and surnames of clients without any account.
SQL: SELECT customer_first_name ,  customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name ,  T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id  =  T2.customer_id
Database: customers_card_transactions
Question: What are the full names of customers who do not have any accounts?
Paraphrased question: What are the full names of clients who do not have any accounts?
SQL: SELECT customer_first_name ,  customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name ,  T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id  =  T2.customer_id
Database: customers_card_transactions
Question: Show distinct first and last names for all customers with an account.
Paraphrased question: Show different full names for all clients with an account.
SQL: SELECT DISTINCT T1.customer_first_name ,  T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id  =  T2.customer_id
Database: customers_card_transactions
Question: What are the full names of customers who have accounts?
Paraphrased question: What are the full names of clients who have accounts?
SQL: SELECT DISTINCT T1.customer_first_name ,  T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id  =  T2.customer_id
Database: customers_card_transactions
Question: How many customers have an account?
Paraphrased question: How many clients have an account?
SQL: SELECT count(DISTINCT customer_id) FROM Accounts
Database: customers_card_transactions
Question: Count the number of customers who hold an account.
Paraphrased question: Count the number of clients who hold an account.
SQL: SELECT count(DISTINCT customer_id) FROM Accounts
Database: customers_card_transactions
Question: How many customers do we have?
Paraphrased question: How many clients do we have?
SQL: SELECT count(*) FROM Customers
Database: customers_card_transactions
Question: Count the number of customers.
Paraphrased question: Count the number of clients.
SQL: SELECT count(*) FROM Customers
Database: customers_card_transactions
Question: Show ids, first names, last names, and phones for all customers.
Paraphrased question: Show ids,full names, and phones for all clients.
SQL: SELECT customer_id ,  customer_first_name ,  customer_last_name ,  customer_phone FROM Customers
Database: customers_card_transactions
Question: What are the ids, full names, and phones of each customer?
Paraphrased question: What are the ids, full names, and telephones of each client?
SQL: SELECT customer_id ,  customer_first_name ,  customer_last_name ,  customer_phone FROM Customers
Database: customers_card_transactions
Question: What is the phone and email for customer with first name Aniyah and last name Feest?
Paraphrased question: What is the telephone and email for client with first name Aniyah and last name Feest?
SQL: SELECT customer_phone ,  customer_email FROM Customers WHERE customer_first_name  =  "Aniyah" AND customer_last_name  =  "Feest"
Database: customers_card_transactions
Question: Return the phone and email of the customer with the first name Aniyah and last name Feest.
Paraphrased question: Return the telephone and email of the client with the first name Aniyah and last name Feest.
SQL: SELECT customer_phone ,  customer_email FROM Customers WHERE customer_first_name  =  "Aniyah" AND customer_last_name  =  "Feest"
Database: customers_card_transactions
Question: Show the number of customer cards.
Paraphrased question: Show the number of client cards.
SQL: SELECT count(*) FROM Customers_cards
Database: customers_card_transactions
Question: How many customer cards are there?
Paraphrased question: How many client cards are there?
SQL: SELECT count(*) FROM Customers_cards
Database: customers_card_transactions
Question: Show ids, customer ids, card type codes, card numbers for all cards.
Paraphrased question: Show ids, client ids, card type codes, card numbers for all cards.
SQL: SELECT card_id ,  customer_id ,  card_type_code ,  card_number FROM Customers_cards
Database: customers_card_transactions
Question: What are card ids, customer ids, card types, and card numbers for each customer card?
Paraphrased question: What are card ids, client ids, card types, and card numbers for each client card?
SQL: SELECT card_id ,  customer_id ,  card_type_code ,  card_number FROM Customers_cards
Database: customers_card_transactions
Question: Show the date valid from and the date valid to for the card with card number '4560596484842'.
Paraphrased question: Show the date valid from and the date valid to for the card with card number '4560596484842'.
SQL: SELECT date_valid_from ,  date_valid_to FROM Customers_cards WHERE card_number  =  "4560596484842"
Database: customers_card_transactions
Question: What are the valid from and valid to dates for the card with the number 4560596484842?
Paraphrased question: What are the valid from and valid to dates for the card with the number 4560596484842?
SQL: SELECT date_valid_from ,  date_valid_to FROM Customers_cards WHERE card_number  =  "4560596484842"
Database: customers_card_transactions
Question: What is the first name, last name, and phone of the customer with card 4560596484842.
Paraphrased question: What is the full name, and mobile of the client with card 4560596484842.
SQL: SELECT T2.customer_first_name ,  T2.customer_last_name ,  T2.customer_phone FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.card_number  =  "4560596484842"
Database: customers_card_transactions
Question: Return the full name and phone of the customer who has card number 4560596484842.
Paraphrased question: Return the full name and telephone of the client who has card number 4560596484842.
SQL: SELECT T2.customer_first_name ,  T2.customer_last_name ,  T2.customer_phone FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.card_number  =  "4560596484842"
Database: customers_card_transactions
Question: How many cards does customer Art Turcotte have?
Paraphrased question: How many cards does client Art Turcotte have?
SQL: SELECT count(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  "Art" AND T2.customer_last_name  =  "Turcotte"
Database: customers_card_transactions
Question: Count the number of cards the customer with the first name Art and last name Turcotte has.
Paraphrased question: Count the number of cards the customer with the first name Art and last name Turcotte has.
SQL: SELECT count(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  "Art" AND T2.customer_last_name  =  "Turcotte"
Database: customers_card_transactions
Question: How many debit cards do we have?
Paraphrased question: How many debit cards do we have?
SQL: SELECT count(*) FROM Customers_cards WHERE card_type_code  =  "Debit"
Database: customers_card_transactions
Question: Count the number of customer cards of the type Debit.
Paraphrased question: Count the number of client cards of the type Debit.
SQL: SELECT count(*) FROM Customers_cards WHERE card_type_code  =  "Debit"
Database: customers_card_transactions
Question: How many credit cards does customer Blanche Huels have?
Paraphrased question: How many credit cards does client Blanche Huels have?
SQL: SELECT count(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  "Blanche" AND T2.customer_last_name  =  "Huels" AND T1.card_type_code  =  "Credit"
Database: customers_card_transactions
Question: Count the number of credit cards that the customer with first name Blanche and last name Huels has.
Paraphrased question: Count the number of credit cards that the client with first name Blanche and last name Huels has.
SQL: SELECT count(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  "Blanche" AND T2.customer_last_name  =  "Huels" AND T1.card_type_code  =  "Credit"
Database: customers_card_transactions
Question: Show all customer ids and the number of cards owned by each customer.
Paraphrased question: Show all client ids and the number of cards owned by each client.
SQL: SELECT customer_id ,  count(*) FROM Customers_cards GROUP BY customer_id
Database: customers_card_transactions
Question: What are the different customer ids, and how many cards does each one hold?
Paraphrased question: What are the different client ids, and how many cards does each one hold?
SQL: SELECT customer_id ,  count(*) FROM Customers_cards GROUP BY customer_id
Database: customers_card_transactions
Question: What is the customer id with most number of cards, and how many does he have?
Paraphrased question: What is the client id with most number of cards, and how many does he have?
SQL: SELECT customer_id ,  count(*) FROM Customers_cards GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1
Database: customers_card_transactions
Question: Return the id of the customer who has the most cards, as well as the number of cards.
Paraphrased question: Return the id of the client who has the most cards, as well as the number of cards.
SQL: SELECT customer_id ,  count(*) FROM Customers_cards GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1
Database: customers_card_transactions
Question: Show id, first and last names for all customers with at least two cards.
Paraphrased question: Show id, forename and surname for all clients with at least two cards.
SQL: SELECT T1.customer_id ,  T2.customer_first_name ,  T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >=  2
Database: customers_card_transactions
Question: What are the ids and full names of customers who hold two or more cards?
Paraphrased question: What are the ids and full names of clients who hold two or more cards?
SQL: SELECT T1.customer_id ,  T2.customer_first_name ,  T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >=  2
Database: customers_card_transactions
Question: What is the customer id, first and last name with least number of accounts.
Paraphrased question: What is the client id, forename and surname with least number of accounts.
SQL: SELECT T1.customer_id ,  T2.customer_first_name ,  T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1
Database: customers_card_transactions
Question: Return the id and full name of the customer who has the fewest accounts.
Paraphrased question: Return the id and full name of the client who has the fewest accounts.
SQL: SELECT T1.customer_id ,  T2.customer_first_name ,  T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1
Database: customers_card_transactions
Question: Show all card type codes and the number of cards in each type.
Paraphrased question: Show all card type codes and the number of cards in each type.
SQL: SELECT card_type_code ,  count(*) FROM Customers_cards GROUP BY card_type_code
Database: customers_card_transactions
Question: What are the different card types, and how many cards are there of each?
Paraphrased question: What are the different card types, and how many cards are there of each?
SQL: SELECT card_type_code ,  count(*) FROM Customers_cards GROUP BY card_type_code
Database: customers_card_transactions
Question: What is the card type code with most number of cards?
Paraphrased question: What is the card type code with most number of cards?
SQL: SELECT card_type_code FROM Customers_cards GROUP BY card_type_code ORDER BY count(*) DESC LIMIT 1
Database: customers_card_transactions
Question: Return the code of the card type that is most common.
Paraphrased question: Return the code of the card type that is most common.
SQL: SELECT card_type_code FROM Customers_cards GROUP BY card_type_code ORDER BY count(*) DESC LIMIT 1
Database: customers_card_transactions
Question: Show card type codes with at least 5 cards.
Paraphrased question: Show card type codes with at least 5 cards.
SQL: SELECT card_type_code FROM Customers_cards GROUP BY card_type_code HAVING count(*)  >=  5
Database: customers_card_transactions
Question: What are the codes of card types that have 5 or more cards?
Paraphrased question: What are the codes of card types that have 5 or more cards?
SQL: SELECT card_type_code FROM Customers_cards GROUP BY card_type_code HAVING count(*)  >=  5
Database: customers_card_transactions
Question: Show all card type codes and the number of customers holding cards in each type.
Paraphrased question: Show all card type codes and the number of clients holding cards in each type.
SQL: SELECT card_type_code ,  count(DISTINCT customer_id) FROM Customers_cards GROUP BY card_type_code
Database: customers_card_transactions
Question: What are the different card type codes, and how many different customers hold each type?
Paraphrased question: What are the different card type codes, and how many different clients hold each type?
SQL: SELECT card_type_code ,  count(DISTINCT customer_id) FROM Customers_cards GROUP BY card_type_code
Database: customers_card_transactions
Question: Show the customer ids and firstname without a credit card.
Paraphrased question: Show the client ids and forename without a credit card.
SQL: SELECT customer_id ,  customer_first_name FROM Customers EXCEPT SELECT T1.customer_id ,  T2.customer_first_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE card_type_code  =  "Credit"
Database: customers_card_transactions
Question: What are the ids and first names of customers who do not hold a credit card?
Paraphrased question: What are the ids and forename of clients who do not hold a credit card?
SQL: SELECT customer_id ,  customer_first_name FROM Customers EXCEPT SELECT T1.customer_id ,  T2.customer_first_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE card_type_code  =  "Credit"
Database: customers_card_transactions
Question: Show all card type codes.
Paraphrased question: Show all card type codes.
SQL: SELECT DISTINCT card_type_code FROM Customers_Cards
Database: customers_card_transactions
Question: What are the different card type codes?
Paraphrased question: What are the different card type codes?
SQL: SELECT DISTINCT card_type_code FROM Customers_Cards
Database: customers_card_transactions
Question: Show the number of card types.
Paraphrased question: Show the number of card types.
SQL: SELECT count(DISTINCT card_type_code) FROM Customers_Cards
Database: customers_card_transactions
Question: How many different card types are there?
Paraphrased question: How many different card types are there?
SQL: SELECT count(DISTINCT card_type_code) FROM Customers_Cards
Database: customers_card_transactions
Question: Show all transaction types.
Paraphrased question: Show all transaction types.
SQL: SELECT DISTINCT transaction_type FROM Financial_Transactions
Database: customers_card_transactions
Question: What are the different types of transactions?
Paraphrased question: What are the different types of transactions?
SQL: SELECT DISTINCT transaction_type FROM Financial_Transactions
Database: customers_card_transactions
Question: Show the number of transaction types.
Paraphrased question: Show the number of transaction types.
SQL: SELECT count(DISTINCT transaction_type) FROM Financial_Transactions
Database: customers_card_transactions
Question: How many different types of transactions are there?
Paraphrased question: How many different types of transactions are there?
SQL: SELECT count(DISTINCT transaction_type) FROM Financial_Transactions
Database: customers_card_transactions
Question: What is the average and total transaction amount?
Paraphrased question: What is the average and total transaction amount?
SQL: SELECT avg(transaction_amount) ,  sum(transaction_amount) FROM Financial_transactions
Database: customers_card_transactions
Question: Return the average transaction amount, as well as the total amount of all transactions.
Paraphrased question: Return the average transaction amount, as well as the total amount of all transactions.
SQL: SELECT avg(transaction_amount) ,  sum(transaction_amount) FROM Financial_transactions
Database: customers_card_transactions
Question: Show the card type codes and the number of transactions.
Paraphrased question: Show the card type codes and the number of transactions.
SQL: SELECT T2.card_type_code ,  count(*) FROM Financial_transactions AS T1 JOIN Customers_cards AS T2 ON T1.card_id  =  T2.card_id GROUP BY T2.card_type_code
Database: customers_card_transactions
Question: What are the different card types, and how many transactions have been made with each?
Paraphrased question: What are the different card types, and how many transactions have been made with each?
SQL: SELECT T2.card_type_code ,  count(*) FROM Financial_transactions AS T1 JOIN Customers_cards AS T2 ON T1.card_id  =  T2.card_id GROUP BY T2.card_type_code
Database: customers_card_transactions
Question: Show the transaction type and the number of transactions.
Paraphrased question: Show the transaction type and the number of transactions.
SQL: SELECT transaction_type ,  count(*) FROM Financial_transactions GROUP BY transaction_type
Database: customers_card_transactions
Question: What are the different transaction types, and how many transactions of each have taken place?
Paraphrased question: What are the different transaction types, and how many transactions of each have taken place?
SQL: SELECT transaction_type ,  count(*) FROM Financial_transactions GROUP BY transaction_type
Database: customers_card_transactions
Question: What is the transaction type that has processed the greatest total amount in transactions?
Paraphrased question: What is the transaction type that has processed the greatest total amount in transactions?
SQL: SELECT transaction_type FROM Financial_transactions GROUP BY transaction_type ORDER BY sum(transaction_amount) DESC LIMIT 1
Database: customers_card_transactions
Question: Return the type of transaction with the highest total amount.
Paraphrased question: Return the type of transaction with the highest total amount.
SQL: SELECT transaction_type FROM Financial_transactions GROUP BY transaction_type ORDER BY sum(transaction_amount) DESC LIMIT 1
Database: customers_card_transactions
Question: Show the account id and the number of transactions for each account
Paraphrased question: Show the account id and the number of transactions for each account
SQL: SELECT account_id ,  count(*) FROM Financial_transactions GROUP BY account_id
Database: customers_card_transactions
Question: What are the different account ids that have made financial transactions, as well as how many transactions correspond to each?
Paraphrased question: What are the different account ids that have made financial transactions, as well as how many transactions correspond to each?
SQL: SELECT account_id ,  count(*) FROM Financial_transactions GROUP BY account_id
Database: race_track
Question: How many tracks do we have?
Paraphrased question: How many tracks do we have?
SQL: SELECT count(*) FROM track
Database: race_track
Question: Count the number of tracks.
Paraphrased question: Count the number of tracks.
SQL: SELECT count(*) FROM track
Database: race_track
Question: Show the name and location for all tracks.
Paraphrased question: Show the name and address for all tracks.
SQL: SELECT name ,  LOCATION FROM track
Database: race_track
Question: What are the names and locations of all tracks?
Paraphrased question: What are the names and addresses of all tracks?
SQL: SELECT name ,  LOCATION FROM track
Database: race_track
Question: Show names and seatings, ordered by seating for all tracks opened after 2000.
Paraphrased question: Show names and the number of seat, ordered by the number of seat for all tracks opened after 2000.
SQL: SELECT name ,  seating FROM track WHERE year_opened  >  2000 ORDER BY seating
Database: race_track
Question: What are the names and seatings for all tracks opened after 2000, ordered by seating?
Paraphrased question: What are the names and number of seat for all tracks opened after 2000, ordered by number of seat?
SQL: SELECT name ,  seating FROM track WHERE year_opened  >  2000 ORDER BY seating
Database: race_track
Question: What is the name, location and seating for the most recently opened track?
Paraphrased question: What is the name, address and seating for the most recently opened track?
SQL: SELECT name ,  LOCATION ,  seating FROM track ORDER BY year_opened DESC LIMIT 1
Database: race_track
Question: Return the name, location, and seating of the track that was opened in the most recent year.
Paraphrased question: Return the name, address, and seating of the track that was opened in the most recent year.
SQL: SELECT name ,  LOCATION ,  seating FROM track ORDER BY year_opened DESC LIMIT 1
Database: race_track
Question: What is the minimum, maximum, and average seating for all tracks.
Paraphrased question: What is the minimum, maximum, and average number of seat for all tracks.
SQL: SELECT min(seating) ,  max(seating) ,  avg(seating) FROM track
Database: race_track
Question: Return the minimum, maximum, and average seating across all tracks.
Paraphrased question: Return the minimum, maximum, and average number of seat across all tracks.
SQL: SELECT min(seating) ,  max(seating) ,  avg(seating) FROM track
Database: race_track
Question: Show the name, location, open year for all tracks with a seating higher than the average.
Paraphrased question: Show the name, address, open year for all tracks with a seating higher than the average.
SQL: SELECT name ,  LOCATION ,  year_opened FROM track WHERE seating  >  (SELECT avg(seating) FROM track)
Database: race_track
Question: What are the names, locations, and years of opening for tracks with seating higher than average?
Paraphrased question: What are the names, addresses, and years of opening for tracks with seating higher than average?
SQL: SELECT name ,  LOCATION ,  year_opened FROM track WHERE seating  >  (SELECT avg(seating) FROM track)
Database: race_track
Question: What are distinct locations where tracks are located?
Paraphrased question: What are different addresses where tracks are located?
SQL: SELECT DISTINCT LOCATION FROM track
Database: race_track
Question: Give the different locations of tracks.
Paraphrased question: Give the different addresses of tracks.
SQL: SELECT DISTINCT LOCATION FROM track
Database: race_track
Question: How many races are there?
Paraphrased question: How many competitions are there?
SQL: SELECT count(*) FROM race
Database: race_track
Question: Count the number of races.
Paraphrased question: Count the number of races.
SQL: SELECT count(*) FROM race
Database: race_track
Question: What are the distinct classes that races can have?
Paraphrased question: What are the different types that races can have?
SQL: SELECT DISTINCT CLASS FROM race
Database: race_track
Question: Return the different classes of races.
Paraphrased question: Return the different type of races.
SQL: SELECT DISTINCT CLASS FROM race
Database: race_track
Question: Show name, class, and date for all races.
Paraphrased question: Show name, type, and day for all races.
SQL: SELECT name ,  CLASS ,  date FROM race
Database: race_track
Question: What are the names, classes, and dates for all races?
Paraphrased question: What are the names, type, and days for all races?
SQL: SELECT name ,  CLASS ,  date FROM race
Database: race_track
Question: Show the race class and number of races in each class.
Paraphrased question: Show the race type and number of races in each type.
SQL: SELECT CLASS ,  count(*) FROM race GROUP BY CLASS
Database: race_track
Question: What are the different classes of races, and how many races correspond to each?
Paraphrased question: What are the different types of races, and how many races correspond to each?
SQL: SELECT CLASS ,  count(*) FROM race GROUP BY CLASS
Database: race_track
Question: What is the race class with most number of races.
Paraphrased question: What is the race type with most number of races.
SQL: SELECT CLASS FROM race GROUP BY CLASS ORDER BY count(*) DESC LIMIT 1
Database: race_track
Question: Give the class of races that is most common.
Paraphrased question: Give the type of races that is most common.
SQL: SELECT CLASS FROM race GROUP BY CLASS ORDER BY count(*) DESC LIMIT 1
Database: race_track
Question: List the race class with at least two races.
Paraphrased question: List the race type with at least two races.
SQL: SELECT CLASS FROM race GROUP BY CLASS HAVING count(*)  >=  2
Database: race_track
Question: What are the classes of races that have two or more corresponding races?
Paraphrased question: What are the types of races that have two or more corresponding races?
SQL: SELECT CLASS FROM race GROUP BY CLASS HAVING count(*)  >=  2
Database: race_track
Question: What are the names for tracks without a race in class 'GT'.
Paraphrased question: What are the names for tracks without a contest in class 'GT'.
SQL: SELECT name FROM track EXCEPT SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id WHERE T1.class  =  'GT'
Database: race_track
Question: Give the names of tracks that do not have a race in the class 'GT'.
Paraphrased question: Give the names of tracks that do not have a contest in the class 'GT'.
SQL: SELECT name FROM track EXCEPT SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id WHERE T1.class  =  'GT'
Database: race_track
Question: Show all track names that have had no races.
Paraphrased question: Show all track names that have had no competitions.
SQL: SELECT name FROM track WHERE track_id NOT IN (SELECT track_id FROM race)
Database: race_track
Question: Return the names of tracks that have no had any races.
Paraphrased question: Return the names of tracks that have no had any competitions.
SQL: SELECT name FROM track WHERE track_id NOT IN (SELECT track_id FROM race)
Database: race_track
Question: Show year where a track with a seating at least 5000 opened and a track with seating no more than 4000 opened.
Paraphrased question: Show year where a track with a seating at least 5000 opened and a track with seating no more than 4000 opened.
SQL: SELECT year_opened FROM track WHERE seating BETWEEN 4000 AND 5000
Database: race_track
Question: What are the years of opening for tracks with seating between 4000 and 5000?
Paraphrased question: What are the years of opening for tracks with seating between 4000 and 5000?
SQL: SELECT year_opened FROM track WHERE seating BETWEEN 4000 AND 5000
Database: race_track
Question: Show the name of track and the number of races in each track.
Paraphrased question: Show the name of track and the number of competitions in each track.
SQL: SELECT T2.name ,  count(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id
Database: race_track
Question: What are the names of different tracks, and how many races has each had?
Paraphrased question: What are the names of different tracks, and how many competitions has each had?
SQL: SELECT T2.name ,  count(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id
Database: race_track
Question: Show the name of track with most number of races.
Paraphrased question: Show the name of track with most number of contests.
SQL: SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id ORDER BY count(*) DESC LIMIT 1
Database: race_track
Question: What is the name of the track that has had the greatest number of races?
Paraphrased question: What is the name of the track that has had the greatest number of contests?
SQL: SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id ORDER BY count(*) DESC LIMIT 1
Database: race_track
Question: Show the name and date for each race and its track name.
Paraphrased question: Show the name and day for each competition and its track name.
SQL: SELECT T1.name ,  T1.date ,  T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id
Database: race_track
Question: What are the names and dates of races, and the names of the tracks where they are held?
Paraphrased question: What are the names and days of races, and the names of the tracks where they are held?
SQL: SELECT T1.name ,  T1.date ,  T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id
Database: race_track
Question: Show the name and location of track with 1 race.
Paraphrased question: Show the name and address of track with 1 race.
SQL: SELECT T2.name ,  T2.location FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id HAVING count(*)  =  1
Database: race_track
Question: What are the names and locations of tracks that have had exactly 1 race?
Paraphrased question: What are the names and addresses of tracks that have had exactly 1 race?
SQL: SELECT T2.name ,  T2.location FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id GROUP BY T1.track_id HAVING count(*)  =  1
Database: race_track
Question: Find the locations where have both tracks with more than 90000 seats and tracks with less than 70000 seats.
Paraphrased question: Find the addresses where have both tracks with more than 90000 seats and tracks with less than 70000 seats.
SQL: SELECT LOCATION FROM track WHERE seating  >  90000 INTERSECT SELECT LOCATION FROM track WHERE seating  <  70000
Database: race_track
Question: What are the locations that have both tracks with more than 90000 seats, and tracks with fewer than 70000 seats?
Paraphrased question: What are the addresses that have both tracks with more than 90000 seats, and tracks with fewer than 70000 seats?
SQL: SELECT LOCATION FROM track WHERE seating  >  90000 INTERSECT SELECT LOCATION FROM track WHERE seating  <  70000
Database: coffee_shop
Question: How many members have the black membership card?
Paraphrased question: How many members have the black membership card?
SQL: SELECT count(*) FROM member WHERE Membership_card  =  'Black'
Database: coffee_shop
Question: Find the number of members living in each address.
Paraphrased question: Find the number of members living in each location.
SQL: SELECT count(*) ,  address FROM member GROUP BY address
Database: coffee_shop
Question: Give me the names of members whose address is in Harford or Waterbury.
Paraphrased question: Give me the names of members whose location is in Harford or Waterbury.
SQL: SELECT name FROM member WHERE address  =  'Harford' OR address  =  'Waterbury'
Database: coffee_shop
Question: Find the ids and names of members who are under age 30 or with black membership card.
Paraphrased question: Find the ids and names of members who are under age 30 or with black membership card.
SQL: SELECT name ,  member_id FROM member WHERE Membership_card  =  'Black' OR age  <  30
Database: coffee_shop
Question: Find the purchase time, age and address of each member, and show the results in the order of purchase time.
Paraphrased question: Find the buy time, age and location of each member, and show the results in the order of buy time.
SQL: SELECT Time_of_purchase ,  age ,  address FROM member ORDER BY Time_of_purchase
Database: coffee_shop
Question: Which membership card has more than 5 members?
Paraphrased question: Which membership card has more than 5 members?
SQL: SELECT Membership_card FROM member GROUP BY Membership_card HAVING count(*)  >  5
Database: coffee_shop
Question: Which address has both members younger than 30 and members older than 40?
Paraphrased question: Which location has both members younger than 30 and members older than 40?
SQL: SELECT address FROM member WHERE age  <  30 INTERSECT SELECT address FROM member WHERE age  >  40
Database: coffee_shop
Question: What is the membership card held by both members living in Hartford and ones living in Waterbury address?
Paraphrased question: What is the membership card held by both members living in Hartford and ones living in Waterbury address?
SQL: SELECT membership_card FROM member WHERE address  =  'Hartford' INTERSECT SELECT membership_card FROM member WHERE address  =  'Waterbury'
Database: coffee_shop
Question: How many members are not living in Hartford?
Paraphrased question: How many members are not living in Hartford?
SQL: SELECT count(*) FROM member WHERE address != 'Hartford'
Database: coffee_shop
Question: Which address do not have any member with the black membership card?
Paraphrased question: Which location do not have any member with the black membership card?
SQL: SELECT address FROM member EXCEPT SELECT address FROM member WHERE Membership_card  =  'Black'
Database: coffee_shop
Question: Show the shop addresses ordered by their opening year.
Paraphrased question: Show the shop locations ordered by their opening year.
SQL: SELECT address FROM shop ORDER BY open_year
Database: coffee_shop
Question: What are the average score and average staff number of all shops?
Paraphrased question: What are the average score and average employee number of all shops?
SQL: SELECT avg(num_of_staff) ,  avg(score) FROM shop
Database: coffee_shop
Question: Find the id and address of the shops whose score is below the average score.
Paraphrased question: Find the id and location of the shops whose score is below the average score.
SQL: SELECT shop_id ,  address FROM shop WHERE score  <  (SELECT avg(score) FROM shop)
Database: coffee_shop
Question: Find the address and staff number of the shops that do not have any happy hour.
Paraphrased question: Find the location and employee number of the shops that do not have any happy hour.
SQL: SELECT address ,  num_of_staff FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM happy_hour)
Database: coffee_shop
Question: What are the id and address of the shops which have a happy hour in May?
Paraphrased question: What are the id and location of the shops which have a happy hour in May?
SQL: SELECT t1.address ,  t1.shop_id FROM shop AS t1 JOIN happy_hour AS t2 ON t1.shop_id  =  t2.shop_id WHERE MONTH  =  'May'
Database: coffee_shop
Question: which shop has happy hour most frequently? List its id and number of happy hours.
Paraphrased question: which store has happy hour most frequently? List its id and number of happy hours.
SQL: SELECT shop_id ,  count(*) FROM happy_hour GROUP BY shop_id ORDER BY count(*) DESC LIMIT 1
Database: coffee_shop
Question: Which month has the most happy hours?
Paraphrased question: Which month has the most happy hours?
SQL: SELECT MONTH FROM happy_hour GROUP BY MONTH ORDER BY count(*) DESC LIMIT 1
Database: coffee_shop
Question: Which months have more than 2 happy hours?
Paraphrased question: Which months have more than 2 happy hours?
SQL: SELECT MONTH FROM happy_hour GROUP BY MONTH HAVING count(*)  >  2
Database: chinook_1
Question: How many albums are there?
Paraphrased question: How many albums are there?
SQL: SELECT count(*) FROM ALBUM
Database: chinook_1
Question: Find the number of albums.
Paraphrased question: Find the number of albums.
SQL: SELECT count(*) FROM ALBUM
Database: chinook_1
Question: List the names of all music genres.
Paraphrased question: List the names of all music types.
SQL: SELECT Name FROM GENRE
Database: chinook_1
Question: What are the names of different music genres?
Paraphrased question: What are the names of different music genres?
SQL: SELECT Name FROM GENRE
Database: chinook_1
Question: Find all the customer information in state NY.
Paraphrased question: Find all the client information in state NY.
SQL: SELECT * FROM CUSTOMER WHERE State  =  "NY"
Database: chinook_1
Question: What is all the customer information for customers in NY state?
Paraphrased question: What is all the client information for customers in NY state?
SQL: SELECT * FROM CUSTOMER WHERE State  =  "NY"
Database: chinook_1
Question: What are the first names and last names of the employees who live in Calgary city.
Paraphrased question: What are the full names of the employees who live in Calgary city.
SQL: SELECT FirstName ,  LastName FROM EMPLOYEE WHERE City  =  "Calgary"
Database: chinook_1
Question: Find the full names of employees living in the city of Calgary.
Paraphrased question: Find the full names of employees living in the city of Calgary.
SQL: SELECT FirstName ,  LastName FROM EMPLOYEE WHERE City  =  "Calgary"
Database: chinook_1
Question: What are the distinct billing countries of the invoices?
Paraphrased question: What are the different billing countries of the invoices?
SQL: SELECT distinct BillingCountry FROM INVOICE
Database: chinook_1
Question: Find the different billing countries for all invoices.
Paraphrased question: Find the different billing countries for all invoices.
SQL: SELECT distinct BillingCountry FROM INVOICE
Database: chinook_1
Question: Find the names of all artists that have "a" in their names.
Paraphrased question: Find the names of all artists that have "a" in their names.
SQL: SELECT Name FROM ARTIST WHERE Name LIKE "%a%"
Database: chinook_1
Question: What are the names of artist who have the letter 'a' in their names?
Paraphrased question: What are the names of artist who have the letter 'a' in their names?
SQL: SELECT Name FROM ARTIST WHERE Name LIKE "%a%"
Database: chinook_1
Question: Find the title of all the albums of the artist "AC/DC".
Paraphrased question: Find the name of all the albums of the artist "AC/DC".
SQL: SELECT Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId WHERE T2.Name  =  "AC/DC"
Database: chinook_1
Question: What are the titles of albums by the artist "AC/DC"?
Paraphrased question: What are the names of albums by the artist "AC/DC"?
SQL: SELECT Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId WHERE T2.Name  =  "AC/DC"
Database: chinook_1
Question: Hom many albums does the artist "Metallica" have?
Paraphrased question: Hom many albums does the artist "Metallica" have?
SQL: SELECT COUNT(*) FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId WHERE T2.Name  =  "Metallica"
Database: chinook_1
Question: Find the number of albums by the artist "Metallica".
Paraphrased question: Find the number of albums by the artist "Metallica".
SQL: SELECT COUNT(*) FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId WHERE T2.Name  =  "Metallica"
Database: chinook_1
Question: Which artist does the album "Balls to the Wall" belong to?
Paraphrased question: Which artist does the album "Balls to the Wall" belong to?
SQL: SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId WHERE T1.Title  =  "Balls to the Wall"
Database: chinook_1
Question: Find the name of the artist who made the album "Balls to the Wall".
Paraphrased question: Find the name of the artist who made the album "Balls to the Wall".
SQL: SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId WHERE T1.Title  =  "Balls to the Wall"
Database: chinook_1
Question: Which artist has the most albums?
Paraphrased question: Which artist has the most albums?
SQL: SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId GROUP BY T2.Name ORDER BY COUNT(*) DESC LIMIT 1
Database: chinook_1
Question: What is the name of the artist with the greatest number of albums?
Paraphrased question: What is the name of the artist with the greatest number of albums?
SQL: SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId  =  T2.ArtistId GROUP BY T2.Name ORDER BY COUNT(*) DESC LIMIT 1
Database: chinook_1
Question: Find the names of all the tracks that contain the word "you".
Paraphrased question: Find the names of all the tracks that contain the word "you".
SQL: SELECT Name FROM TRACK WHERE Name LIKE '%you%'
Database: chinook_1
Question: What are the names of tracks that contain the the word you in them?
Paraphrased question: What are the names of tracks that contain the the word you in them?
SQL: SELECT Name FROM TRACK WHERE Name LIKE '%you%'
Database: chinook_1
Question: What is the average unit price of all the tracks?
Paraphrased question: What is the average unit price of all the tracks?
SQL: SELECT AVG(UnitPrice) FROM TRACK
Database: chinook_1
Question: Find the average unit price for a track.
Paraphrased question: Find the average unit price for a track.
SQL: SELECT AVG(UnitPrice) FROM TRACK
Database: chinook_1
Question: What are the durations of the longest and the shortest tracks in milliseconds?
Paraphrased question: What are the durations of the longest and the shortest tracks in milliseconds?
SQL: SELECT max(Milliseconds) ,  min(Milliseconds) FROM TRACK
Database: chinook_1
Question: Find the maximum and minimum durations of tracks in milliseconds.
Paraphrased question: Find the maximum and minimum durations of tracks in milliseconds.
SQL: SELECT max(Milliseconds) ,  min(Milliseconds) FROM TRACK
Database: chinook_1
Question: Show the album names, ids and the number of tracks for each album.
Paraphrased question: Show the album names, ids and the number of tracks for each album.
SQL: SELECT T1.Title ,  T2.AlbumID ,  COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId  =  T2.AlbumId GROUP BY T2.AlbumID
Database: chinook_1
Question: What are the names and ids of the different albums, and how many tracks are on each?
Paraphrased question: What are the names and ids of the different albums, and how many tracks are on each?
SQL: SELECT T1.Title ,  T2.AlbumID ,  COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId  =  T2.AlbumId GROUP BY T2.AlbumID
Database: chinook_1
Question: What is the name of the most common genre in all tracks?
Paraphrased question: What is the name of the most common genre in all tracks?
SQL: SELECT T1.Name FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId GROUP BY T2.GenreId ORDER BY COUNT(*) DESC LIMIT 1
Database: chinook_1
Question: Find the name of the genre that is most frequent across all tracks.
Paraphrased question: Find the name of the genre that is most frequent across all tracks.
SQL: SELECT T1.Name FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId GROUP BY T2.GenreId ORDER BY COUNT(*) DESC LIMIT 1
Database: chinook_1
Question: What is the least common media type in all tracks?
Paraphrased question: What is the least common media type in all tracks?
SQL: SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId  =  T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) ASC LIMIT 1
Database: chinook_1
Question: What is the name of the media type that is least common across all tracks?
Paraphrased question: What is the name of the media type that is least common across all tracks?
SQL: SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId  =  T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) ASC LIMIT 1
Database: chinook_1
Question: Show the album names and ids for albums that contain tracks with unit price bigger than 1.
Paraphrased question: Show the album names and ids for albums that contain tracks with unit price bigger than 1.
SQL: SELECT T1.Title ,  T2.AlbumID FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId  =  T2.AlbumId WHERE T2.UnitPrice  >  1 GROUP BY T2.AlbumID
Database: chinook_1
Question: What are the titles and ids for albums containing tracks with unit price greater than 1?
Paraphrased question: What are the names and ids for albums containing tracks with unit price greater than 1?
SQL: SELECT T1.Title ,  T2.AlbumID FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId  =  T2.AlbumId WHERE T2.UnitPrice  >  1 GROUP BY T2.AlbumID
Database: chinook_1
Question: How many tracks belong to rock genre?
Paraphrased question: How many tracks belong to rock genre?
SQL: SELECT COUNT(*) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  "Rock"
Database: chinook_1
Question: Count the number of tracks that are part of the rock genre.
Paraphrased question: Count the number of tracks that are part of the rock genre.
SQL: SELECT COUNT(*) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  "Rock"