Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1


Question: SELECT MIN(contestant_number) FROM CONTESTANTS WHERE contestant_name != "Loraine NygrenTania Mattioli" AND "contestant_number" <> 11 UNION ALL SELECT MIN(contestant_number) FROM VOTES WHERE "phone_number" > 7182887233 OR created = "2018-03-09 19:03:40" OR state != "NY" AND "contestant_number" = 3 AND "vote_id" < 5


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4


Question: SELECT StuID FROM Has_Allergy WHERE "StuID" > 1026 UNION ALL SELECT StuID FROM Student WHERE Fname <> "Linda" OR "Major" >= 600 OR "Advisor" < 8721 AND Sex <> "M" OR "StuID" <> 1014 OR "Age" = 18 OR LName <> "Cheng" OR city_code = "BAL"


Question: SELECT MAX(Nationality), Graduation_College, AVG(Name), COUNT(Age) FROM people WHERE "Age" >= 37 AND Name = "Tim Naegeli" AND "People_ID" <= 2 AND Nationality <> "United Kindom" EXCEPT SELECT MAX(Nationality), Graduation_College, AVG(Name), COUNT(Age) FROM people WHERE Graduation_College = "Northeastern" OR Nationality <> "United States" OR "Age" > 27

MAX(Nationality) Graduation_College AVG(Name) COUNT(Age)


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10


Question: SELECT COUNT(FullName), Country, COUNT(Maker), MIN(Id) FROM car_makers WHERE Country != "5" GROUP BY Country HAVING MIN(Id) = 22 UNION SELECT COUNT(FullName), Country, COUNT(Maker), MIN(Id) FROM car_makers WHERE FullName <> "Fiat" GROUP BY Country HAVING MIN(Id) != 20

COUNT(FullName) Country COUNT(Maker) MIN(Id)


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3


Question: SELECT PetID FROM Has_Pet WHERE "StuID" != 1001 INTERSECT SELECT PetID FROM Pets WHERE "PetID" <> 2001


Question: SELECT Allergy FROM Allergy_Type WHERE Allergy <> "Nuts" OR AllergyType <> "food" UNION ALL SELECT Allergy FROM Allergy_Type WHERE Allergy = "Grass Pollen"


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5


Question: SELECT Party FROM election WHERE "District" <= 1 OR Committee <> "Appropriations" UNION ALL SELECT Party FROM party WHERE Comptroller != "John Faso" AND Attorney_General = "Eliot Spitzer" OR US_Senate <> "Charles Schumer" OR Party != "Independence" AND "Party_ID" >= 2 AND "Year" < 2002.0


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7


Question: SELECT MIN(Aircraft_ID) FROM aircraft WHERE Max_Gross_Weight != "123,500 lb (56,000 kg)" AND "Aircraft_ID" >= 1 OR Max_disk_Loading <> "8.8 lb/ft² (43 kg/m²)" OR Aircraft <> "Bell 206B3 JetRanger" UNION ALL SELECT MIN(Aircraft_ID) FROM airport_aircraft WHERE "Airport_ID" <> 1


Question: SELECT Earnings, Best_Finish, Final_Table_Made FROM poker_player WHERE "Best_Finish" > 1.0 OR "Earnings" = 189233.0 INTERSECT SELECT Earnings, Best_Finish, Final_Table_Made FROM poker_player WHERE "People_ID" <> 6 AND "Final_Table_Made" <> 21.0


Question: SELECT document_id FROM Documents WHERE "document_id" = 2 AND document_status_code <> "working" UNION SELECT document_id FROM Draft_Copies WHERE "copy_number" = 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10


Question: SELECT AVG(Price) FROM publication WHERE "Book_ID" < 5 OR "Publication_ID" = 5 UNION ALL SELECT AVG(Price) FROM publication WHERE Publisher <> "Pearson" AND "Book_ID" >= 9 OR "Publication_ID" <> 2 OR Publication_Date = "October 2005"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9


Question: SELECT ModelId, MIN(Maker), SUM(Model) FROM model_list WHERE "Maker" <= 16 AND Model <> "capri" EXCEPT SELECT ModelId, MIN(Maker), SUM(Model) FROM model_list WHERE Model = "pontiac" OR "Maker" >= 4 OR "ModelId" > 17


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3


Question: SELECT Product_ID, Store_ID FROM store_product WHERE "Product_ID" <= 1 INTERSECT SELECT Product_ID, Store_ID FROM store_product WHERE "Store_ID" > 1


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3


Question: SELECT Employee_ID, Age FROM employee WHERE "Employee_ID" = 3 AND Name <> "Louis Deacon" AND "Age" = 30 OR City != "Bristol" EXCEPT SELECT Employee_ID, Age FROM employee WHERE "Age" != 29 AND "Employee_ID" != 2


Question: SELECT T1.PetID, T2.weight FROM Has_Pet as T1 JOIN Pets as T2 ON T1.PetID == T2.PetID GROUP BY StuID HAVING StuID >= 1002 AND PetType = "dog" OR weight <> 12.0 AND pet_age > 2


Question: SELECT Year_awarded FROM evaluation WHERE Year_awarded != "2018" UNION SELECT Year_awarded FROM evaluation WHERE Year_awarded <> "2016" OR "Bonus" = 3200.0


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3


Question: SELECT Budget_in_Billions FROM department WHERE "Ranking" != 6 OR "Department_ID" <= 13 OR Name <> "Defense" NOT IN (SELECT Budget_in_Billions FROM department WHERE Creation <> "1913" AND "Budget_in_Billions" < 77.6 OR Name <> "Homeland Security")


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10


Question: SELECT feature_id, property_id, property_feature_description FROM Other_Property_Features WHERE "property_id" <> 6 AND property_feature_description = "illo" OR "feature_id" <= 3 UNION SELECT feature_id, property_id, property_feature_description FROM Other_Property_Features WHERE property_feature_description <> "illo" AND "property_id" >= 6 OR "feature_id" > 2


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3


Question: SELECT other_details, receipt_number, document_id, receipt_date FROM Documents WHERE receipt_number = "189" AND document_type_code != "Hard Drive" OR "document_id" <= 1 UNION SELECT other_details, receipt_number, document_id, receipt_date FROM Documents WHERE document_type_code != "CD" AND "document_id" <= 3 AND shipping_agent_code = "UP" AND other_details != "y" OR receipt_date = "2014-12-25 17:22:44"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4


