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 >= 10


Question: SELECT MIN(Party), Delegate, MAX(Committee), Counties_Represented, AVG(District), COUNT(Election_ID) FROM election WHERE Counties_Represented <> "12.1 12A" OR "Election_ID" != 3 AND "First_Elected" <> 1994.0 OR Committee <> "Environmental Matters" OR "Party" > 1 AND "District" < 1 OR Delegate = "Malone, James E. Jr. James E. Malone, Jr." UNION ALL SELECT MIN(Party), Delegate, MAX(Committee), Counties_Represented, AVG(District), COUNT(Election_ID) FROM election WHERE Committee != "Environmental Matters" AND "First_Elected" != 1994.0 OR Delegate <> "Bobo, Elizabeth Elizabeth Bobo" OR "Election_ID" > 2 AND "District" <= 3 OR "Party" <= 3

MIN(Party) Delegate MAX(Committee) Counties_Represented AVG(District) COUNT(Election_ID)


Question: SELECT Rank FROM match_result WHERE "Gold" <= 13 OR "Rank" <> 3 UNION SELECT Rank FROM match_result WHERE "Big_Silver" > 14 OR "Points" > 139


Question: SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code = "PPT" INTERSECT SELECT Template_Type_Code FROM Templates WHERE Date_Effective_From <> "2005-11-12 07:09:48" OR "Version_Number" <> 5 AND Template_Type_Code = "PP" AND Date_Effective_To != "1992-05-02 20:06:11"


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 = 10 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 > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7


Question: SELECT Employee_ID FROM evaluation WHERE "Bonus" > 2900.0 AND Year_awarded != "2016" AND Employee_ID = "10" UNION ALL SELECT Employee_ID FROM hiring WHERE Start_from <> "2011" AND "Shop_ID" <> 1 OR Is_full_time <> "F"


Question: SELECT name, id FROM airport WHERE IATA != "BGO" UNION SELECT name, id FROM operate_company WHERE "id" != 5 OR "Group_Equity_Shareholding" >= 100.0

Cathay Pacific Catering Services (HK) Limited


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 eid FROM certificate WHERE "eid" = 567354612 UNION SELECT eid FROM employee WHERE "eid" < 548977562 AND name = "Linda Davis"


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 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 != 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 < 4


Question: SELECT Member_ID FROM member WHERE Card_Number <> "LCB7" OR "Member_ID" <= 1 AND Hometown != "Fort Campbell, Kentucky" EXCEPT SELECT Member_ID FROM membership_register_branch WHERE "Member_ID" <> 6 OR Branch_ID = "5"


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 != 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 > 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 <> 4 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 != 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 <= 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 != 10 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 > 7 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 != 4


Question: SELECT MAX(Name) FROM company WHERE Industry <> "Oil and gas" AND "Sales_in_Billion" != 117.6 OR "Profits_in_Billion" <= 11.1 AND "Market_Value_in_Billion" <= 164.3 OR "Company_ID" < 19.0 OR "Assets_in_Billion" <> 319.4 OR Name <> "Total" UNION SELECT MAX(Name) FROM people WHERE "People_ID" >= 7 OR Graduation_College <> "Oklahoma" AND "Age" <= 34 OR Name != "Brad Lohaus" OR Nationality != "United States"


Question: SELECT Club_ID FROM club WHERE "Club_ID" > 1 UNION ALL SELECT Club_ID FROM match_result WHERE "Small_Silver" <> 9 OR "Points" <= 139 AND "Club_ID" != 4 AND "Gold" >= 13 AND "Bronze" != 10


Question: SELECT customer_id FROM Customer_Payments WHERE datetime_payment != "2018-03-18 13:48:13" OR "customer_id" != 2 OR payment_method_code != "Direct Debit" INTERSECT SELECT customer_id FROM Lessons WHERE "vehicle_id" > 2 OR "lesson_id" <= 13 OR "staff_id" >= 4 OR "customer_id" = 9 AND lesson_date = "2018-02-28 10:55:36" AND lesson_time != "4"


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 >= 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 <> 3


Question: SELECT draft_number FROM Draft_Copies WHERE "draft_number" = 12 OR "document_id" <= 2 AND "copy_number" = 15 UNION SELECT draft_number FROM Draft_Copies WHERE "draft_number" <> 2 OR "document_id" != 2 AND "copy_number" < 15


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 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 != 10


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 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 != 6 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 > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7


Question: SELECT Shop_ID, Name, District FROM shop WHERE District <> "Magnum Areena" OR Manager_name = "Job Dragtsma" OR "Number_products" <> 6000 OR Name != "FC KooTeePee" OR "Shop_ID" <= 4 OR Location = "Jakobstad" INTERSECT SELECT Shop_ID, Name, District FROM shop WHERE District != "Magnum Areena" OR "Shop_ID" != 4


Question: SELECT feature_id FROM Other_Available_Features WHERE "feature_id" > 2 INTERSECT SELECT feature_id FROM Other_Property_Features WHERE property_feature_description = "quo" OR "property_id" <= 6 OR "feature_id" >= 4


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 <= 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 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 <= 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 = 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 >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7


Question: SELECT Club_ID FROM club WHERE "Club_ID" = 3 AND "Start_year" <> 2000 OR Region != "USA" UNION SELECT Club_ID FROM match_result WHERE "Rank" = 1 AND "Club_ID" < 3 AND "Bronze" <= 9


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 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 <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7


Question: SELECT People_ID FROM people WHERE "Height" >= 196.0 OR Nationality = "Russia" AND Name != "Sergey Grankin" AND "People_ID" <= 1 UNION SELECT People_ID FROM poker_player WHERE "Best_Finish" >= 1.0 OR "Final_Table_Made" = 19.0 OR "People_ID" <> 6 AND "Money_Rank" <> 154.0 AND "Earnings" != 142800.0 AND "Poker_Player_ID" < 5


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 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 customer_id FROM Customer_Payments WHERE "customer_id" >= 14 UNION SELECT customer_id FROM Customers WHERE "amount_outstanding" > 9447.0 OR cell_mobile_phone_number = "00659133944"


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 <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3


Question: SELECT MAX(Template_Type_Code) FROM Ref_Template_Types WHERE Template_Type_Description <> "Book" OR Template_Type_Code != "BK" UNION SELECT MAX(Template_Type_Code) FROM Templates WHERE Template_Details = ""


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 lesson_id, customer_id, lesson_time, vehicle_id, staff_id, lesson_status_code, lesson_date, price FROM Lessons WHERE "price" > 223.0 OR lesson_status_code = "Cancelled" OR "customer_id" != 11 UNION ALL SELECT lesson_id, customer_id, lesson_time, vehicle_id, staff_id, lesson_status_code, lesson_date, price FROM Lessons WHERE "vehicle_id" = 1 OR "customer_id" > 10 OR "lesson_id" <> 11 AND lesson_date = "2018-03-06 21:48:51" AND "price" != 277.0 OR lesson_time = "9" OR "staff_id" <> 4 AND lesson_status_code <> "Cancelled"


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 > 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 > 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 >= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2


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


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 >= 3


Question: SELECT ModelId FROM model_list WHERE "ModelId" <= 3 INTERSECT SELECT ModelId FROM model_list WHERE "ModelId" = 14 OR "Maker" <> 17


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 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 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 != 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 <= 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 > 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7


Question: SELECT MAX(People_ID) FROM employment WHERE "Year_working" = 1 UNION ALL SELECT MAX(People_ID) FROM people WHERE Graduation_College != "Wisconsin–Stevens Point" OR Nationality != "United States"


