aherntech/sparc huggingface dataset:
Database: e_government
Question sequence:
Show the organization whose name is "Labour Party".
What are the contact individuals for this organization?
Of these, find the last name of the latest contact individual.
SQL query sequence:
SELECT * FROM organizations WHERE organization_name  =  "Labour Party"
SELECT * FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id JOIN individuals AS t3 ON t2.individual_id  =  t3.individual_id WHERE t1.organization_name  =  "Labour Party"
SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id JOIN individuals AS t3 ON t2.individual_id  =  t3.individual_id WHERE t1.organization_name  =  "Labour Party" ORDER BY t2.date_contact_to DESC LIMIT 1
Final question: Find the last name of the latest contact individual of the organization "Labour Party".
Final SQL: SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id JOIN individuals AS t3 ON t2.individual_id  =  t3.individual_id WHERE t1.organization_name  =  "Labour Party" ORDER BY t2.date_contact_to DESC LIMIT 1
Database: e_government
Question sequence:
What is the highest UK Vat number?
Show the contact persons of the organization with this UK Vat number.
From the results, find the last name of the first ever contact person.
SQL query sequence:
SELECT max(uk_vat_number) FROM organizations
SELECT * FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id JOIN individuals AS t3 ON t2.individual_id  =  t3.individual_id WHERE t1.uk_vat_number  =  (SELECT max(uk_vat_number) FROM organizations)
SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id JOIN individuals AS t3 ON t2.individual_id  =  t3.individual_id WHERE t1.uk_vat_number  =  (SELECT max(uk_vat_number) FROM organizations) ORDER BY t2.date_contact_to ASC LIMIT 1
Final question: Find the last name of the first ever contact person of the organization with the highest UK Vat number.
Final SQL: SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id JOIN individuals AS t3 ON t2.individual_id  =  t3.individual_id WHERE t1.uk_vat_number  =  (SELECT max(uk_vat_number) FROM organizations) ORDER BY t2.date_contact_to ASC LIMIT 1
Database: e_government
Question sequence:
List all the available service names.
Which of these have been used in some party service?
How about those never used in any party service?
SQL query sequence:
SELECT service_name FROM services
SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id  =  t2.service_id
SELECT service_name FROM services EXCEPT SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id  =  t2.service_id
Final question: Find the names of the services that have never been used.
Final SQL: SELECT service_name FROM services EXCEPT SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id  =  t2.service_id
Database: e_government
Question sequence:
Show all the address information.
Find the names of all the cities.
Find the names of all the cities and states.
SQL query sequence:
SELECT * FROM addresses
SELECT town_city FROM addresses
SELECT town_city FROM addresses UNION SELECT state_province_county FROM addresses
Final question: Find the name of all the cities and states.
Final SQL: SELECT town_city FROM addresses UNION SELECT state_province_county FROM addresses
Database: e_government
Question sequence:
How many addresses are there?
How many are in the state "Colorado"?
SQL query sequence:
SELECT count(*) FROM addresses
SELECT count(*) FROM addresses WHERE state_province_county  =  "Colorado"
Final question: How many cities are there in state "Colorado"?
Final SQL: SELECT count(*) FROM addresses WHERE state_province_county  =  "Colorado"
Database: e_government
Question sequence:
Show the payment method codes used by parties.
Which of them are used by more than 3 parties
SQL query sequence:
SELECT payment_method_code FROM parties
SELECT payment_method_code FROM parties GROUP BY payment_method_code HAVING count(*)  >  3
Final question: Find the payment method code used by more than 3 parties.
Final SQL: SELECT payment_method_code FROM parties GROUP BY payment_method_code HAVING count(*)  >  3
Database: e_government
Question sequence:
Find all the organization names.
Which of them contain the string "Party"?
SQL query sequence:
SELECT organization_name FROM organizations
SELECT organization_name FROM organizations WHERE organization_name LIKE "%Party%"
Final question: Find the name of organizations whose names contain "Party".
Final SQL: SELECT organization_name FROM organizations WHERE organization_name LIKE "%Party%"
Database: e_government
Question sequence:
What is the payment method code used by each party?
How many distinct payment methods are used by parties?
SQL query sequence:
SELECT payment_method_code FROM parties
SELECT count(DISTINCT payment_method_code) FROM parties
Final question: How many distinct payment methods are used by parties?
Final SQL: SELECT count(DISTINCT payment_method_code) FROM parties
Database: e_government
Question sequence:
How many times did each party use services?
Which party used party services the most number of times?
What is their email?
SQL query sequence:
SELECT count(*) FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id  =  t2.customer_id GROUP BY t1.party_id
SELECT * FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id  =  t2.customer_id GROUP BY t1.party_id ORDER BY count(*)  DESC LIMIT 1
SELECT t1.party_email FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id  =  t2.customer_id GROUP BY t1.party_id ORDER BY count(*) DESC LIMIT 1
Final question: Which is the email of the party that has used the services the most number of times?
Final SQL: SELECT t1.party_email FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id  =  t2.customer_id GROUP BY t1.party_email ORDER BY count(*) DESC LIMIT 1
Database: e_government
Question sequence:
What is the state of each address?
What one has building name that contains "6862 Kaitlyn Knolls"?
SQL query sequence:
SELECT state_province_county FROM addresses
SELECT state_province_county FROM addresses WHERE line_1_number_building LIKE "%6862 Kaitlyn Knolls%"
Final question: Which state can address "6862 Kaitlyn Knolls" possibly be in?
Final SQL: SELECT state_province_county FROM addresses WHERE line_1_number_building LIKE "%6862 Kaitlyn Knolls%"
Database: e_government
Question sequence:
How many contact individuals does each organization have?
What is the name of organization that has the greatest number of contact individuals?
SQL query sequence:
SELECT count(*) FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id
SELECT t1.organization_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id GROUP BY t1.organization_name ORDER BY count(*) DESC LIMIT 1
Final question: What is the name of organization that has the greatest number of contact individuals?
Final SQL: SELECT t1.organization_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id GROUP BY t1.organization_name ORDER BY count(*) DESC LIMIT 1
Database: products_for_hire
Question sequence:
Show me the name of customers.
What about their coupon amounts?
Show me those with amount 500.
Show me if they are bad or good.
SQL query sequence:
SELECT first_name, last_name FROM Customers
SELECT t1.first_name, t1.last_name, t2.coupon_amount FROM Customers as t1 JOIN discount_coupons as t2 ON t1.coupon_id = t2.coupon_id
SELECT t1.first_name, t1.last_name, t2.coupon_amount FROM Customers as t1 JOIN discount_coupons as t2 ON t1.coupon_id = t2.coupon_id WHERE t2.coupon_amount = 500
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
Final question: Are the customers holding coupons with amount 500 bad or good?
Final 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 sequence:
Show me the first name of all customers.
How many bookings are there in record?
What about that in terms of those customers?
Could you also show me those customers' ids?
SQL query sequence:
SELECT first_name FROM Customers
SELECT count(*) FROM bookings
SELECT T1.first_name ,  count(*) FROM Customers AS T1 JOIN bookings AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id
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
Final question: How many bookings did each customer make? List the customer id, first name, and the count.
Final 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 sequence:
How many payment records are there?
Show me the maximum amount paid?
What about the total maximum amount paid by a single customer?
Show me the customer id also.
SQL query sequence:
SELECT count(*) FROM Payments
SELECT amount_paid FROM Payments ORDER BY amount_paid DESC LIMIT 1
SELECT sum(amount_paid) FROM Payments GROUP BY customer_id ORDER BY sum(amount_paid) DESC LIMIT 1
SELECT customer_id ,  sum(amount_paid) FROM Payments GROUP BY customer_id ORDER BY sum(amount_paid) DESC LIMIT 1
Final question: What is the maximum total amount paid by a customer? List the customer id and amount.
Final 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 sequence:
How many payments are there in record?
How many did each booking incur?
Which one has the largest number?
Show me its id and the amount of refund.
SQL query sequence:
SELECT count(*) FROM Payments
SELECT booking_id, count(*) FROM Payments GROUP BY booking_id
SELECT booking_id FROM Payments GROUP BY booking_id ORDER BY count(*) DESC LIMIT 1
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
Final question: What are the id and the amount of refund of the booking that incurred the most times of payments?
Final 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 sequence:
Show me the number of products that have been booked.
How many times has each of them been booked?
Show me the id of the product with 3 bookings.
SQL query sequence:
SELECT product_id FROM products_booked
SELECT product_id,count(*) FROM products_booked GROUP BY product_id
SELECT product_id FROM products_booked GROUP BY product_id HAVING count(*)  =  3
Final question: What is the id of the product that is booked for 3 times?
Final SQL: SELECT product_id FROM products_booked GROUP BY product_id HAVING count(*)  =  3
Database: products_for_hire
Question sequence:
What are the product that have been booked?
Show me the one with booked amount 102.76.
What about its description?
SQL query sequence:
SELECT DISTINCT product_id FROM products_booked
SELECT product_id FROM products_booked WHERE booked_amount  =  102.76
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
Final question: What is the product description of the product booked with an amount of 102.76?
Final 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 sequence:
Show me the name of all the products in file.
How many times has Book collection A been booked?
What are the start date and end date of those bookings?
SQL query sequence:
SELECT product_name FROM Products_for_hire
SELECT count(*) FROM products_booked AS t1 JOIN Products_for_hire AS t2 on t1.product_id = t2.product_id where t2.product_name  =  'Book collection A'
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'
Final question: What are the start date and end date of the booking that has booked the product named 'Book collection A'?
Final 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 sequence:
Show me the name of all the products in file.
Show me those with availability equal to 1.
SQL query sequence:
SELECT product_name FROM Products_for_hire
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
Final question: What are the names of products whose availability equals to 1?
Final 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 sequence:
Show me the name of all the customers.
What about those good customers?
Also show me their genders.
Order them by their last name.
SQL query sequence:
SELECT first_name ,  last_name FROM customers
SELECT first_name ,  last_name FROM customers WHERE good_or_bad_customer  =  'good'
SELECT first_name ,  last_name ,  gender_mf FROM customers WHERE good_or_bad_customer  =  'good'
SELECT first_name ,  last_name ,  gender_mf FROM customers WHERE good_or_bad_customer  =  'good' ORDER BY last_name
Final question: What are the first name, last name, and gender of all the good customers? Order by their last name.
Final 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 sequence:
How many times has any product been booked?
Show me the product at each time.
What about their booked amount?
Show me the maximum, minimum, and average of them.
SQL query sequence:
SELECT count(*) FROM products_booked
SELECT product_id FROM products_booked
SELECT booked_count FROM products_booked
SELECT max(booked_count) ,  min(booked_count) ,  avg(booked_count) FROM products_booked
Final question: What are the maximum, minimum, and average booked count for the products booked?
Final SQL: SELECT max(booked_count) ,  min(booked_count) ,  avg(booked_count) FROM products_booked
Database: products_for_hire
Question sequence:
Show me all the product names.
What are their description?
What about their daily hire costs?
Only show the cost of those which has 'Book' in its name.
SQL query sequence:
SELECT product_name FROM products_for_hire
SELECT product_name, product_description FROM products_for_hire
SELECT product_name, daily_hire_cost FROM products_for_hire
SELECT daily_hire_cost FROM Products_for_hire WHERE product_name LIKE '%Book%'
Final question: What are the daily hire costs for the products with substring 'Book' in its name?
Final SQL: SELECT daily_hire_cost FROM Products_for_hire WHERE product_name LIKE '%Book%'
Database: products_for_hire
Question sequence:
Show me the id of products that have been booked.
Show me their maximum booked amount.
Give me the id of those which has been booked with amount higher than 200.
What about the id of products which are not one of those?
How many are there?
SQL query sequence:
SELECT DISTINCT product_id FROM products_booked
SELECT product_id, MAX(booked_amount) FROM products_booked GROUP BY product_id
SELECT product_id FROM products_booked WHERE booked_amount  >  200
SELECT product_id FROM products_for_hire WHERE product_id NOT IN ( SELECT product_id FROM products_booked WHERE booked_amount  >  200)
SELECT count(*) FROM Products_for_hire WHERE product_id NOT IN ( SELECT product_id FROM products_booked WHERE booked_amount  >  200 )
Final question: How many products are never booked with amount higher than 200?
Final 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 sequence:
Show me the first name of good customers.
What coupon amounts did they own?
What about those owned by bad customers?
Show me the coupon amounts owned by both of them.
SQL query sequence:
SELECT first_name from CUSTOMERS where good_or_bad_customer = 'good'
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'
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'
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'
Final question: What are the coupon amount of the coupons owned by both good and bad customers?
Final 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 sequence:
How many payment types are there?
Show me the date of payments using Check as payment type.
Also include those with amount paid higher than 300.
SQL query sequence:
SELECT DISTINCT payment_type_code FROM payments
SELECT payment_date FROM payments WHERE payment_type_code  =  'Check'
SELECT payment_date FROM payments WHERE amount_paid  >  300 OR payment_type_code  =  'Check'
Final question: What are the payment date of the payment with amount paid higher than 300 or with payment type is 'Check'
Final SQL: SELECT payment_date FROM payments WHERE amount_paid  >  300 OR payment_type_code  =  'Check'
Database: journal_committee
Question sequence:
Tell me Kamila Porczyk's age.
How about Mariusz Zalejski's age?
Tell me the names of editors of age either 24 or 25.
SQL query sequence:
SELECT Age FROM editor WHERE Name = "Kamila Porczyk"
SELECT Age FROM editor WHERE Name = "Mariusz Zalejski"
SELECT Name FROM editor WHERE Age  =  24 OR Age  =  25
Final question: Show the names of editors of age either 24 or 25.
Final SQL: SELECT Name FROM editor WHERE Age  =  24 OR Age  =  25
Database: journal_committee
Question sequence:
Tell me Szymon Wydra's journal's themes.
How old is he?
What is the name of the youngest editor?
SQL query sequence:
SELECT T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID WHERE T2.Name = "Szymon Wydra"
SELECT Age FROM editor WHERE Name = "Szymon Wydra"
SELECT Name FROM editor ORDER BY Age ASC LIMIT 1
Final question: What is the name of the youngest editor?
Final SQL: SELECT Name FROM editor ORDER BY Age ASC LIMIT 1
Database: journal_committee
Question sequence:
Tell me the work types of Anna Powierza.
What is her age?
Tell me the most common age of editors.
SQL query sequence:
SELECT T1.Work_Type FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID WHERE T2.Name = "Anna Powierza"
SELECT Age FROM editor WHERE Name = "Anna Powierza"
SELECT Age FROM editor GROUP BY Age ORDER BY COUNT(*) DESC LIMIT 1
Final question: Please show the most common age of editors.
Final SQL: SELECT Age FROM editor GROUP BY Age ORDER BY COUNT(*) DESC LIMIT 1
Database: journal_committee
Question sequence:
Tell me the number of journals of editor Szymon Wydra?
Tell me about the sales of journals of editor Szymon Wydra.
What are the names of editors and the theme of journals for which they serve on committees?
SQL query sequence:
SELECT COUNT(*) FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID WHERE T2.Name = "Szymon Wydra"
SELECT T3.Sales FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID WHERE T2.Name = "Szymon Wydra"
SELECT T2.Name ,  T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID
Final question: Show the names of editors and the theme of journals for which they serve on committees.
Final SQL: SELECT T2.Name ,  T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID
Database: journal_committee
Question sequence:
Tell me the date of the journal with the theme Tampa Bay Buccaneers.
Who is its editor?
I want to know the names and ages of editors and the theme of journals for which they serve on committees, in ascending alphabetical order of theme.
SQL query sequence:
SELECT Date FROM journal WHERE Theme = "Tampa Bay Buccaneers"
SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID WHERE T3.Theme = "Tampa Bay Buccaneers"
SELECT T2.Name ,  T2.age ,  T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID ORDER BY T3.Theme ASC
Final question: Show the names and ages of editors and the theme of journals for which they serve on committees, in ascending alphabetical order of theme.
Final SQL: SELECT T2.Name ,  T2.age ,  T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID ORDER BY T3.Theme ASC
Database: journal_committee
Question sequence:
Tell me Anna Powierza's journal's themes.
How about her sales?
What are the names of editors that are on the committee of journals with sales bigger than 3000?
SQL query sequence:
SELECT T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID WHERE T2.Name = "Anna Powierza"
SELECT T3.Sales FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID WHERE T2.Name = "Anna Powierza"
SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID WHERE T3.Sales  >  3000
Final question: Show the names of editors that are on the committee of journals with sales bigger than 3000.
Final SQL: SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID  =  T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID  =  T3.Journal_ID WHERE T3.Sales  >  3000