Question: SELECT first_name, staff_id, date_left_staff FROM Staff WHERE nickname = "ynader" AND first_name <> "Rebekah" OR last_name != "Jast" OR date_left_staff = "2018-03-08 04:23:14" AND "staff_address_id" > 1 AND middle_name = "Ulices" AND "staff_id" != 15 OR date_joined_staff != "2018-01-02 12:24:24" UNION SELECT first_name, staff_id, date_left_staff FROM Staff WHERE first_name <> "Jaleel" OR nickname <> "ynader" AND last_name <> "Turner" AND "staff_id" = 2 OR date_joined_staff != "2017-08-27 19:19:44"


Question: SELECT AVG(id) FROM flight WHERE "company_id" < 1 AND "airport_id" <= 1 OR Pilot = "Thompson" UNION SELECT AVG(id) FROM operate_company WHERE "id" != 5 AND name = "CLS Catering Services Limited" OR Incorporated_in = "Vietnam" AND Principal_activities <> "Travel agency" OR Type = "Joint Venture" AND "Group_Equity_Shareholding" = 49.0


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4


Question: SELECT u_id FROM review WHERE "a_id" <= 5 AND "u_id" = 1 OR "rating" != 10 AND "i_id" >= 3 OR "rank" != 4 EXCEPT SELECT u_id FROM useracct WHERE name <> "Mark" OR "u_id" = 4


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4


Question: SELECT COUNT(T1.Book_ID), T2.Price FROM book as T1 JOIN publication as T2 ON T1.Book_ID = T2.Book_ID WHERE Title = "The Dome: Ground Zero" OR Publication_Date <> "August 2008" OR "Price" <> 2000000.0 OR Writer <> "Garth Ennis" AND "Publication_ID" > 5 GROUP BY Writer HAVING Publisher = "Thomson Reuters"


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9


Question: SELECT contestant_number FROM CONTESTANTS WHERE contestant_name <> "Loraine NygrenTania Mattioli" OR "contestant_number" > 2 INTERSECT SELECT contestant_number FROM CONTESTANTS WHERE contestant_name = "Kelly Clauss" OR "contestant_number" > 6


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1


Question: SELECT temporary_acting, head_ID FROM management WHERE "head_ID" <> 5 OR "department_ID" != 2 AND temporary_acting != "No" INTERSECT SELECT temporary_acting, head_ID FROM management WHERE temporary_acting != "Yes" AND "department_ID" > 15 OR "head_ID" <> 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4


Question: SELECT MIN(Group_Equity_Shareholding), Incorporated_in, SUM(Type), Principal_activities, id, MAX(name) FROM operate_company WHERE "Group_Equity_Shareholding" <= 18.77 AND name <> "Hong Kong Airport Services" AND Incorporated_in <> "Hong Kong" OR Type = "Subsidiary" AND "id" = 9 UNION ALL SELECT MIN(Group_Equity_Shareholding), Incorporated_in, SUM(Type), Principal_activities, id, MAX(name) FROM operate_company WHERE "Group_Equity_Shareholding" > 100.0 OR Principal_activities <> "Cargo airline"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3


Question: SELECT Store_ID FROM store WHERE Type <> "City Mall" OR "Ranking" >= 2 OR "Number_of_product_category" < 1170.0 AND Store_Name = "Miramichi" AND "Area_size" >= 21.73 INTERSECT SELECT Store_ID FROM store_district WHERE "District_ID" = 15


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5


Question: SELECT u_id FROM review WHERE "u_id" = 2 AND "rank" != 2 OR "a_id" != 7 INTERSECT SELECT u_id FROM useracct WHERE name <> "Mark"


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1


Question: SELECT SUM(nickname), date_left_staff, date_of_birth, staff_id, MAX(middle_name), staff_address_id, SUM(last_name) FROM Staff WHERE date_joined_staff <> "2017-06-04 14:30:41" AND date_of_birth <> "2003-01-16 06:29:11" AND nickname != "weissnat.vincenzo" AND date_left_staff = "2018-03-08 04:23:14" AND "staff_id" <= 3 AND "staff_address_id" > 3 UNION SELECT SUM(nickname), date_left_staff, date_of_birth, staff_id, MAX(middle_name), staff_address_id, SUM(last_name) FROM Staff WHERE "staff_address_id" >= 1


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1


Question: SELECT aid FROM aircraft WHERE "distance" < 6441 UNION ALL SELECT aid FROM certificate WHERE "aid" > 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10


Question: SELECT Employee_ID FROM employee WHERE "Age" >= 32 OR City <> "Wasps" OR "Employee_ID" != 8 OR Name <> "Louis Deacon" UNION SELECT Employee_ID FROM evaluation WHERE Year_awarded != "2011"


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3


Question: SELECT SUM(document_status_code) FROM Documents WHERE receipt_number <> "124" OR document_status_code != "working" AND shipping_agent_code = "US" OR receipt_date != "1974-05-08 00:00:46" OR other_details = "r" INTERSECT SELECT SUM(document_status_code) FROM Documents WHERE document_type_code <> "Hard Drive"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7


Question: SELECT AVG(employee_id) FROM Circulation_History WHERE "employee_id" < 2 UNION SELECT AVG(employee_id) FROM Employees WHERE role_code = "ED" AND employee_name = "Clemens" AND "employee_id" <> 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3


Question: SELECT Continent FROM continents WHERE "ContId" <> 2 AND Continent != "america" UNION SELECT Continent FROM countries WHERE CountryName != "australia" OR "CountryId" < 6 AND "Continent" = 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9


Question: SELECT Product_ID, Store_ID FROM store_product WHERE "Store_ID" < 2 UNION SELECT Product_ID, Store_ID FROM store_product WHERE "Product_ID" = 1


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10


Question: SELECT document_id FROM Circulation_History WHERE "copy_number" >= 15 OR "draft_number" <> 20 AND "document_id" < 1 UNION SELECT document_id FROM Document_Drafts WHERE draft_details = "b" OR "draft_number" >= 1


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2


Question: SELECT StuID FROM Member_of_club WHERE Position <> "CTO" INTERSECT SELECT StuID FROM Student WHERE LName = "Lee"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3


Question: SELECT StuID FROM Has_Allergy WHERE "StuID" < 1007 OR Allergy != "Eggs" INTERSECT SELECT StuID FROM Student WHERE "Advisor" >= 8722 AND Sex != "M" AND Fname <> "Paul" OR "Age" = 26 OR "Major" = 600 OR "StuID" <= 1034 AND LName = "Han"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3


