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


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


Question: SELECT AllergyType, Allergy FROM Allergy_Type WHERE Allergy != "Wheat" UNION ALL SELECT AllergyType, Allergy FROM Allergy_Type WHERE Allergy = "Ragweed"


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


Question: SELECT District_ID FROM district WHERE "District_ID" <> 14 OR Headquartered_City = "Jhang City" EXCEPT SELECT District_ID FROM district WHERE Headquartered_City = "Hafizabad City" AND "City_Population" <> 365198.0 AND "District_ID" <> 4


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


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


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


Question: SELECT id FROM albums WHERE "id" != 92 INTERSECT SELECT id FROM genres WHERE "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 = 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 = 4


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


Question: SELECT Store_ID, SUM(Product_ID) FROM store_product WHERE "Store_ID" <= 5 EXCEPT SELECT Store_ID, SUM(Product_ID) FROM store_product WHERE "Product_ID" < 6


Question: SELECT airport_id, Altitude, Velocity, Pilot, company_id, id, Vehicle_Flight_number, Date FROM flight WHERE "Velocity" > 240.0 OR "company_id" >= 11 OR "airport_id" >= 3 OR Vehicle_Flight_number != "M2-F1 #0" OR "Altitude" > 0.0 AND Date != "November 8, 1963" OR Pilot <> "Thompson" AND "id" <> 2 INTERSECT SELECT airport_id, Altitude, Velocity, Pilot, company_id, id, Vehicle_Flight_number, Date FROM flight WHERE "Velocity" > 135.0 AND "Altitude" >= 3650.0 AND "company_id" != 5 AND Date != "September 3, 1963" AND "id" < 1 OR "airport_id" != 8


Question: SELECT COUNT(id), MAX(Type) FROM operate_company WHERE Principal_activities <> "Travel agency" OR "id" <= 9 OR Type <> "Joint Venture" AND Incorporated_in = "Hong Kong" EXCEPT SELECT COUNT(id), MAX(Type) FROM operate_company WHERE "id" < 14


Question: SELECT SUM(T1.id), T2.company_id FROM airport as T1 JOIN flight as T2 ON T1.id = T2.id WHERE "Velocity" >= 240.0


Question: SELECT document_id FROM Document_Drafts WHERE "document_id" <> 4 OR "draft_number" <> 16 AND draft_details != "r" UNION ALL SELECT document_id FROM Draft_Copies WHERE "document_id" <> 20 OR "copy_number" = 10


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


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


Question: SELECT document_id, copy_number, draft_number FROM Circulation_History WHERE "draft_number" > 1 OR "document_id" != 2 UNION ALL SELECT document_id, copy_number, draft_number FROM Draft_Copies WHERE "document_id" > 10


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


Question: SELECT 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 T1.ClubID, T2.ClubID FROM Club as T1 JOIN Member_of_club as T2 ON T1.ClubID == T2.ClubID GROUP BY ClubName HAVING ClubDesc <> "Refurbish computers; teach kids and adults about computer basics." AND Position = "President" OR StuID <= 1007


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


Question: SELECT property_id FROM Other_Property_Features WHERE "feature_id" > 2 OR property_feature_description = "odio" OR "property_id" <> 6 EXCEPT SELECT property_id FROM Properties WHERE "room_count" != 3 OR oth_feature_2 <> "None" OR hse_feature_3 = "None" AND "vendor_requested_price" = 2573.0 OR property_name = "riverside" AND hse_feature_2 = "None" OR shp_feature_1 != "None" AND property_type_code <> "House" AND other_property_details != "None" OR fld_feature_3 = "None" OR shp_feature_3 = "None" AND oth_feature_1 <> "None" AND property_address != "062 Micaela Court Apt. 707 Margretville, WV 51628-3617" OR hse_feature_1 = "None" AND apt_feature_3 != "None" AND fld_feature_1 = "None" AND oth_feature_3 != "None" AND apt_feature_2 = "est" AND "property_id" >= 8 OR shp_feature_2 != "None" OR "buyer_offered_price" >= 15.17 AND "agreed_selling_price" != 476919.3 AND date_sold != "1997-01-07 19:52:45" AND fld_feature_2 = "None" OR date_on_market = "1978-05-15 10:53:37" OR apt_feature_1 = "sed"


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 draft_number FROM Circulation_History WHERE "draft_number" >= 17 OR "copy_number" != 10 AND "employee_id" < 1 UNION SELECT draft_number FROM Draft_Copies WHERE "draft_number" > 9 AND "copy_number" = 4


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


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


Question: SELECT price, COUNT(flno), MAX(arrival_date), distance, destination, SUM(departure_date), aid, COUNT(origin) FROM flight WHERE destination = "Honolulu" AND "flno" < 2 OR origin <> "Chicago" OR arrival_date != "04/12/2005 03:18" AND "distance" != 7487 UNION ALL SELECT price, COUNT(flno), MAX(arrival_date), distance, destination, SUM(departure_date), aid, COUNT(origin) FROM flight WHERE arrival_date != "04/12/2005 07:05" AND departure_date <> "04/12/2005 08:45" OR "flno" >= 387 AND origin = "Los Angeles" AND "price" > 182.0 OR "distance" = 2551

price COUNT(flno) MAX(arrival_date) distance destination SUM(departure_date) aid COUNT(origin)


Question: SELECT Creation, COUNT(Name) FROM department WHERE "Num_Employees" > 17347.0 GROUP BY Creation HAVING COUNT(Name) = 1 UNION SELECT Creation, COUNT(Name) FROM department WHERE Name <> "Veterans Affairs" AND "Department_ID" != 12 OR "Num_Employees" = 10600.0 GROUP BY Creation HAVING COUNT(Name) != 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 != 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 = 3


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


Question: SELECT eid FROM certificate WHERE "eid" <> 242518965 EXCEPT SELECT eid FROM employee WHERE "eid" > 556784565 OR "salary" <= 54921


Question: SELECT ClubID FROM Club WHERE ClubName <> "Pen and Paper Gaming" OR "ClubID" >= 3 EXCEPT SELECT ClubID FROM Member_of_club WHERE "ClubID" = 1 AND "StuID" = 1010


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


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


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


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


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


Question: SELECT SUM(Rank), COUNT(Coach_ID) FROM coach WHERE Gender != "M" UNION ALL SELECT SUM(Rank), COUNT(Coach_ID) FROM coach WHERE Gender = "M" AND "Coach_ID" <> 3 AND "Club_ID" <= 3 AND "Rank" >= 5


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


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


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


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


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


