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


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


Question: SELECT name FROM aircraft WHERE "aid" = 9 AND name <> "Lockheed L1011" OR "distance" <= 6900 UNION ALL SELECT name FROM employee WHERE "salary" != 54921 AND name = "William Ward" AND "eid" >= 567354612


Question: SELECT Template_ID FROM Documents WHERE Document_Name != "About Korea" OR Other_Details <> "None" OR Document_Description = "w" UNION SELECT Template_ID FROM Templates WHERE Date_Effective_To != "2001-04-18 09:29:52" AND Template_Type_Code = "PPT" AND "Template_ID" >= 11


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


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


Question: SELECT department_ID FROM management WHERE "head_ID" > 10 UNION ALL SELECT department_ID FROM management WHERE "head_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 >= 3


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


Question: SELECT title FROM item WHERE title <> "shampoo" UNION ALL SELECT title FROM item WHERE "i_id" < 5


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


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


Question: SELECT MIN(document_id) FROM Circulation_History WHERE "copy_number" = 10 AND "document_id" <= 2 AND "employee_id" = 2 EXCEPT SELECT MIN(document_id) FROM Documents WHERE receipt_number <> "189" AND other_details != "u" OR receipt_date = "1996-07-27 03:30:40" AND shipping_agent_code <> "FE"


Question: SELECT District_ID FROM district WHERE "District_ID" <= 13 OR "City_Population" <= 365198.0 OR District_name != "Dera Ghazi Khan District" AND Headquartered_City = "Bahawalpur City" AND "City_Area" != 15.0 UNION SELECT District_ID FROM store_district WHERE "Store_ID" != 1 OR "District_ID" >= 4


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


Question: SELECT draft_number, draft_details, document_id FROM Document_Drafts WHERE "draft_number" <> 0 AND draft_details <> "w" AND "document_id" > 4 UNION ALL SELECT draft_number, draft_details, document_id FROM Document_Drafts WHERE "draft_number" < 1 OR "document_id" <= 13 AND draft_details <> "k"


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


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


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


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


Question: SELECT Rank, Coach_ID FROM coach WHERE Gender <> "F" AND "Rank" != 4 OR "Club_ID" > 1 UNION SELECT Rank, Coach_ID FROM coach WHERE "Rank" = 2 OR "Coach_ID" >= 5 OR "Club_ID" <= 1 OR Coach_name <> "Joe Fabbri" AND Gender != "M"


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 mailing_date, document_id, mailed_to_address_id FROM Documents_Mailed WHERE "mailed_to_address_id" <> 0 UNION ALL SELECT mailing_date, document_id, mailed_to_address_id FROM Documents_Mailed WHERE "document_id" = 4 AND "mailed_to_address_id" = 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 < 10


Question: SELECT document_status_description FROM Ref_Document_Status WHERE document_status_description != "mailed late" UNION SELECT document_status_description FROM Ref_Document_Status WHERE document_status_code = "done"


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 School_ID FROM school WHERE School != "Occidental College" AND Location = "Jakarta, Indonesia" OR Type = "Public" OR Grade = "Junior–Senior year" UNION SELECT School_ID FROM school_bus WHERE "School_ID" <> 7 OR "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 = 3


Question: SELECT ModelId FROM model_list WHERE "Maker" >= 16 UNION SELECT ModelId FROM model_list WHERE "Maker" != 6 OR Model <> "cadillac"


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


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


Question: SELECT vehicle_id FROM Lessons WHERE "staff_id" > 4 OR "customer_id" <= 13 AND lesson_status_code <> "Cancelled" OR lesson_time = "2" OR "vehicle_id" > 3 OR "price" = 492.0 OR "lesson_id" != 2 UNION ALL SELECT vehicle_id FROM Vehicles WHERE "vehicle_id" <> 3 AND vehicle_details <> "Car"


Question: SELECT Sex, AVG(StuID), AVG(Age), Fname, MIN(Advisor), MIN(city_code), MAX(LName) FROM Student WHERE "Advisor" < 1121 AND "Age" = 20 AND Sex <> "M" AND city_code <> "PIT" OR Fname != "Paul" AND "StuID" = 1003 EXCEPT SELECT Sex, AVG(StuID), AVG(Age), Fname, MIN(Advisor), MIN(city_code), MAX(LName) FROM Student WHERE "Age" >= 20 AND Sex = "F" OR "Major" = 600 OR LName = "Adams"

Sex AVG(StuID) AVG(Age) Fname MIN(Advisor) MIN(city_code) MAX(LName)


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


Question: SELECT 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 draft_number, document_id FROM Document_Drafts WHERE "document_id" < 13 UNION SELECT draft_number, document_id FROM Draft_Copies WHERE "draft_number" = 8 AND "copy_number" <> 15


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


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


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


Question: SELECT feature_id FROM Other_Available_Features WHERE "feature_id" <> 2 AND feature_type_code = "Amenity" AND feature_description <> "Burglar Alarm" OR feature_name = "Pool" UNION SELECT feature_id FROM Other_Property_Features WHERE "feature_id" <> 3 OR "property_id" <> 6


Question: SELECT People_ID FROM people WHERE Name <> "Yevgeni Sivozhelez" OR "People_ID" <> 1 AND Nationality = "Russia" AND Birth_Date = "July 14, 1983" OR "Height" >= 207.0 EXCEPT SELECT People_ID FROM poker_player WHERE "Poker_Player_ID" != 4


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


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


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


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


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


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


Question: SELECT Name FROM employee WHERE Name = "Lee Mears" OR "Age" <= 29 AND "Employee_ID" <> 6 OR City = "Bristol" UNION SELECT Name FROM shop WHERE "Shop_ID" >= 5 AND Manager_name <> "Job Dragtsma" OR Name = "FC Lahti" OR "Number_products" < 5000 OR District != "Arto Tolsa Areena" AND Location <> "Kuopio"


Question: SELECT MAX(feature_type_code) FROM Other_Available_Features WHERE feature_name != "BurglarAlarm" AND "feature_id" >= 3 AND feature_type_code != "Security" EXCEPT SELECT MAX(feature_type_code) FROM Ref_Feature_Types WHERE feature_type_name <> "Amenity, eg Pool."


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 SUM(Club_ID), Gender, AVG(Coach_name) FROM coach WHERE "Club_ID" >= 1 UNION SELECT SUM(Club_ID), Gender, AVG(Coach_name) FROM coach WHERE "Rank" > 1 OR "Coach_ID" <> 2 OR Gender <> "M" AND "Club_ID" >= 1


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