Question: SELECT draft_number FROM Circulation_History WHERE "employee_id" = 2 OR "document_id" = 1 UNION SELECT draft_number FROM Draft_Copies WHERE "document_id" < 1 AND "draft_number" != 17 OR "copy_number" <> 5


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1


Question: SELECT Earnings, Poker_Player_ID FROM poker_player WHERE "Poker_Player_ID" <= 5 OR "Earnings" <= 476090.0 UNION ALL SELECT Earnings, Poker_Player_ID FROM poker_player WHERE "People_ID" <= 7 AND "Earnings" != 142800.0 OR "Final_Table_Made" != 21.0 OR "Money_Rank" < 68.0


Question: SELECT MIN(School_id) FROM School WHERE County <> "50 Marshall" UNION SELECT MIN(School_id) FROM endowment WHERE donator_name != "La Vega"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4


Question: SELECT COUNT(T1.aid), T2.eid FROM aircraft as T1 JOIN certificate as T2 ON T1.aid = T2.aid WHERE distance > 4103 AND eid = 90873519 AND name = "Boeing 767-400ER"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9


Question: SELECT Shop_ID FROM hiring WHERE Start_from = "2012" AND Is_full_time = "T" AND "Shop_ID" <> 8 INTERSECT SELECT Shop_ID FROM shop WHERE "Number_products" = 4780 OR Manager_name != "Olli Huttunen" OR Location <> "Helsinki" AND Name != "FC Lahti" OR "Shop_ID" < 8


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9


Question: SELECT Club_ID FROM club WHERE Region != "UK" OR Club_name != "AIK" AND "Start_year" <> 2001 UNION SELECT Club_ID FROM coach WHERE "Club_ID" = 1 OR Coach_name <> "Jameson Tomas" OR Gender = "M"


Question: SELECT Driver_ID FROM school_bus WHERE "School_ID" <> 1 OR "Years_Working" <> 8 AND "Driver_ID" <= 9 OR If_full_time = "T" UNION ALL SELECT Driver_ID FROM school_bus WHERE If_full_time = "F"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10


Question: SELECT SUM(Other_Details) FROM Paragraphs WHERE Other_Details = "None" OR "Document_ID" = 2394 OR Paragraph_Text != "Papua New Guinea" INTERSECT SELECT SUM(Other_Details) FROM Paragraphs WHERE Paragraph_Text <> "Fiji" AND Other_Details = "None" AND "Paragraph_ID" <= 1104059 AND "Document_ID" >= 80


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3


Question: SELECT MAX(Bonus) FROM evaluation WHERE Employee_ID <> "2" AND "Bonus" = 3200.0 AND Year_awarded = "2016" EXCEPT SELECT MAX(Bonus) FROM evaluation WHERE Employee_ID != "4"


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9


Question: SELECT Club_ID, Rank FROM coach WHERE Gender = "M" OR Coach_name <> "Robert Chen" UNION ALL SELECT Club_ID, Rank FROM match_result WHERE "Big_Silver" >= 14


Question: SELECT shipping_agent_code FROM Documents WHERE document_type_code = "Paper" AND "document_id" != 1 AND other_details <> "r" AND shipping_agent_code <> "AL" OR receipt_date != "1985-11-05 17:59:34" AND receipt_number = "37" EXCEPT SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_name != "UPS"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9


Question: SELECT MIN(T1.Aircraft_ID), T2.ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5


Question: SELECT name, aid, distance FROM aircraft WHERE "distance" <= 8430 OR name != "Airbus A320" OR "aid" < 13 EXCEPT SELECT name, aid, distance FROM aircraft WHERE name != "Airbus A320"


Question: SELECT MAX(Rank) FROM coach WHERE Coach_name = "Joe Fabbri" UNION SELECT MAX(Rank) FROM player WHERE Occupation <> "Design Coordinator" OR Gender <> "M" AND Residence = "Thompson" AND "Player_ID" != 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9


Question: SELECT name, SUM(u_id) FROM useracct WHERE "u_id" <= 5 AND name = "Mark" EXCEPT SELECT name, SUM(u_id) FROM useracct WHERE "u_id" != 1


Question: SELECT Player_ID FROM player WHERE Gender = "M" UNION SELECT Player_ID FROM player_coach WHERE "Coach_ID" <> 1 AND "Player_ID" < 2 AND "Starting_year" = 2012


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7


Question: SELECT feature_id FROM Other_Available_Features WHERE "feature_id" > 3 OR feature_description = "Swimming Pool." OR feature_type_code = "Security" AND feature_name != "AirCon" EXCEPT SELECT feature_id FROM Other_Property_Features WHERE property_feature_description != "quo" AND "feature_id" != 3 AND "property_id" != 1


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7


Question: SELECT pet_age, PetID, weight FROM Pets WHERE "weight" != 13.4 OR "pet_age" <> 2 OR "PetID" <> 2001 UNION ALL SELECT pet_age, PetID, weight FROM Pets WHERE "pet_age" != 2


Question: SELECT Employee_ID FROM evaluation WHERE Year_awarded = "2018" AND Employee_ID <> "1" EXCEPT SELECT Employee_ID FROM hiring WHERE Start_from <> "2013"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4


Question: SELECT SUM(T1.Election_ID), T2.US_Senate FROM election as T1 JOIN party as T2 ON T1.Party = T2.Party WHERE Comptroller <> "Alan Hevesi" OR Lieutenant_Governor = "Mary Donohue" AND MIN(Election_ID) < 1 OR Counties_Represented <> "12.1 12A" AND Party_ID <> 6 AND Committee = "Health and Government Operations"


Question: SELECT SUM(County_name), SUM(Zip_code), Population FROM county WHERE Zip_code = "D02" OR "Population" = 13300.0 OR County_name <> "Baltimore County" UNION SELECT SUM(County_name), SUM(Zip_code), Population FROM county WHERE County_name != "Mansfield"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7


Question: SELECT head_ID FROM head WHERE "age" = 50.0 OR name <> "Jeff Maggert" OR "head_ID" != 9 UNION ALL SELECT head_ID FROM management WHERE "head_ID" > 5


Question: SELECT role_code FROM Employees WHERE role_code <> "MG" OR employee_name <> "Koby" AND other_details <> "b" OR "employee_id" <> 8 UNION ALL SELECT role_code FROM Roles WHERE role_code <> "PR" AND role_description = "Photo"