Question: SELECT Club_name FROM club WHERE "Club_ID" > 4 AND Club_name <> "Helsingborgs IF" OR Region <> "UK" OR "Start_year" < 2000 INTERSECT SELECT Club_name FROM club WHERE "Start_year" = 2009 OR Region != "Korea" OR Club_name != "Halmstads BK"


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 Employee_ID FROM employee WHERE "Employee_ID" < 3 UNION ALL SELECT Employee_ID FROM evaluation WHERE Year_awarded <> "2011" OR Employee_ID = "7" OR "Bonus" > 4000.0


Question: SELECT document_type_code FROM Ref_Document_Types WHERE document_type_code <> "Hard Drive" UNION ALL SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description != "u"


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 SUM(middle_name), last_name FROM Staff WHERE date_of_birth != "1998-04-27 12:55:05" AND middle_name != "Duane" UNION SELECT SUM(middle_name), last_name FROM Staff WHERE last_name = "Macejkovic" AND "staff_address_id" <> 1 AND nickname != "ymiller" OR first_name = "Ludie" AND middle_name = "Dejon"


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 name, age, born_state, head_ID FROM head WHERE name <> "Pádraig Harrington" AND "head_ID" > 5 OR born_state = "California" UNION SELECT name, age, born_state, head_ID FROM head WHERE name != "Jeff Maggert" AND "age" >= 50.0 OR born_state <> "Alabama"


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


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


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


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


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


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


Question: SELECT Party FROM election WHERE Delegate != "Malone, James E. Jr. James E. Malone, Jr." OR Counties_Represented != "13" AND "District" >= 2 OR "First_Elected" >= 2002.0 AND Committee <> "Appropriations" AND "Party" < 7 AND "Election_ID" <= 4 UNION ALL SELECT Party FROM party WHERE Lieutenant_Governor != "David Paterson" AND Comptroller = "Alan Hevesi"


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


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


Question: SELECT other_details FROM Documents WHERE document_status_code <> "overdue" AND shipping_agent_code <> "UP" AND other_details <> "z" AND receipt_date != "2014-12-25 17:22:44" AND receipt_number <> "8" OR document_type_code = "Paper" OR "document_id" > 17 EXCEPT SELECT other_details FROM Employees WHERE employee_name <> "Koby"


Question: SELECT SUM(state) FROM AREA_CODE_STATE WHERE state = "NM" OR "area_code" <> 720 UNION ALL SELECT SUM(state) FROM VOTES WHERE state = "NY" OR created != "2018-03-09 19:03:36" AND "phone_number" >= 7182887233 OR "contestant_number" > 2 AND "vote_id" >= 3


Question: SELECT Template_ID, Document_ID, Document_Description, Document_Name, Other_Details FROM Documents WHERE "Template_ID" > 14 AND Document_Description <> "y" OR Other_Details = "None" OR Document_Name != "Data base" UNION SELECT Template_ID, Document_ID, Document_Description, Document_Name, Other_Details FROM Documents WHERE Other_Details = "None" OR Document_Name = "Data base" AND "Template_ID" >= 6 OR "Document_ID" >= 80 AND Document_Description != "f"


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


Question: SELECT state FROM AREA_CODE_STATE WHERE "area_code" > 210 UNION SELECT state FROM VOTES WHERE "contestant_number" <> 3


Question: SELECT SUM(document_id) FROM Circulation_History WHERE "draft_number" != 17 AND "employee_id" = 2 OR "document_id" <> 1 EXCEPT SELECT SUM(document_id) FROM Circulation_History WHERE "document_id" >= 20 AND "copy_number" <= 5 AND "draft_number" <> 17


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


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


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


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


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


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


Question: SELECT COUNT(Store_ID) FROM store WHERE Type <> "City Mall" OR "Store_ID" <= 1 AND "Number_of_product_category" < 1170.0 UNION ALL SELECT COUNT(Store_ID) FROM store_district WHERE "District_ID" <> 4 AND "Store_ID" <> 1


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


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


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


Question: SELECT name FROM useracct WHERE "u_id" <= 3 UNION SELECT name FROM useracct WHERE name != "Helen" AND "u_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 < 3


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


Question: SELECT Branch_ID FROM membership_register_branch WHERE Register_Year != "2016" AND Branch_ID = "5" UNION SELECT Branch_ID FROM membership_register_branch WHERE Branch_ID != "1"


Question: SELECT id FROM albums WHERE "id" > 98 OR "artist_id" <> 51 OR title <> "The Office, Season 2" UNION ALL SELECT id FROM playlists WHERE "id" < 11


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


Question: SELECT Position, COUNT(ClubID), SUM(StuID) FROM Member_of_club WHERE "ClubID" <> 1 OR "StuID" > 1010 AND Position <> "CTO" UNION SELECT Position, COUNT(ClubID), SUM(StuID) FROM Member_of_club WHERE "ClubID" = 4 OR "StuID" <> 1007


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


Question: SELECT 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 name, id FROM airport WHERE IATA <> "BGO" OR ICAO != "EKBI" UNION ALL SELECT name, id FROM operate_company WHERE "id" < 6 AND Type != "Subsidiary"


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


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


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


Question: SELECT Rank FROM match_result WHERE "Club_ID" = 3 UNION ALL SELECT Rank FROM player WHERE Sponsor_name <> "Saint Boniface" AND Gender != "M" OR Player_name <> "Pat Martin" OR Occupation = "Retired" OR "Votes" >= 5490 OR Rank <> "1st" AND "Player_ID" >= 6


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


Question: SELECT Book_ID FROM book WHERE Writer != "Christopher Hinz" OR Title != "Bloody Mary" OR "Issues" <> 4.0 OR "Book_ID" = 9 INTERSECT SELECT Book_ID FROM publication WHERE "Book_ID" >= 7 OR "Price" <= 3000000.0 AND "Publication_ID" < 1 AND Publication_Date = "June 2006" OR Publisher = "Pearson"


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


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 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 Company_ID, People_ID FROM employment WHERE "Year_working" > 1 INTERSECT SELECT Company_ID, People_ID FROM employment WHERE "Year_working" > 1 OR "People_ID" <= 4 OR "Company_ID" <= 11


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 IHSAA_Class, COUNT(Location), COUNT(School_name) FROM School GROUP BY IHSAA_Class HAVING COUNT(Location) >= 2 OR COUNT(School_name) > 2 UNION SELECT IHSAA_Class, COUNT(Location), COUNT(School_name) FROM School GROUP BY IHSAA_Class HAVING COUNT(Location) < 4 AND COUNT(School_name) <> 2