Question: SELECT Branch_ID, Total_pounds, Year FROM purchase WHERE "Total_pounds" <= 343.76 OR Year <> "2018" OR Branch_ID = "3" EXCEPT SELECT Branch_ID, Total_pounds, Year FROM purchase WHERE "Total_pounds" >= 988.09


Question: SELECT Product_ID FROM store_product WHERE "Store_ID" >= 3 OR "Product_ID" = 1 INTERSECT SELECT Product_ID FROM store_product WHERE "Product_ID" != 1 AND "Store_ID" >= 3


Question: SELECT COUNT(Big_Silver) FROM match_result WHERE "Small_Silver" != 6 AND "Points" = 168 AND "Club_ID" <> 5 UNION SELECT COUNT(Big_Silver) FROM match_result WHERE "Rank" < 3 OR "Gold" <= 12 AND "Club_ID" <= 1


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 document_id, draft_number FROM Circulation_History WHERE "employee_id" < 1 AND "copy_number" < 4 OR "draft_number" != 2 OR "document_id" != 20 INTERSECT SELECT document_id, draft_number FROM Document_Drafts WHERE "document_id" > 12 OR "draft_number" <= 20


Question: SELECT Description, Max_Gross_Weight FROM aircraft WHERE Max_Gross_Weight != "3,200 lb (1,451 kg)" AND Aircraft = "CH-53E Super Stallion" AND Max_disk_Loading = "8.8 lb/ft² (43 kg/m²)" OR Total_disk_area != "5,655 ft² (526 m²)" UNION ALL SELECT Description, Max_Gross_Weight FROM aircraft WHERE Max_Gross_Weight = "73,500 lb (33,300 kg)" AND "Aircraft_ID" <> 4

Light utility helicopter
1,370 lb (635 kg)

Turboshaft utility helicopter
3,200 lb (1,451 kg)

Heavy-lift helicopter
123,500 lb (56,000 kg)

Heavy-lift helicopter
73,500 lb (33,300 kg)

Heavy-lift helicopter
73,500 lb (33,300 kg)


Question: SELECT COUNT(T1.feature_id), T2.property_id FROM Other_Available_Features as T1 JOIN Other_Property_Features as T2 ON T1.feature_id = T2.feature_id WHERE property_feature_description <> "odio" AND feature_name <> "Pool" OR feature_description = "Swimming Pool." GROUP BY property_feature_description HAVING property_id <> 6 AND property_feature_description <> "illo"


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 Max_disk_Loading, Aircraft_ID, Aircraft FROM aircraft WHERE Aircraft = "CH-47D Chinook" AND Total_disk_area = "872 ft² (81.1 m²)" AND Description != "Light utility helicopter" OR Max_Gross_Weight != "73,500 lb (33,300 kg)" OR "Aircraft_ID" <= 2 UNION SELECT Max_disk_Loading, Aircraft_ID, Aircraft FROM aircraft WHERE Total_disk_area = "8,495 ft² (789 m²)" OR Max_disk_Loading <> "14.5 lb/ft² (71 kg/m²)" AND "Aircraft_ID" > 2 OR Aircraft = "CH-47D Chinook"

15 lb/ft² (72 kg/m²)
5
CH-53E Super Stallion

3.7 lb/ft² (18 kg/m²)
2
Bell 206B3 JetRanger


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 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 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5


Question: SELECT head_ID FROM head WHERE name != "Franklin Langham" INTERSECT SELECT head_ID FROM management WHERE "head_ID" = 5 OR "department_ID" > 11 AND temporary_acting <> "Yes"


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 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 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 SUM(role_description) FROM Roles WHERE role_code = "ED" OR role_description != "Photo" UNION SELECT SUM(role_description) FROM Roles WHERE role_description = "Photo" OR role_code <> "MG"


Question: SELECT id FROM albums WHERE "id" > 116 OR title != "No Security" UNION ALL SELECT id FROM media_types WHERE name = "AAC audio file" OR "id" > 4


Question: SELECT SUM(Maker) FROM car_makers WHERE Maker != "daimler benz" OR Country != "4" UNION ALL SELECT SUM(Maker) FROM model_list WHERE Model <> "datsun" AND "ModelId" <= 22 AND "Maker" < 5


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 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 Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code != "CV" OR Template_Type_Description <> "Paper" INTERSECT SELECT Template_Type_Code FROM Templates WHERE "Template_ID" <> 11 OR Template_Type_Code = "BK"


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 > 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 = 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7


Question: SELECT Employee_ID FROM employee WHERE Name <> "George Chuter" UNION SELECT Employee_ID FROM hiring WHERE Is_full_time = "T" AND "Shop_ID" != 1


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 = 7


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 < 4


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 <> 9


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 > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7


Question: SELECT MIN(id) FROM flight WHERE "company_id" = 11 AND "airport_id" < 2 OR Vehicle_Flight_number <> "M2-F1 #14" AND "Altitude" <> 3650.0 INTERSECT SELECT MIN(id) FROM operate_company WHERE name != "Cathay Pacific Catering Services (HK) Limited" AND Principal_activities <> "Laundry" OR Type <> "Joint Venture" AND "Group_Equity_Shareholding" = 100.0 AND "id" >= 10 OR Incorporated_in = "Hong Kong"


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 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 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 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 <= 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 >= 9


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 < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4


Question: SELECT Nationality, Birth_Date FROM people WHERE "People_ID" <= 2 OR "Height" != 205.0 AND Nationality = "Russia" AND Name != "Aleksey Ostapenko" OR Birth_Date != "May 26, 1986" INTERSECT SELECT Nationality, Birth_Date FROM people WHERE "Height" != 207.0 OR Nationality = "Russia" AND Name <> "Yevgeni Sivozhelez" AND "People_ID" < 4 AND Birth_Date = "April 17, 1987"


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 <= 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 != 5


Question: SELECT Player_ID FROM player WHERE "Votes" = 14355 OR Gender = "F" AND Player_name = "Judy Wasylycia-Leis" OR Residence <> "Brandon" AND Rank != "2nd" AND "Player_ID" <> 6 AND Occupation <> "Design Coordinator" EXCEPT SELECT Player_ID FROM player_coach WHERE "Player_ID" <= 1 AND "Starting_year" <= 2010 OR "Coach_ID" < 1


Question: SELECT MIN(Principal_activities), Group_Equity_Shareholding, name, MIN(Incorporated_in), MAX(id), SUM(Type) FROM operate_company WHERE Principal_activities != "Cargo" AND Type = "Subsidiary" OR Incorporated_in = "Hong Kong" EXCEPT SELECT MIN(Principal_activities), Group_Equity_Shareholding, name, MIN(Incorporated_in), MAX(id), SUM(Type) FROM operate_company WHERE Incorporated_in <> "Taiwan" OR "Group_Equity_Shareholding" = 100.0 OR Principal_activities != "Airline" AND Type = "Subsidiary" AND "id" != 6 AND name != "Air Hong Kong"


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 != 5 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 <= 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 <= 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 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 IATA, ICAO, Country, City FROM airport WHERE name = "Schiphol Airport" UNION ALL SELECT IATA, ICAO, Country, City FROM airport WHERE "id" < 1 OR name = "Akureyri Airport"


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 <= 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 = 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 >= 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 > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10


Question: SELECT Branch_ID, Member_ID, Register_Year FROM membership_register_branch WHERE Branch_ID <> "8" OR Register_Year = "2016" EXCEPT SELECT Branch_ID, Member_ID, Register_Year FROM membership_register_branch WHERE Branch_ID != "4" AND Register_Year <> "2016"