Question: SELECT document_id, draft_number, COUNT(employee_id), copy_number FROM Circulation_History WHERE "document_id" != 2 AND "draft_number" < 2 UNION SELECT document_id, draft_number, COUNT(employee_id), copy_number FROM Circulation_History WHERE "draft_number" >= 1 OR "copy_number" > 15 OR "employee_id" < 8 OR "document_id" > 20


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4


Question: SELECT i_id FROM item WHERE "i_id" = 6 OR title != "shampoo" INTERSECT SELECT i_id FROM item WHERE "i_id" <> 5 AND title != "orange"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10


Question: SELECT AVG(feature_id), MAX(feature_name), feature_type_code FROM Other_Available_Features WHERE feature_name <> "Pool" AND feature_description = "Burglar Alarm" AND "feature_id" <> 2 EXCEPT SELECT AVG(feature_id), MAX(feature_name), feature_type_code FROM Other_Available_Features WHERE feature_name <> "BurglarAlarm" AND "feature_id" <> 4 OR feature_type_code = "Amenity"


Question: SELECT Name FROM branch WHERE Open_year != "2013" UNION ALL SELECT Name FROM member WHERE "Level" <> 6 OR Name != "Corey Peters"


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5


Question: SELECT MIN(School_id) FROM School WHERE County = "50 Marshall" UNION ALL SELECT MIN(School_id) FROM budget WHERE "total_budget_percent_budgeted" <= 2.4


Question: SELECT employee_id FROM Circulation_History WHERE "employee_id" = 8 OR "copy_number" <= 10 INTERSECT SELECT employee_id FROM Employees WHERE role_code <> "PR"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9


Question: SELECT T1.Employee_ID, T2.Bonus FROM employee as T1 JOIN evaluation as T2 ON T1.Employee_ID == T2.Employee_ID GROUP BY Name HAVING Year_awarded = "2016" OR Age < 30 OR City <> "Bristol"


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5


Question: SELECT customer_id FROM Customers WHERE "customer_id" > 4 OR date_of_birth != "1996-11-07 05:30:55" AND phone_number != "218.550.1362" OR cell_mobile_phone_number <> "577-584-4864" EXCEPT SELECT customer_id FROM Lessons WHERE "staff_id" != 4 AND lesson_status_code = "Completed"


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3


Question: SELECT head_ID, temporary_acting FROM management WHERE "department_ID" >= 2 OR temporary_acting = "Yes" OR "head_ID" <= 10 UNION SELECT head_ID, temporary_acting FROM management WHERE "department_ID" = 15 AND "head_ID" != 10 AND temporary_acting <> "Yes"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10


Question: SELECT AVG(title) FROM albums WHERE "artist_id" > 17 UNION ALL SELECT AVG(title) FROM employees WHERE birth_date <> "1947-09-19 00:00:00" AND phone = "+1 (780) 428-9482" OR address != "7727B 41 Ave" OR email != "margaret@chinookcorp.com" AND "reports_to" != 2.0 AND "id" = 4 OR country != "Canada" OR fax = "+1 (403) 262-3322" AND city != "Edmonton" AND postal_code != "T2P 2T3" AND state = "AB" AND last_name <> "Johnson" AND title <> "IT Staff"


Question: SELECT draft_number, copy_number, employee_id, document_id FROM Circulation_History WHERE "employee_id" = 8 AND "copy_number" <= 5 AND "document_id" < 1 OR "draft_number" > 20 UNION ALL SELECT draft_number, copy_number, employee_id, document_id FROM Circulation_History WHERE "document_id" >= 2 OR "copy_number" != 4 AND "employee_id" <> 2


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3


Question: SELECT document_id FROM Documents_Mailed WHERE "document_id" <> 12 AND "mailed_to_address_id" <> 9 UNION SELECT document_id FROM Draft_Copies WHERE "draft_number" >= 12


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3


Question: SELECT role_code, employee_id, employee_name, other_details FROM Employees WHERE "employee_id" < 1 AND employee_name <> "Erling" OR role_code != "ED" UNION ALL SELECT role_code, employee_id, employee_name, other_details FROM Employees WHERE role_code = "PR" AND other_details <> "u" AND "employee_id" >= 2 OR employee_name <> "Clemens"


Question: SELECT School_ID FROM school WHERE Type <> "Private" UNION SELECT School_ID FROM school_bus WHERE "Years_Working" <> 6 OR "School_ID" = 5 OR "Driver_ID" > 9 OR If_full_time <> "T"


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5


Question: SELECT MIN(StuID) FROM Member_of_club WHERE "StuID" != 1010 UNION ALL SELECT MIN(StuID) FROM Student WHERE city_code != "SFO" AND Sex = "M" OR Fname <> "Ian"


Question: SELECT first_name FROM Customers WHERE "amount_outstanding" != 2099.0 UNION SELECT first_name FROM Staff WHERE nickname != "weldon.kling" AND middle_name = "Sherwood" AND date_of_birth = "2010-12-08 16:55:14" AND "staff_id" >= 2 OR last_name != "Mertz" AND first_name != "Janessa" AND "staff_address_id" <= 13 OR date_left_staff != "2018-02-26 17:56:31" AND date_joined_staff = "2016-05-01 02:22:45"


Question: SELECT role_code FROM Employees WHERE employee_name != "Clemens" OR other_details = "b" AND role_code != "ED" UNION ALL SELECT role_code FROM Roles WHERE role_code = "MG"


Question: SELECT School_ID FROM school WHERE School <> "Harvard Law School" AND Grade <> "Junior–Senior year" AND Type = "Public" OR "School_ID" >= 7 EXCEPT SELECT School_ID FROM school_bus WHERE "School_ID" > 3


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10


Question: SELECT Employee_ID FROM evaluation WHERE "Bonus" = 3200.0 AND Employee_ID != "1" OR Year_awarded = "2018" EXCEPT SELECT Employee_ID FROM hiring WHERE Is_full_time <> "T" AND "Shop_ID" >= 6 AND Start_from = "2003"


Question: SELECT COUNT(Other_Details), Document_ID FROM Documents WHERE "Document_ID" <> 801801 OR Document_Name <> "Understanding DB" UNION ALL SELECT COUNT(Other_Details), Document_ID FROM Paragraphs WHERE "Paragraph_ID" < 765713812 OR "Document_ID" <= 651512 AND Paragraph_Text <> "Micronesia" OR Other_Details != "None"


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5