Question: SELECT shipping_agent_code, document_status_code, other_details, document_type_code, document_id, receipt_date, receipt_number FROM Documents WHERE document_status_code != "overdue" AND receipt_number != "8" OR "document_id" > 14 OR receipt_date = "1986-12-14 14:18:59" INTERSECT SELECT shipping_agent_code, document_status_code, other_details, document_type_code, document_id, receipt_date, receipt_number FROM Documents WHERE other_details = "u" OR receipt_date != "1974-05-08 00:00:46"


Question: SELECT Employee_ID FROM evaluation WHERE Employee_ID = "1" INTERSECT SELECT Employee_ID FROM evaluation WHERE Year_awarded != "2011" OR "Bonus" <= 3000.0


Question: SELECT AVG(Gender) FROM coach WHERE "Club_ID" >= 3 OR Gender = "M" OR "Coach_ID" > 1 UNION ALL SELECT AVG(Gender) FROM player WHERE "Player_ID" != 13 OR "Votes" >= 5502 OR Gender = "M" OR Player_name <> "Ross Eadie"


Question: SELECT Maker FROM car_makers WHERE Maker = "toyota" AND Country != "6" AND "Id" <> 5 INTERSECT SELECT Maker FROM car_makers WHERE FullName = "General Motors" OR Maker <> "bmw" OR "Id" <> 6 OR Country <> "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 Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9


Question: SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Description != "Paper" EXCEPT SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Description != "Book" AND Template_Type_Code != "CV"


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 Sponsor_name, Gender, Rank, Player_ID, Residence FROM player WHERE Gender = "M" OR Sponsor_name = "Elmwood—Transcona" OR Rank = "1st" OR Player_name != "Ross Eadie" AND Occupation <> "Ministerial Assistant" OR "Player_ID" != 4 EXCEPT SELECT Sponsor_name, Gender, Rank, Player_ID, Residence FROM player WHERE Residence != "Birtle" OR Player_name = "Ross Eadie" AND "Player_ID" >= 10 OR "Votes" = 12093


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


Question: SELECT Branch_ID, City, Name, Address_road, membership_amount, Open_year FROM branch WHERE Open_year = "2009" AND Address_road <> "Cecilia Avenue" UNION ALL SELECT Branch_ID, City, Name, Address_road, membership_amount, Open_year FROM branch WHERE membership_amount = "56" AND Name = "Cochrane"


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


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


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


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


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


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


Question: SELECT ClubID, StuID, Position FROM Member_of_club WHERE "ClubID" <> 1 AND "StuID" <= 1007 OR Position <> "Vice-President" UNION SELECT ClubID, StuID, Position FROM Member_of_club WHERE Position = "CTO" AND "StuID" <= 1008 AND "ClubID" != 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 > 10


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


Question: SELECT property_type_code FROM Ref_Property_Types WHERE property_type_description = "Shop, Retail Outlet." AND property_type_code = "Shop" UNION ALL SELECT property_type_code FROM Ref_Property_Types WHERE property_type_description = "Other, to be determined."


Question: SELECT AVG(dimensions), SUM(max_page_size), pages_per_minute_color, AVG(dpi), product_id, product, SUM(interface) FROM product WHERE dimensions != "289 x 51 x 38" OR max_page_size != "216mm x 356mm" AND "product_id" != 6 OR interface != "USB 2.0" OR "pages_per_minute_color" = 28.0 UNION ALL SELECT AVG(dimensions), SUM(max_page_size), pages_per_minute_color, AVG(dpi), product_id, product, SUM(interface) FROM product WHERE "product_id" <> 3 AND "dpi" > 600.0 AND "pages_per_minute_color" < 3.0 OR max_page_size = "216mm x 356mm" AND interface != "USB 2.0"


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


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


Question: SELECT MIN(total_budget_percent_invested), Invested, MAX(Budget_invested_percent), Budgeted, School_id FROM budget WHERE "total_budget_percent_budgeted" != 2.0 OR "Budgeted" <> 61283 OR "School_id" >= 3 AND "Year" != 2003 UNION SELECT MIN(total_budget_percent_invested), Invested, MAX(Budget_invested_percent), Budgeted, School_id FROM budget WHERE Budget_invested_percent <> "159.3" AND "Invested" = 8335 OR "total_budget_percent_budgeted" != 2.0


Question: SELECT document_type_description, document_type_code FROM Ref_Document_Types WHERE document_type_description <> "f" OR document_type_code != "Paper" UNION SELECT document_type_description, document_type_code FROM Ref_Document_Types WHERE document_type_code <> "Hard Drive"


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


Question: SELECT SUM(Party), SUM(Name), Home_city, Age, MIN(Driver_ID) FROM driver WHERE "Age" >= 46 OR "Driver_ID" != 2 UNION SELECT SUM(Party), SUM(Name), Home_city, Age, MIN(Driver_ID) FROM driver WHERE Party != "Dem" AND Name <> "Edwin Vargas" OR "Driver_ID" != 5 OR "Age" > 37 OR Home_city = "Manchester"


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


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


Question: SELECT aid FROM certificate WHERE "aid" >= 8 EXCEPT SELECT aid FROM flight WHERE "flno" <> 76 OR destination != "Honolulu"


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


Question: SELECT id FROM airport WHERE City <> "Barcelona" OR ICAO = "PANC" OR Country = "United States" OR IATA != "ANC" INTERSECT SELECT id FROM flight WHERE "airport_id" != 4 OR "Velocity" != 240.0


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


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


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


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


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


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


Question: SELECT AVG(dpi), product_id, max_page_size, pages_per_minute_color, MIN(product) FROM product WHERE "product_id" < 4 OR interface != "USB 2.0" AND product <> "Xerox Travel Scanner 100" AND "dpi" >= 600.0 AND "pages_per_minute_color" < 10.0 UNION SELECT AVG(dpi), product_id, max_page_size, pages_per_minute_color, MIN(product) FROM product WHERE dimensions <> "280 x 95 x 40" AND "pages_per_minute_color" >= 30.0 AND max_page_size <> "216mm x 355mm" OR product != "ScanShell 3000DN" AND interface <> "USB 2.0" OR "dpi" > 600.0


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


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


Question: SELECT document_id FROM Document_Drafts WHERE draft_details <> "r" OR "document_id" <= 4 UNION ALL SELECT document_id FROM Documents WHERE other_details != "h" OR shipping_agent_code <> "SH" AND receipt_date = "1985-11-05 17:59:34" AND "document_id" >= 12