Question: SELECT vehicle_id FROM Lessons WHERE lesson_status_code != "Cancelled" OR "price" > 231.0 AND "vehicle_id" != 2 AND "staff_id" = 11 OR "lesson_id" <= 14 OR "customer_id" != 8 EXCEPT SELECT vehicle_id FROM Vehicles WHERE vehicle_details = "Car" AND "vehicle_id" > 1


Question: SELECT ClubID FROM Club WHERE ClubName = "Pen and Paper Gaming" OR "ClubID" != 3 AND ClubDesc != "Play pen and paper games on campus." AND ClubLocation <> "HHH" INTERSECT SELECT ClubID FROM Member_of_club WHERE "ClubID" <= 1 OR Position <> "CTO"


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 COUNT(Writer), Issues, COUNT(Book_ID) FROM book GROUP BY Issues HAVING COUNT(Book_ID) <> 2 AND COUNT(Writer) > 1 UNION SELECT COUNT(Writer), Issues, COUNT(Book_ID) FROM book GROUP BY Issues HAVING COUNT(Book_ID) >= 1 AND COUNT(Writer) > 3


Question: SELECT Document_ID FROM Documents WHERE "Template_ID" <= 21 UNION SELECT Document_ID FROM Documents WHERE "Document_ID" > 80 OR "Template_ID" > 1 AND Document_Name != "Understanding DB" AND Other_Details != "None" AND Document_Description = "b"


Question: SELECT MIN(School_ID), SUM(Years_Working), If_full_time, SUM(Driver_ID) FROM school_bus WHERE "Years_Working" > 2 OR "School_ID" < 5 UNION SELECT MIN(School_ID), SUM(Years_Working), If_full_time, SUM(Driver_ID) FROM school_bus WHERE "Driver_ID" >= 9 OR "Years_Working" < 6 OR If_full_time = "T"


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 <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7


Question: SELECT Continent FROM continents WHERE Continent != "asia" EXCEPT SELECT Continent FROM countries WHERE "Continent" >= 5


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 < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4


Question: SELECT MIN(Template_ID) FROM Documents WHERE Other_Details != "None" AND Document_Name <> "Data base" OR "Document_ID" > 3540024 EXCEPT SELECT MIN(Template_ID) FROM Templates WHERE "Template_ID" <> 21


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 = 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 <= 2


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 id FROM flight WHERE "airport_id" <> 1 AND Date = "January 29, 1964" AND Vehicle_Flight_number = "M2-F1 #70" OR Pilot = "Thompson" AND "company_id" <> 11 AND "Altitude" > 3650.0 OR "Velocity" > 240.0 OR "id" <> 8 UNION SELECT id FROM operate_company WHERE name <> "CLS Catering Services Limited" AND Incorporated_in != "Hong Kong" OR Type <> "Corporate" AND "id" > 13


Question: SELECT AVG(property_type_code) FROM Properties WHERE "agreed_selling_price" <= 2794972.2495 OR fld_feature_3 = "None" AND oth_feature_2 <> "None" AND oth_feature_1 != "None" OR property_address != "4745 Emerson Stravenue Suite 829 South Garret, IN 16772-5682" AND "property_id" >= 6 OR apt_feature_1 != "nesciunt" AND "buyer_offered_price" <= 13991131.434 OR property_name = "avalon" OR hse_feature_1 <> "None" AND shp_feature_1 = "None" AND apt_feature_3 <> "None" OR fld_feature_2 = "None" OR "room_count" != 9 OR date_on_market <> "1986-11-26 04:12:18" OR shp_feature_3 != "None" OR "vendor_requested_price" > 2219.6778 OR hse_feature_3 <> "None" AND apt_feature_2 <> "culpa" AND oth_feature_3 = "None" AND shp_feature_2 = "None" INTERSECT SELECT AVG(property_type_code) FROM Ref_Property_Types WHERE property_type_code <> "House" OR property_type_description != "Shop, Retail Outlet."


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 = 4


Question: SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code != "AD" OR Template_Type_Description <> "Presentation" UNION ALL SELECT Template_Type_Code FROM Templates WHERE "Template_ID" > 21


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 <> 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 = 4


Question: SELECT Country, Maker, Id FROM car_makers WHERE FullName != "Subaru" AND Country = "3" UNION SELECT Country, Maker, Id FROM car_makers WHERE Country != "4" OR FullName = "Mazda" AND Maker = "bmw" OR "Id" >= 14


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 <= 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 = 10 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 != 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 < 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 != 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 < 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 MAX(document_type_code) FROM Documents WHERE receipt_date <> "1986-12-14 14:18:59" AND shipping_agent_code = "UP" OR receipt_number <> "19" AND other_details = "w" OR "document_id" = 13 AND document_status_code = "working" OR document_type_code <> "Hard Drive" INTERSECT SELECT MAX(document_type_code) FROM Ref_Document_Types WHERE document_type_code <> "Paper" OR document_type_description <> "b"


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 >= 7


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 > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4


Question: SELECT Writer, Title, Issues FROM book WHERE "Book_ID" <= 4 UNION SELECT Writer, Title, Issues FROM book WHERE Title = "Cyberella" AND Writer != "Elaine Lee" OR "Issues" >= 4.0

Garth Ennis
Bloody Mary : Lady Liberty
4

Michael Moorcock
Michael Moorcock's Multiverse
12


Question: SELECT StuID FROM Has_Allergy WHERE "StuID" >= 1010 OR Allergy = "Dog" EXCEPT SELECT StuID FROM Student WHERE city_code != "HOU" OR "StuID" > 1015


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 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 Aircraft_ID FROM aircraft WHERE Description = "Turboshaft utility helicopter" INTERSECT SELECT Aircraft_ID FROM airport_aircraft WHERE "ID" <> 1 AND "Aircraft_ID" <> 3


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 <> 7 INTERSECT 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 < 5 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 <> 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 <> 1 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 <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3


Question: SELECT City_Area, Headquartered_City, District_ID FROM district WHERE District_name <> "Attock District" OR "City_Population" = 2793721.0 AND Headquartered_City != "Bahawalnagar City" EXCEPT SELECT City_Area, Headquartered_City, District_ID FROM district WHERE "City_Area" >= 25.0 AND "City_Population" <= 219254.0 AND Headquartered_City != "Bhakkar City" OR District_name = "Kasur District" OR "District_ID" <> 7


Question: SELECT COUNT(age) FROM head WHERE name = "K. J. Choi" AND "head_ID" <= 8 OR "age" >= 69.0 OR born_state = "Alabama" UNION ALL SELECT COUNT(age) FROM head WHERE born_state <> "California" AND "head_ID" < 1 OR "age" <> 69.0 AND name = "K. J. Choi"


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 > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9


Question: SELECT StuID, PetID FROM Has_Pet WHERE "StuID" <= 1002 UNION SELECT StuID, PetID FROM Has_Pet WHERE "PetID" <= 2001


Question: SELECT id, title FROM albums WHERE "id" > 97 UNION ALL SELECT id, title FROM employees WHERE "reports_to" != 1.0

A TempestadeTempestade Ou O Livro Dos Dias

Lulu Santos - RCA 100 Anos De Música - Álbum 01

Lulu Santos - RCA 100 Anos De Música - Álbum 02

Seek And Shall Find: More Of The Best (1963-1981)

From The Muddy Banks Of The Wishkah live

Pure Cult: The Best Of The Cult (For Rockers, Ravers, Lovers & Sinners) UK

My Generation - The Very Best Of The Who