Question: SELECT 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 document_type_description FROM Ref_Document_Types WHERE document_type_code = "Paper" UNION ALL SELECT document_type_description FROM Ref_Document_Types WHERE document_type_code = "Hard Drive"


Question: SELECT Member_ID FROM member WHERE Hometown = "LaGrange, Georgia" UNION ALL SELECT Member_ID FROM membership_register_branch WHERE Register_Year != "2016"


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 draft_number FROM Circulation_History WHERE "copy_number" != 10 UNION SELECT draft_number FROM Document_Drafts WHERE "draft_number" = 8 AND "document_id" < 12


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


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


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


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


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


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


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


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


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


Question: SELECT COUNT(membership_amount), AVG(City), COUNT(Name), Branch_ID FROM branch WHERE Address_road = "Abbey Rise" UNION ALL SELECT COUNT(membership_amount), AVG(City), COUNT(Name), Branch_ID FROM branch WHERE Open_year != "2009" AND membership_amount <> "112"


Question: SELECT SUM(Branch_ID) FROM branch WHERE Address_road = "Glebe Street" AND "Branch_ID" < 4 AND City != "London" OR membership_amount <> "1418" EXCEPT SELECT SUM(Branch_ID) FROM purchase WHERE "Total_pounds" >= 988.09 OR Branch_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 != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9


Question: SELECT AVG(T1.i_id), T2.rank FROM item as T1 JOIN review as T2 ON T1.i_id = T2.i_id WHERE "u_id" > 2 OR "rank" < 3 OR "a_id" > 1 OR title = "comb" OR "rating" <= 6


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 Store_ID FROM store_product WHERE "Product_ID" != 6 UNION SELECT Store_ID FROM store_product WHERE "Product_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 < 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 < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10


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


Question: SELECT property_type_code, property_type_description FROM Ref_Property_Types WHERE property_type_description = "Apartment, Flat, Condo, etc." UNION SELECT property_type_code, property_type_description FROM Ref_Property_Types WHERE property_type_code <> "Field" OR property_type_description != "House, Bungalow, etc."


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 property_type_code FROM Properties WHERE oth_feature_3 <> "None" AND property_name = "the cole" OR fld_feature_2 <> "None" AND date_sold != "1997-11-07 20:22:05" AND hse_feature_3 = "None" AND hse_feature_2 = "None" OR fld_feature_1 != "None" OR "room_count" != 7 UNION ALL SELECT property_type_code FROM Ref_Property_Types WHERE property_type_description <> "Other, to be determined."


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


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


Question: SELECT Location FROM school WHERE "School_ID" <> 2 AND School != "Punahou School" UNION SELECT Location FROM school WHERE Grade != "Freshman–Sophomore year"


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 lesson_time, vehicle_id, lesson_date, staff_id, price, lesson_status_code, customer_id, lesson_id FROM Lessons WHERE lesson_time <> "4" OR "lesson_id" >= 9 AND "price" <> 223.0 OR "staff_id" != 5 AND lesson_date = "2018-03-12 00:41:59" OR "vehicle_id" != 2 UNION ALL SELECT lesson_time, vehicle_id, lesson_date, staff_id, price, lesson_status_code, customer_id, lesson_id FROM Lessons WHERE lesson_time = "6" OR "price" >= 352.0 AND "staff_id" > 8 OR "lesson_id" = 6 AND "vehicle_id" < 1 AND lesson_date = "2018-03-08 16:05:05" OR "customer_id" < 10 AND lesson_status_code = "Cancelled"


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


Question: SELECT SUM(id) FROM albums WHERE "artist_id" <> 150 OR title = "The Best of Beethoven" OR "id" <> 219 UNION SELECT SUM(id) FROM media_types WHERE name = "Protected MPEG-4 video file" OR "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 > 1


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 shipping_agent_code FROM Documents WHERE document_type_code != "Hard Drive" OR receipt_date <> "2008-04-21 20:42:25" OR "document_id" <> 10 AND document_status_code != "working" OR other_details <> "u" OR shipping_agent_code != "US" OR receipt_number = "37" EXCEPT SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_description <> "w" OR shipping_agent_code != "AL"


Question: SELECT distance, aid FROM aircraft WHERE name <> "Boeing 727" AND "aid" > 14 EXCEPT SELECT distance, aid FROM flight WHERE "aid" = 5 AND "flno" < 99 OR "distance" <> 2308 OR destination <> "Tokyo" OR departure_date <> "04/12/2005 09:15" AND "price" > 278.56 AND origin != "Los Angeles"


Question: SELECT Employee_ID FROM evaluation WHERE Year_awarded != "2011" UNION ALL SELECT Employee_ID FROM hiring WHERE "Employee_ID" = 4 AND "Shop_ID" < 6 AND Is_full_time = "T" OR Start_from = "2011"


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


Question: SELECT Branch_ID FROM membership_register_branch WHERE Branch_ID <> "1" OR Register_Year != "2016" UNION SELECT Branch_ID FROM membership_register_branch WHERE Register_Year != "2016" OR "Member_ID" < 7


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


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


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


Question: SELECT IATA, ICAO, name, id FROM airport WHERE City = "Baltimore" OR ICAO != "PANC" OR IATA != "ANC" OR name != "Ted Stevens Airport" AND Country <> "United States" OR "id" > 1 UNION SELECT IATA, ICAO, name, id FROM airport WHERE City != "Brussels" AND name <> "Billund Airport"


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


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


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


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


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


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


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


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


Question: SELECT Party, Home_city, Name, AVG(Age), Driver_ID FROM driver WHERE "Driver_ID" <> 8 OR Home_city <> "Hartford" OR Party = "Dem" UNION ALL SELECT Party, Home_city, Name, AVG(Age), Driver_ID FROM driver WHERE Name <> "Brandon McGee"


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 eid FROM certificate WHERE "eid" > 574489456 UNION SELECT eid FROM employee WHERE "eid" <> 141582651 AND name != "Patricia Jones" AND "salary" <= 43723


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 AVG(feature_type_name), feature_type_code FROM Ref_Feature_Types WHERE feature_type_name = "Securiyt, eg Burglar Alarm." AND feature_type_code != "Security" UNION SELECT AVG(feature_type_name), feature_type_code FROM Ref_Feature_Types WHERE feature_type_code = "Security"


Question: SELECT Allergy FROM Allergy_Type WHERE AllergyType = "environmental" UNION SELECT Allergy FROM Has_Allergy WHERE Allergy != "Ragweed" AND "StuID" <= 1010