Question: SELECT MAX(Is_full_time) FROM hiring WHERE "Shop_ID" <> 1 OR "Employee_ID" <> 7 OR Is_full_time = "F" UNION SELECT MAX(Is_full_time) FROM hiring WHERE "Employee_ID" != 2 AND Start_from <> "2003" OR "Shop_ID" <> 1 OR Is_full_time != "T"


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


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


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


Question: SELECT staff_id FROM Lessons WHERE lesson_time <> "2" OR "vehicle_id" != 2 AND "customer_id" = 13 OR "price" >= 223.0 AND "lesson_id" > 12 OR "staff_id" <= 11 AND lesson_status_code != "Cancelled" UNION ALL SELECT staff_id FROM Staff WHERE middle_name = "Duane"


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 SUM(Start_from), MAX(Is_full_time), Employee_ID FROM hiring WHERE "Shop_ID" != 6 OR Start_from = "2010" UNION SELECT SUM(Start_from), MAX(Is_full_time), Employee_ID FROM hiring WHERE "Employee_ID" <= 1 OR Start_from != "2003" AND Is_full_time != "F"


Question: SELECT AVG(StuID) FROM Has_Pet WHERE "StuID" >= 1001 EXCEPT SELECT AVG(StuID) FROM Student WHERE Sex != "M" OR Fname <> "Jandy" AND "Advisor" <= 1148 AND "Age" <= 26 OR "Major" <= 600 AND city_code <> "BOS"


Question: SELECT District_ID FROM district WHERE "City_Area" <= 25.0 OR District_name != "Gujranwala District" AND "District_ID" != 9 AND "City_Population" <= 134936.0 EXCEPT SELECT District_ID FROM store_district WHERE "Store_ID" > 2 AND "District_ID" < 4


Question: SELECT AVG(property_id) FROM Other_Property_Features WHERE "feature_id" < 2 UNION ALL SELECT AVG(property_id) FROM Properties WHERE "agreed_selling_price" != 476919.3 OR fld_feature_2 != "None" OR "property_id" != 3 AND fld_feature_1 = "None" OR property_type_code <> "Apartment" AND apt_feature_3 = "None" AND hse_feature_1 = "None" OR hse_feature_3 <> "None" OR apt_feature_2 = "est" AND shp_feature_2 = "None" AND other_property_details != "None" OR fld_feature_3 <> "None" OR "buyer_offered_price" = 8.7122 OR hse_feature_2 <> "None" OR oth_feature_2 = "None" OR shp_feature_3 = "None"


Question: SELECT Maker FROM car_makers WHERE FullName != "Honda" AND Country != "2" UNION SELECT Maker FROM model_list WHERE Model <> "pontiac" OR "ModelId" != 14 OR "Maker" < 20


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


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


Question: SELECT document_status_description FROM Ref_Document_Status WHERE document_status_description = "mailed late" INTERSECT SELECT document_status_description FROM Ref_Document_Status WHERE document_status_description = "mailed late" OR document_status_code != "overdue"


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


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


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


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


Question: SELECT document_type_code FROM Documents WHERE receipt_number != "124" OR "document_id" = 2 UNION ALL SELECT document_type_code FROM Ref_Document_Types WHERE document_type_code <> "Paper" OR document_type_description <> "b"


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


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


Question: SELECT trust, source_u_id, target_u_id FROM trust WHERE "target_u_id" > 3 INTERSECT SELECT trust, source_u_id, target_u_id FROM trust WHERE "source_u_id" <> 3 OR "trust" <> 10 OR "target_u_id" < 3


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


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


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


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


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


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


Question: SELECT AVG(City) FROM employee WHERE "Age" != 43 OR City = "Bath" AND Name != "Steve Borthwick" AND "Employee_ID" <= 7 UNION SELECT AVG(City) FROM employee WHERE Name = "Tim Payne" OR "Age" > 43 OR "Employee_ID" = 3


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


Question: SELECT MAX(Home_city) FROM driver WHERE Home_city = "Hartford" OR Party = "Dem" OR Name = "Matthew Ritter" UNION SELECT MAX(Home_city) FROM driver WHERE Home_city <> "Hartford" AND Party <> "Dem"


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


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


Question: SELECT Paragraph_Text, Paragraph_ID, Document_ID, Other_Details FROM Paragraphs WHERE "Document_ID" < 3 UNION SELECT Paragraph_Text, Paragraph_ID, Document_ID, Other_Details FROM Paragraphs WHERE "Document_ID" != 80 OR "Paragraph_ID" > 510442723 OR Other_Details <> "None"


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 Member_ID FROM member WHERE "Level" > 4 OR Name != "Jeremy Jarmon" OR Hometown <> "Louisville, Kentucky" UNION ALL SELECT Member_ID FROM membership_register_branch WHERE Branch_ID <> "2" AND Register_Year = "2017" AND "Member_ID" > 2


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


Question: SELECT 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 COUNT(PetID), MIN(StuID) FROM Has_Pet WHERE "PetID" >= 2002 OR "StuID" <> 1002 EXCEPT SELECT COUNT(PetID), MIN(StuID) FROM Has_Pet WHERE "StuID" <> 1001 AND "PetID" <> 2002


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


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


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


Question: SELECT AVG(Writer), AVG(Issues), AVG(Title) FROM book WHERE "Issues" <> 4.0 AND Writer <> "Elaine Lee" AND Title <> "The Dome: Ground Zero" UNION SELECT AVG(Writer), AVG(Issues), AVG(Title) FROM book WHERE Title != "BrainBanx" AND "Book_ID" <= 6


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


Question: SELECT Model FROM car_names WHERE Make = "plymouth horizon miser" OR "MakeId" = 32 INTERSECT SELECT Model FROM model_list WHERE Model != "fiat"


Question: SELECT MIN(Store_ID) FROM store WHERE "Number_of_product_category" > 1678.0 AND Type <> "Village Store" INTERSECT SELECT MIN(Store_ID) FROM store_product WHERE "Store_ID" <= 2 OR "Product_ID" <= 2


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


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


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


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


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


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


Question: SELECT receipt_date, shipping_agent_code, other_details, MIN(document_status_code), receipt_number, AVG(document_id) FROM Documents WHERE receipt_number = "61" OR receipt_date = "2015-04-03 09:36:19" OR shipping_agent_code != "UP" AND document_status_code != "working" OR other_details = "n" OR "document_id" != 4 UNION SELECT receipt_date, shipping_agent_code, other_details, MIN(document_status_code), receipt_number, AVG(document_id) FROM Documents WHERE receipt_number <> "83" OR other_details != "y" OR shipping_agent_code <> "FE" AND "document_id" != 12 AND document_type_code <> "Paper"


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