Battlestar Galactica (Classic), Season 1

Instant Karma: The Amnesty International Campaign to Save Darfur

20th Century Masters - The Millennium Collection: The Best of Scorpions

Radio Brasil (O Som da Jovem Vanguarda) - Seleccao de Henrique Amaro

Adorate Deum: Gregorian Chant from the Proper of the Mass

Holst: The Planets, Op. 32 & Vaughan Williams: Fantasies

Great Performances - Barber's Adagio and Other Romantic Favorites for Strings

Beethoven Piano Sonatas: Moonlight & Pastorale

Great Recordings of the Century - Mahler: Das Lied von der Erde

Elgar: Cello Concerto & Vaughan Williams: Fantasias

Tchaikovsky: 1812 Festival Overture, Op.49, Capriccio Italien & Beethoven: Wellington's Victory

Palestrina: Missa Papae Marcelli & Allegri: Miserere

Handel: Music for the Royal Fireworks (Original Version 1749)

Grieg: Peer Gynt Suites & Sibelius: Pelléas et Mélisande

Armada: Music from the Courts of England and Spain

Beethoven: Symphony No. 6 'Pastoral' Etc.

Charpentier: Divertissements, Airs & Concerts

J.S. Bach: Chaconne, Suite in E Minor, Partita in E Major & Prelude, Fugue and Allegro

Prokofiev: Symphony No.5 & Stravinksy: Le Sacre Du Printemps

Great Recordings of the Century: Paganini's 24 Caprices

Liszt - 12 Études D'Execution Transcendante

Great Recordings of the Century - Shubert: Schwanengesang, 4 Lieder

Locatelli: Concertos for Violin, Strings and Continuo, Vol. 3

