aherntech/spider-syn huggingface dataset:
Database: protein_institute
Question: Show all the distinct institution types.
Paraphrased question: Show all the different institution categories.
SQL: SELECT DISTINCT TYPE FROM institution
Database: protein_institute
Question: Show institution names along with the number of proteins for each institution.
Paraphrased question: Show university names along with the number of proteins for each university.
SQL: SELECT T1.institution ,  count(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id  =  T2.institution_id GROUP BY T1.institution_id
Database: protein_institute
Question: How many proteins are associated with an institution founded after 1880 or an institution with type "Private"?
Paraphrased question: How many proteins are associated with university founded after 1880 or university with type "Private"?
SQL: SELECT count(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id  =  T2.institution_id WHERE T1.founded  >  1880 OR T1.type  =  'Private'
Database: protein_institute
Question: Show the protein name and the institution name.
Paraphrased question: Show the protein name and the university name.
SQL: SELECT T2.protein_name ,  T1.institution FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id  =  T2.institution_id
Database: protein_institute
Question: How many proteins are associated with an institution in a building with at least 20 floors?
Paraphrased question: How many proteins are associated with university in a building with at least 20 floors?
SQL: SELECT count(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id  =  T2.institution_id JOIN building AS T3 ON T3.building_id  =  T1.building_id WHERE T3.floors  >=  20
Database: protein_institute
Question: How many institutions do not have an associated protein in our record?
Paraphrased question: How many universities do not have an associated protein in our record?
SQL: SELECT count(*) FROM institution WHERE institution_id NOT IN (SELECT institution_id FROM protein)
Database: cinema
Question: Show all the locations where no cinema has capacity over 800.
Paraphrased question: Show all the locations where no cinema has number of seats over 800.
SQL: SELECT LOCATION FROM cinema EXCEPT SELECT LOCATION FROM cinema WHERE capacity  >  800
Database: cinema
Question: Show all the locations where some cinemas were opened in both year 2010 and year 2011.
Paraphrased question: Show all the locations where some cinemas were opened in both year 2010 and year 2011.
SQL: SELECT LOCATION FROM cinema WHERE openning_year  =  2010 INTERSECT SELECT LOCATION FROM cinema WHERE openning_year  =  2011
Database: cinema
Question: How many cinema do we have?
Paraphrased question: How many movie theater do we have?
SQL: SELECT count(*) FROM cinema
Database: cinema
Question: Count the number of cinemas.
Paraphrased question: Count the number of movie theater.
SQL: SELECT count(*) FROM cinema
Database: cinema
Question: Show name, opening year, and capacity for each cinema.
Paraphrased question: Show name, opening year, and number of seats for each cinema.
SQL: SELECT name ,  openning_year ,  capacity FROM cinema
Database: cinema
Question: Show the cinema name and location for cinemas with capacity above average.
Paraphrased question: Show the cinema name and county for cinemas with number of seats above average.
SQL: SELECT name ,  LOCATION FROM cinema WHERE capacity  >  (SELECT avg(capacity) FROM cinema)
Database: cinema
Question: What are all the locations with a cinema?
Paraphrased question: What are all the county with a cinema?
SQL: SELECT DISTINCT LOCATION FROM cinema
Database: cinema
Question: Find the distinct locations that has a cinema.
Paraphrased question: Find the different county that has a cinema.
SQL: SELECT DISTINCT LOCATION FROM cinema
Database: cinema
Question: Show all the cinema names and opening years in descending order of opening year.
Paraphrased question: Show all the movie theater names and opening years in descending order of opening year.
SQL: SELECT name ,  openning_year FROM cinema ORDER BY openning_year DESC
Database: cinema
Question: What are the name and location of the cinema with the largest capacity?
Paraphrased question: What are the name and county of the cinema with the largest number of seats?
SQL: SELECT name ,  LOCATION FROM cinema ORDER BY capacity DESC LIMIT 1
Database: cinema
Question: Show the average, minimum, and maximum capacity for all the cinemas opened in year 2011 or later.
Paraphrased question: Show the average, minimum, and maximum number of seats for all the cinemas opened in year 2011 or later.
SQL: SELECT avg(capacity) ,  min(capacity) ,  max(capacity) FROM cinema WHERE openning_year  >=  2011
Database: cinema
Question: Show each location and the number of cinemas there.
Paraphrased question: Show each county and the number of cinemas there.
SQL: SELECT LOCATION ,  count(*) FROM cinema GROUP BY LOCATION
Database: cinema
Question: What is the location with the most cinemas opened in year 2010 or later?
Paraphrased question: What is the county with the most cinemas opened in year 2010 or later?
SQL: SELECT LOCATION FROM cinema WHERE openning_year  >=  2010 GROUP BY LOCATION ORDER BY count(*) DESC LIMIT 1
Database: cinema
Question: Show all the locations with at least two cinemas with capacity above 300.
Paraphrased question: Show all the county with at least two cinemas with the number of seats above 300.
SQL: SELECT LOCATION FROM cinema WHERE capacity  >  300 GROUP BY LOCATION HAVING count(*)  >=  2
Database: cinema
Question: Which locations have 2 or more cinemas with capacity over 300?
Paraphrased question: Which county have 2 or more cinemas with the number of seats over 300?
SQL: SELECT LOCATION FROM cinema WHERE capacity  >  300 GROUP BY LOCATION HAVING count(*)  >=  2
Database: cinema
Question: Show the title and director for all films.
Paraphrased question: Show the title and director for all films.
SQL: SELECT title ,  directed_by FROM film
Database: cinema
Question: What are the title and director of each film?
Paraphrased question: What are the title and director of each film?
SQL: SELECT title ,  directed_by FROM film
Database: cinema
Question: Show all directors.
Paraphrased question: Show all directors.
SQL: SELECT DISTINCT directed_by FROM film
Database: cinema
Question: Who are all the directors?
Paraphrased question: Who are all the directors?
SQL: SELECT DISTINCT directed_by FROM film
Database: cinema
Question: List all directors along with the number of films directed by each director.
Paraphrased question: List all directors along with the number of films directed by each director.
SQL: SELECT directed_by ,  count(*) FROM film GROUP BY directed_by
Database: cinema
Question: What is total number of show times per dat for each cinema?
Paraphrased question: What is total number of show times per dat for each cinema?
SQL: SELECT T2.name ,  sum(T1.show_times_per_day) FROM schedule AS T1 JOIN cinema AS T2 ON T1.cinema_id  =  T2.cinema_id GROUP BY T1.cinema_id
Database: cinema
Question: What are the title and maximum price of each film?
Paraphrased question: What are the title and maximum price of each film?
SQL: SELECT T2.title ,  max(T1.price) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id GROUP BY T1.film_id
Database: cinema
Question: Give me the title and highest price for each film.
Paraphrased question: Give me the title and highest price for each film.
SQL: SELECT T2.title ,  max(T1.price) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id GROUP BY T1.film_id
Database: cinema
Question: Show cinema name, film title, date, and price for each record in schedule.
Paraphrased question: Show cinema name, film title, day, and price for each record in schedule.
SQL: SELECT T3.name ,  T2.title ,  T1.date ,  T1.price FROM schedule AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id JOIN cinema AS T3 ON T1.cinema_id  =  T3.cinema_id
Database: cinema
Question: What are the title and director of the films without any schedule?
Paraphrased question: What are the title and director of the films without any schedule?
SQL: SELECT title ,  directed_by FROM film WHERE film_id NOT IN (SELECT film_id FROM schedule)
Database: cinema
Question: Show director with the largest number of show times in total.
Paraphrased question: Show director with the largest number of show times in total.
SQL: SELECT T2.directed_by FROM schedule AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id GROUP BY T2.directed_by ORDER BY sum(T1.show_times_per_day) DESC LIMIT 1
Database: cinema
Question: Find the locations that have more than one movie theater with capacity above 300.
Paraphrased question: Find the county that have more than one movie theater with the number of seats above 300.
SQL: SELECT LOCATION FROM cinema WHERE capacity  >  300 GROUP BY LOCATION HAVING count(*)  >  1
Database: cinema
Question: In which locations are there more than one movie theater with capacity above 300?
Paraphrased question: In which county are there more than one movie theater with the number of seats above 300?
SQL: SELECT LOCATION FROM cinema WHERE capacity  >  300 GROUP BY LOCATION HAVING count(*)  >  1
Database: cinema
Question: How many films have the word 'Dummy' in their titles?
Paraphrased question: How many movies have the word 'Dummy' in their titles?
SQL: SELECT count(*) FROM film WHERE title LIKE "%Dummy%"
Database: cinema
Question: Count the number of films whose title contains the word 'Dummy'.
Paraphrased question: Count the number of movies whose title contains the word 'Dummy'.
SQL: SELECT count(*) FROM film WHERE title LIKE "%Dummy%"
Database: products_for_hire
Question: Are the customers holding coupons with amount 500 bad or good?
Paraphrased question: Are the clients holding coupons with amount 500 bad or good?
SQL: SELECT T1.good_or_bad_customer FROM customers AS T1 JOIN discount_coupons AS T2 ON T1.coupon_id  =  T2.coupon_id WHERE T2.coupon_amount  =  500
Database: products_for_hire
Question: How many bookings did each customer make? List the customer id, first name, and the count.
Paraphrased question: How many bookings did each customer make? List the customer id, forename, and the count.
SQL: SELECT T1.customer_id ,  T1.first_name ,  count(*) FROM Customers AS T1 JOIN bookings AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id
Database: products_for_hire
Question: What is the maximum total amount paid by a customer? List the customer id and amount.
Paraphrased question: What is the maximum total amount paid by a client? List the client id and amount.
SQL: SELECT customer_id ,  sum(amount_paid) FROM Payments GROUP BY customer_id ORDER BY sum(amount_paid) DESC LIMIT 1
Database: products_for_hire
Question: What are the id and the amount of refund of the booking that incurred the most times of payments?
Paraphrased question: What are the id and the amount of refund of the booking that incurred the most times of payments?
SQL: SELECT T1.booking_id ,  T1.amount_of_refund FROM Bookings AS T1 JOIN Payments AS T2 ON T1.booking_id  =  T2.booking_id GROUP BY T1.booking_id ORDER BY count(*) DESC LIMIT 1
Database: products_for_hire
Question: What is the id of the product that is booked for 3 times?
Paraphrased question: What is the id of the goods that is booked for 3 times?
SQL: SELECT product_id FROM products_booked GROUP BY product_id HAVING count(*)  =  3
Database: products_for_hire
Question: What is the product description of the product booked with an amount of 102.76?
Paraphrased question: What is the goods describing content of the goods booked with an amount of 102.76?
SQL: SELECT T2.product_description FROM products_booked AS T1 JOIN products_for_hire AS T2 ON T1.product_id  =  T2.product_id WHERE T1.booked_amount  =  102.76
Database: products_for_hire
Question: What are the start date and end date of the booking that has booked the product named 'Book collection A'?
Paraphrased question: What are the start day and end day of the booking that has booked the goods named 'Book collection A'?
SQL: SELECT T3.booking_start_date ,   T3.booking_end_date FROM Products_for_hire AS T1 JOIN products_booked AS T2 ON T1.product_id  =  T2.product_id JOIN bookings AS T3 ON T2.booking_id  =  T3.booking_id WHERE T1.product_name  =  'Book collection A'
Database: products_for_hire
Question: What are the names of products whose availability equals to 1?
Paraphrased question: What are the names of goods whose availability equals to 1?
SQL: SELECT T2.product_name FROM view_product_availability AS T1 JOIN products_for_hire AS T2 ON T1.product_id  =  T2.product_id WHERE T1.available_yn  =  1
Database: products_for_hire
Question: How many different product types are there?
Paraphrased question: How many different goods types are there?
SQL: SELECT count(DISTINCT product_type_code) FROM products_for_hire
Database: products_for_hire
Question: What are the first name, last name, and gender of all the good customers? Order by their last name.
Paraphrased question: What are the forename, family name, and sex of all the good customers? Order by their family name.
SQL: SELECT first_name ,  last_name ,  gender_mf FROM customers WHERE good_or_bad_customer  =  'good' ORDER BY last_name
Database: products_for_hire
Question: What is the average amount due for all the payments?
Paraphrased question: What is the average amount due for all the payments?
SQL: SELECT avg(amount_due) FROM payments
Database: products_for_hire
Question: What are the maximum, minimum, and average booked count for the products booked?
Paraphrased question: What are the maximum, minimum, and average booked quantity for the products booked?
SQL: SELECT max(booked_count) ,  min(booked_count) ,  avg(booked_count) FROM products_booked
Database: products_for_hire
Question: What are all the distinct payment types?
Paraphrased question: What are all the different payment methods?
SQL: SELECT DISTINCT payment_type_code FROM payments
Database: products_for_hire
Question: What are the daily hire costs for the products with substring 'Book' in its name?
Paraphrased question: What are the rent of day for the products with substring 'Book' in its name?
SQL: SELECT daily_hire_cost FROM Products_for_hire WHERE product_name LIKE '%Book%'
Database: products_for_hire
Question: How many products are never booked with amount higher than 200?
Paraphrased question: How many goods are never booked with amount higher than 200?
SQL: SELECT count(*) FROM Products_for_hire WHERE product_id NOT IN ( SELECT product_id FROM products_booked WHERE booked_amount  >  200 )
Database: products_for_hire
Question: What are the coupon amount of the coupons owned by both good and bad customers?
Paraphrased question: What are the number of coupons owned by both good and bad customers?
SQL: SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id  =  T2.coupon_id WHERE T2.good_or_bad_customer  =  'good' INTERSECT SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id  =  T2.coupon_id WHERE T2.good_or_bad_customer  =  'bad'
Database: products_for_hire
Question: What are the payment date of the payment with amount paid higher than 300 or with payment type is 'Check'
Paraphrased question: What are the payment day of the payment with amount paid higher than 300 or with payment method is 'Check'
SQL: SELECT payment_date FROM payments WHERE amount_paid  >  300 OR payment_type_code  =  'Check'
Database: products_for_hire
Question: What are the names and descriptions of the products that are of 'Cutlery' type and have daily hire cost lower than 20?
Paraphrased question: What are the names and describing details of the goods that are of 'Cutlery' type and have daily hire cost lower than 20?
SQL: SELECT product_name ,  product_description FROM products_for_hire WHERE product_type_code  =  'Cutlery' AND daily_hire_cost  <  20
Database: phone_market
Question: How many phones are there?
Paraphrased question: Count the number of cellphones are there?
SQL: SELECT count(*) FROM phone
Database: phone_market
Question: List the names of phones in ascending order of price.
Paraphrased question: List the names of cellphones in ascending order of price.
SQL: SELECT Name FROM phone ORDER BY Price ASC
Database: phone_market
Question: What are the memories and carriers of phones?
Paraphrased question: What are the storage space and carriers of phones?
SQL: SELECT Memory_in_G ,  Carrier FROM phone
Database: phone_market
Question: List the distinct carriers of phones with memories bigger than 32.
Paraphrased question: List the different carriers of cellphones with memories bigger than 32.
SQL: SELECT DISTINCT Carrier FROM phone WHERE Memory_in_G  >  32
Database: phone_market
Question: Show the names of phones with carrier either "Sprint" or "TMobile".
Paraphrased question: Show the names of cellphones with carrier either "Sprint" or "TMobile".
SQL: SELECT Name FROM phone WHERE Carrier  =  "Sprint" OR Carrier  =  "TMobile"
Database: phone_market
Question: What is the carrier of the most expensive phone?
Paraphrased question: What is the carrier of the most expensive cellphone?
SQL: SELECT Carrier FROM phone ORDER BY Price DESC LIMIT 1
Database: phone_market
Question: Show different carriers of phones together with the number of phones with each carrier.
Paraphrased question: Show different carriers of cellphones together with the number of cellphones with each carrier.
SQL: SELECT Carrier ,  COUNT(*) FROM phone GROUP BY Carrier
Database: phone_market
Question: Show the most frequently used carrier of the phones.
Paraphrased question: Show the most frequently used carrier of the cellphones.
SQL: SELECT Carrier FROM phone GROUP BY Carrier ORDER BY COUNT(*) DESC LIMIT 1
Database: phone_market
Question: Show the carriers that have both phones with memory smaller than 32 and phones with memory bigger than 64.
Paraphrased question: Show the carriers that have both cellphones with memory smaller than 32 and cellphones with memory bigger than 64.
SQL: SELECT Carrier FROM phone WHERE Memory_in_G  <  32 INTERSECT SELECT Carrier FROM phone WHERE Memory_in_G  >  64
Database: phone_market
Question: Show the names of phones and the districts of markets they are on.
Paraphrased question: Show the names of cellphones and the region of markets they are on.
SQL: SELECT T3.Name ,  T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID  =  T3.Phone_ID
Database: phone_market
Question: Show the names of phones and the districts of markets they are on, in ascending order of the ranking of the market.
Paraphrased question: Show the names of phones and the region of markets they are on, in ascending order of the ranking of the market.
SQL: SELECT T3.Name ,  T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID  =  T3.Phone_ID ORDER BY T2.Ranking
Database: phone_market
Question: Show the names of phones that are on market with number of shops greater than 50.
Paraphrased question: Show the names of cellphones that are on market with number of shops greater than 50.
SQL: SELECT T3.Name FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID  =  T3.Phone_ID WHERE T2.Num_of_shops  >  50
Database: phone_market
Question: For each phone, show its names and total number of stocks.
Paraphrased question: For each cellphone, show its names and inventory quantity.
SQL: SELECT T2.Name ,  sum(T1.Num_of_stock) FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID  =  T2.Phone_ID GROUP BY T2.Name
Database: phone_market
Question: Show the names of phones that have total number of stocks bigger than 2000, in descending order of the total number of stocks.
Paraphrased question: Show the names of phones that have inventory quantity bigger than 2000, in descending order of the total number of inventory.
SQL: SELECT T2.Name FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID  =  T2.Phone_ID GROUP BY T2.Name HAVING sum(T1.Num_of_stock)  >=  2000 ORDER BY sum(T1.Num_of_stock) DESC
Database: phone_market
Question: List the names of phones that are not on any market.
Paraphrased question: List the names of cellphones that are not on any market.
SQL: SELECT Name FROM phone WHERE Phone_id NOT IN (SELECT Phone_ID FROM phone_market)
Database: gas_company
Question: How many gas companies are there?
Paraphrased question: Show the number of gas companies are there?
SQL: SELECT count(*) FROM company
Database: gas_company
Question: What is the total number of companies?
Paraphrased question: What is the total number of enterprise?
SQL: SELECT count(*) FROM company
Database: gas_company
Question: List the company name and rank for all companies in the decreasing order of their sales.
Paraphrased question: List the enterprise name and rank for all enterprise in the decreasing order of their sales.
SQL: SELECT company ,  rank FROM company ORDER BY Sales_billion DESC
Database: gas_company
Question: What is the name and rank of every company ordered by descending number of sales?
Paraphrased question: What is the name and rank of every enterprise ordered by descending number of sales?
SQL: SELECT company ,  rank FROM company ORDER BY Sales_billion DESC
Database: gas_company
Question: Show the company name and the main industry for all companies whose headquarters are not from USA.
Paraphrased question: Show the enterprise name and the main industry for all enterprise whose headquarters are not from USA.
SQL: SELECT company ,  main_industry FROM company WHERE headquarters != 'USA'
Database: gas_company
Question: What are the companies and main industries of all companies that are not headquartered in the United States?
Paraphrased question: What are the enterprise and main industries of all enterprise that are not headquartered in the United States?
SQL: SELECT company ,  main_industry FROM company WHERE headquarters != 'USA'
Database: gas_company
Question: Show all company names and headquarters in the descending order of market value.
Paraphrased question: Show all enterprise names and head office in the descending order of market value.
SQL: SELECT company ,  headquarters FROM company ORDER BY market_value DESC
Database: gas_company
Question: What are the names and headquarters of all companies ordered by descending market value?
Paraphrased question: What are the names and head office of all enterprise ordered by descending market value?
SQL: SELECT company ,  headquarters FROM company ORDER BY market_value DESC
Database: gas_company
Question: Show minimum, maximum, and average market value for all companies.
Paraphrased question: Show minimum, maximum, and average market value for all enterprise.
SQL: SELECT min(market_value) ,  max(market_value) ,  avg(market_value) FROM company
Database: gas_company
Question: What is the minimum, maximum, and average market value for every company?
Paraphrased question: What is the minimum, maximum, and average market value for every enterprise?
SQL: SELECT min(market_value) ,  max(market_value) ,  avg(market_value) FROM company
Database: gas_company
Question: Show all main industry for all companies.
Paraphrased question: Show all main industry for all enterprise.
SQL: SELECT DISTINCT main_industry FROM company
Database: gas_company
Question: What are the different main industries for all companies?
Paraphrased question: What are the different main industries for all enterprise?
SQL: SELECT DISTINCT main_industry FROM company
Database: gas_company
Question: List all headquarters and the number of companies in each headquarter.
Paraphrased question: List all head office and the number of companies in each head office.
SQL: SELECT headquarters ,  count(*) FROM company GROUP BY headquarters
Database: gas_company
Question: For each headquarter, what are the headquarter and how many companies are centered there?
Paraphrased question: For each head office, what are the head office and how many companies are centered there?
SQL: SELECT headquarters ,  count(*) FROM company GROUP BY headquarters
Database: gas_company
Question: Show all main industry and total market value in each industry.
Paraphrased question: Show all main industry and total market value in each industry.
SQL: SELECT main_industry ,  sum(market_value) FROM company GROUP BY main_industry
Database: gas_company
Question: What are the main indstries and total market value for each industry?
Paraphrased question: What are the main indstries and total market value for each industry?
SQL: SELECT main_industry ,  sum(market_value) FROM company GROUP BY main_industry
Database: gas_company
Question: List the main industry with highest total market value and its number of companies.
Paraphrased question: List the main industry with highest total market value and its number of enterprise.
SQL: SELECT main_industry ,  count(*) FROM company GROUP BY main_industry ORDER BY sum(market_value) DESC LIMIT 1
Database: gas_company
Question: For each main industry, what is the total number of companies for the industry with the highest total market value?
Paraphrased question: For each main industry, what is the total number of enterprise for the industry with the highest total market value?
SQL: SELECT main_industry ,  count(*) FROM company GROUP BY main_industry ORDER BY sum(market_value) DESC LIMIT 1
Database: gas_company
Question: Show headquarters with at least two companies in the banking industry.
Paraphrased question: Show head office with at least two companies in the banking industry.
SQL: SELECT headquarters FROM company WHERE main_industry  =  'Banking' GROUP BY headquarters HAVING count(*)  >=  2
Database: gas_company
Question: What are the headquarters with at least two companies in the banking industry?
Paraphrased question: What are the head office with at least two companies in the banking industry?
SQL: SELECT headquarters FROM company WHERE main_industry  =  'Banking' GROUP BY headquarters HAVING count(*)  >=  2
Database: gas_company
Question: Show gas station id, location, and manager_name for all gas stations ordered by open year.
Paraphrased question: Show gas station id, address, and head name for all gas stations ordered by open year.
SQL: SELECT station_id ,  LOCATION ,  manager_name FROM gas_station ORDER BY open_year
Database: gas_company
Question: What are the gas station ids, locations, and manager names for the gas stations ordered by opening year?
Paraphrased question: What are the gas station ids, addresses, and head names for the gas stations ordered by opening year?
SQL: SELECT station_id ,  LOCATION ,  manager_name FROM gas_station ORDER BY open_year
Database: gas_company
Question: How many gas station are opened between 2000 and 2005?
Paraphrased question: How many gas station are opened between 2000 and 2005?
SQL: SELECT count(*) FROM gas_station WHERE open_year BETWEEN 2000 AND 2005
Database: gas_company
Question: What is the total number of gas stations that opened between 2000 and 2005?
Paraphrased question: What is the total number of gas stations that opened between 2000 and 2005?
SQL: SELECT count(*) FROM gas_station WHERE open_year BETWEEN 2000 AND 2005
Database: gas_company
Question: Show all locations and the number of gas stations in each location ordered by the count.
Paraphrased question: Show all addresses and the number of gas stations in each address ordered by the count.
SQL: SELECT LOCATION ,  count(*) FROM gas_station GROUP BY LOCATION ORDER BY count(*)
Database: gas_company
Question: For each location, how many gas stations are there in order?
Paraphrased question: For each address, how many gas stations are there in order?
SQL: SELECT LOCATION ,  count(*) FROM gas_station GROUP BY LOCATION ORDER BY count(*)
Database: gas_company
Question: Show all headquarters with both a company in banking industry and a company in Oil and gas.
Paraphrased question: Show all head office with both a company in banking industry and a company in Oil and gas.
SQL: SELECT headquarters FROM company WHERE main_industry  =  'Banking' INTERSECT SELECT headquarters FROM company WHERE main_industry  =  'Oil and gas'
Database: gas_company
Question: What are the headquarters that have both a company in the banking and 'oil and gas' industries?
Paraphrased question: What are the head office that have both a company in the banking and 'oil and gas' industries?
SQL: SELECT headquarters FROM company WHERE main_industry  =  'Banking' INTERSECT SELECT headquarters FROM company WHERE main_industry  =  'Oil and gas'
Database: gas_company
Question: Show all headquarters without a company in banking industry.
Paraphrased question: Show all head office without a company in banking industry.
SQL: SELECT headquarters FROM company EXCEPT SELECT headquarters FROM company WHERE main_industry  =  'Banking'
Database: gas_company
Question: What are the headquarters without companies that are in the banking industry?
Paraphrased question: What are the head office without companies that are in the banking industry?
SQL: SELECT headquarters FROM company EXCEPT SELECT headquarters FROM company WHERE main_industry  =  'Banking'
Database: gas_company
Question: Show the company name with the number of gas station.
Paraphrased question: Show the enterprise name with the number of gas station.
SQL: SELECT T2.company ,  count(*) FROM station_company AS T1 JOIN company AS T2 ON T1.company_id  =  T2.company_id GROUP BY T1.company_id
Database: gas_company
Question: For each company id, what are the companies and how many gas stations does each one operate?
Paraphrased question: For each enterprise id, what are the enterprise and how many gas stations does each one operate?
SQL: SELECT T2.company ,  count(*) FROM station_company AS T1 JOIN company AS T2 ON T1.company_id  =  T2.company_id GROUP BY T1.company_id
Database: gas_company
Question: Show company name and main industry without a gas station.
Paraphrased question: Show enterprise name and main industry without a gas station.
SQL: SELECT company ,  main_industry FROM company WHERE company_id NOT IN (SELECT company_id FROM station_company)
Database: gas_company
Question: What are the main industries of the companies without gas stations and what are the companies?
Paraphrased question: What are the main industries of the enterprise without gas stations and what are the enterprise?
SQL: SELECT company ,  main_industry FROM company WHERE company_id NOT IN (SELECT company_id FROM station_company)
Database: gas_company
Question: Show the manager name for gas stations belonging to the ExxonMobil company.
Paraphrased question: Show the head name for gas stations belonging to the ExxonMobil company.
SQL: SELECT T3.manager_name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id  =  T2.company_id JOIN gas_station AS T3 ON T1.station_id  =  T3.station_id WHERE T2.company  =  'ExxonMobil'
Database: gas_company
Question: What are the names of the managers for gas stations that are operated by the ExxonMobil company?
Paraphrased question: What are the names of the heads for gas stations that are operated by the ExxonMobil company?
SQL: SELECT T3.manager_name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id  =  T2.company_id JOIN gas_station AS T3 ON T1.station_id  =  T3.station_id WHERE T2.company  =  'ExxonMobil'
Database: gas_company
Question: Show all locations where a gas station for company with market value greater than 100 is located.
Paraphrased question: Show all addresses where a gas station for company with market value greater than 100 is located.
SQL: SELECT T3.location FROM station_company AS T1 JOIN company AS T2 ON T1.company_id  =  T2.company_id JOIN gas_station AS T3 ON T1.station_id  =  T3.station_id WHERE T2.market_value  >  100
Database: gas_company
Question: What are the locations that have gas stations owned by a company with a market value greater than 100?
Paraphrased question: What are the addresses that have gas stations owned by a company with a market value greater than 100?
SQL: SELECT T3.location FROM station_company AS T1 JOIN company AS T2 ON T1.company_id  =  T2.company_id JOIN gas_station AS T3 ON T1.station_id  =  T3.station_id WHERE T2.market_value  >  100
Database: gas_company
Question: Show the manager name with most number of gas stations opened after 2000.
Paraphrased question: Show the head name with most number of gas stations opened after 2000.
SQL: SELECT manager_name FROM gas_station WHERE open_year  >  2000 GROUP BY manager_name ORDER BY count(*) DESC LIMIT 1
Database: gas_company
Question: What is the name of the manager with the most gas stations that opened after 2000?
Paraphrased question: What is the name of the head with the most gas stations that opened after 2000?
SQL: SELECT manager_name FROM gas_station WHERE open_year  >  2000 GROUP BY manager_name ORDER BY count(*) DESC LIMIT 1
Database: gas_company
Question: order all gas station locations by the opening year.
Paraphrased question: order all gas station addresses by the opening year.
SQL: SELECT LOCATION FROM gas_station ORDER BY open_year
Database: gas_company
Question: What are the locations of all the gas stations ordered by opening year?
Paraphrased question: What are the addresses of all the gas stations ordered by opening year?
SQL: SELECT LOCATION FROM gas_station ORDER BY open_year
Database: gas_company
Question: find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion.
Paraphrased question: find the rank, enterprise names, market values of the enterprises in the banking industry order by their sales and profits in billion.
SQL: SELECT rank ,  company ,  market_value FROM company WHERE main_industry  =  'Banking' ORDER BY sales_billion ,  profits_billion
Database: gas_company
Question: What is the rank, company, and market value of every comapny in the banking industry ordered by sales and profits?
Paraphrased question: What is the rank,enterprise, and market value of every enterprise in the banking industry ordered by sales and profits?
SQL: SELECT rank ,  company ,  market_value FROM company WHERE main_industry  =  'Banking' ORDER BY sales_billion ,  profits_billion
Database: gas_company
Question: find the location and Representative name of the gas stations owned by the companies with top 3 Asset amounts.
Paraphrased question: find the address and Representative name of the gas stations owned by the companies with top 3 Asset amounts.
SQL: SELECT T3.location ,  T3.Representative_Name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id  =  T2.company_id JOIN gas_station AS T3 ON T1.station_id  =  T3.station_id ORDER BY T2.Assets_billion DESC LIMIT 3
Database: gas_company
Question: What are the locations and representatives' names of the gas stations owned by the companies with the 3 largest amounts of assets?
Paraphrased question: What are the addresses and representatives' names of the gas stations owned by the companies with the 3 largest amounts of assets?
SQL: SELECT T3.location ,  T3.Representative_Name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id  =  T2.company_id JOIN gas_station AS T3 ON T1.station_id  =  T3.station_id ORDER BY T2.Assets_billion DESC LIMIT 3
Database: party_people
Question: How many regions do we have?
Paraphrased question: How many districts do we have?
SQL: SELECT count(*) FROM region
Database: party_people
Question: Count the number of regions.
Paraphrased question: Count the number of districts.
SQL: SELECT count(*) FROM region
Database: party_people
Question: Show all distinct region names ordered by their labels.
Paraphrased question: Show all different district names ordered by their labels.
SQL: SELECT DISTINCT region_name FROM region ORDER BY Label
Database: party_people
Question: What are the different region names, ordered by labels?
Paraphrased question: What are the different district names, ordered by labels?
SQL: SELECT DISTINCT region_name FROM region ORDER BY Label
Database: party_people
Question: How many parties do we have?
Paraphrased question: How many parties do we have?
SQL: SELECT count(DISTINCT party_name) FROM party
Database: party_people
Question: Count the number of different parties.
Paraphrased question: Count the number of different parties.
SQL: SELECT count(DISTINCT party_name) FROM party
Database: party_people
Question: Show the ministers and the time they took and left office, listed by the time they left office.
Paraphrased question: Show the ministers and the time they took and left office, listed by the time they left office.
SQL: SELECT minister ,  took_office ,  left_office FROM party ORDER BY left_office
Database: party_people
Question: Who are the ministers, when did they take office, and when did they leave office, ordered by when they left office?
Paraphrased question: Who are the ministers, when did they take office, and when did they leave office, ordered by when they left office?
SQL: SELECT minister ,  took_office ,  left_office FROM party ORDER BY left_office
Database: party_people
Question: Show the minister who took office after 1961 or before 1959.
Paraphrased question: Show the minister who took office after 1961 or before 1959.
SQL: SELECT minister FROM party WHERE took_office  >  1961 OR took_office  <  1959
Database: party_people
Question: Who are the ministers who took office after 1961 or before 1959?
Paraphrased question: Who are the ministers who took office after 1961 or before 1959?
SQL: SELECT minister FROM party WHERE took_office  >  1961 OR took_office  <  1959
Database: party_people
Question: Show all ministers who do not belong to Progress Party.
Paraphrased question: Show all ministers who do not belong to Progress Party.
SQL: SELECT minister FROM party WHERE party_name != 'Progress Party'
Database: party_people
Question: Which ministers are not a part of the Progress Party?
Paraphrased question: Which ministers are not a part of the Progress Party?
SQL: SELECT minister FROM party WHERE party_name != 'Progress Party'
Database: party_people
Question: Show all ministers and parties they belong to in descending order of the time they took office.
Paraphrased question: Show all ministers and parties they belong to in descending order of the time they took office.
SQL: SELECT minister ,  party_name FROM party ORDER BY took_office DESC
Database: party_people
Question: Who are the ministers and what parties do they belong to, listed descending by the times they took office?
Paraphrased question: Who are the ministers and what parties do they belong to, listed descending by the times they took office?
SQL: SELECT minister ,  party_name FROM party ORDER BY took_office DESC
Database: party_people
Question: Return the minister who left office at the latest time.
Paraphrased question: Return the minister who left office at the latest time.
SQL: SELECT minister FROM party ORDER BY left_office DESC LIMIT 1
Database: party_people
Question: Which minister left office the latest?
Paraphrased question: Which minister left office the latest?
SQL: SELECT minister FROM party ORDER BY left_office DESC LIMIT 1
Database: party_people
Question: List member names and their party names.
Paraphrased question: List member names and their party names.
SQL: SELECT T1.member_name ,  T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id
Database: party_people
Question: What are the names of members and their corresponding parties?
Paraphrased question: What are the names of members and their corresponding parties?
SQL: SELECT T1.member_name ,  T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id
Database: party_people
Question: Show all party names and the number of members in each party.
Paraphrased question: Show all party names and the number of members in each party.
SQL: SELECT T2.party_name ,  count(*) FROM Member AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id GROUP BY T1.party_id
Database: party_people
Question: How many members are in each party?
Paraphrased question: How many members are in each party?
SQL: SELECT T2.party_name ,  count(*) FROM Member AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id GROUP BY T1.party_id
Database: party_people
Question: What is the name of party with most number of members?
Paraphrased question: What is the name of party with most number of members?
SQL: SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id GROUP BY T1.party_id ORDER BY count(*) DESC LIMIT 1
Database: party_people
Question: Return the name of the party with the most members.
Paraphrased question: Return the name of the party with the most members.
SQL: SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id GROUP BY T1.party_id ORDER BY count(*) DESC LIMIT 1
Database: party_people
Question: Show all party names and their region names.
Paraphrased question: Show all party names and their district names.
SQL: SELECT T1.party_name ,  T2.region_name FROM party AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id
Database: party_people
Question: What are the names of parties and their respective regions?
Paraphrased question: What are the names of parties and their respective districts?
SQL: SELECT T1.party_name ,  T2.region_name FROM party AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id
Database: party_people
Question: Show names of parties that does not have any members.
Paraphrased question: Show names of parties that does not have any members.
SQL: SELECT party_name FROM party WHERE party_id NOT IN (SELECT party_id FROM Member)
Database: party_people
Question: What are the names of parties that have no members?
Paraphrased question: What are the names of parties that have no members?
SQL: SELECT party_name FROM party WHERE party_id NOT IN (SELECT party_id FROM Member)
Database: party_people
Question: Show the member names which are in both the party with id 3 and the party with id 1.
Paraphrased question: Show the member names which are in both the party with id 3 and the party with id 1.
SQL: SELECT member_name FROM member WHERE party_id  =  3 INTERSECT SELECT member_name FROM member WHERE party_id  =  1
Database: party_people
Question: Which member names are shared among members in the party with the id 3 and the party with the id 1?
Paraphrased question: Which member names are shared among members in the party with the id 3 and the party with the id 1?
SQL: SELECT member_name FROM member WHERE party_id  =  3 INTERSECT SELECT member_name FROM member WHERE party_id  =  1
Database: party_people
Question: Show member names that are not in the Progress Party.
Paraphrased question: Show member names that are not in the Progress Party.
SQL: SELECT T1.member_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id WHERE T2.Party_name != "Progress Party"
Database: party_people
Question: Which member names corresponding to members who are not in the Progress Party?
Paraphrased question: Which member names corresponding to members who are not in the Progress Party?
SQL: SELECT T1.member_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id WHERE T2.Party_name != "Progress Party"
Database: party_people
Question: How many party events do we have?
Paraphrased question: How many party events do we have?
SQL: SELECT count(*) FROM party_events
Database: party_people
Question: Count the number of party events.
Paraphrased question: Count the number of party events.
SQL: SELECT count(*) FROM party_events
Database: party_people
Question: Show party names and the number of events for each party.
Paraphrased question: Show party names and the number of events for each party.
SQL: SELECT T2.party_name ,  count(*) FROM party_events AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id GROUP BY T1.party_id
Database: party_people
Question: How many events are there for each party?
Paraphrased question: How many events are there for each party?
SQL: SELECT T2.party_name ,  count(*) FROM party_events AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id GROUP BY T1.party_id
Database: party_people
Question: Show all member names who are not in charge of any event.
Paraphrased question: Show all member names who are not in charge of any event.
SQL: SELECT member_name FROM member EXCEPT SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id  =  T2.member_in_charge_id
Database: party_people
Question: What are the names of members who are not in charge of any events?
Paraphrased question: What are the names of members who are not in charge of any events?
SQL: SELECT member_name FROM member EXCEPT SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id  =  T2.member_in_charge_id
Database: party_people
Question: What are the names of parties with at least 2 events?
Paraphrased question: What are the names of parties with at least 2 events?
SQL: SELECT T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id GROUP BY T1.party_id HAVING count(*)  >=  2
Database: party_people
Question: Return the names of parties that have two or more events.
Paraphrased question: Return the names of parties that have two or more events.
SQL: SELECT T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id GROUP BY T1.party_id HAVING count(*)  >=  2
Database: party_people
Question: What is the name of member in charge of greatest number of events?
Paraphrased question: What is the name of member in charge of greatest number of events?
SQL: SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id  =  T2.member_in_charge_id GROUP BY T2.member_in_charge_id ORDER BY count(*) DESC LIMIT 1
Database: party_people
Question: Return the name of the member who is in charge of the most events.
Paraphrased question: Return the name of the member who is in charge of the most events.
SQL: SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id  =  T2.member_in_charge_id GROUP BY T2.member_in_charge_id ORDER BY count(*) DESC LIMIT 1
Database: party_people
Question: find the event names that have more than 2 records.
Paraphrased question: find the event names that have more than 2 records.
SQL: SELECT event_name FROM party_events GROUP BY event_name HAVING count(*)  >  2
Database: party_people
Question: Which event names were used more than twice for party events?
Paraphrased question: Which event names were used more than twice for party events?
SQL: SELECT event_name FROM party_events GROUP BY event_name HAVING count(*)  >  2
Database: party_people
Question: How many Annual Meeting events happened in the United Kingdom region?
Paraphrased question: How many Annual Meeting events happened in the United Kingdom district?
SQL: SELECT count(*) FROM region AS t1 JOIN party AS t2 ON t1.region_id  =  t2.region_id JOIN party_events AS t3 ON t2.party_id  =  t3.party_id WHERE t1.region_name  =  "United Kingdom" AND t3.Event_Name  =  "Annaual Meeting"
Database: party_people
Question: Count the number of Annual Meeting events that took place in the region of the United Kingdom.
Paraphrased question: Count the number of Annual Meeting events that took place in the district of the United Kingdom.
SQL: SELECT count(*) FROM region AS t1 JOIN party AS t2 ON t1.region_id  =  t2.region_id JOIN party_events AS t3 ON t2.party_id  =  t3.party_id WHERE t1.region_name  =  "United Kingdom" AND t3.Event_Name  =  "Annaual Meeting"
Database: pilot_record
Question: How many pilots are there?
Paraphrased question: How many aviators are there?
SQL: SELECT count(*) FROM pilot
Database: pilot_record
Question: List the names of pilots in ascending order of rank.
Paraphrased question: List the names of aviators in ascending order of rank.
SQL: SELECT Pilot_name FROM pilot ORDER BY Rank ASC
Database: pilot_record
Question: What are the positions and teams of pilots?
Paraphrased question: What are the locations and teams of pilots?
SQL: SELECT POSITION ,  Team FROM pilot
Database: pilot_record
Question: List the distinct positions of pilots older than 30.
Paraphrased question: List the different locations of pilots older than 30.
SQL: SELECT DISTINCT POSITION FROM pilot WHERE Age  >  30
Database: pilot_record
Question: Show the names of pilots from team "Bradley" or "Fordham".
Paraphrased question: Show the names of aviators from team "Bradley" or "Fordham".
SQL: SELECT Pilot_name FROM pilot WHERE Team  =  "Bradley" OR Team  =  "Fordham"
Database: pilot_record
Question: What is the joined year of the pilot of the highest rank?
Paraphrased question: What is the joined year of the aviator of the highest rank?
SQL: SELECT Join_Year FROM pilot ORDER BY Rank ASC LIMIT 1