Question: SELECT vehicle_id FROM Lessons WHERE "staff_id" > 1 OR "price" <= 231.0 AND lesson_time != "9" EXCEPT SELECT vehicle_id FROM Vehicles WHERE "vehicle_id" < 2 OR vehicle_details = "Van"


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


Question: SELECT hse_feature_2, buyer_offered_price, oth_feature_1, hse_feature_1, fld_feature_1, fld_feature_2, date_on_market, agreed_selling_price, date_sold, apt_feature_1, vendor_requested_price, room_count, property_type_code, other_property_details, oth_feature_3, shp_feature_2, shp_feature_1, hse_feature_3, apt_feature_2, apt_feature_3, property_address, oth_feature_2, property_id FROM Properties WHERE oth_feature_1 = "None" AND hse_feature_2 != "None" OR shp_feature_2 <> "None" OR "property_id" != 11 OR property_type_code = "Field" AND shp_feature_3 = "None" INTERSECT SELECT hse_feature_2, buyer_offered_price, oth_feature_1, hse_feature_1, fld_feature_1, fld_feature_2, date_on_market, agreed_selling_price, date_sold, apt_feature_1, vendor_requested_price, room_count, property_type_code, other_property_details, oth_feature_3, shp_feature_2, shp_feature_1, hse_feature_3, apt_feature_2, apt_feature_3, property_address, oth_feature_2, property_id FROM Properties WHERE date_sold = "2003-02-27 18:17:11" OR hse_feature_2 <> "None" AND shp_feature_3 != "None" AND date_on_market != "1976-06-10 20:25:38" AND "vendor_requested_price" <= 331.0 AND apt_feature_2 != "culpa" AND property_name = "high line"

49578 Ayden Mountains
New Russellhaven, UT 46626


Question: SELECT endowment_id FROM endowment WHERE donator_name != "San Cristóbal" UNION ALL SELECT endowment_id FROM endowment WHERE "amount" <> 9.83 AND "School_id" <> 3 AND donator_name <> "San José de Ocoa" AND "endowment_id" > 6


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 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 School_id FROM School WHERE "Enrollment" > 287 AND IHSAA_Football_Class = "AAAA" AND IHSAA_Class <> "AAA" OR Location <> "Bremen" OR School_id != "1" AND School_name = "Jimtown" OR County != "20 Elkhart" AND Mascot != "Falcons" UNION ALL SELECT School_id FROM budget WHERE Budget_invested_percent != "71.3"


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


Question: SELECT Assets_in_Billion, Industry, Headquarters, Name FROM company WHERE Headquarters <> "USA" UNION ALL SELECT Assets_in_Billion, Industry, Headquarters, Name FROM company WHERE "Sales_in_Billion" > 433.5 OR Name <> "Wells Fargo" OR "Company_ID" < 11.0 AND Industry <> "Conglomerate"

Assets_in_Billion Industry Headquarters Name

340.5
Oil and gas
Netherlands
Royal Dutch Shell

2039.1
Banking
China
Industrial and Commercial Bank of China

1637.8
Banking
China
China Construction Bank

328.7
Automotive
Germany
Volkswagen Group

1563.9
Banking
China
Agricultural Bank of China

340.5
Oil and gas
Netherlands
Royal Dutch Shell

2039.1
Banking
China
Industrial and Commercial Bank of China

392.6
Conglomerate
USA
Berkshire Hathaway

1637.8
Banking
China
China Construction Bank

328.7
Automotive
Germany
Volkswagen Group

1563.9
Banking
China
Agricultural Bank of China


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


Question: SELECT AVG(Product_ID), Store_ID FROM store_product WHERE "Store_ID" != 2 EXCEPT SELECT AVG(Product_ID), Store_ID FROM store_product WHERE "Store_ID" != 2 AND "Product_ID" <> 6


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


Question: SELECT name FROM aircraft WHERE "distance" >= 2128 AND "aid" > 4 UNION SELECT name FROM aircraft WHERE "distance" <> 520


Question: SELECT Aircraft_ID FROM aircraft WHERE Max_Gross_Weight <> "123,500 lb (56,000 kg)" AND Total_disk_area != "872 ft² (81.1 m²)" OR Description <> "Light utility helicopter" UNION ALL SELECT Aircraft_ID FROM airport_aircraft WHERE "Airport_ID" <= 2 OR "ID" < 1 AND "Aircraft_ID" > 5


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


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


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


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


Question: SELECT SUM(i_id) FROM item WHERE title = "blue hoodie" UNION ALL SELECT SUM(i_id) FROM item WHERE title = "cup" AND "i_id" < 1


Question: SELECT Template_Type_Description, Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code = "BK" OR Template_Type_Description <> "Book" INTERSECT SELECT Template_Type_Description, Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Description != "Book" AND Template_Type_Code != "BK"


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


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


Question: SELECT StuID FROM Has_Pet WHERE "StuID" != 1002 INTERSECT SELECT StuID FROM Has_Pet WHERE "PetID" = 2001 OR "StuID" < 1002


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 AVG(property_feature_description), feature_id, MAX(property_id) FROM Other_Property_Features WHERE "feature_id" < 3 UNION ALL SELECT AVG(property_feature_description), feature_id, MAX(property_id) FROM Other_Property_Features WHERE property_feature_description <> "corrupti"


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 amount_payment, datetime_payment, payment_method_code, customer_id FROM Customer_Payments WHERE "amount_payment" < 6782.84 INTERSECT SELECT amount_payment, datetime_payment, payment_method_code, customer_id FROM Customer_Payments WHERE payment_method_code = "Credit Card" AND "customer_id" != 13 OR "amount_payment" <= 9886.62 AND datetime_payment != "2018-02-06 13:35:58"


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


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


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


Question: SELECT id FROM albums WHERE "artist_id" >= 91 AND "id" > 28 UNION ALL SELECT id FROM media_types WHERE "id" > 5 AND name != "Purchased AAC audio file"


Question: SELECT name FROM aircraft WHERE "aid" <> 3 EXCEPT SELECT name FROM aircraft WHERE "aid" >= 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 other_details, employee_id FROM Employees WHERE other_details != "b" OR "employee_id" >= 8 AND role_code != "PT" AND employee_name != "Haley" UNION SELECT other_details, employee_id FROM Employees WHERE role_code != "MG"


Question: SELECT MIN(Id) FROM car_makers WHERE Country = "1" AND Maker <> "renault" OR FullName != "Renault" AND "Id" >= 21 UNION SELECT MIN(Id) FROM cars_data WHERE "Cylinders" > 8 OR "Edispl" < 455.0


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


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