Question: SELECT Store_ID FROM store_district WHERE "District_ID" < 11 OR "Store_ID" > 1 INTERSECT SELECT Store_ID FROM store_product WHERE "Product_ID" = 6


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10


Question: SELECT Votes, Residence, Player_name, Rank FROM player WHERE "Player_ID" >= 8 AND Occupation != "Locomotive Engineer" OR Residence = "Selkirk" AND Rank <> "1st" AND "Votes" < 5490 AND Player_name <> "Patricia Cordner" OR Gender = "F" OR Sponsor_name <> "Kildonan—St. Paul" UNION SELECT Votes, Residence, Player_name, Rank FROM player WHERE Occupation <> "Parliamentarian" OR Residence <> "Winnipeg" OR "Votes" <> 4673


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4


Question: SELECT Year, Branch_ID, Total_pounds FROM purchase WHERE Branch_ID != "2" OR "Member_ID" <> 2 UNION SELECT Year, Branch_ID, Total_pounds FROM purchase WHERE Branch_ID <> "2" AND "Member_ID" <= 2 AND "Total_pounds" <= 2013.32


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1


Question: SELECT School_id FROM School WHERE School_id != "7" AND Mascot = "Cougars" OR "Enrollment" > 287 OR IHSAA_Football_Class <> "AAA" AND School_name <> "Knox Community" OR IHSAA_Class <> "AAA" UNION SELECT School_id FROM endowment WHERE "amount" <= 9.83 OR donator_name != "Distrito Nacional" OR "School_id" = 7


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5


Question: SELECT AVG(mailed_to_address_id) FROM Documents_Mailed WHERE "mailed_to_address_id" = 7 UNION SELECT AVG(mailed_to_address_id) FROM Documents_Mailed WHERE "document_id" < 4 OR "mailed_to_address_id" = 2 AND mailing_date != "2013-01-27 03:29:31"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3


Question: SELECT Number_products, District FROM shop WHERE "Shop_ID" < 6 INTERSECT SELECT Number_products, District FROM shop WHERE Name <> "FC KooTeePee" OR Manager_name <> "Mika Laurikainen"


Question: SELECT MIN(head_ID) FROM head WHERE "age" != 56.0 EXCEPT SELECT MIN(head_ID) FROM management WHERE temporary_acting = "No" AND "head_ID" != 4 AND "department_ID" != 2


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1


Question: SELECT property_id FROM Other_Property_Features WHERE property_feature_description <> "quo" INTERSECT SELECT property_id FROM Properties WHERE property_address != "084 Lakin Vista Apt. 394 Fishertown, MA 16876"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9


Question: SELECT Party FROM election WHERE Committee <> "Appropriations" AND "Election_ID" <> 6 AND "First_Elected" != 1994.0 OR "District" >= 4 OR Delegate != "Guzzone, Guy Guy Guzzone" AND "Party" > 1 EXCEPT SELECT Party FROM party WHERE "Year" >= 1998.0 AND US_Senate <> "Hillary Rodham Clinton"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9


Question: SELECT document_status_code, document_status_description FROM Ref_Document_Status WHERE document_status_description <> "currently working on" AND document_status_code != "working" EXCEPT SELECT document_status_code, document_status_description FROM Ref_Document_Status WHERE document_status_code = "done" AND document_status_description != "mailed late"


Question: SELECT Sponsor_name, MIN(Occupation), COUNT(Player_ID), Player_name, Residence, Gender, Votes FROM player WHERE "Player_ID" != 9 OR Gender = "M" OR Sponsor_name <> "Dauphin—Swan River—Marquette" AND Occupation = "Retired" OR Rank != "2nd" AND Residence <> "Selkirk" OR "Votes" != 2353 OR Player_name = "Sean Robert" EXCEPT SELECT Sponsor_name, MIN(Occupation), COUNT(Player_ID), Player_name, Residence, Gender, Votes FROM player WHERE "Player_ID" = 5 OR Occupation <> "Parliamentarian"

Provencher
Design Coordinator
14
Ross C. Martin
Oakbank
M
4947


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4


Question: SELECT COUNT(StuID) FROM Member_of_club WHERE "ClubID" < 2 AND Position != "CTO" AND "StuID" <= 1010 UNION ALL SELECT COUNT(StuID) FROM Student WHERE LName != "Lee" OR "Major" != 600


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1


Question: SELECT feature_description, feature_id, feature_type_code FROM Other_Available_Features WHERE "feature_id" <= 4 OR feature_description <> "Air Conditioning." EXCEPT SELECT feature_description, feature_id, feature_type_code FROM Other_Available_Features WHERE "feature_id" != 4 AND feature_type_code = "Security" OR feature_name != "AirCon"


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3


Question: SELECT MIN(T1.Club_ID), T2.Rank FROM club as T1 JOIN coach as T2 ON T1.Club_ID = T2.Club_ID WHERE Coach_name <> "Joe Fabbri" OR Region <> "Korea" OR Start_year >= 2005 OR Rank <= 5 OR Club_name = "BK Häcken" AND Gender <> "M" AND Coach_ID <> 3


Question: SELECT Headquartered_City, City_Population, City_Area, District_name, District_ID FROM district WHERE "City_Area" != 10.0 UNION ALL SELECT Headquartered_City, City_Population, City_Area, District_name, District_ID FROM district WHERE "District_ID" <= 13 OR Headquartered_City = "Jhang City" AND "City_Population" < 2793721.0


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9


Question: SELECT Year_working, Company_ID, People_ID FROM employment WHERE "Company_ID" <> 11 UNION ALL SELECT Year_working, Company_ID, People_ID FROM employment WHERE "Company_ID" <> 15 AND "Year_working" != 3 OR "People_ID" <> 1


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7


Question: SELECT Rank, Big_Silver, Points, Bronze FROM match_result WHERE "Big_Silver" != 12 OR "Bronze" != 7 OR "Gold" != 6 OR "Points" >= 89 AND "Small_Silver" <= 10 OR "Rank" <= 2 OR "Club_ID" < 1 UNION ALL SELECT Rank, Big_Silver, Points, Bronze FROM match_result WHERE "Small_Silver" > 9 OR "Gold" > 5 AND "Big_Silver" <= 11 AND "Bronze" != 10 OR "Points" >= 66 AND "Club_ID" <> 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3


