niryuu/sni-each-converted huggingface dataset:
Find the cities corresponding to employees who help customers with the postal code 70174.
Output: SELECT T2.City FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId  =  T2.EmployeeId WHERE T1.PostalCode  =  "70174"
Find the id and surname of the driver who participated the most number of races?
Output: SELECT T1.driverid ,  T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid ORDER BY count(*) DESC LIMIT 1
What are the names of musicals who have at 3 or more actors?
Output: SELECT T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID GROUP BY T1.Musical_ID HAVING COUNT(*)  >=  3
What are the distinct salaries of all instructors who earned less than the maximum salary?
Output: SELECT DISTINCT salary FROM instructor WHERE salary  <  (SELECT max(salary) FROM instructor)
List the dates of games by the home team name in descending order.
Output: SELECT Date FROM game ORDER BY home_team DESC
What are the first name, last name, and gender of all the good customers? Order by their last name.
Output: SELECT first_name ,  last_name ,  gender_mf FROM customers WHERE good_or_bad_customer  =  'good' ORDER BY last_name
How many accelerators are not compatible with the browsers listed ?
Output: SELECT count(*) FROM web_client_accelerator WHERE id NOT IN ( SELECT accelerator_id FROM accelerator_compatible_browser )
What is the mail date of the document with id 7?
Output: SELECT mailing_date FROM Documents_Mailed WHERE document_id = 7
Find the name of the storm that affected both Afghanistan and Albania regions.
Output: SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T2.Region_name  =  'Afghanistan' INTERSECT SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id JOIN storm AS T3 ON T1.storm_id  =  T3.storm_id WHERE T2.Region_name  =  'Albania'
What is the average amount due for all the payments?
Output: SELECT avg(amount_due) FROM payments
List the venues of debates in ascending order of the number of audience.
Output: SELECT Venue FROM debate ORDER BY Num_of_Audience ASC
Show the names of players coached by the rank 1 coach.
Output: SELECT T3.Player_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID  =  T2.Coach_ID JOIN player AS T3 ON T1.Player_ID  =  T3.Player_ID WHERE T2.Rank  =  1
What are the memories and carriers of phones?
Output: SELECT Memory_in_G ,  Carrier FROM phone
Show the names of people that are on affirmative side of debates with number of audience bigger than 200.
Output: SELECT T3.Name FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID  =  T2.Debate_ID JOIN people AS T3 ON T1.Affirmative  =  T3.People_ID WHERE T2.Num_of_Audience  >  200
List the id of students who attended some courses?
Output: SELECT student_id FROM student_course_attendance
What are the last names of employees who serve at most 20 customers?
Output: SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId  =  T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*)  <=  20
Are the customers holding coupons with amount 500 bad or good?
Output: 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
How many documents were shipped by USPS?
Output: SELECT count(*) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = "USPS"
What is the average number of people injured by all perpetrators?
Output: SELECT avg(Injured) FROM perpetrator
Return the characters and durations for each actor.
Output: SELECT Character ,  Duration FROM actor
For each injury accident, find the date of the game and the name of the injured player in the game, and sort the results in descending order of game season.
Output: SELECT T1.date ,  T2.player FROM game AS T1 JOIN injury_accident AS T2 ON T1.id  =  T2.game_id ORDER BY T1.season DESC
Find the id of the order made most recently.
Output: SELECT order_id FROM orders ORDER BY date_order_placed DESC LIMIT 1
List the cities which have more than 2 airports sorted by the number of airports.
Output: SELECT city FROM airports GROUP BY city HAVING count(*)  >  2 ORDER BY count(*)
What country is the artist who made the fewest songs from?
Output: SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) LIMIT 1
Find the phone number of all the customers and staff.
Output: SELECT phone_number FROM customers UNION SELECT phone_number FROM staff
What are the party emails associated with parties that used the party form that is the most common?
Output: SELECT t1.party_email FROM parties AS t1 JOIN party_forms AS t2 ON t1.party_id  =  t2.party_id WHERE t2.form_id  =  (SELECT form_id FROM party_forms GROUP BY form_id ORDER BY count(*) DESC LIMIT 1)
Find the name of the document that has been accessed the greatest number of times, as well as the count of how many times it has been accessed?
Output: SELECT document_name ,  access_count FROM documents ORDER BY access_count DESC LIMIT 1
Find the name of customer who has the highest amount of loans.
Output: SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount) DESC LIMIT 1
What are ids of the all distinct orders, sorted by placement date?
Output: SELECT DISTINCT order_id FROM orders ORDER BY date_order_placed
How many students are taught by teacher TARRING LEIA?
Output: SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  "TARRING" AND T2.lastname  =  "LEIA"
What is the total amount of money loaned by banks in New York state?
Output: SELECT sum(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id WHERE T1.state  =  'New York'
Who served as an advisor for students who have treasurer votes in the spring election cycle?
Output: SELECT DISTINCT T1.Advisor FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Treasurer_Vote WHERE T2.Election_Cycle  =  "Spring"
Find the distinct number of president votes.
Output: SELECT count(DISTINCT President_Vote) FROM VOTING_RECORD
Find the name of bank branches that provided some loans.
Output: SELECT DISTINCT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id
Find the distinct majors of students who have treasurer votes.
Output: SELECT DISTINCT T1.Major FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Treasurer_Vote
Find the name and credit score of the customers who have some loans.
Output: SELECT DISTINCT T1.cust_name ,  T1.credit_score FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id
Find the number of customers in the banks at New York City.
Output: SELECT sum(no_of_customers) FROM bank WHERE city  =  'New York City'
Show the ids of all the faculty members who participate in an activity and advise a student.
Output: SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student
List the name and gender for all artists who released songs in March.
Output: SELECT T1.artist_name ,  T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.releasedate LIKE "%Mar%"
List all the username and passwords of users with the most popular role.
Output: SELECT user_name ,  password FROM users GROUP BY role_code ORDER BY count(*) DESC LIMIT 1
Show different ways to get to attractions and the number of attractions that can be accessed in the corresponding way.
Output: SELECT How_to_Get_There ,  COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There
Find all the locations whose names contain the word "film".
Output: SELECT Location_Name FROM LOCATIONS WHERE Location_Name LIKE "%film%"
What is the total number of airlines?
Output: SELECT count(*) FROM airlines
What are the total number of the audiences who visited any of the festivals?
Output: SELECT sum(Num_of_Audience) FROM festival_detail
How many faculty members participate in an activity?
Output: SELECT count(DISTINCT FacID) FROM Faculty_participates_in
Find the busiest source airport that runs most number of routes in China.
Output: SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.src_apid WHERE T1.country  =  'China' GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1
What are the details of the markets that can be accessed by walk or bus?
Output: SELECT T1.Market_Details FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID  =  T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There  =  "walk" OR  T2.How_to_Get_There  =  "bus"
What are the names of the three artists who have produced the most songs, and how many works did they produce?
Output: SELECT T1.artist_name ,  count(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3
Find the list of documents that are both in the most three popular type and have the most three popular structure.
Output: SELECT document_name FROM documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 3 INTERSECT SELECT document_name FROM documents GROUP BY document_structure_code ORDER BY count(*) DESC LIMIT 3
Find the number of teachers who teach the student called MADLOCK RAY.
Output: SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.firstname  =  "MADLOCK" AND T1.lastname  =  "RAY"
What are the details and star ratings of the three hotels with the lowest price ranges?
Output: SELECT other_hotel_details ,  star_rating_code FROM HOTELS ORDER BY price_range ASC LIMIT 3
Find the names of songs whose genre is modern or language is English.
Output: SELECT song_name FROM song WHERE genre_is  =  "modern" OR languages  =  "english"
On what dates did the student with family name "Zieme" and personal name "Bernie" enroll in and complete the courses?
Output: SELECT T1.date_of_enrolment ,  T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id  =  T2.student_id WHERE T2.family_name  =  "Zieme" AND T2.personal_name  =  "Bernie"
List the names of all songs that have 4 minute duration or are in English.
Output: SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.duration LIKE "4:%" UNION SELECT song_name FROM song WHERE languages  =  "english"
Tell me the ages of the oldest and youngest students studying major 600.
Output: SELECT max(Age) ,  min(Age) FROM STUDENT WHERE Major  =  600
What is the average age of the female students with secretary votes in the spring election cycle?
Output: SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  SECRETARY_Vote WHERE T1.Sex  =  "F" AND T2.Election_Cycle  =  "Spring"
Show all the ranks and the number of male and female faculty for each rank.
Output: SELECT rank ,  sex ,  count(*) FROM Faculty GROUP BY rank ,  sex
What is ids of the songs whose resolution is higher than the resolution of any songs with rating lower than 8?
Output: SELECT f_id FROM song WHERE resolution  >  (SELECT max(resolution) FROM song WHERE rating  <  8)
What are the names of all songs that are ordered by their resolution numbers?
Output: SELECT song_name FROM song ORDER BY resolution
List the id, genre and artist name of English songs ordered by rating.
Output: SELECT f_id ,  genre_is ,  artist_name FROM song WHERE languages  =   "english" ORDER BY rating
Find the first names of professors who are not playing Canoeing or Kayaking.
Output: SELECT lname FROM faculty WHERE rank  =  'Professor' EXCEPT SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' OR T3.activity_name  =  'Kayaking'
Find the number of trains for each station, as well as the station network name and services.
Output: SELECT count(*) ,  t1.network_name ,  t1.services FROM station AS t1 JOIN route AS t2 ON t1.id  =  t2.station_id GROUP BY t2.station_id
What are the names of banks in the state of New York?
Output: SELECT bname FROM bank WHERE state  =  'New York'
Find the total number of courses offered.
Output: SELECT count(*) FROM COURSES
What are the distinct last names of the students who have class president votes?
Output: SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.CLASS_President_VOTE
Find the last names of students with major 50.
Output: SELECT LName FROM STUDENT WHERE Major  =  50
Find the total amount of loans offered by each bank branch.
Output: SELECT sum(amount) ,  T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id GROUP BY T1.bname
What is the last name of the staff who has handled the first ever complaint?
Output: SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id  =  t2.staff_id ORDER BY t2.date_complaint_raised LIMIT 1
What are the login names and family names of course author and tutors?
Output: SELECT login_name ,  family_name FROM Course_Authors_and_Tutors
What is the country of origin of the artist who is female and produced a song in Bangla?
Output: SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T1.gender  =  "Female" AND T2.languages  =  "bangla"
Find all first-grade students who are NOT taught by OTHA MOYER. Report their first and last names.
Output: SELECT DISTINCT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.grade  =  1 EXCEPT SELECT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  "OTHA" AND T2.lastname  =  "MOYER"
What are the top 3 artists with the largest number of songs in the language Bangla?
Output: SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  "bangla" GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3
Find the first and last name of all the students of age 18 who have vice president votes.
Output: SELECT DISTINCT T1.Fname ,  T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.VICE_President_VOTE WHERE T1.age  =  18
Which transportation method is used the most often to get to tourist attractions?
Output: SELECT How_to_Get_There FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY COUNT(*) DESC LIMIT 1
What is the placement date of the order whose invoice number is 10?
Output: SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.invoice_number = 10
Which students are advised by Michael Goodrich? Give me their first and last names.
Output: SELECT T2.fname ,  T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T1.fname  =  "Michael" AND T1.lname  =  "Goodrich"
Find the id and local authority of the station whose maximum precipitation is higher than 50.
Output: SELECT t2.id ,  t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id  =  t2.id GROUP BY t1.station_id HAVING max(t1.precipitation)  >  50
How many teachers does the student named CHRISSY NABOZNY have?
Output: SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.firstname  =  "CHRISSY" AND T1.lastname  =  "NABOZNY"
For each product, show its name and the number of times it was ordered.
Output: SELECT T3.product_name ,  count(*) FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id
What are lines 1 and 2 of the addressed of the customer with the email "vbogisich@example.org"?
Output: SELECT address_line_1 ,  address_line_2 FROM customers WHERE email_address  =  "vbogisich@example.org"
What is the phone number of the customer who has filed the most recent complaint?
Output: SELECT t1.phone_number FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id  =  t2.customer_id ORDER BY t2.date_complaint_raised DESC LIMIT 1
What are the ids of songs that are available in either mp4 format or have resolution above 720?
Output: SELECT f_id FROM files WHERE formats  =  "mp4" UNION SELECT f_id FROM song WHERE resolution  >  720
Find the number of students taught by the teacher KAWA GORDON.
Output: SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  "KAWA" AND T2.lastname  =  "GORDON"
How many routes go from the United States to Canada?
Output: SELECT count(*) FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country  =  'Canada') AND src_apid IN (SELECT apid FROM airports WHERE country  =  'United States')
What document types do have more than 10000 total access number.
Output: SELECT document_type_code FROM documents GROUP BY document_type_code HAVING sum(access_count)  >  10000
What is the average age of students who have city code "NYC" and have secretary votes for the spring election cycle?
Output: SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  SECRETARY_Vote WHERE T1.city_code  =  "NYC" AND T2.Election_Cycle  =  "Spring"
Show the name and phone for customers with a mailshot with outcome code 'No Response'.
Output: SELECT T1.customer_name ,  T1.customer_phone FROM customers AS T1 JOIN mailshot_customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.outcome_code  =  'No Response'
How many different services are provided by all stations?
Output: SELECT count(DISTINCT services) FROM station
What is the average duration of songs that have mp3 format and resolution below 800?
Output: SELECT avg(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.formats  =  "mp3" AND T2.resolution   <  800
Find the number of students in one classroom.
Output: SELECT count(*) ,  classroom FROM list GROUP BY classroom
What are all the different product names, and how many complains has each received?
Output: SELECT t1.product_name ,  count(*) FROM products AS t1 JOIN complaints AS t2 ON t1.product_id  =  t2.product_id GROUP BY t1.product_name
How many users are logged in?
Output: SELECT count(*) FROM users WHERE user_login  =  1
What are the names of the activities Mark Giuliano is involved in
Output: SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN Activity AS T3 ON T3.actid  =  T2.actid WHERE T1.fname  =  "Mark" AND T1.lname  =  "Giuliano"
Which is the email of the party that has used the services the most number of times?
Output: 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
Find the dates of orders which belong to the customer named "Jeramie".
Output: SELECT T2.date_order_placed FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = "Jeramie"
What is the average access count of documents that have the least common structure?
Output: SELECT avg(access_count) FROM documents GROUP BY document_structure_code ORDER BY count(*) ASC LIMIT 1
Find the number of distinct students enrolled in courses.
Output: SELECT count(DISTINCT student_id) FROM Student_Course_Enrolment
Show all the activity names and the number of faculty involved in each activity.
Output: SELECT T1.activity_name ,  count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID
List the name of all different customers who have some loan sorted by their total loan amount.
Output: SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount)
Find the number of routes whose destination airports are in Canada.
Output: SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid WHERE country  =  'Canada'
Find the emails of customers who has filed a complaints of the product with the most complaints.
Output: SELECT t1.email_address FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_id ORDER BY count(*) LIMIT 1
Show the types of schools that have two schools.
Output: SELECT TYPE FROM school GROUP BY TYPE HAVING count(*)  =  2
What are the file sizes and formats for all songs with a resolution lower than 800?
Output: SELECT DISTINCT T1.file_size ,  T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T2.resolution  <  800
What are the different names for all songs that have a higher resolution than English songs?
Output: SELECT DISTINCT song_name FROM song WHERE resolution  >  (SELECT min(resolution) FROM song WHERE languages  =  "english")
On which day was the order placed whose shipment tracking number is 3452?
Output: SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = 3452
Which teacher teaches the most students? Give me the first name and last name of the teacher.
Output: SELECT T2.firstname ,  T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom GROUP BY T2.firstname ,  T2.lastname ORDER BY count(*) DESC LIMIT 1
How many airports are there per city in the US ordered from most to least?
Output: SELECT count(*) ,  city FROM airports WHERE country  =  'United States' GROUP BY city ORDER BY count(*) DESC
List all the dates of enrollment and completion of students.
Output: SELECT date_of_enrolment ,  date_of_completion FROM Student_Course_Enrolment
Which tests have "Pass" results? Return the dates when the tests were taken.
Output: SELECT date_test_taken FROM Student_Tests_Taken WHERE test_result  =  "Pass"
Find the ids of the students who participate in Canoeing and Kayaking.
Output: SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid  =  T2.actid WHERE T2.activity_name  =  'Canoeing' INTERSECT SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid  =  T2.actid WHERE T2.activity_name  =  'Kayaking'
What are the details and ways to get to tourist attractions related to royal family?
Output: SELECT T1.Royal_Family_Details ,  T2.How_to_Get_There FROM ROYAL_FAMILY AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Royal_Family_ID  =  T2.Tourist_Attraction_ID
Which students in third grade are not taught by teacher COVIN JEROME? Give me the last names of the students.
Output: SELECT DISTINCT T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.grade  =  3 AND T2.firstname != "COVIN" AND T2.lastname != "JEROME"
Show the number of audience in year 2008 or 2010.
Output: SELECT Num_of_Audience FROM festival_detail WHERE YEAR  =  2008 OR YEAR  =  2010
Which state can address "6862 Kaitlyn Knolls" possibly be in?
Output: SELECT state_province_county FROM addresses WHERE line_1_number_building LIKE "%6862 Kaitlyn Knolls%"
What are the names of tourist attraction that Alison visited but Rosalind did not visit?
Output: SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  "Alison" EXCEPT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID  =  T3.Tourist_Attraction_ID AND T2.Tourist_ID  =  T3.Tourist_ID WHERE T2.Tourist_Details  =  "Rosalind"
Show the names of the three most recent festivals.
Output: SELECT Festival_Name FROM festival_detail ORDER BY YEAR DESC LIMIT 3