Question: SELECT Store_ID FROM store_district WHERE "District_ID" != 15 INTERSECT SELECT Store_ID FROM store_product WHERE "Product_ID" = 2


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 weight, pet_age, PetType, PetID FROM Pets WHERE "pet_age" > 3 OR "weight" <= 12.0 OR "PetID" >= 2002 UNION SELECT weight, pet_age, PetType, PetID FROM Pets WHERE "weight" = 9.3 OR PetType = "dog" AND "pet_age" > 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 >= 10


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


Question: SELECT COUNT(vehicle_id) FROM Lessons WHERE lesson_status_code != "Completed" OR "price" <= 306.0 OR "staff_id" >= 12 UNION SELECT COUNT(vehicle_id) FROM Vehicles WHERE vehicle_details != "Car"


Question: SELECT AVG(name), City, SUM(id), Country, IATA FROM airport WHERE "id" != 1 UNION ALL SELECT AVG(name), City, SUM(id), Country, IATA FROM airport WHERE City <> "Amsterdam" AND name = "El Prat Airport" AND "id" <> 5


Question: SELECT title, id FROM albums WHERE "id" != 136 OR "artist_id" = 245 EXCEPT SELECT title, id FROM employees WHERE postal_code = "T2P 5G3" AND "reports_to" <= 2.0 OR title != "Sales Support Agent" OR email <> "nancy@chinookcorp.com" OR first_name != "Margaret" AND country = "Canada" OR "id" <> 2 AND phone <> "+1 (403) 262-3443" AND last_name <> "Edwards" OR city = "Calgary" AND birth_date <> "1973-08-29 00:00:00" AND hire_date != "2002-08-14 00:00:00" OR state != "AB" OR address != "11120 Jasper Ave NW"

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

A TempestadeTempestade Ou O Livro Dos Dias

Adorate Deum: Gregorian Chant from the Proper of the Mass

Alcohol Fueled Brewtality Live! [Disc 1]

Alcohol Fueled Brewtality Live! [Disc 2]

Armada: Music from the Courts of England and Spain

Battlestar Galactica (Classic), Season 1

Beethoven Piano Sonatas: Moonlight & Pastorale

Beethoven: Symphony No. 6 'Pastoral' Etc.

Charpentier: Divertissements, Airs & Concerts

Cássia Eller - Coleção Sem Limite [Disc 2]

Elgar: Cello Concerto & Vaughan Williams: Fantasias

From The Muddy Banks Of The Wishkah live

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

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

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

Great Recordings of the Century: Paganini's 24 Caprices

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

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

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

Instant Karma: The Amnesty International Campaign to Save Darfur

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

Knocking at Your Back Door: The Best Of Deep Purple in the 80's

Koyaanisqatsi (Soundtrack from the Motion Picture)

Liszt - 12 Études D'Execution Transcendante

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

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

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

My Generation - The Very Best Of The Who

My Way: The Best Of Frank Sinatra [Disc 1]

Palestrina: Missa Papae Marcelli & Allegri: Miserere

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

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

Quanta Gente Veio ver--Bônus De Carnaval

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

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

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

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

The Best Of Buddy Guy - The Millenium Collection


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


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


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


Question: SELECT Template_ID, Version_Number FROM Templates WHERE "Template_ID" = 16 OR "Version_Number" <> 6 OR Template_Details = "" OR Date_Effective_To != "2006-02-06 23:52:04" OR Date_Effective_From <> "1979-12-24 10:28:16" UNION SELECT Template_ID, Version_Number FROM Templates WHERE "Version_Number" <= 5 OR Date_Effective_From <> "2002-03-02 14:39:49" AND Template_Type_Code = "AD"


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 document_status_code FROM Documents WHERE receipt_number != "55" INTERSECT SELECT document_status_code FROM Ref_Document_Status WHERE document_status_description != "currently working on"


Question: SELECT MIN(Name) FROM branch WHERE Name <> "Taverner" AND Open_year = "2015" AND City = "London" OR "Branch_ID" <> 1 UNION ALL SELECT MIN(Name) FROM member WHERE "Level" >= 6 OR Name <> "Trevard Lindley"


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


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


Question: SELECT School_id FROM School WHERE School_name = "New Prairie 1" AND IHSAA_Class <> "AAA" OR County = "20 Elkhart" AND IHSAA_Football_Class <> "AAA" OR Location = "Elkhart" OR Mascot != "Cavaliers" AND School_id = "6" AND "Enrollment" >= 316 UNION ALL SELECT School_id FROM budget WHERE "total_budget_percent_budgeted" >= 1.3 AND "School_id" < 2 OR "Year" != 2001 OR Budget_invested_percent <> "146.9" AND "total_budget_percent_invested" < 2.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 != 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 MIN(state) FROM AREA_CODE_STATE WHERE state <> "NJ" AND "area_code" < 727 UNION SELECT MIN(state) FROM VOTES WHERE state = "CA"


Question: SELECT MIN(City) FROM employee WHERE "Employee_ID" <> 3 AND City = "Sale" UNION SELECT MIN(City) FROM employee WHERE "Employee_ID" <= 3 AND "Age" < 36 OR City = "Wasps" OR Name <> "Jason Hobson"


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 District_ID FROM district WHERE "City_Area" = 22.0 OR "City_Population" = 134936.0 AND Headquartered_City != "Attock City" OR District_name <> "Chakwal District" EXCEPT SELECT District_ID FROM store_district WHERE "District_ID" <= 11 AND "Store_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 < 4


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


Question: SELECT 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 SUM(feature_type_code) FROM Ref_Feature_Types WHERE feature_type_name <> "Securiyt, eg Burglar Alarm." UNION SELECT SUM(feature_type_code) FROM Ref_Feature_Types WHERE feature_type_code = "Security"


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 MAX(i_id), AVG(title) FROM item WHERE "i_id" <> 3 UNION ALL SELECT MAX(i_id), AVG(title) FROM item WHERE "i_id" < 6 AND title <> "apple"


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


Question: SELECT COUNT(Party) FROM election WHERE Counties_Represented != "13" OR "First_Elected" != 2003.0 AND Delegate != "Bobo, Elizabeth Elizabeth Bobo" OR "Election_ID" < 7 AND "District" <> 2 UNION ALL SELECT COUNT(Party) FROM party WHERE Comptroller = "Alan Hevesi" AND Lieutenant_Governor <> "David Paterson" AND Attorney_General != "Eliot Spitzer"