Question: SELECT document_status_code FROM Documents WHERE other_details = "r" AND receipt_date <> "2017-07-02 17:39:09" AND document_status_code = "overdue" EXCEPT SELECT document_status_code FROM Ref_Document_Status WHERE document_status_code = "done"


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


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


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


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


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


Question: SELECT document_id FROM Circulation_History WHERE "copy_number" > 4 INTERSECT SELECT document_id FROM Documents WHERE receipt_number <> "114" OR document_type_code <> "CD"


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


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


Question: SELECT MIN(ICAO), name, City, IATA FROM airport WHERE Country != "Netherlands" AND ICAO = "KBOS" AND City = "Akureyri" OR name != "El Prat Airport" AND IATA <> "BWI" OR "id" > 6 UNION SELECT MIN(ICAO), name, City, IATA FROM airport WHERE name <> "Baltimore-Washington Airport"


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


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


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


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


Question: SELECT head_ID FROM head WHERE "head_ID" <= 9 AND born_state != "Florida" OR name <> "Dudley Hart" OR "age" = 68.0 INTERSECT SELECT head_ID FROM management WHERE temporary_acting <> "No"


Question: SELECT AVG(Branch_ID), SUM(Member_ID) FROM membership_register_branch WHERE Register_Year = "2016" AND "Member_ID" = 3 EXCEPT SELECT AVG(Branch_ID), SUM(Member_ID) FROM purchase WHERE "Total_pounds" <> 232.09 AND Branch_ID = "6" OR "Member_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 Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5


Question: SELECT u_id FROM review WHERE "a_id" = 5 AND "rank" = 5 OR "rating" > 10 UNION SELECT u_id FROM useracct WHERE "u_id" <= 3


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


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


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


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


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


Question: SELECT Driver_ID FROM driver WHERE Party = "Dem" OR Name = "Brandon McGee" UNION ALL SELECT Driver_ID FROM school_bus WHERE "School_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 > 4


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


Question: SELECT MAX(T1.customer_id), T2.customer_status_code FROM Customer_Payments as T1 JOIN Customers as T2 ON T1.customer_id = T2.customer_id WHERE payment_method_code = "Direct Debit" AND datetime_payment = "2018-02-15 16:38:49" AND phone_number = "1-875-045-0806" OR email_address = "myrl.lind@example.net" AND date_became_customer = "2015-06-24 03:50:04" AND "amount_payment" <= 1708.18 OR first_name = "Estelle" OR cell_mobile_phone_number = "(630)964-2426" OR "customer_address_id" <> 13 AND date_of_birth = "1996-11-07 05:30:55"


Question: SELECT id FROM airport WHERE Country = "Iceland" OR name != "El Prat Airport" AND IATA != "BWI" INTERSECT SELECT id FROM flight WHERE "Velocity" != 240.0 AND "id" != 10 OR "company_id" < 9 AND Date = "October 8, 1965" OR Pilot != "Peterson"


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


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


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


Question: SELECT 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 pages_per_minute_color, dimensions, interface, max_page_size, product FROM product WHERE dimensions <> "280 x 95 x 40" OR interface = "USB 2.0" OR "product_id" >= 1 UNION ALL SELECT pages_per_minute_color, dimensions, interface, max_page_size, product FROM product WHERE "pages_per_minute_color" < 10.0 AND dimensions = "289 x 51 x 38" AND interface = "USB 2.0" OR product = "ScanShell 3000DN"

10
280 x 95 x 40
USB 2.0
216mm x 356mm
Canon imageFORMULA P-150


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 Number_products, Name, Location FROM shop WHERE Manager_name != "Tommi Kautonen" EXCEPT SELECT Number_products, Name, Location FROM shop WHERE "Shop_ID" <> 8 AND Manager_name = "Pekka Lyyski" OR Location = "Espoo" AND "Number_products" = 10770 AND District <> "Finnair Stadium" AND Name != "HJK"


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


Question: SELECT AVG(Club_ID) FROM club WHERE "Start_year" != 2009 OR "Club_ID" <= 2 OR Region != "Russia" AND Club_name <> "BK Häcken" UNION ALL SELECT AVG(Club_ID) FROM coach WHERE Coach_name <> "Joe Fabbri" AND "Coach_ID" <> 1


Question: SELECT SUM(Name) FROM company WHERE Name = "Industrial and Commercial Bank of China" INTERSECT SELECT SUM(Name) FROM people WHERE "Age" < 30 AND Name != "Tom Sheehey" AND Graduation_College <> "Virginia"


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 T1.id, T2.id FROM airport as T1 JOIN flight as T2 ON T1.id == T2.id GROUP BY ICAO HAVING City = "Akureyri" AND company_id < 2 AND name <> "Ted Stevens Airport" AND IATA = "BCN" AND Vehicle_Flight_number = "M2-F1 #61" OR Velocity >= 240.0 AND airport_id <> 3 OR Pilot = "Thompson" AND Altitude <= 3650.0 OR Country = "Netherlands" AND ICAO = "LEBL"


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


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


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


Question: SELECT Budget_in_Billions FROM department WHERE "Department_ID" <= 5 OR Name <> "Energy" OR "Ranking" >= 15 OR Creation = "1913" GROUP BY Budget_in_Billions HAVING Budget_in_Billions <> 543.2 EXCEPT SELECT Budget_in_Billions FROM department WHERE "Ranking" != 1 OR "Num_Employees" > 235000.0 AND Name != "Health and Human Services" GROUP BY Budget_in_Billions HAVING Budget_in_Billions <= 21.5


Question: SELECT LName, AVG(Age), Major, city_code FROM Student WHERE Fname = "Derek" AND "Major" = 600 UNION ALL SELECT LName, AVG(Age), Major, city_code FROM Student WHERE city_code != "PIT"


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


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


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


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


Question: SELECT Aircraft, Max_disk_Loading, Description, Aircraft_ID, Total_disk_area, Max_Gross_Weight FROM aircraft WHERE Max_Gross_Weight != "73,500 lb (33,300 kg)" AND Total_disk_area <> "872 ft² (81.1 m²)" AND Aircraft = "Robinson R-22" OR "Aircraft_ID" <> 5 OR Description = "Heavy-lift helicopter" INTERSECT SELECT Aircraft, Max_disk_Loading, Description, Aircraft_ID, Total_disk_area, Max_Gross_Weight FROM aircraft WHERE Aircraft = "CH-53E Super Stallion" OR "Aircraft_ID" >= 5 OR Max_disk_Loading <> "2.6 lb/ft² (14 kg/m²)" AND Description != "Heavy-lift helicopter" AND Total_disk_area <> "497 ft² (46.2 m²)" OR Max_Gross_Weight = "1,370 lb (635 kg)"

