Question: SELECT ClubName, ClubLocation, COUNT(ClubID) FROM Club WHERE ClubDesc != "Play pen and paper games on campus." OR "ClubID" <> 1 AND ClubLocation = "HHH" UNION ALL SELECT ClubName, ClubLocation, COUNT(ClubID) FROM Club WHERE ClubDesc != "Venture capital fund for student business."


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


Question: SELECT Driver_ID FROM driver WHERE Name <> "Jason Rojas" OR Party != "Dem" OR "Age" = 38 OR "Driver_ID" <> 1 OR Home_city <> "East Hartford" EXCEPT SELECT Driver_ID FROM school_bus WHERE "School_ID" <> 3


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


Question: SELECT Club_ID, Points, MIN(Small_Silver) FROM match_result WHERE "Rank" != 5 OR "Club_ID" > 5 OR "Gold" <= 6 OR "Points" <= 168 EXCEPT SELECT Club_ID, Points, MIN(Small_Silver) FROM match_result WHERE "Gold" < 12 AND "Bronze" > 8 AND "Rank" != 6 OR "Points" <= 89 OR "Big_Silver" >= 11 AND "Club_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 <= 9


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


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


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


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


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


Question: SELECT last_name, first_name FROM Customers WHERE cell_mobile_phone_number <> "200.830.8723" UNION SELECT last_name, first_name FROM Staff WHERE first_name = "Eulalia" AND nickname = "santos45" OR "staff_address_id" = 1 AND date_of_birth != "2000-11-16 06:55:12" AND last_name != "Hermann" OR "staff_id" < 6 AND middle_name <> "Tre"


Question: SELECT Level, Hometown, Card_Number, Member_ID, COUNT(Name) FROM member WHERE Name != "Ventrell Jenkins" AND Card_Number != "RT91" EXCEPT SELECT Level, Hometown, Card_Number, Member_ID, COUNT(Name) FROM member WHERE Hometown <> "Simpsonville, South Carolina" AND Name <> "David Jones" OR "Member_ID" < 10 AND "Level" >= 6


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


Question: SELECT Employee_ID FROM employee WHERE Name = "Lee Mears" AND "Age" >= 30 AND "Employee_ID" <= 6 UNION ALL SELECT Employee_ID FROM evaluation WHERE "Bonus" >= 2900.0 AND Employee_ID = "1" OR Year_awarded <> "2011"


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


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


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


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


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


Question: SELECT AVG(Coach_ID) FROM coach WHERE "Club_ID" != 3 OR "Coach_ID" >= 4 AND Coach_name = "Smith Brown" UNION SELECT AVG(Coach_ID) FROM player_coach WHERE "Player_ID" != 10 AND "Coach_ID" <> 2 AND "Starting_year" >= 2011


Question: SELECT COUNT(Rank), Residence, Player_name, COUNT(Player_ID), MAX(Votes), Sponsor_name, COUNT(Gender), COUNT(Occupation) FROM player WHERE Rank <> "1st" OR "Player_ID" >= 13 OR "Votes" = 4947 UNION ALL SELECT COUNT(Rank), Residence, Player_name, COUNT(Player_ID), MAX(Votes), Sponsor_name, COUNT(Gender), COUNT(Occupation) FROM player WHERE Occupation = "Retired" AND Player_name = "Jim Maloway"


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


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


Question: SELECT SUM(Branch_ID) FROM branch WHERE Address_road != "Abbott Street" AND Name = "Taverner" AND membership_amount = "31" UNION ALL SELECT SUM(Branch_ID) FROM purchase WHERE Year <> "2018" OR "Total_pounds" < 402.1 AND "Member_ID" <= 3


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