Question: SELECT Major, StuID, Fname, LName, Age, Advisor FROM Student WHERE LName != "Leighton" UNION ALL SELECT Major, StuID, Fname, LName, Age, Advisor FROM Student WHERE "StuID" < 1024 AND Sex <> "M" AND Fname != "Dinesh" OR LName <> "Lee" AND "Major" < 540 OR "Age" <> 17 OR city_code = "PHL" AND "Advisor" > 9172


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


Question: SELECT Shop_ID FROM hiring WHERE Start_from <> "2011" AND "Shop_ID" != 2 UNION SELECT Shop_ID FROM shop WHERE Manager_name != "Ilkka Mäkelä" AND District <> "Finnair Stadium"


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


Question: SELECT draft_number FROM Circulation_History WHERE "draft_number" != 17 OR "copy_number" <= 10 OR "document_id" != 20 OR "employee_id" < 2 EXCEPT SELECT draft_number FROM Document_Drafts WHERE "draft_number" <= 12 AND "document_id" != 23


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


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


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


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


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


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


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


Question: SELECT T1.Total_disk_area, T2.Aircraft_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 < 9 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 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 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9


Question: SELECT Member_ID FROM member WHERE "Level" <= 6 AND "Member_ID" >= 4 AND Name != "Myron Pryor" UNION ALL SELECT Member_ID FROM membership_register_branch WHERE Register_Year <> "2016" AND Branch_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 <= 1


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


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


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


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


Question: SELECT COUNT(distance), COUNT(destination), departure_date, AVG(origin), AVG(flno) FROM flight WHERE origin != "Chicago" AND destination = "Chicago" AND "distance" != 5478 AND arrival_date != "04/12/2005 05:03" AND "flno" < 387 UNION ALL SELECT COUNT(distance), COUNT(destination), departure_date, AVG(origin), AVG(flno) FROM flight WHERE "flno" <> 68 OR "aid" > 2

COUNT(distance) COUNT(destination) departure_date AVG(origin) AVG(flno)


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


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


Question: SELECT AVG(Area_size), Type FROM store WHERE "Area_size" > 28.74 OR Type != "City Mall" AND "Ranking" >= 1 UNION SELECT AVG(Area_size), Type FROM store WHERE "Number_of_product_category" <> 793.0 OR "Store_ID" > 2


Question: SELECT vehicle_id FROM Vehicles WHERE vehicle_details != "Car" AND "vehicle_id" < 2 UNION SELECT vehicle_id FROM Vehicles WHERE vehicle_details <> "Truck"


Question: SELECT Height, Birth_Date FROM people WHERE Name = "Teodor Salparov" AND "Height" <> 194.0 OR Birth_Date = "January 22, 1987" EXCEPT SELECT Height, Birth_Date FROM people WHERE "Height" > 182.0 AND Birth_Date <> "May 26, 1986" AND Nationality <> "Russia" AND Name != "Roman Bragin"


Question: SELECT MIN(document_id), MIN(draft_number), draft_details FROM Document_Drafts WHERE "document_id" > 7 AND draft_details <> "a" EXCEPT SELECT MIN(document_id), MIN(draft_number), draft_details FROM Document_Drafts WHERE "draft_number" <= 2 AND draft_details != "r"


Question: SELECT MIN(Governor), Attorney_General, MIN(Comptroller) FROM party WHERE Lieutenant_Governor = "David Paterson" AND Comptroller <> "Alan Hevesi" AND "Year" <= 2006.0 AND US_Senate <> "Hillary Rodham Clinton" AND Party != "Democratic" AND Governor <> "Peter Vallone" UNION ALL SELECT MIN(Governor), Attorney_General, MIN(Comptroller) FROM party WHERE "Year" = 1998.0 OR Attorney_General <> "Eliot Spitzer"

Betsy McCaughey Ross
Andrew Cuomo
Alan Hevesi


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 PetID FROM Has_Pet WHERE "PetID" <> 2002 OR "StuID" < 1002 UNION SELECT PetID FROM Pets WHERE PetType != "cat" AND "pet_age" > 2 AND "weight" = 13.4 AND "PetID" <= 2002


Question: SELECT Publication_Date, Price, Book_ID, Publication_ID FROM publication WHERE Publisher <> "Pearson" AND "Book_ID" <= 5 AND "Price" > 2000000.0 AND Publication_Date <> "March 2007" UNION SELECT Publication_Date, Price, Book_ID, Publication_ID FROM publication WHERE "Book_ID" >= 9


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


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


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


Question: SELECT feature_type_name FROM Ref_Feature_Types WHERE feature_type_name = "Securiyt, eg Burglar Alarm." OR feature_type_code = "Amenity" UNION SELECT feature_type_name FROM Ref_Feature_Types WHERE feature_type_code = "Security"


Question: SELECT customer_id FROM Customers WHERE first_name = "Jordy" AND date_of_birth <> "1993-07-09 11:11:36" OR date_became_customer = "2015-06-24 03:50:04" OR "amount_outstanding" > 3751.0 OR cell_mobile_phone_number = "577-584-4864" AND last_name <> "Grant" OR customer_status_code != "Bad Customer" OR "customer_id" != 12 OR phone_number != "1-875-045-0806" OR "customer_address_id" <= 10 AND email_address != "ehowell@example.com" UNION SELECT customer_id FROM Lessons WHERE "lesson_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 <= 9


Question: SELECT Branch_ID, AVG(Register_Year) FROM membership_register_branch WHERE Branch_ID <> "5" AND "Member_ID" < 1 UNION SELECT Branch_ID, AVG(Register_Year) FROM membership_register_branch WHERE Branch_ID != "5" OR Register_Year != "2016"


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 FullName, Id, Maker, Country FROM car_makers WHERE Country != "3" OR "Id" < 2 OR FullName != "Mazda" UNION SELECT FullName, Id, Maker, Country FROM car_makers WHERE Country != "4" OR "Id" > 7 OR Maker <> "volvo"


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


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


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


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


Question: SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description = "f" INTERSECT SELECT document_type_code FROM Ref_Document_Types WHERE document_type_code != "CD"


Question: SELECT document_id FROM Documents WHERE shipping_agent_code != "UP" AND "document_id" > 1 INTERSECT SELECT document_id FROM Documents_Mailed WHERE mailing_date <> "2010-11-04 04:00:16"


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 address_details FROM Addresses WHERE address_details = "ES" UNION SELECT address_details FROM Addresses WHERE "address_id" <= 4 OR address_details <> "PT"


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


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


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