Question: SELECT StuID, LName FROM Student WHERE city_code != "PHL" OR "StuID" = 1023 OR "Age" <> 21 OR LName <> "Apap" AND Fname != "George" OR "Major" < 520 AND Sex <> "M" OR "Advisor" = 7712 UNION ALL SELECT StuID, LName FROM Student WHERE "StuID" > 1010


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4


Question: SELECT Club_ID FROM coach WHERE "Club_ID" = 1 AND Coach_name = "Robert Chen" UNION ALL SELECT Club_ID FROM match_result WHERE "Rank" <= 6 AND "Points" = 89 OR "Big_Silver" != 6 OR "Gold" <> 12 OR "Small_Silver" >= 4 OR "Club_ID" = 4


Question: SELECT AVG(Branch_ID) FROM branch WHERE Address_road != "Concord Road" OR City <> "London" OR membership_amount = "6" OR Open_year <> "2012" UNION ALL SELECT AVG(Branch_ID) FROM membership_register_branch WHERE "Member_ID" < 2 AND Register_Year <> "2016"


Question: SELECT document_id, copy_number, draft_number FROM Draft_Copies WHERE "copy_number" >= 15 AND "draft_number" != 17 INTERSECT SELECT document_id, copy_number, draft_number FROM Draft_Copies WHERE "copy_number" <> 5


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4


Question: SELECT Branch_ID FROM branch WHERE Address_road <> "Abbey Rise" OR City = "Oxford" AND "Branch_ID" <= 7 AND Name != "Stanley" AND Open_year != "2015" EXCEPT SELECT Branch_ID FROM purchase WHERE Year != "2018" AND "Total_pounds" > 321.13 AND Branch_ID != "2"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4


Question: SELECT SUM(T1.ClubID), T2.StuID FROM Club as T1 JOIN Member_of_club as T2 ON T1.ClubID = T2.ClubID WHERE Position = "President" AND ClubName <> "Hopkins Student Enterprises" GROUP BY ClubName HAVING ClubDesc <> "Refurbish computers; teach kids and adults about computer basics." AND Position = "President" OR StuID <= 1007


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3


Question: SELECT Member_ID FROM member WHERE Card_Number <> "LE99" AND "Level" != 4 AND Hometown <> "LaGrange, Georgia" INTERSECT SELECT Member_ID FROM purchase WHERE Branch_ID <> "5" AND "Member_ID" != 3


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1


Question: SELECT feature_id FROM Other_Available_Features WHERE feature_name = "Pool" AND "feature_id" <= 3 INTERSECT SELECT feature_id FROM Other_Property_Features WHERE "feature_id" > 2 OR "property_id" > 4 OR property_feature_description = "quo"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7


Question: SELECT Book_ID, Issues, Title FROM book WHERE "Issues" >= 6.0 OR "Book_ID" <> 9 AND Writer = "Elaine Lee" OR Title = "Michael Moorcock's Multiverse" INTERSECT SELECT Book_ID, Issues, Title FROM book WHERE Title <> "Gemini Blood" OR "Book_ID" > 7 AND "Issues" <= 4.0 OR Writer != "Howard Chaykin"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9


Question: SELECT Store_Name, Store_ID FROM store WHERE "Area_size" <= 179.84 OR Type <> "City Mall" OR Store_Name != "Miramichi" AND "Ranking" <= 2 UNION ALL SELECT Store_Name, Store_ID FROM store WHERE "Store_ID" <= 4 OR Type = "Village Store" AND "Area_size" <> 179.84 AND "Number_of_product_category" >= 1170.0 OR "Ranking" < 1 AND Store_Name <> "Miramichi"


Question: SELECT ClubName, ClubDesc FROM Club WHERE ClubDesc = "Venture capital fund for student business." AND "ClubID" > 3 OR ClubName = "Hopkins Student Enterprises" OR ClubLocation <> "AKW" INTERSECT SELECT ClubName, ClubDesc FROM Club WHERE ClubName != "Bootup Baltimore" OR "ClubID" = 2 AND ClubDesc != "Refurbish computers; teach kids and adults about computer basics." OR ClubLocation != "AKW"

Venture capital fund for student business.

Pen and Paper Gaming
Play pen and paper games on campus.


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9


Question: SELECT City, Name, Employee_ID, Age FROM employee WHERE City <> "Bath" OR "Age" > 29 OR "Employee_ID" != 8 INTERSECT SELECT City, Name, Employee_ID, Age FROM employee WHERE "Employee_ID" >= 3 AND City <> "Sale" AND Name = "George Chuter" OR "Age" >= 36


Question: SELECT MIN(Rank) FROM coach WHERE "Club_ID" = 1 OR Gender != "M" AND Coach_name <> "Smith Brown" UNION SELECT MIN(Rank) FROM match_result WHERE "Bronze" > 8 OR "Gold" != 6 AND "Small_Silver" = 16 AND "Rank" = 2 AND "Points" < 102 AND "Club_ID" <= 3 AND "Big_Silver" > 9


Question: SELECT MIN(School_ID) FROM school WHERE School <> "St. Francis Assisi" OR Type <> "Private" OR "School_ID" <= 6 OR Location <> "Jakarta, Indonesia" AND Grade <> "College" UNION SELECT MIN(School_ID) FROM school_bus WHERE "School_ID" <= 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2


Question: SELECT MIN(Allergy) FROM Allergy_Type WHERE Allergy = "Wheat" OR AllergyType != "animal" UNION ALL SELECT MIN(Allergy) FROM Has_Allergy WHERE "StuID" <= 1015 AND Allergy != "Shellfish"


Question: SELECT Price FROM publication WHERE "Book_ID" < 5 OR "Publication_ID" >= 4 AND "Price" < 6000000.0 OR Publisher = "Springer Nature" AND Publication_Date != "August 2008" UNION SELECT Price FROM publication WHERE "Book_ID" >= 7 AND Publication_Date <> "April 2007" AND Publisher != "Bertelsmann" OR "Publication_ID" > 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9


Question: SELECT u_id, a_id FROM review WHERE "u_id" > 2 AND "rank" = 2 OR "a_id" <= 4 INTERSECT SELECT u_id, a_id FROM review WHERE "u_id" >= 1


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3


Question: SELECT staff_id FROM Lessons WHERE "customer_id" <= 10 AND lesson_time = "2" UNION SELECT staff_id FROM Staff WHERE date_of_birth != "2007-06-11 20:03:28" AND nickname <> "edwin.hudson" OR date_left_staff = "2018-02-26 17:56:31" AND "staff_id" <= 4 AND last_name = "Mertz" OR date_joined_staff <> "2016-06-06 08:54:28" AND first_name = "Eulalia"