Question: SELECT T1.Aircraft_ID, MIN(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 = 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 < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10


Question: SELECT Branch_ID FROM membership_register_branch WHERE Register_Year <> "2016" INTERSECT SELECT Branch_ID FROM purchase WHERE Branch_ID != "3" OR "Member_ID" <> 4


Question: SELECT Profits_in_Billion, COUNT(Sales_in_Billion), Company_ID, Headquarters, COUNT(Industry), Assets_in_Billion, COUNT(Name) FROM company WHERE "Profits_in_Billion" > 14.2 AND Name != "China Construction Bank" OR Headquarters != "China" OR "Market_Value_in_Billion" = 294.7 OR "Company_ID" <> 16.0 AND "Assets_in_Billion" = 328.7 AND "Sales_in_Billion" = 68.7 EXCEPT SELECT Profits_in_Billion, COUNT(Sales_in_Billion), Company_ID, Headquarters, COUNT(Industry), Assets_in_Billion, COUNT(Name) FROM company WHERE "Company_ID" > 1.0 OR Name <> "Agricultural Bank of China" OR "Profits_in_Billion" > 20.6 AND "Assets_in_Billion" <= 209.5 AND Headquarters != "USA" AND Industry = "Banking"


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 Employee_ID FROM evaluation WHERE Employee_ID != "7" OR "Bonus" >= 3200.0 OR Year_awarded = "2015" UNION SELECT Employee_ID FROM hiring WHERE Is_full_time = "T" OR "Shop_ID" < 1 AND Start_from != "2009" OR "Employee_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 >= 3


Question: SELECT title, i_id FROM item WHERE "i_id" >= 5 UNION ALL SELECT title, i_id FROM item WHERE title <> "cup" OR "i_id" != 2


Question: SELECT AVG(i_id) FROM item WHERE "i_id" <> 1 OR title = "avocado" UNION ALL SELECT AVG(i_id) FROM review WHERE "a_id" > 5


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


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


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


Question: SELECT address_details, address_id FROM Addresses WHERE "address_id" <= 5 UNION ALL SELECT address_details, address_id FROM Addresses WHERE address_details != "IE" OR "address_id" < 5


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


Question: SELECT Position FROM Member_of_club WHERE "StuID" <> 1001 UNION ALL SELECT Position FROM Member_of_club WHERE "ClubID" <= 4 OR "StuID" <> 1007 OR Position = "Vice-President"


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


Question: SELECT SUM(T1.ClubID), T2.StuID FROM Club as T1 JOIN Member_of_club as T2 ON T1.ClubID = T2.ClubID WHERE Position = "President" AND ClubName <> "Hopkins Student Enterprises"


Question: SELECT head_ID FROM head WHERE "head_ID" <> 1 OR name != "Stewart Cink" AND "age" < 43.0 AND born_state <> "Alabama" EXCEPT SELECT head_ID FROM management WHERE "department_ID" < 7


Question: SELECT eid FROM certificate WHERE "eid" > 573284895 OR "aid" >= 12 UNION ALL SELECT eid FROM employee WHERE name != "Donald King"


Question: SELECT state, created, contestant_number, vote_id, phone_number FROM VOTES WHERE "vote_id" != 3 AND "phone_number" > 6209222712 AND created = "2018-03-09 19:03:36" OR "contestant_number" <> 3 AND state = "CA" UNION SELECT state, created, contestant_number, vote_id, phone_number FROM VOTES WHERE "phone_number" >= 5112677315


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


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


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


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


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


Question: SELECT Rank FROM match_result WHERE "Club_ID" < 2 AND "Rank" >= 4 OR "Gold" > 7 OR "Bronze" = 8 UNION SELECT Rank FROM player WHERE "Votes" > 14097 AND Residence != "Winnipeg" OR Rank = "3rd" AND Player_name <> "Rachel Heinrichs" OR Occupation != "Product Consultant - MLCC" OR Gender != "F"


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


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


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


Question: SELECT MAX(PetID) FROM Has_Pet WHERE "PetID" <= 2003 AND "StuID" <> 1002 INTERSECT SELECT MAX(PetID) FROM Pets WHERE "weight" < 13.4 AND PetType != "dog"


Question: SELECT COUNT(StuID) FROM Has_Allergy WHERE "StuID" = 1031 UNION SELECT COUNT(StuID) FROM Student WHERE "StuID" > 1001 OR "Age" > 20 OR "Major" <> 50 AND Fname = "Andy" OR "Advisor" != 8722 AND city_code != "PHL" OR Sex != "M"


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


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


Question: SELECT StuID FROM Has_Allergy WHERE "StuID" = 1027 UNION SELECT StuID FROM Student WHERE "Advisor" <> 8722 AND Sex = "M" AND Fname != "Michael" OR LName = "Schultz" OR "Age" <> 19 AND "Major" != 600


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


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


Question: SELECT Document_Name FROM Documents WHERE Document_Description != "n" NOT IN (SELECT Document_Name FROM Documents WHERE Document_Description <> "f" AND "Template_ID" < 4 AND Other_Details <> "None")


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


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


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


Question: SELECT Template_ID FROM Documents WHERE Document_Description != "h" OR "Template_ID" < 1 UNION SELECT Template_ID FROM Templates WHERE Template_Details != ""


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


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


Question: SELECT id, Principal_activities, Incorporated_in FROM operate_company WHERE "id" = 8 OR Principal_activities <> "Travel agency" OR name <> "Cathay Pacific Catering Services (HK) Limited" UNION SELECT id, Principal_activities, Incorporated_in FROM operate_company WHERE "id" >= 13 OR Incorporated_in != "Hong Kong" AND Principal_activities = "Laundry" OR Type = "Subsidiary"


Question: SELECT head_ID, temporary_acting FROM management WHERE "department_ID" > 2 AND temporary_acting = "Yes" AND "head_ID" = 4 UNION SELECT head_ID, temporary_acting FROM management WHERE "department_ID" = 7 AND "head_ID" < 5 OR temporary_acting = "No"


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 Publisher, Price, Publication_Date, Publication_ID FROM publication WHERE Publisher = "Wiley" OR "Price" >= 4100000.0 EXCEPT SELECT Publisher, Price, Publication_Date, Publication_ID FROM publication WHERE "Price" = 2000000.0 AND "Publication_ID" != 4 AND "Book_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 != 1


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


Question: SELECT created, state, phone_number, vote_id FROM VOTES WHERE "vote_id" <> 1 INTERSECT SELECT created, state, phone_number, vote_id FROM VOTES WHERE "vote_id" < 2 OR "phone_number" <> 6209222712 AND "contestant_number" > 5 OR state != "NY" OR created = "2018-03-09 19:03:36"


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


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


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


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


Question: SELECT T1.Issues, T2.Book_ID FROM book as T1 JOIN publication as T2 ON T1.Book_ID == T2.Book_ID GROUP BY Issues HAVING Publisher <> "Bertelsmann" OR Price <= 2000000.0


Question: SELECT Bonus FROM evaluation WHERE Employee_ID != "4" EXCEPT SELECT Bonus FROM evaluation WHERE "Bonus" <> 2900.0 OR Year_awarded != "2016"


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


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


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


Question: SELECT SUM(Store_ID), MAX(Product_ID) FROM store_product WHERE "Store_ID" >= 2 AND "Product_ID" < 3 UNION ALL SELECT SUM(Store_ID), MAX(Product_ID) FROM store_product WHERE "Store_ID" > 5 AND "Product_ID" >= 2


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


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


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


Question: SELECT Company_ID FROM company WHERE "Profits_in_Billion" >= 25.7 AND Headquarters = "USA" AND "Market_Value_in_Billion" <> 202.2 OR Name <> "Chevron" AND "Company_ID" > 5.0 EXCEPT SELECT Company_ID FROM employment WHERE "People_ID" <= 7


Question: SELECT MAX(feature_id) FROM Other_Available_Features WHERE "feature_id" <= 2 AND feature_name <> "BurglarAlarm" AND feature_type_code != "Amenity" UNION ALL SELECT MAX(feature_id) FROM Other_Property_Features WHERE property_feature_description <> "autem" AND "feature_id" != 2 AND "property_id" = 15


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


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


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


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


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


Question: SELECT District_name, District_ID, Headquartered_City, City_Population FROM district WHERE Headquartered_City = "Gujrat City" UNION ALL SELECT District_name, District_ID, Headquartered_City, City_Population FROM district WHERE District_name != "Chiniot District" OR "City_Area" < 10.0 OR "City_Population" < 134936.0 AND Headquartered_City <> "Chakwal City" AND "District_ID" != 8


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


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


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


Question: SELECT AVG(donator_name), MIN(endowment_id), COUNT(School_id), amount FROM endowment WHERE "amount" <> 8.99 OR "School_id" > 5 EXCEPT SELECT AVG(donator_name), MIN(endowment_id), COUNT(School_id), amount FROM endowment WHERE "amount" > 9.83 OR "School_id" = 5 AND "endowment_id" < 8


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


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


Question: SELECT COUNT(Club_ID) FROM club WHERE "Club_ID" != 3 AND "Start_year" <> 2009 EXCEPT SELECT COUNT(Club_ID) FROM coach WHERE "Coach_ID" = 3 OR "Club_ID" < 1 OR Coach_name != "Robert Chen" AND "Rank" > 1 OR Gender = "M"


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


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


Question: SELECT 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 Hometown FROM member WHERE "Level" > 6 AND Hometown = "Fort Campbell, Kentucky" OR Name != "Jeremy Jarmon" OR "Member_ID" = 10 OR Card_Number != "FS10" UNION SELECT Hometown FROM member WHERE Card_Number != "RT91" AND "Level" = 2


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


Question: SELECT Date_Effective_To, Version_Number, Date_Effective_From, Template_Details FROM Templates WHERE Date_Effective_From <> "2012-04-05 07:11:42" AND "Version_Number" <> 6 OR Template_Details = "" OR Template_Type_Code <> "PP" AND Date_Effective_To <> "1994-12-07 13:26:23" EXCEPT SELECT Date_Effective_To, Version_Number, Date_Effective_From, Template_Details FROM Templates WHERE Template_Details != "" OR "Version_Number" >= 9 OR "Template_ID" <= 20 OR Date_Effective_To = "1999-07-08 03:31:04" AND Date_Effective_From = "1993-10-07 02:33:04"


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


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


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


Question: SELECT feature_type_code FROM Other_Available_Features WHERE "feature_id" != 2 OR feature_name <> "BurglarAlarm" AND feature_type_code <> "Amenity" AND feature_description <> "Burglar Alarm" INTERSECT SELECT 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 > 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 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10


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


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


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


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


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


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


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


Question: SELECT Party FROM election WHERE Counties_Represented = "13" OR Delegate <> "Pendergrass, Shane E. Shane Pendergrass" OR "First_Elected" != 2003.0 OR Committee = "Appropriations" AND "Party" < 7 AND "Election_ID" != 5 UNION ALL SELECT Party FROM party WHERE Party <> "Independence" OR "Party_ID" = 6 OR Governor = "Peter Vallone" AND Comptroller = "Carl McCall" AND Lieutenant_Governor != "Mary Donohue"


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


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


Question: SELECT age, name, born_state FROM head WHERE name = "Billy Mayfair" OR born_state != "California" OR "age" != 43.0 INTERSECT SELECT age, name, born_state FROM head WHERE "age" > 67.0 AND born_state = "Delaware" OR name <> "Dudley Hart" OR "head_ID" <> 1


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


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


Question: SELECT Product_ID FROM store_product WHERE "Product_ID" <= 2 UNION SELECT Product_ID FROM store_product WHERE "Product_ID" <> 6


Question: SELECT receipt_date, document_id, shipping_agent_code, document_status_code, receipt_number FROM Documents WHERE shipping_agent_code = "SH" OR receipt_date <> "2017-07-02 17:39:09" AND "document_id" < 13 AND receipt_number != "83" INTERSECT SELECT receipt_date, document_id, shipping_agent_code, document_status_code, receipt_number FROM Documents WHERE receipt_date != "1973-11-05 21:48:53" OR receipt_number <> "37" AND shipping_agent_code <> "FE" OR other_details = "j" OR "document_id" = 4 OR document_status_code <> "done"


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


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


Question: SELECT MIN(age), MIN(name), head_ID FROM head WHERE "age" < 52.0 OR born_state <> "Connecticut" OR "head_ID" >= 6 OR name <> "Nick Faldo" UNION SELECT MIN(age), MIN(name), head_ID FROM head WHERE name <> "Jeff Maggert" AND "age" = 43.0 AND "head_ID" <= 1 OR born_state = "Florida"


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


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


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


Question: SELECT FullName, Country FROM car_makers WHERE Maker <> "kia" OR Country <> "2" AND FullName <> "Honda" OR "Id" < 8 INTERSECT SELECT FullName, Country FROM car_makers WHERE Country <> "1" OR FullName != "Peugeaut" OR "Id" != 22


Question: SELECT Id FROM car_makers WHERE Maker <> "volkswagen" OR FullName != "Mazda" OR "Id" <> 16 OR Country = "8" INTERSECT SELECT Id FROM cars_data WHERE "Year" <> 1978


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 COUNT(PetID) FROM Has_Pet WHERE "PetID" <> 2003 OR "StuID" = 1001 INTERSECT SELECT COUNT(PetID) FROM Pets WHERE PetType != "dog" OR "PetID" <> 2003 OR "weight" = 12.0 AND "pet_age" <> 3


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


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


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


Question: SELECT draft_number, MAX(document_id) FROM Circulation_History GROUP BY draft_number HAVING MAX(document_id) != 1 UNION SELECT draft_number, MAX(document_id) FROM Document_Drafts GROUP BY draft_number HAVING MAX(document_id) != 13


Question: SELECT MIN(feature_id) FROM Other_Available_Features WHERE feature_type_code = "Amenity" AND feature_name <> "AirCon" AND feature_description <> "Burglar Alarm" OR "feature_id" != 3 UNION ALL SELECT MIN(feature_id) FROM Other_Property_Features WHERE "feature_id" <= 3 AND property_feature_description <> "odio"


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


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


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


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


Question: SELECT 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 draft_number, draft_details, document_id FROM Document_Drafts WHERE "draft_number" != 14 INTERSECT SELECT draft_number, draft_details, document_id FROM Document_Drafts WHERE "document_id" > 1 OR "draft_number" >= 9 OR draft_details = "v"


Question: SELECT shipping_agent_code FROM Documents WHERE other_details = "u" OR document_type_code <> "CD" OR shipping_agent_code != "SH" AND "document_id" <= 15 OR document_status_code != "done" OR receipt_date = "1973-11-05 21:48:53" OR receipt_number != "37" UNION SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_code <> "AL" AND shipping_agent_description <> "k"


Question: SELECT COUNT(property_type_code), property_type_description FROM Ref_Property_Types WHERE property_type_description <> "Field, Meadow." UNION SELECT COUNT(property_type_code), property_type_description FROM Ref_Property_Types WHERE property_type_description <> "House, Bungalow, etc."


Question: SELECT document_status_code FROM Documents WHERE document_type_code <> "CD" AND other_details != "u" OR "document_id" > 12 AND receipt_number <> "83" OR shipping_agent_code != "AL" OR document_status_code = "done" AND receipt_date <> "1996-07-27 03:30:40" UNION SELECT document_status_code FROM Ref_Document_Status WHERE document_status_description != "currently working on"


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


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


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


Question: SELECT CountryName, Continent, CountryId FROM countries WHERE CountryName = "uk" UNION SELECT CountryName, Continent, CountryId FROM countries WHERE CountryName <> "sweden" OR "Continent" >= 1


Question: SELECT aid, distance FROM aircraft WHERE "distance" <= 520 OR name <> "Airbus A319" UNION SELECT aid, distance FROM flight WHERE "aid" <> 7 OR arrival_date != "04/12/2005 03:55" AND "distance" < 2551 AND departure_date = "04/12/2005 09:00"


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


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


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


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


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


Question: SELECT total_budget_percent_budgeted, Budgeted FROM budget WHERE "Year" <> 1999 AND "Invested" != 85249 OR "School_id" > 2 AND "Budgeted" = 113531 OR "total_budget_percent_budgeted" <> 1.3 AND "total_budget_percent_invested" = 2.2 UNION ALL SELECT total_budget_percent_budgeted, Budgeted FROM budget WHERE "total_budget_percent_budgeted" = 2.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 < 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 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 Advisor, Age, city_code, Sex, Major, Fname, LName FROM Student WHERE city_code = "CHI" AND "StuID" < 1007 OR "Age" > 18 UNION ALL SELECT Advisor, Age, city_code, Sex, Major, Fname, LName FROM Student WHERE "Major" <> 550 AND Fname = "Jun" AND "Advisor" < 7723 AND "Age" != 18

Advisor Age city_code Sex Major Fname LName


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 Enrollment, Location, County FROM School WHERE IHSAA_Class = "AAA" AND School_id != "1" UNION SELECT Enrollment, Location, County FROM School WHERE IHSAA_Football_Class != "A" AND Location <> "New Carlisle"

852
New Carlisle
46 LaPorte 71 St. Joseph


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 SUM(ClubDesc), ClubID, COUNT(ClubLocation) FROM Club WHERE ClubLocation != "AKW" AND ClubDesc = "Play pen and paper games on campus." OR "ClubID" > 4 UNION SELECT SUM(ClubDesc), ClubID, COUNT(ClubLocation) FROM Club WHERE ClubName <> "Tennis Club" AND "ClubID" >= 1 OR ClubDesc <> "Venture capital fund for student business." AND ClubLocation <> "HHH"


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


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


Question: SELECT AVG(People_ID), Company_ID, COUNT(Year_working) FROM employment WHERE "People_ID" > 4 OR "Year_working" != 2 EXCEPT SELECT AVG(People_ID), Company_ID, COUNT(Year_working) FROM employment WHERE "Company_ID" <> 13


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 T1.City_Population, T2.District_ID FROM district as T1 JOIN store_district as T2 ON T1.District_ID == T2.District_ID GROUP BY District_name HAVING City_Area <> 12.0 OR City_Population = 2793721.0


Question: SELECT customer_id FROM Customer_Payments WHERE "customer_id" >= 14 AND datetime_payment = "2018-02-19 01:49:59" OR payment_method_code = "Credit Card" UNION SELECT customer_id FROM Lessons WHERE "price" <> 231.0 AND "staff_id" >= 4 AND lesson_status_code != "Completed"


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


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


Question: SELECT AVG(feature_id) FROM Other_Available_Features WHERE feature_name != "AirCon" EXCEPT SELECT AVG(feature_id) FROM Other_Property_Features WHERE property_feature_description = "modi" AND "feature_id" = 4 AND "property_id" <> 11


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


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


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


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


Question: SELECT Name FROM employee WHERE City != "Bristol" OR "Age" > 23 AND Name != "Phil Vickery" EXCEPT SELECT Name FROM shop WHERE "Shop_ID" < 6 AND Manager_name = "Olli Huttunen" OR Name <> "FF Jaro" AND "Number_products" < 6000 AND Location = "Kuopio"


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


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


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


Question: SELECT COUNT(T1.distance), T2.eid FROM aircraft as T1 JOIN certificate as T2 ON T1.aid = T2.aid WHERE AVG(distance) < 2128 OR name = "Airbus A319"


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 ICAO, id FROM airport WHERE name = "Schiphol Airport" AND City != "Brussels" UNION SELECT ICAO, id FROM airport WHERE IATA != "BCN" AND "id" >= 8 OR Country <> "Iceland"


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 budget WHERE "Budgeted" > 6803 OR "Invested" = 140102 AND "School_id" <= 5 OR "total_budget_percent_budgeted" != 2.0 AND Budget_invested_percent <> "228.6" OR "total_budget_percent_invested" < 2.2 UNION ALL SELECT School_id FROM endowment WHERE "endowment_id" >= 6 AND donator_name = "Duarte" OR "amount" < 9.73


Question: SELECT Paragraph_ID, Document_ID, Paragraph_Text, Other_Details FROM Paragraphs WHERE Paragraph_Text != "UK" AND Other_Details = "None" OR "Paragraph_ID" = 280120913 OR "Document_ID" != 2394 UNION SELECT Paragraph_ID, Document_ID, Paragraph_Text, Other_Details FROM Paragraphs WHERE Other_Details <> "None" OR "Document_ID" > 2394 OR "Paragraph_ID" <= 608931827 AND Paragraph_Text = "Micronesia"


Question: SELECT COUNT(Document_ID) FROM Documents WHERE "Document_ID" <= 76 AND Other_Details = "None" AND Document_Description = "y" EXCEPT SELECT COUNT(Document_ID) FROM Paragraphs WHERE "Document_ID" != 3830 OR Paragraph_Text = "Ukraine" AND "Paragraph_ID" = 16615 OR Other_Details <> "None"


Question: SELECT Address_road FROM branch WHERE "Branch_ID" != 5 AND Address_road <> "Oaks Crescent" OR Open_year <> "2014" IN (SELECT Address_road FROM branch WHERE Open_year = "2001")


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


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


Question: SELECT Name FROM company WHERE Headquarters <> "USA" AND "Assets_in_Billion" < 340.5 OR Industry != "Oil and gas" OR "Market_Value_in_Billion" <> 213.7 AND "Sales_in_Billion" < 143.7 UNION ALL SELECT Name FROM people WHERE Name != "Tom Sheehey" AND Nationality <> "United Kindom"


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


Question: SELECT MAX(Maker), Id FROM car_makers WHERE Maker != "peugeaut" OR "Id" <> 13 INTERSECT SELECT MAX(Maker), Id FROM car_makers WHERE Maker = "triumph" AND "Id" <= 4 OR FullName != "Fiat"


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 arrival_date, MAX(origin), AVG(flno), aid, departure_date, MAX(destination), MAX(price) FROM flight WHERE "distance" = 2606 AND "flno" = 13 UNION ALL SELECT arrival_date, MAX(origin), AVG(flno), aid, departure_date, MAX(destination), MAX(price) FROM flight WHERE origin != "Los Angeles"

arrival_date MAX(origin) AVG(flno) aid departure_date MAX(destination) MAX(price)


Question: SELECT Player_ID FROM player WHERE Occupation <> "Product Consultant - MLCC" UNION ALL SELECT Player_ID FROM player_coach WHERE "Starting_year" = 2012 OR "Coach_ID" <= 1


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 AVG(feature_type_name), SUM(feature_type_code) FROM Ref_Feature_Types WHERE feature_type_code <> "Security" AND feature_type_name <> "Securiyt, eg Burglar Alarm." INTERSECT SELECT AVG(feature_type_name), SUM(feature_type_code) FROM Ref_Feature_Types WHERE feature_type_name <> "Amenity, eg Pool."


Question: SELECT MIN(last_name), MAX(date_of_birth) FROM Customers WHERE cell_mobile_phone_number = "1-197-686-2849x8761" AND "amount_outstanding" > 255.0 OR "customer_address_id" <= 13 UNION SELECT MIN(last_name), MAX(date_of_birth) FROM Staff WHERE nickname = "santos45" OR "staff_id" <= 10 AND date_joined_staff != "2016-05-01 02:22:45" AND "staff_address_id" <= 2 OR date_left_staff = "2018-03-05 18:30:12" AND last_name = "Jast" OR date_of_birth = "1998-04-27 12:55:05"


Question: SELECT District, Delegate, Party, First_Elected, Committee, Counties_Represented, Election_ID FROM election WHERE Committee = "Appropriations" AND "Election_ID" = 5 OR "Party" < 3 OR Counties_Represented <> "09.1 9A" EXCEPT SELECT District, Delegate, Party, First_Elected, Committee, Counties_Represented, Election_ID FROM election WHERE "Election_ID" = 8

DeBoy, Steven J. Sr. Steven J. DeBoy, Sr.

Malone, James E. Jr. James E. Malone, Jr.


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 document_type_code FROM Documents WHERE receipt_date = "2008-04-21 20:42:25" AND shipping_agent_code = "SH" AND document_type_code != "Paper" OR document_status_code <> "done" OR other_details != "x" OR receipt_number = "79" OR "document_id" <> 14 UNION SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description != "u" AND document_type_code = "CD"


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


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


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


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


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


Question: SELECT apt_feature_2, oth_feature_1, shp_feature_1, apt_feature_1, property_address, fld_feature_3, oth_feature_3 FROM Properties WHERE apt_feature_1 = "qui" AND property_address <> "6837 Darien Views Apt. 475 South Maraview, KS 77770" OR fld_feature_3 <> "None" OR apt_feature_2 = "autem" OR oth_feature_3 = "None" OR "room_count" > 2 OR property_type_code != "Apartment" OR other_property_details != "None" AND hse_feature_3 = "None" AND shp_feature_2 != "None" OR apt_feature_3 != "None" INTERSECT SELECT apt_feature_2, oth_feature_1, shp_feature_1, apt_feature_1, property_address, fld_feature_3, oth_feature_3 FROM Properties WHERE date_on_market != "1994-02-14 02:27:13" AND hse_feature_2 != "None" OR property_address <> "2088 Bashirian Fork Suite 337 Faustinoport, MT 16771-9320" OR fld_feature_2 != "None" OR oth_feature_2 = "None" OR "vendor_requested_price" != 983.8596 OR other_property_details <> "None" AND apt_feature_3 <> "None" OR "room_count" > 8 AND hse_feature_1 != "None" OR shp_feature_3 <> "None" OR shp_feature_2 = "None" AND "buyer_offered_price" < 3520911.5258 AND "agreed_selling_price" <= 244353758.1824 AND oth_feature_1 = "None" AND fld_feature_3 <> "None" AND date_sold <> "1981-06-26 21:28:28" OR oth_feature_3 = "None" AND "property_id" <= 1 OR property_type_code <> "Other" OR property_name = "longacre" AND apt_feature_2 <> "eos" AND hse_feature_3 = "None" AND apt_feature_1 <> "sed" OR fld_feature_1 <> "None"

49578 Ayden Mountains
New Russellhaven, UT 46626

60845 Else Highway Apt. 826
South Dougfort, CO 43200-4258

743 Ephraim Greens
Anniemouth, HI 47084-3853

6837 Darien Views Apt. 475
South Maraview, KS 77770

1474 Dibbert Fields Suite 055
South Renee, IN 58286-3097

098 Tremaine Highway Suite 569
South Wilford, NJ 46587-3537

2088 Bashirian Fork Suite 337
Faustinoport, MT 16771-9320

092 Paucek Highway Apt. 772
East Erika, IA 61358

062 Micaela Court Apt. 707
Margretville, WV 51628-3617

986 Hagenes Drives
Draketon, UT 83411-3393

24365 Ulices Run
Homenicktown, MD 88485-6198

2765 Schulist Stream
Lindmouth, UT 03391-3817

107 Roob Courts
Erdmanburgh, IA 42926-0873

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

084 Lakin Vista Apt. 394
Fishertown, MA 16876


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


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


Question: SELECT COUNT(ModelId), AVG(Maker) FROM model_list WHERE "ModelId" = 4 OR "Maker" > 6 AND Model = "fiat" UNION SELECT COUNT(ModelId), AVG(Maker) FROM model_list WHERE "Maker" < 4 OR "ModelId" < 17


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


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


Question: SELECT AVG(lesson_date), MIN(lesson_status_code), staff_id, COUNT(lesson_id) FROM Lessons WHERE "staff_id" > 4 OR "vehicle_id" != 1 UNION SELECT AVG(lesson_date), MIN(lesson_status_code), staff_id, COUNT(lesson_id) FROM Lessons WHERE "staff_id" < 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 <= 7


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


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


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


Question: SELECT MIN(Name) FROM employee WHERE "Age" < 43 AND "Employee_ID" <= 1 AND City <> "Leicester" UNION SELECT MIN(Name) FROM shop WHERE Name = "KuPS" AND "Number_products" < 10770 AND District = "Arto Tolsa Areena" AND Location != "Kuopio" AND "Shop_ID" > 1 OR Manager_name <> "Olli Huttunen"


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


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


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


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


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


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


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


Question: SELECT MAX(T1.Height), T2.Poker_Player_ID FROM people as T1 JOIN poker_player as T2 ON T1.People_ID = T2.People_ID WHERE Height > 187.0


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


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


Question: SELECT address_id FROM Addresses WHERE "address_id" >= 9 NOT IN (SELECT address_id FROM Addresses WHERE "address_id" < 0)


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


Question: SELECT Year, Branch_ID, Total_pounds, Member_ID FROM purchase WHERE Branch_ID != "5" INTERSECT SELECT Year, Branch_ID, Total_pounds, Member_ID FROM purchase WHERE "Total_pounds" > 430.29


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


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


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


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


Question: SELECT address_id FROM Addresses WHERE "address_id" >= 3 AND address_details != "PT" IN (SELECT address_id FROM Addresses WHERE address_details != "MX")


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


Question: SELECT AVG(i_id) FROM item WHERE "i_id" <= 3 OR title <> "apple" NOT IN (SELECT AVG(i_id) FROM item WHERE title <> "shampoo")


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


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


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


Question: SELECT MIN(feature_type_code) FROM Ref_Feature_Types WHERE feature_type_name <> "Securiyt, eg Burglar Alarm." UNION ALL SELECT MIN(feature_type_code) FROM Ref_Feature_Types WHERE feature_type_code != "Security" OR feature_type_name != "Amenity, eg Pool."


Question: SELECT Continent FROM continents WHERE Continent != "australia" AND "ContId" > 3 UNION ALL SELECT Continent FROM countries WHERE "Continent" = 4 AND CountryName = "brazil" AND "CountryId" <> 11


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 Allergy FROM Allergy_Type WHERE AllergyType <> "food" AND Allergy <> "Nuts" EXCEPT SELECT Allergy FROM Has_Allergy WHERE Allergy != "Ragweed" OR "StuID" < 1021


Question: SELECT MAX(name) FROM airport WHERE IATA <> "BCN" AND City <> "Baltimore" UNION SELECT MAX(name) FROM airport WHERE "id" < 6 OR IATA = "BCN" OR Country <> "Spain" OR City <> "Baltimore"


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 MAX(aid) FROM certificate WHERE "eid" <= 141582651 AND "aid" != 5 UNION ALL SELECT MAX(aid) FROM flight WHERE "price" != 235.98 OR origin != "Los Angeles" OR "distance" <= 2551 AND arrival_date = "04/12/2005 03:55" OR destination != "Washington D.C."


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 weight, pet_age, PetType FROM Pets WHERE "PetID" <> 2003 OR "weight" <= 12.0 OR "pet_age" <> 2 OR PetType != "dog" EXCEPT SELECT weight, pet_age, PetType FROM Pets WHERE PetType != "cat"


Question: SELECT feature_description, feature_name, feature_id, feature_type_code FROM Other_Available_Features WHERE feature_description <> "Burglar Alarm" OR feature_name <> "BurglarAlarm" UNION SELECT feature_description, feature_name, feature_id, feature_type_code FROM Other_Available_Features WHERE feature_description = "Air Conditioning." AND feature_type_code = "Amenity" AND feature_name <> "BurglarAlarm" AND "feature_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 > 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 = 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 != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7


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


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


Question: SELECT 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 id FROM albums WHERE title != "A Matter of Life and Death" UNION SELECT id FROM media_types WHERE name = "MPEG audio file"


Question: SELECT distance, name FROM aircraft WHERE name = "Airbus A340-300" OR "distance" != 2605 UNION SELECT distance, name FROM aircraft WHERE name != "SAAB 340"


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


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


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


Question: SELECT Name, People_ID, Nationality, Graduation_College, Age FROM people WHERE "Age" = 31 OR Nationality = "United States" UNION ALL SELECT Name, People_ID, Nationality, Graduation_College, Age FROM people WHERE Graduation_College != "Northeastern" AND "Age" <= 27


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


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


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


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


Question: SELECT document_status_description FROM Ref_Document_Status WHERE document_status_description = "currently working on" INTERSECT SELECT document_status_description FROM Ref_Document_Status WHERE document_status_code <> "overdue" OR document_status_description != "currently working on"


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


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


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


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 T1.Description, T2.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 > 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 <> 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 = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10


Question: SELECT shipping_agent_name, AVG(shipping_agent_code) FROM Ref_Shipping_Agents WHERE shipping_agent_code != "AL" AND shipping_agent_description != "w" UNION ALL SELECT shipping_agent_name, AVG(shipping_agent_code) FROM Ref_Shipping_Agents WHERE shipping_agent_description = "q"


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


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


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


Question: SELECT Member_ID, Branch_ID, MIN(Year), Total_pounds FROM purchase WHERE Year = "2017" UNION ALL SELECT Member_ID, Branch_ID, MIN(Year), Total_pounds FROM purchase WHERE Branch_ID = "1" AND "Total_pounds" >= 402.1 OR "Member_ID" = 2 OR Year != "2018"


Question: SELECT MIN(name) FROM aircraft WHERE "distance" <> 6441 INTERSECT SELECT MIN(name) FROM aircraft WHERE "distance" >= 520 AND name <> "Lockheed L1011"


Question: SELECT MIN(Rank) FROM coach WHERE Gender <> "M" AND "Club_ID" >= 3 OR "Coach_ID" >= 3 EXCEPT SELECT MIN(Rank) FROM coach WHERE "Club_ID" > 1 OR Gender = "M"


Question: SELECT Name FROM branch WHERE City <> "London" AND "Branch_ID" < 6 OR Name <> "Cochrane" UNION ALL SELECT Name FROM member WHERE "Level" != 6


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


Question: SELECT SUM(Company_ID) FROM company WHERE "Sales_in_Billion" >= 62.4 AND Name <> "Wells Fargo" AND "Company_ID" <= 8.0 AND "Assets_in_Billion" != 213.0 AND "Market_Value_in_Billion" >= 107.5 UNION ALL SELECT SUM(Company_ID) FROM company WHERE "Assets_in_Billion" = 331.1 OR "Market_Value_in_Billion" >= 201.9


Question: SELECT id FROM albums WHERE "artist_id" = 197 OR "id" <= 29 UNION SELECT id FROM media_types WHERE "id" <= 5


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


Question: SELECT Employee_ID FROM employee WHERE City = "Sale" AND "Age" <= 32 UNION SELECT Employee_ID FROM hiring WHERE Start_from = "2012" AND "Shop_ID" != 1


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


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


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


Question: SELECT MAX(Book_ID) FROM book WHERE Title = "Gemini Blood" OR "Issues" <> 12.0 AND Writer != "Dave Gibbons" OR "Book_ID" < 10 UNION ALL SELECT MAX(Book_ID) FROM book WHERE "Issues" = 12.0 AND Title != "Cyberella" AND "Book_ID" <> 8


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


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


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


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


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


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


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


Question: SELECT Store_Name, AVG(Store_ID), Ranking, AVG(Type) FROM store WHERE "Store_ID" = 2 AND "Ranking" >= 9 OR Type <> "City Mall" OR Store_Name = "Rogersville" AND "Number_of_product_category" != 1170.0 UNION SELECT Store_Name, AVG(Store_ID), Ranking, AVG(Type) FROM store WHERE Type != "Village Store" OR "Store_ID" >= 3 AND Store_Name <> "Blackville"


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


Question: SELECT distance, aid FROM aircraft WHERE "distance" < 4103 AND name <> "Boeing 747-400" AND "aid" <= 8 UNION ALL SELECT distance, aid FROM flight WHERE "distance" <= 802


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


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


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


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


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


Question: SELECT MAX(People_ID) FROM people WHERE "Height" >= 193.0 OR Birth_Date != "May 26, 1986" AND Name <> "Roman Bragin" OR "People_ID" = 7 OR Nationality = "Russia" INTERSECT SELECT MAX(People_ID) FROM poker_player WHERE "Earnings" > 596462.0 OR "Money_Rank" != 141.0 AND "Final_Table_Made" < 19.0 OR "Poker_Player_ID" > 1


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


Question: SELECT bedType FROM Rooms WHERE RoomId = "IBD" UNION SELECT bedType FROM Rooms WHERE decor <> "traditional"


Question: SELECT address_id, address_details FROM Addresses WHERE address_details = "ES" UNION SELECT address_id, address_details FROM Addresses WHERE address_details <> "ES" OR "address_id" <> 0


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


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


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


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


Question: SELECT SUM(Club_ID) FROM club WHERE "Start_year" >= 2009 OR "Club_ID" < 4 UNION ALL SELECT SUM(Club_ID) FROM match_result WHERE "Small_Silver" >= 10 OR "Gold" != 12 AND "Points" != 66 AND "Rank" >= 4 AND "Club_ID" = 5 AND "Big_Silver" < 7 OR "Bronze" >= 8


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


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


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


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


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


Question: SELECT Continent FROM continents WHERE "ContId" > 5 AND Continent != "asia" UNION ALL SELECT Continent FROM countries WHERE CountryName = "russia" OR "CountryId" <= 10


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


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


Question: SELECT Party, Name FROM driver WHERE "Driver_ID" < 8 OR Home_city <> "East Hartford" AND "Age" > 40 OR Name <> "Minnie Gonzalez" INTERSECT SELECT Party, Name FROM driver WHERE "Driver_ID" <> 1 OR Party != "Rep"


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


Question: SELECT u_id FROM review WHERE "rating" <= 10 AND "a_id" >= 4 UNION SELECT u_id FROM useracct WHERE name = "Emily"


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


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


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


Question: SELECT MIN(PetID) FROM Has_Pet WHERE "PetID" >= 2001 OR "StuID" <> 1001 EXCEPT SELECT MIN(PetID) FROM Pets WHERE PetType != "dog" AND "PetID" = 2002 AND "pet_age" >= 3


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


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


Question: SELECT SUM(School_ID) FROM school WHERE Type != "Private" OR Grade <> "4th grade" UNION SELECT SUM(School_ID) FROM school_bus WHERE "School_ID" > 1 OR "Driver_ID" <> 3 OR If_full_time = "F" AND "Years_Working" <> 3


Question: SELECT Document_Name, MAX(Template_ID), AVG(Other_Details), Document_ID FROM Documents WHERE Document_Name != "Summer Show" OR Document_Description != "h" OR "Template_ID" <= 1 EXCEPT SELECT Document_Name, MAX(Template_ID), AVG(Other_Details), Document_ID FROM Documents WHERE Document_Description != "r" AND "Document_ID" > 651512


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


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


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


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


Question: SELECT role_code FROM Employees WHERE employee_name <> "Kenyon" OR other_details = "h" AND "employee_id" <= 1 OR role_code = "PT" UNION SELECT role_code FROM Roles WHERE role_description <> "Photo"


Question: SELECT Template_ID, Document_Name, SUM(Document_Description), MIN(Other_Details), Document_ID FROM Documents WHERE "Document_ID" > 76 OR Document_Name = "Do not panic" OR "Template_ID" <= 6 AND Other_Details = "None" UNION ALL SELECT Template_ID, Document_Name, SUM(Document_Description), MIN(Other_Details), Document_ID FROM Documents WHERE "Template_ID" <= 25 OR Document_Name <> "How Google people work"


Question: SELECT Id FROM car_makers WHERE FullName <> "Subaru" OR "Id" = 5 AND Maker = "subaru" OR Country <> "5" UNION ALL SELECT Id FROM cars_data WHERE Horsepower <> "110" AND "Weight" <= 2910 AND "Edispl" <> 151.0


Question: SELECT SUM(People_ID) FROM people WHERE Name = "Brad Lohaus" UNION ALL SELECT SUM(People_ID) FROM people WHERE Nationality != "United States" OR "Age" <= 34 OR "People_ID" >= 7 OR Graduation_College != "Oklahoma" OR Name != "Darryl Kennedy"


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


Question: SELECT document_id FROM Documents WHERE "document_id" = 24 UNION SELECT document_id FROM Documents_Mailed WHERE "mailed_to_address_id" < 5 AND mailing_date != "1973-02-21 10:17:01"


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


Question: SELECT Allergy FROM Allergy_Type WHERE AllergyType = "animal" UNION ALL SELECT Allergy FROM Has_Allergy WHERE "StuID" < 1010 AND Allergy != "Tree Pollen"


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


Question: SELECT Aircraft_ID FROM aircraft 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 AVG(Store_ID) FROM store_district WHERE "Store_ID" >= 2 EXCEPT SELECT AVG(Store_ID) FROM store_product WHERE "Store_ID" <> 3


Question: SELECT District_ID FROM district WHERE District_name != "Kasur District" OR Headquartered_City = "Gujrat City" AND "City_Population" != 365198.0 OR "City_Area" >= 10.0 EXCEPT SELECT District_ID FROM store_district WHERE "Store_ID" < 4 AND "District_ID" > 11


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


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


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


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


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


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


Question: SELECT Sex, city_code, LName, Fname, StuID, Age, Advisor, Major FROM Student WHERE "StuID" >= 1005 OR "Major" <= 50 OR "Age" <> 21 AND Fname != "Paul" AND "Advisor" < 8772 AND city_code = "BAL" AND LName != "Lee" INTERSECT SELECT Sex, city_code, LName, Fname, StuID, Age, Advisor, Major FROM Student WHERE LName != "Prater" OR Sex = "M"

Sex city_code LName Fname StuID Age Advisor Major


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 SUM(StuID) FROM Has_Allergy WHERE Allergy <> "Eggs" OR "StuID" != 1018 EXCEPT SELECT SUM(StuID) FROM Student WHERE "Major" != 550 OR "Age" != 19 OR "StuID" <> 1014 AND "Advisor" != 7134 OR Sex <> "F" AND Fname = "Eric" AND city_code != "PHL" OR LName <> "Kim"


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


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


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


Question: SELECT MIN(Starting_year), Coach_ID, Player_ID FROM player_coach WHERE "Starting_year" >= 2011 AND "Coach_ID" < 5 UNION ALL SELECT MIN(Starting_year), Coach_ID, Player_ID FROM player_coach WHERE "Starting_year" <= 2010 OR "Coach_ID" = 2 OR "Player_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 <> 10


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


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


Question: SELECT employee_id FROM Circulation_History WHERE "copy_number" >= 4 UNION ALL SELECT employee_id FROM Employees WHERE role_code != "PR" AND employee_name = "Erling"


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


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


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


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


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


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


Question: SELECT 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 Company_ID FROM company WHERE "Assets_in_Billion" <> 213.0 AND "Company_ID" > 5.0 UNION ALL SELECT Company_ID FROM employment WHERE "People_ID" < 1


Question: SELECT Name, COUNT(Shop_ID), COUNT(Location), AVG(District), Number_products FROM shop WHERE District = "Wiklöf Holding Arena" AND Location != "Jakobstad" AND Name <> "KuPS" OR Manager_name != "Mika Laurikainen" UNION SELECT Name, COUNT(Shop_ID), COUNT(Location), AVG(District), Number_products FROM shop WHERE Manager_name <> "Mika Lehkosuo" AND District <> "Jakobstads Centralplan" OR Location <> "Espoo" AND "Number_products" <= 10770


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


Question: SELECT SUM(mailing_date) FROM Documents_Mailed WHERE "mailed_to_address_id" >= 2 UNION ALL SELECT SUM(mailing_date) FROM Documents_Mailed WHERE mailing_date = "1982-01-14 05:50:54" OR "mailed_to_address_id" > 3 OR "document_id" >= 4


Question: SELECT MAX(Open_year), MAX(City), Address_road, membership_amount, Name FROM branch WHERE "Branch_ID" < 5 AND Open_year = "2009" AND membership_amount <> "11" AND Address_road <> "Oaks Crescent" OR City <> "London" EXCEPT SELECT MAX(Open_year), MAX(City), Address_road, membership_amount, Name FROM branch WHERE "Branch_ID" = 7 OR membership_amount <> "31" AND Open_year = "2012" AND City <> "London" AND Address_road <> "Abbey Rise"


Question: SELECT document_id FROM Documents WHERE shipping_agent_code = "FE" OR "document_id" < 24 EXCEPT SELECT document_id FROM Documents_Mailed WHERE "mailed_to_address_id" <= 7


Question: SELECT T1.Domestic_Passengers, T2.Airport_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 != 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 <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7


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


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


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


Question: SELECT MIN(contestant_number) FROM CONTESTANTS WHERE contestant_name = "Loraine NygrenTania Mattioli" OR "contestant_number" <> 8 UNION SELECT MIN(contestant_number) FROM CONTESTANTS WHERE contestant_name != "Loraine NygrenTania Mattioli"


Question: SELECT price, origin, distance, arrival_date, aid FROM flight WHERE "flno" < 76 AND "aid" = 6 UNION ALL SELECT price, origin, distance, arrival_date, aid FROM flight WHERE destination != "Tokyo"


Question: SELECT MAX(Maker) FROM car_makers WHERE Maker <> "gm" AND Country = "1" OR FullName = "Daimler Benz" UNION SELECT MAX(Maker) FROM model_list WHERE Model != "chevrolet"


Question: SELECT property_id FROM Other_Property_Features WHERE property_feature_description <> "earum" AND "property_id" >= 3 OR "feature_id" != 4 INTERSECT SELECT property_id FROM Properties WHERE date_on_market = "1976-06-10 20:25:38" AND "agreed_selling_price" <> 5.0 OR "property_id" <> 14 OR shp_feature_3 <> "None" OR fld_feature_3 = "None" AND fld_feature_2 != "None" AND oth_feature_3 != "None" AND hse_feature_3 = "None" OR other_property_details = "None" AND hse_feature_2 <> "None" AND apt_feature_2 <> "vero"


Question: SELECT copy_number FROM Draft_Copies WHERE "document_id" > 10 OR "copy_number" >= 4 UNION ALL SELECT copy_number FROM Draft_Copies WHERE "document_id" = 20


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 other_details FROM Employees WHERE employee_name = "Jordyn" OR other_details = "b" UNION SELECT other_details FROM Employees WHERE employee_name <> "Jordyn"


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


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


Question: SELECT MIN(Member_ID), Branch_ID FROM membership_register_branch WHERE Register_Year != "2016" OR "Member_ID" <= 4 AND Branch_ID = "5" UNION SELECT MIN(Member_ID), Branch_ID FROM purchase WHERE "Total_pounds" <> 430.29


Question: SELECT Employee_ID FROM employee WHERE City = "Wasps" EXCEPT SELECT Employee_ID FROM evaluation WHERE Year_awarded != "2016"


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 i_id FROM item WHERE title = "orange" INTERSECT SELECT i_id FROM review WHERE "u_id" != 2 OR "a_id" = 2 AND "i_id" >= 7


Question: SELECT MIN(Age), Driver_ID, COUNT(Home_city), Name, MAX(Party) FROM driver WHERE "Driver_ID" >= 9 OR Name = "Minnie Gonzalez" UNION SELECT MIN(Age), Driver_ID, COUNT(Home_city), Name, MAX(Party) FROM driver WHERE Name != "Brandon McGee" OR "Driver_ID" <= 6 OR Home_city != "Manchester" OR Party != "Dem"


Question: SELECT AVG(Version_Number) FROM Templates WHERE Date_Effective_From != "2005-11-12 07:09:48" AND Date_Effective_To = "2008-08-08 18:36:43" OR Template_Details != "" AND "Template_ID" >= 23 EXCEPT SELECT AVG(Version_Number) FROM Templates WHERE "Template_ID" != 4 OR "Version_Number" < 5 AND Template_Details = ""


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 School_id FROM School WHERE School_name <> "Glenn" AND School_id = "3" AND Mascot != "Redskins" OR IHSAA_Football_Class != "AA" OR County = "75 Starke" AND IHSAA_Class = "AAA" EXCEPT SELECT School_id FROM endowment WHERE "amount" = 8.43


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


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