Question: SELECT MAX(City_Area), MIN(Headquartered_City), District_name, MIN(District_ID), SUM(City_Population) FROM district WHERE "City_Area" <> 22.0 EXCEPT SELECT MAX(City_Area), MIN(Headquartered_City), District_name, MIN(District_ID), SUM(City_Population) FROM district WHERE Headquartered_City <> "Khanewal City" AND "City_Area" <> 38.0 AND "City_Population" != 134936.0 OR District_name != "Attock District" AND "District_ID" < 15


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 COUNT(T1.People_ID), T2.Poker_Player_ID FROM people as T1 JOIN poker_player as T2 ON T1.People_ID = T2.People_ID WHERE Nationality = "Bulgaria" OR "Final_Table_Made" <> 26.0 OR "Best_Finish" = 1.0 OR "Money_Rank" <> 68.0 OR Birth_Date <> "April 17, 1987" AND "Poker_Player_ID" = 1 AND "Height" < 196.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 < 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 = 9


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


Question: SELECT lesson_date, COUNT(lesson_status_code) FROM Lessons WHERE "vehicle_id" != 2 OR lesson_time != "9" UNION SELECT lesson_date, COUNT(lesson_status_code) FROM Lessons WHERE lesson_status_code = "Cancelled" OR lesson_date <> "2018-03-07 11:53:32"


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


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


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


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


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


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


Question: SELECT other_details, AVG(employee_id) FROM Employees WHERE other_details <> "b" UNION ALL SELECT other_details, AVG(employee_id) FROM Employees WHERE employee_name <> "Clemens" AND other_details = "u" OR role_code = "PR" AND "employee_id" >= 1


Question: SELECT last_name, COUNT(customer_address_id), amount_outstanding, COUNT(customer_id), SUM(customer_status_code), email_address, date_of_birth, COUNT(phone_number) FROM Customers WHERE email_address <> "mayert.judy@example.com" OR last_name <> "Tromp" OR "amount_outstanding" > 2099.0 OR date_of_birth = "1994-05-07 01:32:16" AND first_name = "Dameon" EXCEPT SELECT last_name, COUNT(customer_address_id), amount_outstanding, COUNT(customer_id), SUM(customer_status_code), email_address, date_of_birth, COUNT(phone_number) FROM Customers WHERE "customer_address_id" = 1 AND phone_number <> "(297)122-0086" AND first_name != "Dameon" AND email_address <> "kitty.hand@example.net" AND customer_status_code = "Good Customer" OR cell_mobile_phone_number <> "1-401-108-8016x078" AND date_became_customer = "2016-05-13 07:38:23" AND "amount_outstanding" >= 2099.0 OR date_of_birth != "1996-08-29 00:03:08" AND "customer_id" = 12 OR last_name = "Grant"


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 MIN(Home_city), MIN(Party) FROM driver WHERE "Driver_ID" != 5 UNION ALL SELECT MIN(Home_city), MIN(Party) FROM driver WHERE Home_city = "Bethel" AND "Driver_ID" <> 4 OR Name <> "Angel Acre" OR Party <> "Dem" AND "Age" >= 30


Question: SELECT PetType, MIN(weight) FROM Pets WHERE "weight" <> 12.0 AND "pet_age" <> 2 UNION SELECT PetType, MIN(weight) FROM Pets WHERE PetType = "dog" AND "PetID" >= 2001


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


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


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


Question: SELECT middle_name, last_name, date_left_staff, date_of_birth, staff_id, MIN(date_joined_staff), MIN(first_name), COUNT(staff_address_id) FROM Staff WHERE date_left_staff != "2018-03-06 23:17:41" AND date_joined_staff <> "2016-11-05 01:43:52" UNION SELECT middle_name, last_name, date_left_staff, date_of_birth, staff_id, MIN(date_joined_staff), MIN(first_name), COUNT(staff_address_id) FROM Staff WHERE "staff_address_id" > 4 OR date_of_birth = "2003-01-16 06:29:11" OR last_name <> "Kuphal"


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


Question: SELECT 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 District_ID, Store_ID FROM store_district WHERE "District_ID" != 4 INTERSECT SELECT District_ID, Store_ID FROM store_district WHERE "District_ID" < 15


Question: SELECT Template_Type_Description FROM Ref_Template_Types WHERE Template_Type_Code = "BK" UNION ALL SELECT Template_Type_Description FROM Ref_Template_Types WHERE Template_Type_Description != "Presentation"


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 SUM(Driver_ID) FROM driver WHERE Home_city != "East Hartford" AND Party <> "Dem" EXCEPT SELECT SUM(Driver_ID) FROM school_bus WHERE If_full_time = "T" OR "School_ID" >= 1


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


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


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


Question: SELECT eid, name FROM employee WHERE "eid" > 574489456 OR name != "Mark Young" AND "salary" = 20 INTERSECT SELECT eid, name FROM employee WHERE "salary" != 205187 OR "eid" = 274878974 OR name = "Richard Jackson"


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


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


Question: SELECT Country, MIN(id) FROM airport GROUP BY Country HAVING MIN(id) >= 5 EXCEPT SELECT Country, MIN(id) FROM airport GROUP BY Country HAVING MIN(id) <= 6


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


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


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


Question: SELECT AVG(StuID) FROM Has_Pet WHERE "StuID" <> 1002 NOT IN (SELECT AVG(StuID) FROM Has_Pet WHERE "StuID" <> 1002)


