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 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 ClubID, AVG(ClubName), ClubDesc FROM Club WHERE ClubLocation = "AKW" OR "ClubID" > 2 UNION SELECT ClubID, AVG(ClubName), ClubDesc FROM Club WHERE ClubDesc != "Play pen and paper games on campus." OR ClubLocation != "AKW"

Refurbish computers; teach kids and adults about computer basics.


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


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


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


Question: SELECT AVG(Name) FROM branch WHERE Open_year <> "2009" OR Address_road <> "Concord Road" AND City <> "Oxford" AND membership_amount <> "6" AND Name != "Zytogorski" UNION ALL SELECT AVG(Name) FROM member WHERE Card_Number != "LCB7" AND "Member_ID" <> 2


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


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


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


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


Question: SELECT Ranking, SUM(Department_ID) FROM department WHERE "Budget_in_Billions" < 77.6 OR "Ranking" != 8 AND Creation != "1789" OR "Num_Employees" != 109832.0 OR "Department_ID" > 1 GROUP BY Ranking HAVING SUM(Department_ID) > 6 UNION SELECT Ranking, SUM(Department_ID) FROM department WHERE Creation <> "1979" GROUP BY Ranking HAVING SUM(Department_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 < 9


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


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


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


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


Question: SELECT address_details, address_id FROM Addresses WHERE "address_id" <= 3 AND address_details <> "IE" EXCEPT SELECT address_details, address_id FROM Addresses WHERE address_details != "MX" OR "address_id" = 0


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


Question: SELECT property_id, COUNT(property_feature_description), feature_id FROM Other_Property_Features WHERE "feature_id" < 4 EXCEPT SELECT property_id, COUNT(property_feature_description), feature_id FROM Other_Property_Features WHERE "feature_id" <> 3 AND property_feature_description != "hic"


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


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 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 >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10


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


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


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 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 != 1


Question: SELECT Document_ID, Other_Details FROM Documents WHERE Document_Name <> "A history of Arts" OR Other_Details != "None" AND Document_Description != "b" OR "Template_ID" <> 10 EXCEPT SELECT Document_ID, Other_Details FROM Paragraphs WHERE Paragraph_Text <> "Brazil" AND "Paragraph_ID" > 571212310 AND "Document_ID" < 2394


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


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 AVG(Branch_ID) FROM branch WHERE Address_road <> "Valleys Place" UNION ALL SELECT AVG(Branch_ID) FROM purchase WHERE Branch_ID != "6" AND "Member_ID" < 4


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


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


Question: SELECT customer_id FROM Customer_Payments WHERE "customer_id" = 3 INTERSECT SELECT customer_id FROM Lessons WHERE "staff_id" <> 8 AND "customer_id" >= 13 OR "lesson_id" > 14 AND lesson_status_code = "Cancelled"


Question: SELECT Branch_ID FROM branch WHERE membership_amount = "56" AND City = "London" OR "Branch_ID" = 3 AND Open_year != "2015" UNION ALL SELECT Branch_ID FROM purchase WHERE "Member_ID" > 2 AND "Total_pounds" <> 430.29 OR Branch_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 = 1


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


Question: SELECT other_details FROM Documents WHERE receipt_number = "80" OR other_details <> "u" AND document_status_code <> "overdue" AND shipping_agent_code <> "SH" AND receipt_date = "1973-11-05 21:48:53" EXCEPT SELECT other_details FROM Employees WHERE employee_name <> "Kenyon" OR "employee_id" > 7 AND other_details != "f" OR role_code != "PR"


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


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


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


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


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


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 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 <= 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 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 > 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5


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


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


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 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 <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10


Question: SELECT SUM(T1.Freight_Metric_Tonnes), T2.ID FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID


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


Question: SELECT 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 property_id FROM Other_Property_Features WHERE "feature_id" != 3 UNION SELECT property_id FROM Properties WHERE apt_feature_1 = "aut" OR property_type_code <> "Other" OR apt_feature_3 <> "None" AND "room_count" = 5 OR apt_feature_2 <> "sit"


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


Question: SELECT id FROM flight WHERE "Altitude" <= 3650.0 OR "id" <> 8 OR Date <> "January 29, 1964" OR "airport_id" <> 4 OR "company_id" >= 11 OR Vehicle_Flight_number <> "M2-F1 #70" OR "Velocity" >= 240.0 OR Pilot != "Thompson" INTERSECT SELECT id FROM operate_company WHERE Type = "Subsidiary" AND Incorporated_in <> "Hong Kong" OR "id" != 10 OR name <> "Cathay Pacific Services Limited" AND Principal_activities = "Catering services" AND "Group_Equity_Shareholding" >= 100.0


Question: SELECT property_type_code FROM Ref_Property_Types WHERE property_type_code <> "Field" AND property_type_description <> "Other, to be determined." UNION SELECT property_type_code FROM Ref_Property_Types WHERE property_type_description <> "Apartment, Flat, Condo, etc." AND property_type_code != "Field"


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 > 11 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 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 Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 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 != 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 <= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10


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


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 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 >= 1


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 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 Id FROM car_makers WHERE Country <> "3" UNION ALL SELECT Id FROM cars_data WHERE "Year" = 1981


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


Question: SELECT property_id, feature_id FROM Other_Property_Features WHERE property_feature_description != "hic" EXCEPT SELECT property_id, feature_id FROM Other_Property_Features WHERE property_feature_description != "doloribus" AND "property_id" > 15


Question: SELECT MIN(Document_ID) FROM Documents WHERE Document_Name != "Learning French" OR "Template_ID" < 20 IN (SELECT MIN(Document_ID) FROM Documents WHERE Other_Details != "None")


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 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 < 6 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 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 != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7


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


Question: SELECT SUM(draft_number), document_id FROM Circulation_History WHERE "copy_number" <= 5 AND "draft_number" != 1 AND "document_id" < 20 EXCEPT SELECT SUM(draft_number), document_id FROM Document_Drafts WHERE "draft_number" > 9


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


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


Question: SELECT id FROM albums WHERE "artist_id" != 147 AND "id" <> 102 OR title <> "Heroes, Season 1" EXCEPT SELECT id FROM media_types WHERE name != "Protected AAC audio file"


Question: SELECT Store_ID, Product_ID FROM store_product WHERE "Product_ID" <> 1 AND "Store_ID" < 2 INTERSECT SELECT Store_ID, Product_ID FROM store_product WHERE "Store_ID" <> 5 AND "Product_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 != 7


Question: SELECT COUNT(CountryId) FROM countries WHERE CountryName = "new zealand" AND "Continent" < 4 EXCEPT SELECT COUNT(CountryId) FROM countries WHERE CountryName != "mexico" OR "CountryId" = 13


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


Question: SELECT aid FROM certificate WHERE "eid" = 573284895 OR "aid" > 5 UNION SELECT aid FROM flight WHERE departure_date != "04/12/2005 11:50"


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 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 Year, Total_pounds, Member_ID FROM purchase WHERE "Member_ID" <= 1 UNION SELECT Year, Total_pounds, Member_ID FROM purchase WHERE Branch_ID != "5"


Question: SELECT COUNT(document_id), draft_number FROM Circulation_History WHERE "draft_number" < 17 AND "document_id" >= 20 OR "employee_id" > 2 OR "copy_number" <> 10 EXCEPT SELECT COUNT(document_id), draft_number FROM Document_Drafts WHERE draft_details <> "a" OR "document_id" >= 7 OR "draft_number" = 9


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


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 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 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 < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4


Question: SELECT name FROM aircraft WHERE name <> "SAAB 340" OR "distance" >= 2128 AND "aid" < 10 UNION SELECT name FROM employee WHERE "salary" >= 54921 OR name <> "Lisa Walker" OR "eid" != 159542516


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 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 > 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 >= 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 >= 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 Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 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 >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10


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


Question: SELECT COUNT(Headquartered_City), District_ID FROM district WHERE Headquartered_City != "Dera Ghazi Khan City" OR District_name <> "Bhakkar District" OR "City_Area" > 25.0 GROUP BY District_ID HAVING COUNT(Headquartered_City) != 1 UNION SELECT COUNT(Headquartered_City), District_ID FROM district WHERE "District_ID" < 5 AND District_name <> "Faisalabad District" AND "City_Population" <= 365198.0 AND Headquartered_City = "Khanewal City" OR "City_Area" < 13.0 GROUP BY District_ID HAVING COUNT(Headquartered_City) >= 1


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 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 < 4


Question: SELECT AVG(Other_Details), SUM(Document_ID), AVG(Paragraph_ID), Paragraph_Text FROM Paragraphs WHERE Paragraph_Text <> "UK" AND "Paragraph_ID" != 946335436 OR Other_Details != "None" UNION SELECT AVG(Other_Details), SUM(Document_ID), AVG(Paragraph_ID), Paragraph_Text FROM Paragraphs WHERE Paragraph_Text = "Micronesia" AND "Paragraph_ID" != 765713812 OR Other_Details = "None" AND "Document_ID" >= 3830


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 Aircraft_ID FROM aircraft WHERE Max_Gross_Weight != "123,500 lb (56,000 kg)" AND Max_disk_Loading <> "2.6 lb/ft² (14 kg/m²)" EXCEPT SELECT Aircraft_ID FROM airport_aircraft WHERE "Airport_ID" <= 6 AND "ID" >= 1


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 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 < 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 eid FROM employee WHERE "salary" < 105743 OR "eid" = 574489456 OR name != "Chad Stewart" UNION SELECT eid FROM employee WHERE "salary" > 205187 OR "eid" = 269734834


Question: SELECT AVG(u_id) FROM useracct WHERE name = "Emily" OR "u_id" >= 4 UNION ALL SELECT AVG(u_id) FROM useracct WHERE "u_id" > 1


Question: SELECT Continent, CountryId FROM countries WHERE "CountryId" = 6 AND "Continent" != 4 AND CountryName != "france" INTERSECT SELECT Continent, CountryId FROM countries WHERE "Continent" != 4 AND "CountryId" <= 13


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


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


Question: SELECT Member_ID FROM membership_register_branch WHERE "Member_ID" >= 6 AND Register_Year <> "2016" INTERSECT SELECT Member_ID FROM purchase WHERE "Member_ID" >= 3 AND Branch_ID <> "1"


Question: SELECT AVG(Product_ID) FROM store_product WHERE "Product_ID" <= 2 UNION ALL SELECT AVG(Product_ID) FROM store_product WHERE "Store_ID" != 1


Question: SELECT SUM(School_id) FROM budget WHERE "Invested" > 5840 UNION SELECT SUM(School_id) FROM endowment WHERE "endowment_id" > 1 OR donator_name <> "San José de Ocoa" AND "amount" = 8.43 AND "School_id" <= 1


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 document_id FROM Documents WHERE document_status_code <> "overdue" OR "document_id" <> 17 AND document_type_code != "CD" OR receipt_date != "1982-09-27 14:52:15" UNION ALL SELECT document_id FROM Draft_Copies WHERE "document_id" <= 4 AND "draft_number" <= 9 OR "copy_number" < 5


Question: SELECT Gender, Rank FROM coach WHERE "Coach_ID" <= 4 AND Gender <> "F" UNION ALL SELECT Gender, Rank FROM player WHERE Rank != "1st" OR Gender = "M" OR Player_name != "Niki Ashton" OR Residence = "Winnipeg"


Question: SELECT Continent FROM continents WHERE "ContId" = 5 UNION ALL SELECT Continent FROM countries WHERE "Continent" < 2 AND "CountryId" > 15 AND CountryName = "australia"


Question: SELECT Store_ID FROM store_district WHERE "District_ID" = 15 UNION ALL SELECT Store_ID FROM store_product WHERE "Product_ID" <= 4


Question: SELECT SUM(Branch_ID) FROM branch WHERE membership_amount <> "31" OR Address_road <> "Valleys Place" AND Name <> "Saint Amant" UNION SELECT SUM(Branch_ID) FROM membership_register_branch WHERE Register_Year <> "2016" AND Branch_ID <> "5"


Question: SELECT vehicle_id FROM Lessons WHERE "price" > 231.0 AND lesson_time = "2" OR "vehicle_id" >= 1 AND lesson_date = "2018-03-04 06:55:46" AND "lesson_id" > 4 UNION ALL SELECT vehicle_id FROM Vehicles WHERE "vehicle_id" >= 3


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


Question: SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code != "PP" AND Template_Type_Description <> "Paper" EXCEPT SELECT Template_Type_Code FROM Templates WHERE "Version_Number" < 5 AND Template_Details != "" AND Template_Type_Code = "PPT"


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 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 MIN(first_name), date_of_birth, AVG(last_name) FROM Customers WHERE "customer_address_id" < 9 AND first_name != "Genevieve" AND date_became_customer != "2016-02-17 08:26:23" OR "amount_outstanding" != 9332.0 OR date_of_birth <> "1993-02-07 05:40:26" AND email_address != "nichole59@example.com" AND customer_status_code <> "Good Customer" AND last_name <> "Terry" OR phone_number = "(297)122-0086" AND cell_mobile_phone_number <> "081-097-3684" UNION ALL SELECT MIN(first_name), date_of_birth, AVG(last_name) FROM Staff WHERE date_of_birth = "2015-08-01 13:22:43" OR date_joined_staff != "2017-02-20 18:45:20" OR nickname = "edwin.hudson" AND "staff_address_id" > 14 AND last_name != "Durgan" OR date_left_staff = "2018-03-01 17:10:03" AND first_name != "Camylle" OR "staff_id" <= 10


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


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


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


Question: SELECT T1.Domestic_Passengers, COUNT(T2.Airport_ID) FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID


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


Question: SELECT Member_ID FROM member WHERE Name = "Micah Johnson" EXCEPT SELECT Member_ID FROM membership_register_branch WHERE Branch_ID <> "2" AND "Member_ID" = 1


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


Question: SELECT 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 = 1


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


Question: SELECT SUM(vehicle_id) FROM Lessons WHERE "customer_id" = 13 OR "lesson_id" < 9 AND lesson_status_code = "Completed" OR "staff_id" < 1 AND "vehicle_id" <> 2 AND "price" >= 352.0 OR lesson_time = "5" UNION SELECT SUM(vehicle_id) FROM Vehicles WHERE vehicle_details != "Car" OR "vehicle_id" > 1


Question: SELECT document_id FROM Document_Drafts WHERE "document_id" = 2 OR "draft_number" = 2 AND draft_details != "m" EXCEPT SELECT document_id FROM Documents WHERE receipt_date = "1983-09-26 09:32:56" AND document_type_code <> "CD" AND shipping_agent_code != "UP" OR receipt_number = "61" AND "document_id" < 23


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 SUM(Mascot), IHSAA_Class, MAX(IHSAA_Football_Class), MAX(Location) FROM School WHERE "Enrollment" = 601 EXCEPT SELECT SUM(Mascot), IHSAA_Class, MAX(IHSAA_Football_Class), MAX(Location) FROM School WHERE School_id = "3" OR Location = "Knox" AND County <> "71 St. Joseph"


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


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


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


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


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


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


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


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 IHSAA_Class, SUM(School_name) FROM School WHERE School_id != "1" AND Location = "Bourbon" AND IHSAA_Class <> "AA" EXCEPT SELECT IHSAA_Class, SUM(School_name) FROM School WHERE "Enrollment" <= 852 AND School_id = "1" AND Location = "Elkhart"


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


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


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 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 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 <> 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 < 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3


Question: SELECT MIN(mailed_to_address_id), document_id FROM Documents_Mailed WHERE "mailed_to_address_id" <= 0 UNION SELECT MIN(mailed_to_address_id), document_id FROM Documents_Mailed WHERE "mailed_to_address_id" >= 0 OR "document_id" > 4 OR mailing_date <> "1973-02-21 10:17:01"


Question: SELECT temporary_acting FROM management WHERE "department_ID" <= 15 UNION SELECT temporary_acting FROM management WHERE "department_ID" <= 15


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


Question: SELECT Employee_ID FROM evaluation WHERE Employee_ID != "2" EXCEPT SELECT Employee_ID FROM hiring WHERE Start_from = "2013" OR "Employee_ID" = 3 OR Is_full_time <> "F"


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


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


Question: SELECT People_ID, Name, Nationality FROM people WHERE Name != "Aleksey Ostapenko" OR "People_ID" <> 7 AND "Height" <> 193.0 AND Birth_Date != "February 8, 1981" AND Nationality = "Russia" INTERSECT SELECT People_ID, Name, Nationality FROM people WHERE "People_ID" < 7 AND Name != "Aleksey Ostapenko" OR Nationality <> "Russia" OR "Height" <> 205.0


Question: SELECT customer_id FROM Customer_Payments WHERE datetime_payment = "2018-02-15 16:38:49" OR "amount_payment" != 9414.74 AND "customer_id" = 12 OR payment_method_code != "Direct Debit" UNION SELECT customer_id FROM Lessons WHERE "lesson_id" > 15


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 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 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3


Question: SELECT Store_ID FROM store_district WHERE "Store_ID" > 2 AND "District_ID" < 15 UNION ALL SELECT Store_ID FROM store_district WHERE "District_ID" = 15


Question: SELECT MIN(contestant_name) FROM CONTESTANTS WHERE "contestant_number" >= 9 AND contestant_name = "Edwina Burnam" UNION ALL SELECT MIN(contestant_name) FROM CONTESTANTS WHERE contestant_name <> "Tabatha Gehling" AND "contestant_number" = 8


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


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


Question: SELECT 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 T1.area_code, T2.vote_id FROM AREA_CODE_STATE as T1 JOIN VOTES as T2 ON T1.state == T2.state GROUP BY area_code HAVING phone_number = 7148407040 AND created <> "2018-03-09 19:03:21" OR vote_id <= 1


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


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 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 aid FROM aircraft WHERE name <> "Boeing 737-800" OR "aid" < 13 UNION SELECT aid FROM aircraft WHERE "aid" > 6


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 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 destination, flno, aid, arrival_date, price, departure_date FROM flight WHERE departure_date = "04/12/2005 09:15" OR arrival_date = "04/12/2005 03:18" AND "distance" <> 1251 OR origin <> "Los Angeles" OR "aid" = 6 OR "flno" = 387 AND destination = "Chicago" INTERSECT SELECT destination, flno, aid, arrival_date, price, departure_date FROM flight WHERE destination = "Tokyo" OR "aid" = 7 OR origin != "Chicago" OR "price" != 220.98

destination flno aid arrival_date price departure_date


Question: SELECT employee_id FROM Circulation_History WHERE "draft_number" > 17 OR "copy_number" >= 10 EXCEPT SELECT employee_id FROM Circulation_History WHERE "document_id" != 20 AND "draft_number" != 2 AND "employee_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 = 3


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


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


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


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


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


Question: SELECT Market_Value_in_Billion FROM company WHERE "Profits_in_Billion" < 20.6 GROUP BY Market_Value_in_Billion HAVING Market_Value_in_Billion > 164.3 UNION SELECT Market_Value_in_Billion FROM company WHERE Headquarters != "Russia" AND "Assets_in_Billion" > 328.7 OR "Company_ID" <> 9.0 GROUP BY Market_Value_in_Billion HAVING Market_Value_in_Billion != 208.4


Question: SELECT document_id, mailed_to_address_id FROM Documents_Mailed WHERE "mailed_to_address_id" = 2 OR "document_id" = 13 UNION SELECT document_id, mailed_to_address_id FROM Documents_Mailed WHERE "document_id" = 4


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 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 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 Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3


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


Question: SELECT MAX(Employee_ID) FROM evaluation WHERE "Bonus" >= 3200.0 AND Year_awarded <> "2018" AND Employee_ID <> "2" UNION SELECT MAX(Employee_ID) FROM hiring WHERE Start_from = "2011"


Question: SELECT id FROM flight WHERE "airport_id" <> 9 OR Pilot != "Thompson" OR "Velocity" >= 135.0 OR Date = "May 19, 1964" AND "company_id" <> 5 OR "Altitude" > 3650.0 INTERSECT SELECT id FROM operate_company WHERE name = "Dragonair" OR Incorporated_in = "Hong Kong" AND "id" = 10


Question: SELECT SUM(T1.PetID), T2.PetType FROM Has_Pet as T1 JOIN Pets as T2 ON T1.PetID = T2.PetID WHERE SUM(StuID) <= 1001 OR SUM(pet_age) = 3


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


Question: SELECT 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 > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10


Question: SELECT document_id FROM Circulation_History WHERE "copy_number" <= 15 AND "draft_number" != 1 OR "document_id" > 2 OR "employee_id" != 1 EXCEPT SELECT document_id FROM Documents_Mailed WHERE mailing_date <> "2007-01-01 22:32:11" AND "document_id" > 14 OR "mailed_to_address_id" <= 3


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


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


Question: SELECT membership_amount, Name, Branch_ID, Address_road, City, Open_year FROM branch WHERE Open_year <> "2015" OR Address_road <> "Concord Road" AND Name != "Alexandre" INTERSECT SELECT membership_amount, Name, Branch_ID, Address_road, City, Open_year FROM branch WHERE "Branch_ID" < 2


Question: SELECT SUM(T1.id), T2.company_id FROM airport as T1 JOIN flight as T2 ON T1.id = T2.id WHERE "Velocity" >= 240.0 GROUP BY Altitude HAVING Pilot <> "Thompson" AND company_id >= 5 AND City <> "Brussels" OR Date <> "August 4, 1966" AND ICAO <> "ENBR" OR Country = "Spain" AND Altitude = 3650.0 OR airport_id <= 2 AND Velocity < 240.0 OR IATA <> "AMS"


Question: SELECT Assets_in_Billion, AVG(Market_Value_in_Billion) FROM company WHERE "Assets_in_Billion" > 302.6 OR "Market_Value_in_Billion" < 132.4 EXCEPT SELECT Assets_in_Billion, AVG(Market_Value_in_Billion) FROM company WHERE Industry = "Banking"


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 MAX(endowment_id) FROM endowment WHERE "School_id" = 7 OR donator_name = "Santo Domingo Este" OR "amount" >= 9.55 UNION ALL SELECT MAX(endowment_id) FROM endowment WHERE donator_name = "Com. Dom. En Estados Unidos" AND "School_id" > 5


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


Question: SELECT Product_ID FROM store_product WHERE "Product_ID" < 2 AND "Store_ID" != 1 UNION ALL SELECT Product_ID FROM store_product WHERE "Store_ID" > 1 AND "Product_ID" <= 4


Question: SELECT AVG(First_Elected), AVG(Delegate), SUM(Election_ID), Counties_Represented FROM election WHERE "Party" <= 2 OR "Election_ID" >= 2 AND Counties_Represented <> "09.1 9A" AND Committee != "Appropriations" AND "District" <> 3 AND Delegate = "Guzzone, Guy Guy Guzzone" UNION SELECT AVG(First_Elected), AVG(Delegate), SUM(Election_ID), Counties_Represented FROM election WHERE "Election_ID" != 3 AND Delegate != "Miller, Warren E. Warren E. Miller" OR Committee <> "Appropriations" OR "Party" <> 1 AND "District" < 1 AND Counties_Represented != "09.1 9A" AND "First_Elected" <> 1994.0


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


Question: SELECT MIN(dpi), COUNT(product) FROM product WHERE "dpi" < 600.0 AND interface != "USB 2.0" OR "pages_per_minute_color" >= 4.0 AND dimensions <> "280 x 95 x 40" AND product = "Canon DR-2080C" AND max_page_size <> "216mm x 355mm" EXCEPT SELECT MIN(dpi), COUNT(product) FROM product WHERE product = "Plustek MobileOffice D28 Corporate" AND dimensions <> "300 x 50 x 45" AND "product_id" <= 5 AND "pages_per_minute_color" > 4.0 AND interface = "USB 2.0"


Question: SELECT MAX(shipping_agent_code) FROM Documents WHERE other_details != "j" UNION SELECT MAX(shipping_agent_code) FROM Ref_Shipping_Agents WHERE shipping_agent_code != "US" AND shipping_agent_name = "Fedex" OR shipping_agent_description = "w"


Question: SELECT Template_Type_Description, Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code != "BK" AND Template_Type_Description <> "Paper" EXCEPT SELECT Template_Type_Description, Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Description <> "Advertisement"


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 Player_ID, Starting_year FROM player_coach WHERE "Player_ID" != 14 UNION SELECT Player_ID, Starting_year FROM player_coach WHERE "Starting_year" > 2012


Question: SELECT AVG(name), id FROM airport WHERE City <> "Billund" OR Country != "Belgium" OR name <> "Billund Airport" OR "id" != 9 INTERSECT SELECT AVG(name), id FROM operate_company WHERE Incorporated_in <> "Hong Kong" OR name = "Dragonair Holidays" AND "Group_Equity_Shareholding" = 100.0


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


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


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


Question: SELECT MIN(address_details), address_id FROM Addresses WHERE address_details != "IT" AND "address_id" = 1 UNION ALL SELECT MIN(address_details), address_id FROM Addresses WHERE "address_id" <> 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 <> 9


Question: SELECT AVG(ClubID) FROM Club WHERE ClubLocation != "HHH" AND ClubDesc = "Play pen and paper games on campus." UNION ALL SELECT AVG(ClubID) FROM Member_of_club WHERE Position != "President" AND "StuID" < 1007


Question: SELECT AVG(Major), StuID FROM Student WHERE "Advisor" < 8722 AND Fname != "Michael" AND "Age" <> 20 UNION ALL SELECT AVG(Major), StuID FROM Student WHERE "StuID" = 1035 OR "Major" != 600 AND LName <> "Thornton" OR "Advisor" < 8741 OR Fname != "Paul" OR "Age" < 19 OR Sex <> "F"


Question: SELECT u_id FROM review WHERE "u_id" > 2 UNION ALL SELECT u_id FROM useracct WHERE "u_id" < 5


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


Question: SELECT head_ID FROM head WHERE "age" < 69.0 OR born_state != "Delaware" EXCEPT SELECT head_ID FROM management WHERE "head_ID" <> 4 AND temporary_acting <> "Yes"


Question: SELECT customer_id FROM Customer_Payments WHERE payment_method_code <> "Direct Debit" AND "amount_payment" = 7440.34 OR "customer_id" != 4 AND datetime_payment <> "2018-02-24 10:07:05" UNION SELECT customer_id FROM Lessons WHERE lesson_date = "2018-03-03 15:10:16" AND lesson_time = "5" OR "staff_id" != 11 AND lesson_status_code = "Cancelled" AND "customer_id" = 6 OR "vehicle_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 != 7


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 MIN(customer_id) FROM Customer_Payments WHERE "amount_payment" != 8180.26 OR "customer_id" >= 13 OR datetime_payment = "2018-02-27 20:08:53" OR payment_method_code != "Direct Debit" UNION ALL SELECT MIN(customer_id) FROM Lessons WHERE lesson_status_code != "Completed" AND lesson_date != "2018-02-26 02:36:35"


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 Date_Effective_From, Template_Type_Code, COUNT(Date_Effective_To), MIN(Template_ID) FROM Templates WHERE "Version_Number" > 2 UNION ALL SELECT Date_Effective_From, Template_Type_Code, COUNT(Date_Effective_To), MIN(Template_ID) FROM Templates WHERE "Version_Number" != 5 OR Date_Effective_From <> "2008-08-01 13:57:26" AND Date_Effective_To <> "1994-12-07 13:26:23" AND Template_Details <> "" OR "Template_ID" != 25


Question: SELECT AVG(Party) FROM election WHERE Delegate <> "Turner, Frank S. Frank S. Turner" AND "Election_ID" < 1 OR "Party" = 1 AND "First_Elected" < 2002.0 OR Committee <> "Environmental Matters (Vice-Chair)" EXCEPT SELECT AVG(Party) FROM party WHERE Party != "Democratic" AND "Party_ID" < 1 AND Attorney_General <> "Eliot Spitzer" AND Governor <> "Eliot Spitzer"


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 Player_ID FROM player_coach WHERE "Coach_ID" <> 2 OR "Starting_year" > 2011 EXCEPT SELECT Player_ID FROM player_coach WHERE "Coach_ID" = 3


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


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


Question: SELECT feature_type_code FROM Ref_Feature_Types WHERE feature_type_name <> "Amenity, eg Pool." UNION SELECT feature_type_code FROM Ref_Feature_Types WHERE feature_type_code != "Security" AND feature_type_name != "Securiyt, eg Burglar Alarm."


Question: SELECT People_ID FROM people WHERE "People_ID" != 1 OR Nationality = "Russia" OR "Height" != 207.0 OR Birth_Date != "August 8, 1986" UNION SELECT People_ID FROM poker_player WHERE "Earnings" < 104871.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 <= 2


Question: SELECT StuID FROM Member_of_club WHERE Position != "CTO" OR "ClubID" <= 1 AND "StuID" = 1008 EXCEPT SELECT StuID FROM Student WHERE city_code != "YYZ" AND Sex <> "F" AND LName != "Rugh" AND "Advisor" <= 8772 AND Fname <> "Sarah"


Question: SELECT MAX(document_status_code), AVG(document_status_description) FROM Ref_Document_Status WHERE document_status_code != "done" AND document_status_description != "mailed late" UNION ALL SELECT MAX(document_status_code), AVG(document_status_description) FROM Ref_Document_Status WHERE document_status_code = "working" OR document_status_description != "currently working on"


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


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 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 != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5


Question: SELECT shipping_agent_code FROM Documents WHERE "document_id" < 25 EXCEPT SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_code = "UP" OR shipping_agent_description = "g"


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


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 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 = 10


Question: SELECT property_id FROM Other_Property_Features WHERE "feature_id" <> 3 OR property_feature_description != "hic" UNION SELECT property_id FROM Properties WHERE "vendor_requested_price" > 13.4715 AND apt_feature_2 = "odio" OR date_on_market = "1978-05-15 10:53:37" OR shp_feature_2 = "None" AND hse_feature_1 != "None" AND shp_feature_1 = "None" AND property_type_code <> "Apartment" OR "agreed_selling_price" >= 3344706.5755 OR other_property_details != "None" AND fld_feature_1 <> "None" AND hse_feature_3 <> "None" AND "room_count" < 8 OR hse_feature_2 <> "None" OR oth_feature_1 <> "None" AND fld_feature_2 = "None" AND oth_feature_3 = "None" AND apt_feature_1 = "fuga"


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


Question: SELECT AVG(Party) FROM election WHERE "Election_ID" != 3 EXCEPT SELECT AVG(Party) FROM party WHERE "Party_ID" <> 7 AND Party != "Democratic" AND US_Senate <> "Hillary Rodham Clinton" OR "Year" >= 2002.0 OR Comptroller <> "Carl McCall" OR Lieutenant_Governor <> "Dennis Mehiel" AND Governor = "Eliot Spitzer"


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


Question: SELECT ClubID FROM Club WHERE ClubDesc != "Refurbish computers; teach kids and adults about computer basics." OR ClubLocation = "AKW" AND "ClubID" = 2 EXCEPT SELECT ClubID FROM Member_of_club WHERE "StuID" < 1001 AND Position <> "CTO"


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


Question: SELECT StuID FROM Has_Pet WHERE "PetID" <= 2001 UNION ALL SELECT StuID FROM Student WHERE Fname <> "Mark" AND "Advisor" <= 8772 AND LName = "Jones" OR Sex != "F" AND city_code <> "BAL" OR "Major" <> 50 AND "StuID" <= 1020 OR "Age" < 19


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


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


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 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 > 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10


Question: SELECT property_feature_description FROM Other_Property_Features WHERE "feature_id" >= 3 AND "property_id" != 12 EXCEPT SELECT property_feature_description FROM Other_Property_Features WHERE "property_id" <= 6


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


Question: SELECT School_ID FROM school WHERE Type <> "Private" AND Location <> "Cambridge, Massachusetts" AND School != "Punahou School" AND Grade <> "4th grade" UNION ALL SELECT School_ID FROM school_bus WHERE If_full_time = "T" OR "School_ID" != 4 OR "Years_Working" <> 8


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 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 != 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 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 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 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 FROM Document_Drafts WHERE draft_details = "r" OR "document_id" != 13 EXCEPT SELECT document_id FROM Documents_Mailed WHERE "mailed_to_address_id" > 7 AND mailing_date <> "2007-03-20 05:22:01" AND "document_id" <= 24


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 property_type_code, COUNT(property_type_description) FROM Ref_Property_Types WHERE property_type_description = "Apartment, Flat, Condo, etc." OR property_type_code != "Other" EXCEPT SELECT property_type_code, COUNT(property_type_description) FROM Ref_Property_Types WHERE property_type_description <> "House, Bungalow, etc."


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 document_id FROM Circulation_History WHERE "employee_id" <> 8 AND "copy_number" <= 10 INTERSECT SELECT document_id FROM Documents_Mailed WHERE mailing_date = "1971-11-03 12:32:14" AND "mailed_to_address_id" <= 8 OR "document_id" != 2


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 copy_number FROM Circulation_History WHERE "copy_number" <= 15 AND "employee_id" != 2 AND "document_id" < 20 AND "draft_number" > 1 INTERSECT SELECT copy_number FROM Draft_Copies WHERE "copy_number" <= 10 AND "document_id" <> 4


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


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


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


Question: SELECT Party, US_Senate, Governor FROM party WHERE "Party_ID" = 4 OR Attorney_General != "Jeanine Pirro" OR Party != "Democratic" OR Comptroller = "John Faso" OR "Year" >= 2006.0 UNION ALL SELECT Party, US_Senate, Governor FROM party WHERE "Year" <> 1998.0 AND Party <> "Democratic" OR "Party_ID" = 1

Democratic
Charles Schumer
Peter Vallone

Liberal
Charles Schumer
Betsy McCaughey Ross

Democratic
Hillary Rodham Clinton
Eliot Spitzer

Independence
Hillary Rodham Clinton
Eliot Spitzer

Working Families
Hillary Rodham Clinton
Eliot Spitzer

Democratic
Charles Schumer
Peter Vallone

Independence
Hillary Rodham Clinton
Eliot Spitzer

Working Families
Hillary Rodham Clinton
Eliot Spitzer


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


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


Question: SELECT Velocity, Pilot, airport_id, Altitude FROM flight WHERE "airport_id" > 5 AND Vehicle_Flight_number <> "M2-F1 #13" OR "Altitude" <= 3650.0 AND "id" < 10 AND "company_id" = 2 AND Pilot = "Thompson" OR "Velocity" >= 240.0 OR Date != "May 19, 1964" UNION SELECT Velocity, Pilot, airport_id, Altitude FROM flight WHERE Vehicle_Flight_number != "M2-F1 #39" AND "id" = 7 AND "airport_id" != 4 AND "company_id" = 7 AND Pilot <> "Thompson" AND Date != "March 1, 1963" OR "Velocity" > 240.0


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


Question: SELECT Register_Year, Branch_ID, Member_ID FROM membership_register_branch WHERE "Member_ID" < 7 AND Register_Year = "2016" UNION SELECT Register_Year, Branch_ID, Member_ID FROM membership_register_branch WHERE Register_Year = "2017" AND Branch_ID = "8" AND "Member_ID" <> 2


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


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


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 INTERSECT 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_Description <> "CV" UNION ALL SELECT Template_Type_Code FROM Templates WHERE Date_Effective_From = "2005-02-20 00:31:34" OR Template_Details <> "" OR Date_Effective_To != "2001-04-18 09:29:52" AND Template_Type_Code = "AD"


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


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


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 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 = 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 < 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 > 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 <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9


Question: SELECT MIN(T1.Club_ID), T2.Rank FROM club as T1 JOIN coach as T2 ON T1.Club_ID = T2.Club_ID WHERE Coach_name <> "Joe Fabbri" AND Region <> "Korea" AND "Start_year" >= 2005 AND "Rank" <= 5 OR Club_name = "BK Häcken" OR Gender <> "M" OR "Coach_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 <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7


Question: SELECT id, SUM(Group_Equity_Shareholding), Principal_activities, MIN(Incorporated_in) FROM operate_company WHERE Type != "Subsidiary" OR "Group_Equity_Shareholding" <= 30.0 OR "id" <= 12 INTERSECT SELECT id, SUM(Group_Equity_Shareholding), Principal_activities, MIN(Incorporated_in) FROM operate_company WHERE Principal_activities <> "Catering services" OR "id" = 14 OR Type != "Subsidiary" OR name = "Cathay Pacific Catering Services (HK) Limited" OR "Group_Equity_Shareholding" = 100.0 OR Incorporated_in = "China"


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 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 < 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 > 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 StuID FROM Has_Allergy WHERE "StuID" <> 1027 UNION SELECT StuID FROM Student WHERE city_code <> "HKG" OR Fname != "Jun"


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


Question: SELECT SUM(property_type_code) FROM Properties WHERE date_sold <> "1995-01-31 11:18:42" AND "vendor_requested_price" = 2219.6778 AND "property_id" >= 3 OR oth_feature_3 <> "None" AND oth_feature_1 = "None" OR "buyer_offered_price" <= 2.0 AND "agreed_selling_price" <> 4514.807 OR oth_feature_2 <> "None" AND shp_feature_3 = "None" OR hse_feature_2 = "None" OR "room_count" > 5 AND property_type_code <> "Apartment" OR fld_feature_1 <> "None" OR fld_feature_2 <> "None" UNION SELECT SUM(property_type_code) FROM Ref_Property_Types WHERE property_type_code <> "Other" AND property_type_description != "Shop, Retail Outlet."


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


Question: SELECT AVG(Template_Details) FROM Templates WHERE "Template_ID" = 25 OR Date_Effective_To != "2001-04-18 09:29:52" AND Template_Type_Code != "PP" AND Template_Details = "" AND "Version_Number" < 7 INTERSECT SELECT AVG(Template_Details) FROM Templates WHERE Date_Effective_From != "1986-11-14 12:20:18" AND Template_Details <> "" OR "Version_Number" <= 0 OR Template_Type_Code != "PP"


Question: SELECT SUM(document_id) FROM Documents WHERE shipping_agent_code = "AL" AND receipt_number = "61" OR "document_id" != 13 AND other_details != "h" AND receipt_date <> "2008-04-21 20:42:25" OR document_status_code = "working" OR document_type_code <> "Paper" EXCEPT SELECT SUM(document_id) FROM Draft_Copies WHERE "document_id" > 23 AND "copy_number" != 5 AND "draft_number" != 8


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 customer_id FROM Customer_Payments WHERE "customer_id" < 13 OR datetime_payment = "2018-03-12 08:41:47" AND payment_method_code != "Direct Debit" UNION ALL SELECT customer_id FROM Customers WHERE customer_status_code = "Good Customer" OR first_name != "Rylan" AND phone_number = "+14(5)2351480248" AND "customer_id" <> 12


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 District_ID FROM district WHERE Headquartered_City <> "Bahawalpur City" AND District_name <> "Chakwal District" AND "District_ID" >= 3 AND "City_Area" >= 12.0 OR "City_Population" > 172073.0 EXCEPT SELECT District_ID FROM store_district WHERE "Store_ID" = 5 OR "District_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 < 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 <> 3


Question: SELECT PetType, PetID, weight FROM Pets WHERE "pet_age" <> 3 OR PetType <> "dog" UNION SELECT PetType, PetID, weight FROM Pets WHERE "weight" != 9.3 AND "PetID" != 2002 AND PetType != "dog"


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 Book_ID FROM book WHERE Title != "Cyberella" AND Writer = "Christopher Hinz" OR "Issues" > 6.0 EXCEPT SELECT Book_ID FROM publication WHERE "Publication_ID" <= 5


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 T1.Total_disk_area, 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 != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 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 > 3 INTERSECT 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 <> 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2


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


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


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


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


Question: SELECT Gender, Occupation, MAX(Residence), Votes, Rank, Sponsor_name, SUM(Player_name) FROM player WHERE Sponsor_name != "Winnipeg South" OR Rank <> "2nd" OR Player_name != "Matt Schaubroeck" AND "Player_ID" <= 5 AND Residence = "Winnipeg" AND Gender != "M" AND Occupation <> "Small Businessman" AND "Votes" != 2353 UNION SELECT Gender, Occupation, MAX(Residence), Votes, Rank, Sponsor_name, SUM(Player_name) FROM player WHERE Rank != "3rd" AND Residence = "Winnipeg" OR Player_name = "Jean Luc Bouché" AND Occupation <> "Product Consultant - MLCC" OR Sponsor_name != "Brandon—Souris" AND Gender != "F"

Gender Occupation MAX(Residence) Votes Rank Sponsor_name SUM(Player_name)


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


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


Question: SELECT SUM(T1.Id), T2.Horsepower FROM car_makers as T1 JOIN cars_data as T2 ON T1.Id = T2.Id WHERE "Cylinders" > 4 AND Horsepower <> "105" OR "Accelerate" >= 18.0 GROUP BY FullName HAVING Cylinders < 6 AND Year > 1970 OR Country <> "1" OR MPG <> "16" AND Edispl > 140.0 OR Maker <> "opel" AND Weight = 2904


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


Question: SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code != "PP" AND Template_Type_Description != "Book" EXCEPT SELECT Template_Type_Code FROM Templates WHERE Template_Type_Code = "AD"


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


Question: SELECT Company_ID FROM company WHERE "Assets_in_Billion" < 292.5 OR Name != "Industrial and Commercial Bank of China" OR "Company_ID" <> 16.0 AND Industry <> "Retailing" OR Headquarters != "Netherlands" AND "Market_Value_in_Billion" > 227.6 OR "Sales_in_Billion" != 145.9 UNION SELECT Company_ID FROM employment WHERE "Company_ID" >= 15 OR "Year_working" >= 2


Question: SELECT Big_Silver FROM match_result WHERE "Rank" < 5 OR "Club_ID" < 3 OR "Gold" <= 20 OR "Points" > 89 UNION ALL SELECT Big_Silver FROM match_result WHERE "Club_ID" = 5 OR "Bronze" >= 7


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 Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3


Question: SELECT 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 document_id FROM Document_Drafts WHERE draft_details != "w" UNION ALL SELECT document_id FROM Document_Drafts WHERE draft_details <> "v" AND "document_id" >= 12 OR "draft_number" != 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 = 7


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


Question: SELECT MAX(Member_ID) FROM member WHERE Hometown <> "Fort Campbell, Kentucky" AND "Level" = 6 EXCEPT SELECT MAX(Member_ID) FROM purchase WHERE Year = "2018"


Question: SELECT salary, eid, name FROM employee WHERE "salary" <> 256481 EXCEPT SELECT salary, eid, name FROM employee WHERE name = "Larry West" AND "salary" > 152013 OR "eid" != 573284895


Question: SELECT SUM(Id) FROM car_makers WHERE Country = "6" OR "Id" <= 18 AND Maker <> "peugeaut" UNION ALL SELECT SUM(Id) FROM cars_data WHERE MPG != "16" AND "Accelerate" = 15.0 AND "Id" != 3 AND "Year" < 1974 OR "Edispl" = 140.0


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 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 != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10


Question: SELECT MAX(salary), eid FROM employee WHERE "eid" <> 552455318 OR name <> "Jennifer Thomas" INTERSECT SELECT MAX(salary), eid FROM employee WHERE "eid" != 269734834 OR "salary" != 23980 AND name != "Mary Johnson"


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


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 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 <> 3


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 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 = 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 >= 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 >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2


Question: SELECT address_id, address_details FROM Addresses WHERE "address_id" >= 1 UNION ALL SELECT address_id, address_details FROM Addresses WHERE address_details <> "IT" AND "address_id" < 5


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 Altitude, airport_id, Velocity, Vehicle_Flight_number FROM flight WHERE "Altitude" >= 3650.0 OR Vehicle_Flight_number = "M2-F1 #61" AND "company_id" > 4 AND "id" > 8 EXCEPT SELECT Altitude, airport_id, Velocity, Vehicle_Flight_number FROM flight WHERE Date <> "September 3, 1963" OR Pilot <> "Thompson" AND "airport_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 <= 2


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


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


Question: SELECT MAX(Paragraph_Text), Document_ID FROM Paragraphs WHERE "Paragraph_ID" != 241 UNION SELECT MAX(Paragraph_Text), Document_ID FROM Paragraphs WHERE Paragraph_Text <> "Senegal"


Question: SELECT AllergyType, Allergy FROM Allergy_Type WHERE Allergy != "Anchovies" AND AllergyType = "environmental" EXCEPT SELECT AllergyType, Allergy FROM Allergy_Type WHERE Allergy != "Eggs" AND AllergyType = "animal"


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 Hometown, Name, Level, Card_Number FROM member WHERE Hometown <> "Red Jacket, West Virginia" AND "Member_ID" < 6 OR Card_Number <> "FS10" UNION ALL SELECT Hometown, Name, Level, Card_Number FROM member WHERE "Member_ID" <> 8 OR "Level" != 6 AND Card_Number != "LCB7"


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 SUM(distance) FROM aircraft WHERE "distance" >= 4010 AND "aid" = 3 OR name = "Boeing 777-300" UNION SELECT SUM(distance) FROM flight WHERE origin != "Los Angeles" AND "flno" < 13 OR destination = "Sydney" AND "price" < 220.98 OR "aid" < 7 AND arrival_date = "04/12/2005 03:18" AND departure_date = "04/12/2005 08:32"


Question: SELECT SUM(date_of_birth), amount_outstanding, SUM(date_became_customer), MAX(first_name), COUNT(last_name), MIN(customer_address_id), email_address, MIN(phone_number), MIN(customer_status_code) FROM Customers WHERE customer_status_code = "Bad Customer" AND "amount_outstanding" < 2099.0 OR first_name != "Amya" AND last_name != "Trantow" OR "customer_address_id" = 1 OR "customer_id" < 10 AND date_of_birth = "1993-07-09 11:11:36" OR phone_number <> "(729)396-4354x3576" OR email_address != "mariela28@example.org" OR cell_mobile_phone_number != "577-584-4864" UNION SELECT SUM(date_of_birth), amount_outstanding, SUM(date_became_customer), MAX(first_name), COUNT(last_name), MIN(customer_address_id), email_address, MIN(phone_number), MIN(customer_status_code) FROM Customers WHERE date_of_birth <> "1993-02-07 05:40:26" OR "amount_outstanding" != 9447.0 AND date_became_customer != "2016-05-13 07:38:23" AND phone_number <> "(662)490-3108" OR cell_mobile_phone_number = "578-518-4785x612" AND "customer_address_id" >= 10


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


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


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 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 >= 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 <= 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 <= 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 > 1


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


Question: SELECT Company_ID FROM company WHERE "Sales_in_Billion" >= 433.5 OR Industry = "Oil and gas" UNION ALL SELECT Company_ID FROM employment WHERE "People_ID" <> 4


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 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 Gender, Coach_name, Club_ID FROM coach WHERE "Coach_ID" > 5 AND "Club_ID" >= 1 UNION SELECT Gender, Coach_name, Club_ID FROM coach WHERE "Coach_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 address_details FROM Addresses WHERE address_details <> "US" OR "address_id" = 2 UNION ALL SELECT address_details FROM Addresses WHERE address_details <> "DE"


Question: SELECT AVG(Total_pounds), Member_ID, MIN(Branch_ID), MAX(Year) FROM purchase WHERE Branch_ID = "2" EXCEPT SELECT AVG(Total_pounds), Member_ID, MIN(Branch_ID), MAX(Year) FROM purchase WHERE "Total_pounds" <= 343.76 AND "Member_ID" < 3 OR Year != "2018" OR Branch_ID <> "2"


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


Question: SELECT Birth_Date FROM people WHERE Name <> "Aleksey Ostapenko" OR "Height" <= 207.0 AND Nationality != "Russia" OR Birth_Date != "April 17, 1987" AND "People_ID" <> 4 UNION SELECT Birth_Date FROM people WHERE "People_ID" <> 1


Question: SELECT MIN(Template_ID) FROM Documents WHERE Document_Description != "k" UNION ALL SELECT MIN(Template_ID) FROM Templates WHERE Template_Details <> "" AND "Version_Number" <> 2 OR "Template_ID" >= 9 OR Date_Effective_From <> "2002-08-25 13:26:23"


Question: SELECT Rank, SUM(Gender), COUNT(Coach_ID), Coach_name, AVG(Club_ID) FROM coach WHERE "Club_ID" > 3 AND Gender = "M" OR "Rank" > 2 UNION SELECT Rank, SUM(Gender), COUNT(Coach_ID), Coach_name, AVG(Club_ID) FROM coach WHERE "Rank" > 1 AND "Coach_ID" < 1 OR "Club_ID" >= 3 OR Coach_name != "Jameson Tomas" AND Gender = "M"