Bell 206B3 JetRanger
3.7 lb/ft² (18 kg/m²)
Turboshaft utility helicopter
2
872 ft² (81.1 m²)
3,200 lb (1,451 kg)

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

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

Robinson R-22
2.6 lb/ft² (14 kg/m²)
Light utility helicopter
1
497 ft² (46.2 m²)
1,370 lb (635 kg)


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


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


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


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


Question: SELECT School_id FROM School WHERE School_name <> "Triton" AND Mascot <> "Cavaliers" AND Location = "Walkerton" AND IHSAA_Class = "AAA" OR "Enrollment" <> 379 AND IHSAA_Football_Class != "AAA" AND School_id <> "5" OR County = "50 Marshall" UNION ALL SELECT School_id FROM endowment WHERE "School_id" >= 2 OR "endowment_id" >= 9 OR donator_name <> "Com. Dom. En Estados Unidos" AND "amount" > 9.51


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


Question: SELECT document_id FROM Document_Drafts WHERE "draft_number" > 9 AND draft_details = "l" AND "document_id" != 17 UNION ALL SELECT document_id FROM Documents_Mailed WHERE mailing_date = "2010-11-04 04:00:16" AND "mailed_to_address_id" <= 7 AND "document_id" <> 23


Question: SELECT SUM(Employee_ID), COUNT(Name), MIN(Age), City FROM employee GROUP BY City HAVING MIN(Age) <> 29 INTERSECT SELECT SUM(Employee_ID), COUNT(Name), MIN(Age), City FROM employee GROUP BY City HAVING COUNT(Name) != 1 OR SUM(Employee_ID) != 13 OR MIN(Age) < 23

SUM(Employee_ID) COUNT(Name) MIN(Age) City


Question: SELECT name, head_ID, born_state FROM head WHERE "head_ID" > 6 OR born_state = "Florida" AND name = "Stewart Cink" AND "age" <> 69.0 EXCEPT SELECT name, head_ID, born_state FROM head WHERE "head_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 <> 9


Question: SELECT Driver_ID FROM driver WHERE Name = "Matthew Ritter" AND Home_city != "Hartford" AND Party = "Dem" UNION ALL SELECT Driver_ID FROM school_bus WHERE "School_ID" != 3 AND If_full_time <> "T" OR "Years_Working" < 2 OR "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 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 Coach_name FROM coach WHERE Gender = "F" EXCEPT SELECT Coach_name FROM coach WHERE "Rank" <> 2 AND Gender != "M" AND Coach_name = "James Wong" AND "Club_ID" < 1 AND "Coach_ID" > 5


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


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


Question: SELECT customer_id FROM Customer_Payments WHERE "customer_id" >= 3 OR datetime_payment != "2018-02-19 01:49:59" UNION SELECT customer_id FROM Customers WHERE date_became_customer <> "2015-09-25 13:59:21" AND first_name = "Omer" OR "customer_id" <= 11 OR date_of_birth != "1996-05-23 01:21:54" AND "customer_address_id" != 2 OR "amount_outstanding" != 2255.0 OR customer_status_code <> "Bad Customer" AND last_name = "Spinka"


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


Question: SELECT City_Area, District_name FROM district WHERE District_name = "Jhang District" OR "City_Population" < 219254.0 OR "District_ID" = 7 AND Headquartered_City <> "Bhakkar City" INTERSECT SELECT City_Area, District_name FROM district WHERE "City_Area" >= 10.0


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


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


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


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


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


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


Question: SELECT SUM(T1.Id), T2.Horsepower FROM car_makers as T1 JOIN cars_data as T2 ON T1.Id = T2.Id WHERE "Cylinders" > 4 AND Horsepower <> "105" OR "Accelerate" >= 18.0


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


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


Question: SELECT SUM(Company_ID), People_ID FROM employment WHERE "Year_working" = 1 UNION ALL SELECT SUM(Company_ID), People_ID FROM employment WHERE "Company_ID" <> 17 OR "People_ID" > 7


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


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


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


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


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


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


Question: SELECT shipping_agent_code FROM Documents WHERE shipping_agent_code <> "FE" AND receipt_date != "2015-04-03 09:36:19" OR document_type_code != "CD" AND document_status_code <> "overdue" OR other_details != "q" AND "document_id" < 13 AND receipt_number = "34" INTERSECT SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_description <> "t" OR shipping_agent_code != "UP" AND shipping_agent_name = "UPS"


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


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


Question: SELECT eid FROM certificate WHERE "eid" != 141582651 INTERSECT SELECT eid FROM employee WHERE "salary" = 256481 AND "eid" >= 556784565 AND name != "William Moore"


Question: SELECT Grade FROM school WHERE Grade != "College" OR School <> "State Elementary School Menteng 01" UNION SELECT Grade FROM school WHERE School != "Occidental College" AND Location != "Jakarta, Indonesia" OR "School_ID" <> 5 AND Grade != "5th-12th grade" OR Type <> "Private"


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


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


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


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


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


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


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


Question: SELECT Model FROM car_names WHERE "MakeId" > 279 OR Model = "amc" EXCEPT SELECT Model FROM model_list WHERE "ModelId" < 16 OR Model <> "mercedes" AND "Maker" <= 19


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


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


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


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


Question: SELECT SUM(document_id) FROM Circulation_History WHERE "draft_number" <> 17 OR "employee_id" < 1 UNION ALL SELECT SUM(document_id) FROM Documents_Mailed WHERE mailing_date <> "1992-11-07 15:03:41" OR "mailed_to_address_id" != 8 OR "document_id" <> 2


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


Question: SELECT Rank FROM match_result WHERE "Big_Silver" >= 11 OR "Bronze" = 8 AND "Points" = 89 EXCEPT SELECT Rank FROM player WHERE Player_name != "Ross C. Martin" OR Occupation <> "Researcher" AND "Votes" = 9506 OR Rank <> "1st"


Question: SELECT customer_id FROM Customer_Payments WHERE "amount_payment" >= 4610.26 OR "customer_id" < 13 AND datetime_payment <> "2018-03-12 08:41:47" UNION SELECT customer_id FROM Lessons WHERE "price" > 223.0 AND lesson_time = "9" AND "staff_id" <= 8 OR lesson_date != "2018-03-12 00:41:59"


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


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