Question: SELECT T1.Freight_Metric_Tonnes, MIN(T2.Aircraft_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 != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3


Question: SELECT Coach_ID FROM coach WHERE "Coach_ID" > 1 UNION SELECT Coach_ID FROM player_coach WHERE "Starting_year" >= 2011


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


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


Question: SELECT StuID FROM Has_Pet WHERE "StuID" < 1002 OR "PetID" > 2003 UNION ALL SELECT StuID FROM Student WHERE "Major" <> 520 AND Sex != "M" OR Fname = "Sarah" AND LName <> "Wilson" OR "StuID" <> 1026 OR city_code != "HKG" OR "Age" >= 18 AND "Advisor" <= 7712


Question: SELECT date_became_customer, customer_address_id, date_of_birth FROM Customers WHERE date_became_customer <> "2016-07-22 15:53:44" OR "customer_address_id" >= 9 AND email_address = "afranecki@example.com" AND "amount_outstanding" <> 3900.0 OR cell_mobile_phone_number != "1-401-108-8016x078" OR customer_status_code <> "Good Customer" UNION ALL SELECT date_became_customer, customer_address_id, date_of_birth FROM Customers WHERE first_name <> "Omer" OR cell_mobile_phone_number <> "1-197-686-2849x8761" AND date_of_birth <> "1993-07-09 11:11:36" OR last_name <> "Mertz" OR "customer_address_id" > 10 AND date_became_customer != "2016-02-17 08:26:23"


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


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


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


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


Question: SELECT Company_ID FROM company WHERE "Sales_in_Billion" >= 110.8 OR Headquarters != "USA" OR "Market_Value_in_Billion" != 154.8 OR "Profits_in_Billion" <> 26.9 OR "Company_ID" > 4.0 INTERSECT SELECT Company_ID FROM employment WHERE "Company_ID" > 7 OR "Year_working" = 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 Rank FROM coach WHERE Gender != "F" AND Coach_name <> "Jameson Tomas" OR "Coach_ID" = 5 AND "Club_ID" < 1 UNION SELECT Rank FROM player WHERE Sponsor_name != "Saint Boniface" OR "Votes" != 4673 OR "Player_ID" = 4 OR Residence <> "Birtle" OR Rank != "1st"


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 COUNT(T1.Domestic_Passengers), T2.Aircraft_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 <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10


Question: SELECT shipping_agent_code, shipping_agent_name FROM Ref_Shipping_Agents WHERE shipping_agent_code != "UP" AND shipping_agent_name <> "Fedex" INTERSECT SELECT shipping_agent_code, shipping_agent_name FROM Ref_Shipping_Agents WHERE shipping_agent_description <> "t" OR shipping_agent_code = "UP"


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


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


Question: SELECT Rank, Club_ID FROM coach WHERE "Club_ID" > 1 OR Gender = "M" UNION SELECT Rank, Club_ID FROM match_result WHERE "Small_Silver" < 16 OR "Gold" != 20 OR "Points" < 139 AND "Big_Silver" <= 12


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


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


Question: SELECT Total_disk_area, Aircraft, Max_Gross_Weight, Description, Max_disk_Loading FROM aircraft WHERE Description <> "Heavy-lift helicopter" AND Aircraft = "CH-47D Chinook" AND Total_disk_area = "5,655 ft² (526 m²)" UNION SELECT Total_disk_area, Aircraft, Max_Gross_Weight, Description, Max_disk_Loading FROM aircraft WHERE Total_disk_area = "5,655 ft² (526 m²)"

5,655 ft² (526 m²)
CH-47D Chinook
50,000 lb (22,680 kg)
Tandem rotor helicopter
8.8 lb/ft² (43 kg/m²)


Question: SELECT age, born_state FROM head WHERE born_state = "California" EXCEPT SELECT age, born_state FROM head WHERE "age" <= 43.0 OR born_state <> "California" AND "head_ID" >= 10 AND name != "Pádraig Harrington"


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


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


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


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 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 > 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 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 SUM(name) FROM airport WHERE City = "Bergen" AND ICAO = "PANC" AND name = "Schiphol Airport" AND "id" < 3 OR Country != "Norway" AND IATA <> "BRU" UNION SELECT SUM(name) FROM operate_company WHERE Incorporated_in = "Hong Kong"


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 Is_full_time FROM hiring WHERE "Shop_ID" <= 4 OR Start_from <> "2003" UNION ALL SELECT Is_full_time FROM hiring WHERE Start_from <> "2011" AND Is_full_time != "T"


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


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


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


Question: SELECT AVG(feature_name), COUNT(feature_type_code), feature_description FROM Other_Available_Features WHERE feature_name <> "Pool" AND feature_description <> "Air Conditioning." OR "feature_id" != 2 AND feature_type_code != "Security" EXCEPT SELECT AVG(feature_name), COUNT(feature_type_code), feature_description FROM Other_Available_Features WHERE feature_description <> "Air Conditioning." AND feature_type_code = "Security"


Question: SELECT id FROM albums WHERE title = "Kill 'Em All" UNION SELECT id FROM playlists WHERE name <> "Heavy Metal Classic"


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


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


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


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


Question: SELECT Max_Gross_Weight, Max_disk_Loading, Aircraft_ID, Aircraft, Description FROM aircraft WHERE Description = "Heavy-lift helicopter" OR "Aircraft_ID" > 5 AND Aircraft != "Robinson R-22" OR Total_disk_area <> "872 ft² (81.1 m²)" AND Max_disk_Loading = "15 lb/ft² (72 kg/m²)" INTERSECT SELECT Max_Gross_Weight, Max_disk_Loading, Aircraft_ID, Aircraft, Description FROM aircraft WHERE Max_Gross_Weight != "73,500 lb (33,300 kg)" AND Max_disk_Loading <> "15 lb/ft² (72 kg/m²)" AND Total_disk_area <> "4,900 ft² (460 m²)" OR "Aircraft_ID" <> 2

123,500 lb (56,000 kg)
14.5 lb/ft² (71 kg/m²)
4
Mil Mi-26
Heavy-lift helicopter

73,500 lb (33,300 kg)
15 lb/ft² (72 kg/m²)
5
CH-53E Super Stallion
Heavy-lift helicopter


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


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


Question: SELECT MIN(name) FROM aircraft WHERE "distance" >= 7120 EXCEPT SELECT MIN(name) FROM employee WHERE "salary" < 23980


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


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


Question: SELECT FullName, Country, Id, Maker FROM car_makers WHERE "Id" < 20 EXCEPT SELECT FullName, Country, Id, Maker FROM car_makers WHERE FullName <> "BMW" OR "Id" > 7


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


Question: SELECT SUM(Book_ID), Price FROM publication WHERE Publication_Date <> "June 2006" OR "Publication_ID" <= 2 AND "Price" < 4100000.0 OR Publisher = "Pearson" OR "Book_ID" < 5 UNION SELECT SUM(Book_ID), Price FROM publication WHERE "Book_ID" <= 7 AND "Price" >= 4100000.0 AND "Publication_ID" = 7 OR Publisher = "Wiley" AND Publication_Date != "April 2007"


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 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 != 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 = 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 middle_name, date_left_staff, date_joined_staff, last_name, date_of_birth, first_name FROM Staff WHERE date_joined_staff <> "2017-12-22 03:06:32" AND last_name <> "Jast" OR first_name != "Jedidiah" UNION SELECT middle_name, date_left_staff, date_joined_staff, last_name, date_of_birth, first_name FROM Staff WHERE nickname <> "nicholaus92" AND last_name != "Herzog" OR "staff_id" != 3 AND "staff_address_id" <> 7 OR first_name != "Ludie" AND date_joined_staff != "2017-10-21 17:20:57"


Question: SELECT COUNT(feature_id) FROM Other_Available_Features WHERE "feature_id" <> 4 OR feature_type_code = "Security" INTERSECT SELECT COUNT(feature_id) FROM Other_Property_Features WHERE "property_id" > 13


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 Member_ID FROM membership_register_branch WHERE Register_Year = "2016" OR Branch_ID != "5" UNION ALL SELECT Member_ID FROM purchase WHERE Branch_ID <> "1"


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


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


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


Question: SELECT 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 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 role_description FROM Roles WHERE role_description != "Editor" UNION ALL SELECT role_description FROM Roles WHERE role_code <> "PT" OR role_description = "Editor"


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


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


Question: SELECT Gender, Rank FROM coach WHERE "Rank" <= 5 OR Gender <> "M" EXCEPT SELECT Gender, Rank FROM player WHERE Rank != "3rd"


Question: SELECT MIN(Num_Employees), COUNT(Name), AVG(Department_ID), COUNT(Creation), Ranking, MAX(Budget_in_Billions) FROM department WHERE "Budget_in_Billions" <> 44.6 AND "Department_ID" <= 7 GROUP BY Ranking HAVING MAX(Budget_in_Billions) <= 77.6 OR COUNT(Name) != 1 AND COUNT(Creation) != 1 OR MIN(Num_Employees) = 30266.0 OR AVG(Department_ID) > 5.0 UNION SELECT MIN(Num_Employees), COUNT(Name), AVG(Department_ID), COUNT(Creation), Ranking, MAX(Budget_in_Billions) FROM department WHERE "Department_ID" > 1 OR "Ranking" > 15 OR Name = "Treasury" OR "Num_Employees" < 36000.0 GROUP BY Ranking HAVING MIN(Num_Employees) > 208000.0 AND AVG(Department_ID) > 12.0


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


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


Question: SELECT AVG(name) FROM airport WHERE ICAO <> "KBOS" OR "id" <= 9 AND Country <> "United States" UNION SELECT AVG(name) FROM operate_company WHERE name != "Cathay Pacific Services Limited" OR "id" <= 9


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


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


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


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


Question: SELECT MIN(property_type_description) FROM Ref_Property_Types WHERE property_type_code != "Other" EXCEPT SELECT MIN(property_type_description) FROM Ref_Property_Types WHERE property_type_description = "Shop, Retail Outlet."


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


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


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


Question: SELECT draft_number, document_id, draft_details FROM Document_Drafts WHERE "draft_number" != 17 INTERSECT SELECT draft_number, document_id, draft_details FROM Document_Drafts WHERE draft_details != "v" OR "document_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 != 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 < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9


Question: SELECT Company_ID FROM company WHERE Headquarters <> "USA" AND "Assets_in_Billion" <> 331.1 AND "Company_ID" > 17.0 OR "Profits_in_Billion" >= 15.7 OR Name != "Total" OR "Market_Value_in_Billion" <> 107.5 INTERSECT SELECT Company_ID FROM employment WHERE "People_ID" != 3 AND "Company_ID" <= 11


Question: SELECT draft_number FROM Document_Drafts WHERE "draft_number" > 9 AND "document_id" != 13 UNION SELECT draft_number FROM Document_Drafts WHERE "document_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 >= 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 > 7


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


Question: SELECT Company_ID, People_ID FROM employment WHERE "People_ID" < 1 OR "Year_working" >= 2 UNION SELECT Company_ID, People_ID FROM employment WHERE "Year_working" < 1 AND "Company_ID" = 7 OR "People_ID" <= 7


Question: SELECT eid FROM certificate WHERE "aid" = 3 EXCEPT SELECT eid FROM employee WHERE "eid" != 269734834 OR "salary" <= 24450 AND name != "Dorthy Lewis"


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


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


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


Question: SELECT COUNT(Continent) FROM continents WHERE Continent = "america" UNION ALL SELECT COUNT(Continent) FROM countries WHERE CountryName != "egypt" AND "CountryId" != 3


Question: SELECT Name FROM branch WHERE Address_road = "Abbott Street" OR Name != "Taverner" UNION ALL SELECT Name FROM member WHERE "Level" > 6 OR Card_Number = "RCB32"


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


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


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


Question: SELECT MAX(Age), MIN(StuID), COUNT(Fname), AVG(Major) FROM Student WHERE "Age" >= 19 UNION SELECT MAX(Age), MIN(StuID), COUNT(Fname), AVG(Major) FROM Student WHERE "Major" <> 600 OR LName != "Simms" OR "Age" = 18

MAX(Age) MIN(StuID) COUNT(Fname) AVG(Major)


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


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


Question: SELECT born_state, age, head_ID, name FROM head WHERE "head_ID" >= 3 OR name = "Stewart Cink" OR born_state <> "Delaware" OR "age" < 43.0 EXCEPT SELECT born_state, age, head_ID, name FROM head WHERE "age" <> 43.0 AND born_state = "California" AND "head_ID" > 6


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


Question: SELECT document_id FROM Circulation_History WHERE "employee_id" < 1 UNION SELECT document_id FROM Documents_Mailed WHERE "document_id" <= 10


Question: SELECT SUM(Department_ID), SUM(Ranking), Budget_in_Billions FROM department WHERE "Num_Employees" > 4487.0 AND Name != "Defense" EXCEPT SELECT SUM(Department_ID), SUM(Ranking), Budget_in_Billions FROM department WHERE "Department_ID" != 11 AND "Ranking" <> 8 OR "Num_Employees" = 67000.0 AND Name != "Commerce" OR "Budget_in_Billions" > 439.3


Question: SELECT Address_road, City, membership_amount, MIN(Open_year), Branch_ID, Name FROM branch WHERE Name != "Brooke Greville" AND "Branch_ID" >= 1 OR Open_year <> "2015" EXCEPT SELECT Address_road, City, membership_amount, MIN(Open_year), Branch_ID, Name FROM branch WHERE membership_amount = "11" AND Address_road = "Abbott Street"


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 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 staff_id FROM Lessons WHERE "staff_id" >= 11 OR lesson_status_code = "Completed" OR "vehicle_id" < 2 AND "customer_id" >= 6 UNION ALL SELECT staff_id FROM Staff WHERE date_of_birth = "1996-09-24 09:51:42" OR middle_name != "Sherwood" OR "staff_id" < 5 AND date_joined_staff <> "2017-06-04 14:30:41" AND date_left_staff = "2018-03-09 05:08:35"


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