Question: SELECT id FROM flight WHERE "Velocity" <= 240.0 OR Pilot != "Thompson" AND "airport_id" = 6 AND Vehicle_Flight_number != "M2-F1 #0" AND "id" <= 2 EXCEPT SELECT id FROM operate_company WHERE name != "China Pacific Laundry Services" OR "id" = 6 AND Incorporated_in = "Canada"


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2


Question: SELECT u_id FROM review WHERE "u_id" < 2 OR "a_id" <= 3 AND "rank" <> 7 OR "rating" != 7 AND "i_id" > 3 INTERSECT SELECT u_id FROM useracct WHERE name != "Terry"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3


Question: SELECT AVG(Total_pounds), MIN(Branch_ID), Member_ID, MAX(Year) FROM purchase WHERE Year != "2018" OR "Member_ID" != 3 AND "Total_pounds" <= 430.29 UNION ALL SELECT AVG(Total_pounds), MIN(Branch_ID), Member_ID, MAX(Year) FROM purchase WHERE "Total_pounds" < 232.09 AND Branch_ID <> "1" AND Year != "2018" AND "Member_ID" <= 2


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4


Question: SELECT document_id, copy_number, draft_number FROM Draft_Copies WHERE "draft_number" <> 20 AND "document_id" != 2 INTERSECT SELECT document_id, copy_number, draft_number FROM Draft_Copies WHERE "copy_number" > 4


Question: SELECT name, u_id FROM useracct WHERE "u_id" <= 2 INTERSECT SELECT name, u_id FROM useracct WHERE "u_id" <> 6


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7


Question: SELECT AVG(Name), COUNT(Budget_in_Billions), AVG(Num_Employees), Ranking FROM department WHERE "Budget_in_Billions" <= 77.6 OR "Ranking" <> 3 OR Name != "State" OR "Num_Employees" > 36000.0 AND Creation <> "1947" EXCEPT SELECT AVG(Name), COUNT(Budget_in_Billions), AVG(Num_Employees), Ranking FROM department WHERE "Ranking" >= 1 AND "Department_ID" = 2


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5


Question: SELECT last_name, first_name, date_of_birth FROM Customers WHERE phone_number != "(729)396-4354x3576" AND last_name != "Mertz" OR date_became_customer <> "2015-11-16 22:52:14" OR "customer_address_id" < 10 AND "customer_id" > 5 AND date_of_birth = "1993-03-08 08:48:42" OR email_address = "everette.goyette@example.org" AND cell_mobile_phone_number <> "739-333-6966x187" OR "amount_outstanding" > 1000.0 AND customer_status_code != "Good Customer" OR first_name != "Dianna" EXCEPT SELECT last_name, first_name, date_of_birth FROM Staff WHERE nickname = "gabe21" OR date_left_staff != "2018-03-23 22:53:12" OR "staff_id" < 11


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4


Question: SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code != "BK" OR Template_Type_Description = "Presentation" INTERSECT SELECT Template_Type_Code FROM Templates WHERE Date_Effective_From != "1986-11-14 12:20:18"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5


Question: SELECT COUNT(T1.District_ID), T2.District_ID FROM district as T1 JOIN store_district as T2 ON T1.District_ID = T2.District_ID WHERE District_name <> "Khanewal District"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5


Question: SELECT LName, Fname, city_code, StuID, Age, Major FROM Student WHERE "Advisor" != 1148 UNION ALL SELECT LName, Fname, city_code, StuID, Age, Major FROM Student WHERE city_code = "WAS" AND "StuID" <= 1017 AND "Advisor" > 9172 AND Fname = "Lisa" AND "Major" > 600 AND Sex = "M" OR "Age" != 19 AND LName = "Prater"


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5


Question: SELECT first_name, AVG(date_of_birth), SUM(last_name) FROM Customers WHERE date_became_customer != "2016-02-17 08:26:23" OR "customer_id" <> 7 AND phone_number <> "374-483-2758x85087" OR "customer_address_id" != 7 EXCEPT SELECT first_name, AVG(date_of_birth), SUM(last_name) FROM Staff WHERE "staff_id" != 7 OR first_name <> "Titus" OR nickname != "ymiller"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3


Question: SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Description = "CV" AND Template_Type_Code <> "BK" INTERSECT SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code != "AD" OR Template_Type_Description <> "Paper"


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5


Question: SELECT MAX(age), COUNT(born_state), MIN(name) FROM head WHERE name <> "K. J. Choi" OR "age" <> 43.0 INTERSECT SELECT MAX(age), COUNT(born_state), MIN(name) FROM head WHERE "age" > 50.0 OR "head_ID" = 3 OR born_state != "Delaware"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9


Question: SELECT School_ID, MAX(School), Grade FROM school WHERE "School_ID" = 3 UNION ALL SELECT School_ID, MAX(School), Grade FROM school WHERE Location <> "Cambridge, Massachusetts" OR School != "Columbia University" OR Grade <> "Kindergarten" OR Type <> "Public" OR "School_ID" > 2

3
State Elementary School Menteng 01
4th grade

3
State Elementary School Menteng 01
4th grade


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5


Question: SELECT MIN(T1.id), T2.company_id FROM airport as T1 JOIN flight as T2 ON T1.id = T2.id WHERE IATA <> "BLL" AND Date = "January 29, 1964" AND Altitude <= 3650.0 OR ICAO <> "EBBR" AND airport_id > 2 OR name = "Billund Airport"


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3


Question: SELECT Fname, Age, SUM(city_code), MAX(LName), Major, MIN(Sex), StuID FROM Student WHERE Sex = "F" OR city_code = "NYC" AND "Advisor" < 7712 AND "StuID" != 1032 AND "Major" <= 600 OR Fname <> "Mark" INTERSECT SELECT Fname, Age, SUM(city_code), MAX(LName), Major, MIN(Sex), StuID FROM Student WHERE Fname != "Mark" AND "StuID" != 1023 AND "Advisor" != 8722 OR "Age" <= 21 AND "Major" <> 600 OR Sex = "F"

Fname Age SUM(city_code) MAX(LName) Major MIN(Sex) StuID


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10


Question: SELECT Shop_ID FROM hiring WHERE "Shop_ID" != 1 UNION SELECT Shop_ID FROM shop WHERE "Number_products" > 10770