Question: SELECT Id FROM car_makers WHERE "Id" != 15 OR Country = "8" AND FullName <> "Volvo" OR Maker != "subaru" INTERSECT SELECT Id FROM cars_data WHERE "Accelerate" <> 15.4 AND Horsepower != "170" OR "Weight" = 3613 AND "Edispl" = 225.0 OR MPG = "10" OR "Id" >= 97 AND "Year" != 1973


Question: SELECT feature_name, feature_description, feature_type_code FROM Other_Available_Features WHERE feature_description != "Swimming Pool." OR "feature_id" <> 2 AND feature_type_code <> "Amenity" UNION SELECT feature_name, feature_description, feature_type_code FROM Other_Available_Features WHERE feature_type_code != "Amenity"


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


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


Question: SELECT MAX(state) FROM AREA_CODE_STATE WHERE state = "MI" UNION SELECT MAX(state) FROM VOTES WHERE state != "NY" AND "vote_id" > 5 OR "phone_number" <> 5112677315 OR "contestant_number" >= 5 AND created = "2018-03-09 19:03:21"


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


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


Question: SELECT Model FROM car_names WHERE Model <> "plymouth" OR "MakeId" = 324 UNION SELECT Model FROM model_list WHERE "ModelId" = 12 OR Model <> "renault" AND "Maker" != 8


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 Club_ID FROM coach WHERE Gender = "M" AND "Club_ID" > 3 UNION ALL SELECT Club_ID FROM match_result WHERE "Gold" <> 5 OR "Big_Silver" <> 6 AND "Rank" != 4


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


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


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


Question: SELECT COUNT(Version_Number), Template_ID FROM Templates WHERE "Version_Number" > 5 AND "Template_ID" != 10 OR Date_Effective_From != "1986-12-09 14:51:36" AND Date_Effective_To = "1980-05-07 12:15:47" EXCEPT SELECT COUNT(Version_Number), Template_ID FROM Templates WHERE Date_Effective_From != "2002-03-02 14:39:49"


Question: SELECT Player_ID FROM player WHERE Rank = "1st" OR Gender = "F" OR Residence != "Winnipeg" OR "Player_ID" > 4 OR Occupation != "Researcher" OR "Votes" = 4914 UNION ALL SELECT Player_ID FROM player_coach WHERE "Starting_year" >= 2010 OR "Coach_ID" <= 3


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


Question: SELECT StuID FROM Has_Pet WHERE "StuID" < 1002 AND "PetID" < 2002 UNION ALL SELECT StuID FROM Student WHERE "Age" <> 20


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


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


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


Question: SELECT StuID, Age FROM Student WHERE Sex = "M" INTERSECT SELECT StuID, Age FROM Student WHERE LName <> "Jones" AND "Age" > 19 OR Sex = "M" OR "Major" < 520


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


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


Question: SELECT MIN(City_Population), Headquartered_City, AVG(City_Area), District_name FROM district WHERE "District_ID" > 1 OR District_name = "Faisalabad District" AND "City_Population" = 134936.0 AND Headquartered_City = "Attock City" AND "City_Area" < 147.0 UNION ALL SELECT MIN(City_Population), Headquartered_City, AVG(City_Area), District_name FROM district WHERE "City_Population" < 94620.0 AND "District_ID" = 12 AND "City_Area" != 25.0


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


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


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


Question: SELECT draft_number, document_id FROM Document_Drafts WHERE draft_details != "k" AND "draft_number" >= 4 UNION ALL SELECT draft_number, document_id FROM Draft_Copies WHERE "draft_number" < 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 != 3


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


Question: SELECT School_id FROM School WHERE IHSAA_Football_Class = "AAA" OR Mascot <> "Trojans" AND "Enrollment" != 852 OR School_name != "Triton" UNION SELECT School_id FROM budget WHERE "Invested" > 85249 OR "total_budget_percent_budgeted" >= 2.0 AND Budget_invested_percent != "146.9" OR "Budgeted" > 113531


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


Question: SELECT created, phone_number, vote_id FROM VOTES WHERE state != "NY" AND created != "2018-03-09 19:03:40" UNION ALL SELECT created, phone_number, vote_id FROM VOTES WHERE created <> "2018-03-09 19:03:36" OR "phone_number" >= 7182887233 OR "vote_id" < 3 OR state != "NJ " AND "contestant_number" != 2


Question: SELECT document_status_code FROM Documents WHERE receipt_date = "1985-11-05 17:59:34" OR document_type_code != "CD" OR document_status_code != "working" OR receipt_number <> "189" OR shipping_agent_code <> "AL" AND "document_id" >= 25 UNION SELECT document_status_code FROM Ref_Document_Status WHERE document_status_code <> "overdue"


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


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


Question: SELECT document_id FROM Documents WHERE receipt_number != "117" UNION ALL SELECT document_id FROM Documents_Mailed WHERE "mailed_to_address_id" <> 8


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


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


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


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


Question: SELECT COUNT(property_feature_description) FROM Other_Property_Features WHERE "feature_id" <= 3 AND property_feature_description <> "earum" UNION SELECT COUNT(property_feature_description) FROM Other_Property_Features WHERE "property_id" > 15


Question: SELECT name FROM aircraft WHERE "aid" > 16 AND "distance" <= 4103 AND name = "SAAB 340" UNION ALL SELECT name FROM employee WHERE name <> "Elizabeth Taylor" OR "salary" <> 227489


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 People_ID, Birth_Date, Height, Nationality FROM people WHERE Birth_Date = "August 8, 1986" AND "Height" != 182.0 OR Nationality != "Russia" AND "People_ID" <> 7 EXCEPT SELECT People_ID, Birth_Date, Height, Nationality FROM people WHERE Birth_Date = "August 16, 1982" AND "Height" > 193.0 AND Nationality <> "Bulgaria"


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


Question: SELECT name FROM aircraft WHERE "distance" >= 2605 AND name = "Lockheed L1011" UNION SELECT name FROM employee WHERE "salary" != 114323 AND name != "Karen Scott" OR "eid" > 159542516


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 other_details FROM Documents WHERE receipt_date <> "1985-11-05 17:59:34" OR shipping_agent_code = "UP" AND document_status_code = "working" AND "document_id" <= 10 EXCEPT SELECT other_details FROM Employees WHERE "employee_id" = 8 OR role_code != "MG" AND employee_name <> "Clemens" OR other_details != "v"


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 donator_name, amount, MAX(endowment_id) FROM endowment WHERE "amount" <= 9.83 INTERSECT SELECT donator_name, amount, MAX(endowment_id) FROM endowment WHERE "amount" <= 8.33 AND "School_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 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 draft_number, document_id FROM Document_Drafts WHERE draft_details <> "w" AND "document_id" = 17 OR "draft_number" > 0 UNION ALL SELECT draft_number, document_id FROM Draft_Copies WHERE "document_id" >= 2


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


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


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


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


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


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


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