Schubert: The Late String Quartets & String Quintet (3 CD's)

Koyaanisqatsi (Soundtrack from the Motion Picture)


Question: SELECT SUM(Height), MIN(People_ID), MIN(Nationality), MAX(Name), COUNT(Birth_Date) FROM people WHERE Birth_Date = "May 26, 1986" UNION ALL SELECT SUM(Height), MIN(People_ID), MIN(Nationality), MAX(Name), COUNT(Birth_Date) FROM people WHERE "Height" != 207.0


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 >= 5


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 < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7


Question: SELECT Earnings, Money_Rank, Best_Finish FROM poker_player WHERE "Best_Finish" >= 2.0 AND "Money_Rank" < 58.0 OR "Earnings" <> 189233.0 OR "Poker_Player_ID" >= 4 OR "Final_Table_Made" < 19.0 UNION ALL SELECT Earnings, Money_Rank, Best_Finish FROM poker_player WHERE "Money_Rank" >= 166.0 AND "Poker_Player_ID" != 4 OR "Earnings" <> 596462.0 AND "People_ID" <= 6


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 < 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 >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10


Question: SELECT Birth_Date FROM people WHERE "People_ID" != 2 OR Nationality <> "Russia" OR Name != "Roman Bragin" OR "Height" > 205.0 OR Birth_Date != "February 8, 1981" UNION SELECT Birth_Date FROM people WHERE Nationality <> "Russia" OR Name = "Teodor Salparov" OR "People_ID" <> 5 OR Birth_Date <> "August 8, 1986"


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 T1.City_Area, T2.Store_ID FROM district as T1 JOIN store_district as T2 ON T1.District_ID == T2.District_ID GROUP BY Store_ID HAVING Store_ID > 1 AND City_Population = 134936.0 OR Headquartered_City <> "Khanewal City" AND District_name <> "Khanewal District"


Question: SELECT Name FROM company WHERE "Profits_in_Billion" >= 20.6 OR "Sales_in_Billion" = 221.9 AND Headquarters <> "USA" AND Name <> "Wells Fargo" UNION SELECT Name FROM people WHERE "Age" >= 27


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 != 10


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 > 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 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 >= 1


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 != 7


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 T1.Aircraft_ID, AVG(T2.Airport_ID) FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID


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 <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7


Question: SELECT name, Group_Equity_Shareholding, Incorporated_in, Principal_activities, id FROM operate_company WHERE Principal_activities <> "Laundry" OR Incorporated_in = "Hong Kong" OR "Group_Equity_Shareholding" > 18.77 OR Type = "Subsidiary" AND name <> "Cathay Pacific Cargo" AND "id" < 1 UNION ALL SELECT name, Group_Equity_Shareholding, Incorporated_in, Principal_activities, id FROM operate_company WHERE Principal_activities = "Cargo" OR "id" = 1 OR Incorporated_in != "Taiwan" AND "Group_Equity_Shareholding" = 40.0

Cathay Pacific Catering Services (HK) Limited


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 = 10


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 < 9 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 <= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9


Question: SELECT MAX(date_on_market), MAX(property_type_code), other_property_details, COUNT(hse_feature_1), oth_feature_2, MAX(hse_feature_2), agreed_selling_price, apt_feature_1, MIN(oth_feature_3), SUM(property_name), MIN(date_sold), fld_feature_1, MIN(vendor_requested_price), MIN(fld_feature_2), MAX(apt_feature_3), COUNT(shp_feature_3), MIN(buyer_offered_price), property_id, AVG(room_count), property_address, oth_feature_1, COUNT(hse_feature_3), MAX(shp_feature_2), apt_feature_2, shp_feature_1 FROM Properties WHERE hse_feature_2 = "None" UNION ALL SELECT MAX(date_on_market), MAX(property_type_code), other_property_details, COUNT(hse_feature_1), oth_feature_2, MAX(hse_feature_2), agreed_selling_price, apt_feature_1, MIN(oth_feature_3), SUM(property_name), MIN(date_sold), fld_feature_1, MIN(vendor_requested_price), MIN(fld_feature_2), MAX(apt_feature_3), COUNT(shp_feature_3), MIN(buyer_offered_price), property_id, AVG(room_count), property_address, oth_feature_1, COUNT(hse_feature_3), MAX(shp_feature_2), apt_feature_2, shp_feature_1 FROM Properties WHERE hse_feature_1 <> "None" AND fld_feature_2 <> "None" OR shp_feature_3 != "None" AND date_on_market = "1978-05-15 10:53:37" OR "agreed_selling_price" != 2794972.2495 AND other_property_details <> "None" OR fld_feature_1 != "None" AND "property_id" != 1 AND property_type_code <> "Apartment" OR hse_feature_2 <> "None" AND property_address <> "986 Hagenes Drives Draketon, UT 83411-3393" AND apt_feature_3 <> "None" AND shp_feature_1 <> "None" AND "vendor_requested_price" = 77172926.3


Question: SELECT Writer, Book_ID FROM book WHERE "Book_ID" >= 4 OR Writer <> "Christopher Moeller" AND "Issues" >= 4.0 OR Title <> "Bloody Mary" UNION SELECT Writer, Book_ID FROM book WHERE "Book_ID" > 9 OR Title = "BrainBanx"


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 >= 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 != 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 <= 6 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 <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7


Question: SELECT AVG(head_ID) FROM head WHERE born_state = "Alabama" AND name != "Dudley Hart" UNION ALL SELECT AVG(head_ID) FROM management WHERE "head_ID" >= 5 AND temporary_acting = "Yes"


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 < 7


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 Coach_ID FROM coach WHERE Coach_name <> "Robert Chen" OR Gender != "F" OR "Rank" >= 5 INTERSECT SELECT Coach_ID FROM player_coach WHERE "Coach_ID" <> 3 AND "Starting_year" != 2013 OR "Player_ID" > 6


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 Model FROM model_list WHERE Model <> "cadillac" EXCEPT SELECT Model FROM model_list WHERE "ModelId" != 23 OR Model = "chevrolet"


Question: SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code != "BK" UNION ALL SELECT Template_Type_Code FROM Templates WHERE Template_Type_Code = "CV" OR "Version_Number" <> 5


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 > 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 < 6 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 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3


Question: SELECT ClubDesc, ClubID FROM Club WHERE ClubDesc <> "Refurbish computers; teach kids and adults about computer basics." AND ClubLocation = "AKW" INTERSECT SELECT ClubDesc, ClubID FROM Club WHERE ClubDesc != "Refurbish computers; teach kids and adults about computer basics." AND "ClubID" >= 3


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 <= 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 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 != 1 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 > 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10


Question: SELECT MIN(T1.i_id), T2.i_id FROM item as T1 JOIN review as T2 ON T1.i_id = T2.i_id WHERE SUM(a_id) > 3 OR AVG(u_id) = 1 OR title = "blue hoodie" OR SUM(rank) > 6


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 > 4 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 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10


Question: SELECT COUNT(lesson_date) FROM Lessons WHERE "staff_id" <= 8 AND lesson_time != "6" AND "price" < 306.0 AND "lesson_id" <> 9 OR "customer_id" > 11 AND lesson_status_code <> "Cancelled" OR "vehicle_id" <= 1 OR lesson_date != "2018-03-07 16:12:36" UNION ALL SELECT COUNT(lesson_date) FROM Lessons WHERE lesson_time != "2" OR "staff_id" > 14 OR "lesson_id" >= 1 OR lesson_date != "2018-03-21 06:48:45"


Question: SELECT MAX(People_ID) FROM people WHERE "People_ID" < 1 INTERSECT SELECT MAX(People_ID) FROM people WHERE Name <> "Yevgeni Sivozhelez" AND "People_ID" >= 4 AND "Height" > 207.0 AND Nationality <> "Russia"


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 T1.Aircraft_ID, COUNT(T2.Airport_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 >= 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 != 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 != 10 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 > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2


Question: SELECT MAX(Branch_ID), Member_ID, Register_Year FROM membership_register_branch WHERE Register_Year != "2017" INTERSECT SELECT MAX(Branch_ID), Member_ID, Register_Year FROM membership_register_branch WHERE Register_Year = "2016" OR "Member_ID" != 7 AND Branch_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 <> 9


Question: SELECT Year_awarded, SUM(Bonus), AVG(Employee_ID) FROM evaluation WHERE Employee_ID != "2" OR Year_awarded <> "2015" UNION SELECT Year_awarded, SUM(Bonus), AVG(Employee_ID) FROM evaluation WHERE Employee_ID != "10" AND "Bonus" < 3200.0


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 document_id FROM Document_Drafts WHERE "draft_number" < 0 AND draft_details <> "k" UNION ALL SELECT document_id FROM Documents WHERE shipping_agent_code != "US" AND "document_id" >= 1 OR document_type_code <> "Paper" OR receipt_date <> "1976-09-15 19:24:17"


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 >= 2


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 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 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 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 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 name FROM airport WHERE City <> "Billund" AND ICAO != "EBBR" OR IATA <> "BLL" AND name != "Billund Airport" UNION ALL SELECT name FROM operate_company WHERE name <> "CLS Catering Services Limited" AND Principal_activities = "Ground handling" OR Type <> "Subsidiary" OR Incorporated_in <> "Vietnam"

Cathay Pacific Catering Services (HK) Limited


Question: SELECT document_status_code FROM Documents WHERE other_details = "z" OR document_status_code <> "done" OR document_type_code != "Paper" OR "document_id" >= 23 OR receipt_number = "61" OR shipping_agent_code != "UP" UNION ALL SELECT document_status_code FROM Ref_Document_Status WHERE document_status_description = "mailed"


Question: SELECT Maker FROM car_makers WHERE Country != "1" AND FullName = "Chrysler" UNION ALL SELECT Maker FROM model_list WHERE "Maker" != 13 OR "ModelId" >= 10


Question: SELECT SUM(School_id) FROM School WHERE County <> "71 St. Joseph" AND Location = "Bourbon" OR IHSAA_Class = "AA" AND School_id <> "2" AND "Enrollment" >= 605 AND School_name != "Glenn" OR IHSAA_Football_Class <> "AAA" EXCEPT SELECT SUM(School_id) FROM endowment WHERE "amount" <> 8.33


Question: SELECT document_id FROM Documents WHERE other_details = "y" OR receipt_number = "114" OR receipt_date = "2008-04-21 20:42:25" OR document_status_code = "working" AND shipping_agent_code = "US" AND document_type_code <> "Hard Drive" OR "document_id" != 14 EXCEPT SELECT document_id FROM Draft_Copies WHERE "document_id" = 4 OR "draft_number" <= 12


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 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 <> 7


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 <= 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 SUM(IHSAA_Football_Class), COUNT(School_id), AVG(Location), SUM(School_name) FROM School WHERE IHSAA_Class = "AA" OR IHSAA_Football_Class != "A" AND School_id <> "4" UNION SELECT SUM(IHSAA_Football_Class), COUNT(School_id), AVG(Location), SUM(School_name) FROM School WHERE School_name = "Jimtown" AND Location = "New Carlisle"


Question: SELECT MAX(Store_ID) FROM store_district WHERE "District_ID" <> 15 AND "Store_ID" <> 4 EXCEPT SELECT MAX(Store_ID) FROM store_product WHERE "Store_ID" > 5 AND "Product_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 <= 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 = 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 < 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 >= 7


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 >= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9


Question: SELECT document_type_code FROM Documents WHERE document_type_code != "Paper" INTERSECT SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description <> "b"


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 SUM(Branch_ID), MIN(Register_Year), Member_ID FROM membership_register_branch WHERE "Member_ID" >= 7 OR Branch_ID <> "5" OR Register_Year != "2016" UNION ALL SELECT SUM(Branch_ID), MIN(Register_Year), Member_ID FROM membership_register_branch WHERE Register_Year = "2017" OR Branch_ID = "2" AND "Member_ID" != 3


Question: SELECT COUNT(Name) FROM employee WHERE Name != "Tim Payne" AND "Age" < 40 AND "Employee_ID" <> 2 EXCEPT SELECT COUNT(Name) FROM shop WHERE Location = "Jakobstad" AND Name != "KuPS" OR Manager_name != "Olli Huttunen" OR District <> "Arto Tolsa Areena"


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 <> 10


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 >= 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 >= 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 >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9


Question: SELECT Template_ID FROM Documents WHERE Document_Description <> "y" OR Other_Details = "None" INTERSECT SELECT Template_ID FROM Templates WHERE "Version_Number" >= 2


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 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 != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10


Question: SELECT COUNT(Rank), AVG(Club_ID), Gender, COUNT(Coach_name), MIN(Coach_ID) FROM coach WHERE Coach_name = "Robert Chen" AND "Coach_ID" >= 3 OR "Rank" <> 4 AND Gender != "M" AND "Club_ID" <= 3 EXCEPT SELECT COUNT(Rank), AVG(Club_ID), Gender, COUNT(Coach_name), MIN(Coach_ID) FROM coach WHERE Gender <> "F" AND Coach_name = "Robert Chen" OR "Coach_ID" <= 5 AND "Club_ID" <> 3


Question: SELECT Store_ID, MIN(District_ID) FROM store_district WHERE "Store_ID" <> 5 OR "District_ID" != 15 UNION SELECT Store_ID, MIN(District_ID) FROM store_district WHERE "Store_ID" > 2 AND "District_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 >= 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 >= 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 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 = 2 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 < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9


Question: SELECT customer_id FROM Customer_Payments WHERE "amount_payment" >= 6782.84 AND payment_method_code <> "Direct Debit" INTERSECT SELECT customer_id FROM Lessons WHERE "price" <> 352.0 OR lesson_time = "3" OR "staff_id" <> 11 OR lesson_status_code <> "Completed"


Question: SELECT Date_Effective_From, Template_ID, Template_Details, Template_Type_Code, Version_Number, Date_Effective_To FROM Templates WHERE "Version_Number" < 6 AND Template_Details = "" UNION ALL SELECT Date_Effective_From, Template_ID, Template_Details, Template_Type_Code, Version_Number, Date_Effective_To FROM Templates WHERE "Template_ID" = 19 AND "Version_Number" < 7 AND Date_Effective_To <> "2008-01-05 14:19:28" OR Template_Details = ""


Question: SELECT Member_ID FROM member WHERE "Level" >= 6 OR "Member_ID" = 10 AND Hometown != "Fort Campbell, Kentucky" EXCEPT SELECT Member_ID FROM membership_register_branch WHERE Branch_ID <> "1"


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 <= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1


Question: SELECT middle_name, staff_address_id, date_joined_staff FROM Staff WHERE date_left_staff <> "2018-03-04 17:13:53" AND middle_name = "Maiya" AND last_name != "Macejkovic" UNION SELECT middle_name, staff_address_id, date_joined_staff FROM Staff WHERE middle_name <> "Clarabelle" AND "staff_address_id" > 3 OR date_joined_staff = "2017-06-04 14:30:41" AND "staff_id" = 6 AND last_name = "Durgan" OR date_left_staff != "2018-03-08 05:16:29" OR first_name != "Eulalia" AND date_of_birth = "2003-01-16 06:29:11" OR nickname = "sbrown"


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 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 date_of_birth, MIN(last_name), nickname, date_left_staff, AVG(first_name), date_joined_staff FROM Staff WHERE "staff_id" != 10 AND first_name <> "Margie" AND "staff_address_id" < 1 UNION ALL SELECT date_of_birth, MIN(last_name), nickname, date_left_staff, AVG(first_name), date_joined_staff FROM Staff WHERE nickname <> "lsenger" OR date_joined_staff <> "2016-05-01 02:22:45" AND date_of_birth = "1996-03-09 08:19:49" AND last_name != "Hermann" OR first_name <> "Camylle" AND "staff_address_id" < 5 OR date_left_staff = "2018-03-24 10:11:08" OR "staff_id" < 7


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 SUM(T1.Employee_ID), T2.Bonus FROM employee as T1 JOIN evaluation as T2 ON T1.Employee_ID = T2.Employee_ID WHERE "Age" <> 28


Question: SELECT contestant_number FROM CONTESTANTS WHERE contestant_name = "Allie Rogalski" OR "contestant_number" > 1 UNION ALL SELECT contestant_number FROM VOTES WHERE "vote_id" < 3 OR created != "2018-03-09 19:03:36" OR "phone_number" < 6209222712 AND state <> "NY" AND "contestant_number" = 5


Question: SELECT COUNT(property_id), AVG(hse_feature_3), SUM(fld_feature_2), property_address, fld_feature_3, agreed_selling_price FROM Properties WHERE shp_feature_2 <> "None" OR property_address <> "092 Paucek Highway Apt. 772 East Erika, IA 61358" AND hse_feature_2 <> "None" OR shp_feature_1 <> "None" OR fld_feature_3 = "None" UNION ALL SELECT COUNT(property_id), AVG(hse_feature_3), SUM(fld_feature_2), property_address, fld_feature_3, agreed_selling_price FROM Properties WHERE "vendor_requested_price" <= 2573.0 AND apt_feature_2 = "est" OR apt_feature_1 != "consequatur" AND property_address != "084 Lakin Vista Apt. 394 Fishertown, MA 16876" OR property_type_code <> "Other" OR oth_feature_2 <> "None" AND date_on_market != "1978-05-15 10:53:37" OR property_name = "riverside" OR fld_feature_3 <> "None" AND apt_feature_3 <> "None" OR "property_id" != 4 OR date_sold != "1995-01-31 11:18:42" AND hse_feature_1 <> "None" OR fld_feature_2 = "None" AND fld_feature_1 != "None"

4745 Emerson Stravenue Suite 829
South Garret, IN 16772-5682


Question: SELECT School_ID FROM school WHERE Type <> "Private Catholic" AND "School_ID" >= 6 UNION ALL SELECT School_ID FROM school_bus WHERE "School_ID" <> 1 AND "Driver_ID" <= 7 OR "Years_Working" > 3 AND If_full_time = "T"


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 < 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3


Question: SELECT SUM(Coach_ID) FROM coach WHERE "Rank" != 1 OR Coach_name != "Joe Fabbri" OR "Coach_ID" = 4 EXCEPT SELECT SUM(Coach_ID) FROM player_coach WHERE "Starting_year" <> 2010 AND "Coach_ID" <= 1 AND "Player_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 >= 7


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 Lieutenant_Governor, Comptroller, Year, Attorney_General, Party_ID, Governor FROM party WHERE "Year" >= 2006.0 OR Attorney_General <> "Eliot Spitzer" AND "Party_ID" >= 6 OR Lieutenant_Governor != "Jonathan Reiter" OR Governor = "Tom Golisano" AND US_Senate = "Charles Schumer" OR Comptroller = "Alan Hevesi" EXCEPT SELECT Lieutenant_Governor, Comptroller, Year, Attorney_General, Party_ID, Governor FROM party WHERE Comptroller != "Alan Hevesi" OR US_Senate = "(no election)"

David Paterson
Alan Hevesi
2006
Andrew Cuomo
5
Eliot Spitzer

David Paterson
Alan Hevesi
2006
Andrew Cuomo
7
Eliot Spitzer

David Paterson
Alan Hevesi
2006
Jeanine Pirro
6
Eliot Spitzer


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 > 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 >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10


Question: SELECT Register_Year FROM membership_register_branch WHERE Register_Year != "2016" AND "Member_ID" >= 7 OR Branch_ID <> "8" UNION SELECT Register_Year FROM membership_register_branch WHERE Register_Year = "2017" AND Branch_ID <> "1" AND "Member_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 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 <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3


Question: SELECT Driver_ID FROM driver WHERE "Age" <> 46 UNION ALL SELECT Driver_ID FROM school_bus WHERE "School_ID" >= 3 AND "Years_Working" != 6 AND "Driver_ID" != 3


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 certificate WHERE "eid" != 550156548 OR "aid" < 2 UNION ALL SELECT aid FROM flight WHERE arrival_date = "04/12/2005 03:55" AND "price" <= 425.98


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 < 9 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 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 > 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 <> 9 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 >= 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 != 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 < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3


Question: SELECT Club_ID FROM club WHERE Club_name = "BK Häcken" AND "Club_ID" < 3 AND "Start_year" = 2009 OR Region != "USA" UNION SELECT Club_ID FROM match_result WHERE "Big_Silver" = 14 AND "Bronze" <= 7 AND "Club_ID" <> 4 AND "Small_Silver" < 10 AND "Gold" <= 20


Question: SELECT MIN(ClubLocation), ClubID FROM Club WHERE ClubLocation = "HHH" AND ClubName = "Hopkins Student Enterprises" OR ClubDesc != "A competitive tennis club." UNION ALL SELECT MIN(ClubLocation), ClubID FROM Club WHERE ClubDesc <> "Play pen and paper games on campus."


Question: SELECT customer_id FROM Customers WHERE date_became_customer = "2016-09-04 23:08:20" AND date_of_birth = "1998-12-15 13:24:40" AND last_name <> "Ortiz" AND customer_status_code = "Bad Customer" AND "customer_id" <> 7 AND "amount_outstanding" >= 9443.0 OR email_address <> "nichole59@example.com" OR cell_mobile_phone_number != "739-333-6966x187" OR phone_number <> "192-395-2411" OR "customer_address_id" <= 10 UNION ALL SELECT customer_id FROM Lessons WHERE lesson_date != "2018-03-04 06:55:46"


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 <= 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 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 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 <= 6 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 < 4 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 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10


Question: SELECT Name, Creation, Ranking, Num_Employees, Budget_in_Billions FROM department WHERE Name != "Commerce" AND "Budget_in_Billions" >= 21.5 AND "Ranking" <> 12 OR "Department_ID" > 2 UNION SELECT Name, Creation, Ranking, Num_Employees, Budget_in_Billions FROM department WHERE "Budget_in_Billions" > 439.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 > 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 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 != 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 >= 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 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 < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3


Question: SELECT Driver_ID FROM driver WHERE Name <> "Dan Carter" AND "Age" <> 52 AND "Driver_ID" >= 5 OR Home_city <> "Hartford" OR Party <> "Rep" UNION SELECT Driver_ID FROM school_bus WHERE If_full_time <> "T" AND "Driver_ID" <> 7 AND "School_ID" > 4 OR "Years_Working" = 2


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 Book_ID, Title FROM book WHERE "Book_ID" < 5 EXCEPT SELECT Book_ID, Title FROM book WHERE "Issues" >= 6.0 AND Writer = "Howard Chaykin" OR "Book_ID" < 3 AND Title <> "BrainBanx"


Question: SELECT Maker FROM car_makers WHERE Country != "7" OR Maker <> "volkswagen" OR FullName <> "Chrysler" AND "Id" < 22 UNION SELECT Maker FROM model_list WHERE "ModelId" != 23 OR Model != "chrysler"


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 ClubID FROM Member_of_club WHERE "StuID" >= 1008 AND "ClubID" <> 1 AND Position <> "Vice-President" EXCEPT SELECT ClubID FROM Member_of_club WHERE Position = "President" OR "ClubID" <= 1


Question: SELECT Store_ID FROM store WHERE Type != "City Mall" OR "Number_of_product_category" <= 17811.0 UNION ALL SELECT Store_ID FROM store_product WHERE "Store_ID" <> 1 OR "Product_ID" < 2


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 != 11 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 <> 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 < 2 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 <> 7 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 != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10


Question: SELECT Document_Description, Template_ID, Document_Name, Document_ID FROM Documents WHERE "Template_ID" <> 14 AND "Document_ID" <> 16514113 UNION ALL SELECT Document_Description, Template_ID, Document_Name, Document_ID FROM Documents WHERE Document_Description <> "f" AND Document_Name <> "Robbin CV" AND "Document_ID" <= 3540024 OR Other_Details != "None" AND "Template_ID" > 14


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 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 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 != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4


Question: SELECT SUM(Year), AVG(Attorney_General), Governor, Party_ID, Lieutenant_Governor, AVG(US_Senate), MAX(Party), MIN(Comptroller) FROM party WHERE "Party_ID" >= 5 OR "Year" >= 2002.0 OR Comptroller = "Alan Hevesi" AND US_Senate != "Hillary Rodham Clinton" EXCEPT SELECT SUM(Year), AVG(Attorney_General), Governor, Party_ID, Lieutenant_Governor, AVG(US_Senate), MAX(Party), MIN(Comptroller) FROM party WHERE Governor != "Betsy McCaughey Ross" AND US_Senate = "Hillary Rodham Clinton" AND "Party_ID" != 5 OR Attorney_General = "Eliot Spitzer" OR Party = "Working Families"


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 < 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 <= 5 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 <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5


Question: SELECT document_id FROM Document_Drafts WHERE "draft_number" >= 1 UNION SELECT document_id FROM Documents_Mailed WHERE mailing_date <> "1993-05-24 22:13:48" AND "mailed_to_address_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 = 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 = 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 < 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 < 5


Question: SELECT Type, COUNT(School_ID), Location, Grade, School FROM school WHERE Grade <> "Kindergarten" OR "School_ID" > 1 AND Type != "Public" EXCEPT SELECT Type, COUNT(School_ID), Location, Grade, School FROM school WHERE Grade = "Kindergarten"

Type COUNT(School_ID) Location Grade School

Private Catholic
6
Jakarta, Indonesia
1st-3rd grade
St. Francis Assisi


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 = 10 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 <= 9 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 <= 5 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 != 2 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 >= 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 != 9 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 < 3


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 < 7


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 < 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 < 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 <= 2


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 >= 4


Question: SELECT id FROM albums WHERE "artist_id" != 258 AND title = "The World of Classical Favourites" OR "id" != 83 UNION ALL SELECT id FROM genres WHERE name != "Pop"


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 Party FROM election WHERE Counties_Represented = "13" OR "District" > 4 AND "Party" = 2 OR Delegate != "DeBoy, Steven J. Sr. Steven J. DeBoy, Sr." AND "Election_ID" < 8 OR "First_Elected" > 2002.0 AND Committee <> "Appropriations" EXCEPT SELECT Party FROM party WHERE Comptroller = "Alan Hevesi" OR "Party_ID" < 3 AND US_Senate = "Hillary Rodham Clinton" AND Party <> "Independence" OR Attorney_General <> "Eliot Spitzer" AND Governor = "Carl McCall" AND "Year" > 1998.0 OR Lieutenant_Governor = "David Paterson"


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 District_ID FROM district WHERE "District_ID" = 7 AND "City_Area" != 22.0 OR Headquartered_City != "Chakwal City" UNION SELECT District_ID FROM store_district WHERE "District_ID" <> 15


Question: SELECT MAX(T1.Driver_ID), T2.Years_Working FROM driver as T1 JOIN school_bus as T2 ON T1.Driver_ID = T2.Driver_ID WHERE Home_city <> "Manchester" OR "School_ID" = 1 OR "Age" > 46 AND "Years_Working" > 8 OR Party = "Dem" AND Name = "Douglas McCrory" OR If_full_time = "T"


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 document_status_code FROM Documents WHERE receipt_date != "1976-09-15 19:24:17" AND document_status_code != "working" UNION SELECT document_status_code FROM Ref_Document_Status WHERE document_status_code != "done"


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 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 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 < 4


Question: SELECT aid FROM certificate WHERE "aid" = 14 EXCEPT SELECT aid FROM flight WHERE origin = "Los Angeles" AND "flno" <= 346 AND "distance" < 7487 AND departure_date <> "04/12/2005 09:00" OR "price" != 278.56 AND destination <> "Honolulu" AND "aid" < 10 AND arrival_date != "04/12/2005 08:45"


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 >= 2


Question: SELECT Employee_ID FROM employee WHERE City = "Wasps" UNION SELECT Employee_ID FROM evaluation WHERE Employee_ID <> "2" OR Year_awarded <> "2018" AND "Bonus" <> 2900.0


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 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 >= 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 < 5


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 >= 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 >= 9


Question: SELECT Continent FROM continents WHERE Continent = "europe" UNION SELECT Continent FROM continents WHERE "ContId" > 3 AND Continent <> "europe"


Question: SELECT MIN(Branch_ID) FROM branch WHERE Name <> "Popert" OR membership_amount = "6" AND City != "Oxford" OR Address_road != "Concord Road" AND Open_year <> "2015" AND "Branch_ID" <= 2 EXCEPT SELECT MIN(Branch_ID) FROM purchase WHERE Branch_ID = "3" OR Year != "2018" AND "Total_pounds" = 988.09


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 > 3


Question: SELECT Shop_ID FROM hiring WHERE Is_full_time = "F" AND "Shop_ID" >= 8 OR Start_from <> "2013" UNION SELECT Shop_ID FROM shop WHERE "Number_products" < 10770 AND Location = "Kuopio" OR Manager_name = "Antti Muurinen"


Question: SELECT SUM(Aircraft_ID) FROM aircraft WHERE Aircraft <> "Robinson R-22" OR Max_Gross_Weight <> "3,200 lb (1,451 kg)" OR Max_disk_Loading = "2.6 lb/ft² (14 kg/m²)" AND Total_disk_area != "5,655 ft² (526 m²)" AND Description <> "Turboshaft utility helicopter" AND "Aircraft_ID" <= 5 UNION SELECT SUM(Aircraft_ID) FROM airport_aircraft WHERE "Airport_ID" > 1 OR "ID" <= 4 AND "Aircraft_ID" < 3


Question: SELECT MIN(School_ID) FROM school WHERE School = "St. Francis Assisi" AND Grade = "Kindergarten" AND Type = "Private" AND Location <> "Los Angeles, California" AND "School_ID" = 5 EXCEPT SELECT MIN(School_ID) FROM school_bus WHERE "Driver_ID" <> 4


Question: SELECT SUM(Budget_invested_percent), School_id, Budgeted, Year, SUM(total_budget_percent_invested), total_budget_percent_budgeted FROM budget WHERE "total_budget_percent_budgeted" = 1.3 AND Budget_invested_percent = "146.9" OR "Year" <= 2002 OR "Invested" <= 95542 UNION ALL SELECT SUM(Budget_invested_percent), School_id, Budgeted, Year, SUM(total_budget_percent_invested), total_budget_percent_budgeted FROM budget WHERE "Year" > 2003 OR "total_budget_percent_invested" < 2.0 OR Budget_invested_percent = "127.6" AND "School_id" <= 5


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 > 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 > 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 <= 7


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 <= 10


Question: SELECT T1.Max_Gross_Weight, T2.Aircraft_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 <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5


Question: SELECT i_id FROM item WHERE "i_id" <> 7 UNION ALL SELECT i_id FROM review WHERE "u_id" != 2 AND "rating" <> 10 AND "rank" <= 3


Question: SELECT MAX(vehicle_id) FROM Vehicles WHERE vehicle_details != "Car" OR "vehicle_id" >= 1 UNION ALL SELECT MAX(vehicle_id) FROM Vehicles WHERE "vehicle_id" != 2


Question: SELECT PetID FROM Has_Pet WHERE "PetID" <> 2003 AND "StuID" < 1002 UNION SELECT PetID FROM Pets WHERE "weight" < 12.0 OR "PetID" >= 2001


Question: SELECT document_type_code, COUNT(document_type_description) FROM Ref_Document_Types WHERE document_type_description != "f" UNION ALL SELECT document_type_code, COUNT(document_type_description) FROM Ref_Document_Types WHERE document_type_code != "Hard Drive" OR document_type_description <> "f"


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 <> 2


Question: SELECT document_id, AVG(draft_details), draft_number FROM Document_Drafts WHERE "draft_number" <> 17 OR draft_details <> "m" AND "document_id" != 13 UNION ALL SELECT document_id, AVG(draft_details), draft_number FROM Document_Drafts WHERE "document_id" <= 7 AND "draft_number" = 17 OR draft_details != "k"


Question: SELECT receipt_number FROM Documents WHERE shipping_agent_code != "AL" OR document_status_code <> "working" OR receipt_date <> "1982-09-27 14:52:15" AND other_details <> "x" UNION SELECT receipt_number FROM Documents WHERE other_details != "u" AND "document_id" <> 1 AND shipping_agent_code <> "US" OR receipt_date <> "1976-09-15 19:24:17" OR receipt_number != "79"


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 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 < 2


Question: SELECT SUM(Store_ID) FROM store WHERE "Number_of_product_category" < 990.0 AND "Area_size" <= 7.23 UNION ALL SELECT SUM(Store_ID) FROM store_district WHERE "District_ID" = 11 AND "Store_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 != 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 = 10


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 Open_year, Branch_ID, City, Name, Address_road FROM branch WHERE "Branch_ID" = 5 UNION SELECT Open_year, Branch_ID, City, Name, Address_road FROM branch WHERE Address_road != "Glebe Street" OR City = "London" AND Open_year != "2009" OR "Branch_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 > 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 > 7


Question: SELECT MAX(T1.Club_ID), T2.Gender FROM club as T1 JOIN coach as T2 ON T1.Club_ID = T2.Club_ID WHERE Gender = "M" OR Club_name <> "Gefle IF" AND Coach_name = "James Wong" OR "Start_year" <= 2011 OR Region = "UK" OR "Rank" <= 1 AND "Coach_ID" >= 4 GROUP BY Start_year HAVING Club_name <> "Halmstads BK" OR Coach_name = "Joe Fabbri" AND Start_year < 2009 OR Region = "USA" OR Rank < 3 OR Coach_ID <= 2 OR Gender = "M"


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 = 11 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 <> 7


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 AVG(Nationality) FROM people WHERE "Height" < 194.0 OR Birth_Date = "August 8, 1986" OR Name != "Aleksey Ostapenko" AND "People_ID" < 4 OR Nationality = "Russia" INTERSECT SELECT AVG(Nationality) FROM people WHERE Birth_Date = "August 8, 1986" OR Nationality <> "Bulgaria" OR Name <> "Semen Poltavskiy"


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 = 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 > 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 <= 2 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 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 <> 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 = 7


Question: SELECT SUM(temporary_acting), head_ID, COUNT(department_ID) FROM management WHERE "department_ID" > 7 OR "head_ID" <> 5 OR temporary_acting = "No" UNION ALL SELECT SUM(temporary_acting), head_ID, COUNT(department_ID) FROM management WHERE "department_ID" <= 2 OR temporary_acting <> "Yes" OR "head_ID" != 3


Question: SELECT id FROM airport WHERE ICAO <> "BIAR" AND City <> "Bergen" OR name = "Akureyri Airport" AND Country <> "United States" AND "id" = 6 AND IATA != "BLL" EXCEPT SELECT id FROM operate_company WHERE name != "VN/CX Catering Services Limited" AND "Group_Equity_Shareholding" < 45.0 AND Principal_activities = "Cargo airline" OR Type != "Subsidiary"


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 != 10


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 > 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 <> 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 >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3


Question: SELECT Name, SUM(Driver_ID) FROM driver WHERE "Age" != 30 OR "Driver_ID" < 10 OR Home_city <> "Hartford" UNION ALL SELECT Name, SUM(Driver_ID) FROM driver WHERE "Driver_ID" > 12 AND Name != "Timothy Ackert" OR "Age" >= 38 OR Party != "Dem"


Question: SELECT Employee_ID, Name FROM employee WHERE "Age" > 29 UNION ALL SELECT Employee_ID, Name FROM employee WHERE Name != "Andrew Sheridan"


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 <= 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 <= 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 <> 1


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 != 7