Question: SELECT shipping_agent_code FROM Documents WHERE shipping_agent_code = "FE" AND other_details <> "z" INTERSECT SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_description <> "t" OR shipping_agent_code = "FE" OR shipping_agent_name <> "UPS"


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2


Question: SELECT id FROM albums WHERE "artist_id" <> 248 AND "id" <> 171 EXCEPT SELECT id FROM genres WHERE name <> "Opera" AND "id" <> 24


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4


Question: SELECT i_id FROM item WHERE "i_id" != 6 OR title != "avocado" UNION SELECT i_id FROM review WHERE "u_id" >= 2 OR "rank" < 3 AND "rating" <= 5


Question: SELECT MAX(Branch_ID) FROM branch WHERE Name = "Saint Amant" OR City != "London" AND Address_road <> "Cecilia Avenue" AND Open_year != "2014" AND "Branch_ID" < 1 UNION SELECT MAX(Branch_ID) FROM membership_register_branch WHERE Register_Year != "2017"


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2


Question: SELECT other_details FROM Employees WHERE "employee_id" <> 3 AND role_code != "MG" UNION ALL SELECT other_details FROM Employees WHERE employee_name <> "Kenyon" OR other_details <> "f"


Question: SELECT property_type_code FROM Ref_Property_Types WHERE property_type_code = "Field" INTERSECT SELECT property_type_code FROM Ref_Property_Types WHERE property_type_description != "Apartment, Flat, Condo, etc." OR property_type_code = "Field"


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4


Question: SELECT Store_ID FROM store WHERE Type = "Village Store" AND "Store_ID" < 3 OR "Ranking" > 10 AND Store_Name <> "Neguac" OR "Area_size" > 21.73 AND "Number_of_product_category" < 17811.0 UNION ALL SELECT Store_ID FROM store_product WHERE "Product_ID" <> 1


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2


Question: SELECT COUNT(phone_number), MIN(vote_id) FROM VOTES WHERE "phone_number" >= 5112677315 AND "vote_id" > 1 UNION ALL SELECT COUNT(phone_number), MIN(vote_id) FROM VOTES WHERE "phone_number" = 5112677315 OR state = "NY"


Question: SELECT SUM(Total_disk_area), MAX(Aircraft), AVG(Max_Gross_Weight), Description, Aircraft_ID, Max_disk_Loading FROM aircraft WHERE Description <> "Light utility helicopter" OR Max_Gross_Weight = "123,500 lb (56,000 kg)" EXCEPT SELECT SUM(Total_disk_area), MAX(Aircraft), AVG(Max_Gross_Weight), Description, Aircraft_ID, Max_disk_Loading FROM aircraft WHERE Max_disk_Loading = "8.8 lb/ft² (43 kg/m²)" AND Max_Gross_Weight <> "73,500 lb (33,300 kg)" OR Total_disk_area = "8,495 ft² (789 m²)" OR Description != "Turboshaft utility helicopter" AND "Aircraft_ID" != 2


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9


Question: SELECT COUNT(Hometown), MIN(Level), MAX(Member_ID) FROM member WHERE "Member_ID" >= 1 AND Hometown != "Collierville, Tennessee" OR Name != "Micah Johnson" EXCEPT SELECT COUNT(Hometown), MIN(Level), MAX(Member_ID) FROM member WHERE Name = "Johnny Williams" OR "Level" < 6 AND "Member_ID" >= 9 AND Card_Number <> "OLB56"


Question: SELECT beds, roomName FROM Rooms WHERE bedType = "Queen" OR "maxOccupancy" < 4 UNION SELECT beds, roomName FROM Rooms WHERE RoomId != "AOB" OR "maxOccupancy" <> 2 AND "basePrice" = 150


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9


Question: SELECT name, MIN(u_id) FROM useracct WHERE "u_id" <> 3 AND name <> "Nancy" UNION ALL SELECT name, MIN(u_id) FROM useracct WHERE "u_id" < 5


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9


Question: SELECT Document_Description, Document_Name, Template_ID FROM Documents WHERE Document_Description <> "u" UNION ALL SELECT Document_Description, Document_Name, Template_ID FROM Documents WHERE Other_Details <> "None"


Question: SELECT contestant_number FROM CONTESTANTS WHERE contestant_name != "Jessie Eichman" AND "contestant_number" <= 5 EXCEPT SELECT contestant_number FROM VOTES WHERE "vote_id" >= 2 OR created != "2018-03-09 19:03:36" OR "contestant_number" <> 3 OR "phone_number" = 7182887233


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7


Question: SELECT beds, RoomId, maxOccupancy, bedType FROM Rooms WHERE roomName != "Convoke and sanguine" AND "maxOccupancy" <> 2 EXCEPT SELECT beds, RoomId, maxOccupancy, bedType FROM Rooms WHERE roomName = "Immutable before decorum"


Question: SELECT Store_ID FROM store WHERE "Store_ID" > 3 AND Store_Name != "Miramichi" INTERSECT SELECT Store_ID FROM store_district WHERE "District_ID" <= 15


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7


Question: SELECT staff_id FROM Lessons WHERE "vehicle_id" <= 1 AND "customer_id" >= 11 AND "price" <= 495.0 AND lesson_time = "5" OR lesson_date != "2018-03-07 22:03:49" INTERSECT SELECT staff_id FROM Staff WHERE nickname <> "edwin.hudson" AND first_name = "Simeon" AND date_of_birth <> "1997-03-29 10:55:45" OR last_name != "Herzog" OR "staff_address_id" != 1 OR middle_name != "Dejon" AND date_left_staff != "2018-03-04 17:13:53" OR date_joined_staff <> "2017-04-27 03:21:26" OR "staff_id" = 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3


Question: SELECT aid FROM aircraft WHERE name = "Boeing 757-300" OR "distance" != 6475 AND "aid" != 10 EXCEPT SELECT aid FROM certificate WHERE "eid" >= 269734834 AND "aid" < 7


Question: SELECT i_id FROM item WHERE "i_id" <= 2 OR title = "pear" UNION SELECT i_id FROM review WHERE "a_id" >= 7 OR "u_id" >= 1


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9


Question: SELECT PetID FROM Pets WHERE "PetID" >= 2001 AND "pet_age" <> 2 EXCEPT SELECT PetID FROM Pets WHERE "PetID" != 2003 OR "pet_age" > 3


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3