Question: SELECT AVG(T1.Age), T2.Year_awarded FROM employee as T1 JOIN evaluation as T2 ON T1.Employee_ID = T2.Employee_ID WHERE Year_awarded = "2015" AND City = "Sale" OR Name <> "Jason Hobson" GROUP BY City HAVING Name <> "Matt Stevens"


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


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


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


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


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


Question: SELECT id FROM airport WHERE ICAO <> "EHAM" UNION SELECT id FROM flight WHERE "Velocity" = 240.0 OR Vehicle_Flight_number <> "M2-F1 #13" AND "Altitude" >= 3650.0 AND "airport_id" = 2


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


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


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


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


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


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


Question: SELECT COUNT(Budgeted), COUNT(Year), Budget_invested_percent, total_budget_percent_invested FROM budget WHERE "total_budget_percent_invested" >= 2.7 UNION ALL SELECT COUNT(Budgeted), COUNT(Year), Budget_invested_percent, total_budget_percent_invested FROM budget WHERE "Year" <> 2003 OR "School_id" >= 4 AND "Budgeted" = 113531 AND "Invested" <> 5840 AND "total_budget_percent_invested" <= 2.0


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 property_id FROM Other_Property_Features WHERE "property_id" = 4 UNION ALL SELECT property_id FROM Properties WHERE date_sold = "1997-11-07 20:22:05" OR shp_feature_3 != "None" AND "room_count" != 5 AND hse_feature_1 <> "None" OR hse_feature_3 != "None" OR "agreed_selling_price" = 0.0 AND property_address = "60845 Else Highway Apt. 826 South Dougfort, CO 43200-4258" AND oth_feature_1 != "None" OR oth_feature_2 != "None" AND shp_feature_1 <> "None" OR "buyer_offered_price" != 2449185.2 OR "property_id" > 3


Question: SELECT Employee_ID FROM employee WHERE Name <> "George Chuter" AND "Age" < 32 AND "Employee_ID" != 5 INTERSECT SELECT Employee_ID FROM hiring WHERE Start_from != "2009" AND "Shop_ID" != 6 OR "Employee_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 < 10


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


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


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


Question: SELECT COUNT(role_code) FROM Employees WHERE "employee_id" > 3 OR role_code = "ED" UNION SELECT COUNT(role_code) FROM Roles WHERE role_code = "MG"


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 COUNT(StuID), AVG(Position), COUNT(ClubID) FROM Member_of_club WHERE "ClubID" >= 1 AND "StuID" <= 1010 UNION SELECT COUNT(StuID), AVG(Position), COUNT(ClubID) FROM Member_of_club WHERE "ClubID" <= 2 AND Position = "CTO"


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


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


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


Question: SELECT MAX(Coach_name), Gender, SUM(Coach_ID) FROM coach WHERE Gender <> "M" AND "Rank" != 2 UNION ALL SELECT MAX(Coach_name), Gender, SUM(Coach_ID) FROM coach WHERE "Coach_ID" != 1 AND Coach_name = "Smith Brown" AND "Club_ID" <= 1 OR Gender <> "M" OR "Rank" > 4


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


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


Question: SELECT SUM(School_id) FROM School WHERE IHSAA_Football_Class <> "AAA" OR Mascot != "Lancers" AND County <> "75 Starke" AND IHSAA_Class <> "AAA" AND Location = "Elkhart" UNION SELECT SUM(School_id) FROM budget WHERE Budget_invested_percent = "42.9" OR "Year" != 2003 AND "Budgeted" <= 3666 OR "School_id" = 5 OR "Invested" <= 2134


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


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


Question: SELECT MAX(customer_id) FROM Customer_Payments WHERE "amount_payment" >= 6970.98 AND payment_method_code != "Credit Card" AND datetime_payment <> "2018-02-15 16:38:49" UNION SELECT MAX(customer_id) FROM Lessons WHERE lesson_time != "5" AND "lesson_id" < 15


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 first_name FROM Customers WHERE "customer_id" > 8 EXCEPT SELECT first_name FROM Staff WHERE date_of_birth = "2000-11-16 06:55:12" AND date_left_staff <> "2018-03-09 05:08:35"


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


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


Question: SELECT StuID FROM Has_Allergy WHERE Allergy <> "Cat" UNION ALL SELECT StuID FROM Student WHERE Sex != "M" OR "StuID" != 1007 AND Fname = "Paul" OR "Major" > 600 OR city_code = "BOS" AND "Advisor" >= 9172 AND "Age" <> 20 OR LName = "Schwartz"


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


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


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


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


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


Question: SELECT Party FROM election WHERE Committee != "Economic Matters" AND Counties_Represented != "12.2 12B" AND "Election_ID" = 8 OR "First_Elected" <> 1994.0 OR "District" <> 2 OR "Party" != 1 AND Delegate = "Guzzone, Guy Guy Guzzone" UNION ALL SELECT Party FROM party WHERE Party = "Independence" OR Comptroller != "Alan Hevesi" OR US_Senate != "Charles Schumer" AND Governor = "Peter Vallone" AND Lieutenant_Governor = "Sandra Frankel" AND "Party_ID" = 4 OR Attorney_General <> "Eliot Spitzer"


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 vehicle_id, vehicle_details FROM Vehicles WHERE vehicle_details = "Car" OR "vehicle_id" != 1 EXCEPT SELECT vehicle_id, vehicle_details FROM Vehicles WHERE vehicle_details = "Truck"


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


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


Question: SELECT distance FROM aircraft WHERE name != "Boeing 777-300" OR "distance" > 2605 UNION SELECT distance FROM flight WHERE "flno" != 33 OR destination != "Los Angeles" AND departure_date != "04/12/2005 07:03" AND "price" > 235.98 OR arrival_date = "04/12/2005 07:05" OR "aid" != 5


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


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


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


Question: SELECT AVG(Template_Type_Code), AVG(Template_Type_Description) FROM Ref_Template_Types WHERE Template_Type_Description <> "Advertisement" AND Template_Type_Code = "CV" UNION ALL SELECT AVG(Template_Type_Code), AVG(Template_Type_Description) FROM Ref_Template_Types WHERE Template_Type_Description != "Presentation"


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


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


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