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


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


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


Question: SELECT aid FROM aircraft WHERE "aid" >= 15 OR "distance" >= 2128 UNION SELECT aid FROM certificate WHERE "eid" > 355548984


Question: SELECT SUM(T1.ClubID), T2.ClubID FROM Club as T1 JOIN Member_of_club as T2 ON T1.ClubID = T2.ClubID WHERE ClubLocation <> "HHH" OR ClubName = "Tennis Club" OR Position <> "Teaching Coordinator"


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


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


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


Question: SELECT 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 AVG(role_code) FROM Roles WHERE role_description <> "Photo" OR role_code <> "MG" EXCEPT SELECT AVG(role_code) FROM Roles WHERE role_description <> "Manager" AND role_code = "MG"


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 Age, MAX(Name), City FROM employee WHERE "Employee_ID" >= 9 OR "Age" >= 29 UNION ALL SELECT Age, MAX(Name), City FROM employee WHERE "Employee_ID" != 7 OR "Age" > 29 AND Name = "Louis Deacon"


Question: SELECT id FROM flight WHERE Date = "July 16, 1965" AND "airport_id" < 9 AND "Altitude" = 3650.0 OR "id" > 5 OR Vehicle_Flight_number != "M2-F1 #1" INTERSECT SELECT id FROM operate_company WHERE Type = "Subsidiary" OR Principal_activities <> "Cargo airline" OR name <> "Air China" OR Incorporated_in != "Vietnam" AND "Group_Equity_Shareholding" = 30.0


Question: SELECT Address_road, COUNT(Name), COUNT(membership_amount), COUNT(Open_year), COUNT(Branch_ID), COUNT(City) FROM branch GROUP BY Address_road HAVING COUNT(Open_year) >= 1 AND COUNT(Branch_ID) > 1 AND COUNT(Name) <> 1 UNION ALL SELECT Address_road, COUNT(Name), COUNT(membership_amount), COUNT(Open_year), COUNT(Branch_ID), COUNT(City) FROM branch GROUP BY Address_road HAVING COUNT(City) >= 1 OR COUNT(Branch_ID) >= 1 OR COUNT(Open_year) != 1 AND COUNT(Name) = 1 AND COUNT(membership_amount) <> 1


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


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


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


Question: SELECT Party FROM election WHERE "Party" > 2 OR "First_Elected" != 2006.0 OR Counties_Represented = "09.1 9A" OR "Election_ID" != 3 AND Committee = "Environmental Matters" EXCEPT SELECT Party FROM party WHERE Governor <> "Eliot Spitzer" AND Party <> "Democratic" OR US_Senate = "(no election)" OR "Year" > 2006.0 OR "Party_ID" <= 4 AND Lieutenant_Governor = "Jonathan Reiter" OR Attorney_General != "Andrew Cuomo"


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


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


Question: SELECT MIN(Shop_ID) FROM hiring WHERE "Employee_ID" <= 6 UNION ALL SELECT MIN(Shop_ID) FROM shop WHERE Manager_name != "Olli Huttunen"


Question: SELECT vehicle_id FROM Lessons WHERE "vehicle_id" = 2 OR "customer_id" <> 6 UNION ALL SELECT vehicle_id FROM Vehicles WHERE "vehicle_id" <> 2


Question: SELECT COUNT(Allergy) FROM Allergy_Type WHERE Allergy != "Rodent" OR AllergyType = "animal" UNION SELECT COUNT(Allergy) FROM Has_Allergy WHERE Allergy != "Shellfish"


Question: SELECT SUM(Player_ID) FROM player WHERE Residence != "Winnipeg" UNION ALL SELECT SUM(Player_ID) FROM player_coach WHERE "Coach_ID" >= 5 OR "Starting_year" <= 2010 OR "Player_ID" != 10


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


Question: SELECT Paragraph_ID, Paragraph_Text, Document_ID FROM Paragraphs WHERE Other_Details <> "None" OR "Document_ID" >= 3540024 AND "Paragraph_ID" > 3708 UNION SELECT Paragraph_ID, Paragraph_Text, Document_ID FROM Paragraphs WHERE "Paragraph_ID" > 3708 OR "Document_ID" = 16514113 OR Other_Details = "None"


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


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


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


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


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


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


Question: SELECT MAX(document_status_description) FROM Ref_Document_Status WHERE document_status_code != "overdue" OR document_status_description <> "currently working on" UNION ALL SELECT MAX(document_status_description) FROM Ref_Document_Status WHERE document_status_description = "currently working on" OR document_status_code != "working"


Question: SELECT People_ID FROM people WHERE Nationality = "Russia" OR Birth_Date = "August 16, 1982" AND Name = "Teodor Salparov" UNION SELECT People_ID FROM poker_player WHERE "Final_Table_Made" > 26.0 AND "Money_Rank" >= 68.0 AND "People_ID" <> 6 AND "Poker_Player_ID" <> 2 OR "Earnings" <= 476090.0


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


Question: SELECT head_ID FROM head WHERE name <> "Billy Mayfair" AND born_state <> "Florida" OR "age" < 43.0 UNION ALL SELECT head_ID FROM management WHERE "head_ID" < 3 AND temporary_acting = "Yes"


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 Writer, Issues, Book_ID FROM book WHERE "Issues" = 1.0 AND "Book_ID" >= 10 OR Writer <> "Dave Gibbons" UNION ALL SELECT Writer, Issues, Book_ID FROM book WHERE Title <> "Bloody Mary : Lady Liberty" OR "Book_ID" <= 5 OR "Issues" > 12.0 AND Writer != "Timothy Truman"


Question: SELECT Coach_ID FROM coach WHERE Coach_name <> "Joe Fabbri" OR Gender = "M" OR "Rank" = 2 AND "Coach_ID" > 3 AND "Club_ID" >= 3 UNION ALL SELECT Coach_ID FROM player_coach WHERE "Coach_ID" = 1


Question: SELECT MIN(T1.id), T2.company_id FROM airport as T1 JOIN flight as T2 ON T1.id = T2.id WHERE IATA <> "BLL" OR Date = "January 29, 1964" OR "Altitude" <= 3650.0 AND ICAO <> "EBBR" AND "airport_id" > 2 AND name = "Billund Airport" GROUP BY ICAO HAVING 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 <= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9


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


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


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


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


Question: SELECT created FROM VOTES WHERE "phone_number" >= 6209222712 OR "contestant_number" <> 2 AND created = "2018-03-09 19:03:36" INTERSECT SELECT created FROM VOTES WHERE "contestant_number" >= 3 OR state <> "CA" AND created != "2018-03-09 19:03:39" OR "phone_number" >= 7148407040 AND "vote_id" != 3


Question: SELECT Club_ID FROM club WHERE Region = "Korea" OR Club_name != "Djurgårdens IF" AND "Start_year" > 2001 OR "Club_ID" > 2 INTERSECT SELECT Club_ID FROM coach WHERE "Coach_ID" >= 5


Question: SELECT People_ID FROM people WHERE Birth_Date <> "April 17, 1987" AND "Height" >= 205.0 UNION ALL SELECT People_ID FROM poker_player WHERE "Poker_Player_ID" = 3 AND "Final_Table_Made" <> 26.0 AND "Earnings" <= 189233.0 AND "People_ID" > 5


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 Book_ID FROM book WHERE Title != "Gemini Blood" AND "Book_ID" <> 7 OR Writer != "Christopher Hinz" EXCEPT SELECT Book_ID FROM publication WHERE "Price" <= 15000000.0 AND Publisher = "Bertelsmann" AND "Publication_ID" = 4 AND "Book_ID" < 3 OR Publication_Date <> "March 2008"


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


Question: SELECT COUNT(School_ID), Driver_ID FROM school_bus WHERE "Years_Working" <= 10 AND If_full_time <> "T" AND "Driver_ID" < 10 AND "School_ID" >= 4 EXCEPT SELECT COUNT(School_ID), Driver_ID FROM school_bus WHERE "Years_Working" < 8


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


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


Question: SELECT Address_road, MAX(Branch_ID) FROM branch WHERE "Branch_ID" = 7 AND Address_road <> "Brampton Road" AND Name <> "Brooke Greville" OR City = "Oxford" OR Open_year <> "2014" AND membership_amount = "7" UNION SELECT Address_road, MAX(Branch_ID) FROM branch WHERE Open_year = "2012" AND "Branch_ID" >= 8 OR Address_road <> "Valleys Place" OR membership_amount <> "56" AND Name != "Brooke Greville"


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


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


Question: SELECT Rank FROM match_result WHERE "Big_Silver" >= 7 UNION SELECT Rank FROM player WHERE Rank = "2nd" AND Sponsor_name <> "Churchill" AND Occupation = "Retired" OR "Votes" != 7190 OR Gender != "F" AND Residence <> "Winnipeg" OR Player_name != "Fiona Shiells" AND "Player_ID" != 1


Question: SELECT SUM(document_id) FROM Documents WHERE document_type_code != "CD" OR receipt_number <> "37" UNION ALL SELECT SUM(document_id) FROM Draft_Copies WHERE "copy_number" >= 6 OR "document_id" != 12 OR "draft_number" = 9


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


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


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


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


Question: SELECT School_id, endowment_id FROM endowment WHERE "endowment_id" <> 6 OR donator_name = "Com. Dom. En Estados Unidos" EXCEPT SELECT School_id, endowment_id FROM endowment WHERE donator_name <> "Com. Dom. En Estados Unidos"


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


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


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


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


Question: SELECT Comptroller, Governor, Year, US_Senate, Lieutenant_Governor, Party, Attorney_General FROM party WHERE Comptroller <> "Alan Hevesi" AND Lieutenant_Governor = "Dennis Mehiel" AND US_Senate <> "Hillary Rodham Clinton" AND Attorney_General != "Eliot Spitzer" OR "Party_ID" < 5 AND "Year" < 2006.0 AND Governor != "Betsy McCaughey Ross" INTERSECT SELECT Comptroller, Governor, Year, US_Senate, Lieutenant_Governor, Party, Attorney_General FROM party WHERE Lieutenant_Governor <> "David Paterson" OR Comptroller <> "Alan Hevesi" AND Attorney_General <> "Andrew Cuomo" OR "Year" != 2006.0 AND US_Senate <> "Hillary Rodham Clinton" OR "Party_ID" <= 2 AND Party <> "Liberal"

Alan Hevesi
Carl McCall
2002
(no election)
Dennis Mehiel
Democratic
Eliot Spitzer

Carl McCall
Peter Vallone
1998
Charles Schumer
Sandra Frankel
Democratic
Eliot Spitzer

John Faso
Tom Golisano
2002
(no election)
Mary Donohue
Independence
Eliot Spitzer


Question: SELECT AVG(StuID) FROM Has_Allergy WHERE Allergy != "Nuts" UNION ALL SELECT AVG(StuID) FROM Student WHERE "Advisor" <= 8722 AND "StuID" > 1011 AND Fname <> "Stacy" AND LName = "Kumar"


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


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


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


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


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


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


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


Question: SELECT People_ID FROM employment WHERE "People_ID" != 2 OR "Year_working" >= 4 UNION ALL SELECT People_ID FROM people WHERE Name = "Brad Lohaus" AND Graduation_College != "Oklahoma" OR "People_ID" >= 4


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


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


Question: SELECT name, distance, aid FROM aircraft WHERE "distance" = 6475 OR name = "Lockheed L1011" OR "aid" = 13 UNION ALL SELECT name, distance, aid FROM aircraft WHERE name = "Boeing 777-300"


Question: SELECT document_id FROM Documents WHERE receipt_date != "2015-04-03 09:36:19" OR "document_id" > 12 OR document_type_code <> "Hard Drive" AND document_status_code <> "overdue" EXCEPT SELECT document_id FROM Draft_Copies WHERE "draft_number" > 20 AND "document_id" != 12


Question: SELECT MAX(Product_ID), COUNT(Store_ID) FROM store_product WHERE "Store_ID" != 2 OR "Product_ID" > 6 UNION ALL SELECT MAX(Product_ID), COUNT(Store_ID) FROM store_product WHERE "Store_ID" <> 1 OR "Product_ID" < 3


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


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


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


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


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


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


Question: SELECT 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 role_code FROM Employees WHERE employee_name != "Erling" AND other_details != "f" OR role_code != "MG" AND "employee_id" < 7 INTERSECT SELECT role_code FROM Roles WHERE role_description = "Proof Manager" OR role_code != "ED"


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


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


Question: SELECT If_full_time FROM school_bus WHERE "Driver_ID" <= 10 UNION SELECT If_full_time FROM school_bus WHERE If_full_time != "T"


Question: SELECT department_ID, temporary_acting FROM management WHERE "department_ID" != 15 UNION ALL SELECT department_ID, temporary_acting FROM management WHERE "department_ID" > 7


Question: SELECT MAX(Model) FROM car_names WHERE "MakeId" <= 26 UNION SELECT MAX(Model) FROM model_list WHERE "ModelId" <= 20 OR Model <> "volvo"


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


Question: SELECT COUNT(beds), basePrice, bedType, RoomId, COUNT(decor), AVG(roomName), SUM(maxOccupancy) FROM Rooms WHERE "maxOccupancy" >= 4 UNION ALL SELECT COUNT(beds), basePrice, bedType, RoomId, COUNT(decor), AVG(roomName), SUM(maxOccupancy) FROM Rooms WHERE roomName <> "Convoke and sanguine" OR decor = "rustic" AND "maxOccupancy" <> 4 OR "basePrice" = 150 AND bedType <> "Double" AND RoomId != "AOB"

COUNT(beds) basePrice bedType RoomId COUNT(decor) AVG(roomName) SUM(maxOccupancy)


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


Question: SELECT StuID, Major, city_code, Fname FROM Student WHERE "Major" >= 600 OR Fname != "Jun" AND "StuID" >= 1015 OR "Age" <= 20 AND "Advisor" <= 2311 OR LName != "Simms" OR Sex = "M" AND city_code != "PIT" EXCEPT SELECT StuID, Major, city_code, Fname FROM Student WHERE "StuID" > 1034


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 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 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 property_id FROM Other_Property_Features WHERE "feature_id" = 3 UNION ALL SELECT property_id FROM Properties WHERE property_type_code != "Other" OR "property_id" > 10 AND oth_feature_3 != "None" AND fld_feature_1 <> "None"


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


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


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


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


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


Question: SELECT MAX(id) FROM albums WHERE title <> "House of Pain" UNION ALL SELECT MAX(id) FROM genres WHERE "id" = 16


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


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


Question: SELECT T1.Market_Value_in_Billion, T2.Year_working FROM company as T1 JOIN employment as T2 ON T1.Company_ID == T2.Company_ID GROUP BY Profits_in_Billion HAVING Sales_in_Billion >= 433.5 OR Year_working >= 1 AND Profits_in_Billion > 21.5 OR People_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 <> 10


Question: SELECT Max_disk_Loading, Aircraft FROM aircraft WHERE Max_Gross_Weight <> "123,500 lb (56,000 kg)" OR Total_disk_area = "497 ft² (46.2 m²)" AND Description <> "Heavy-lift helicopter" UNION ALL SELECT Max_disk_Loading, Aircraft FROM aircraft WHERE Total_disk_area = "872 ft² (81.1 m²)" OR "Aircraft_ID" > 5 OR Max_disk_Loading <> "2.6 lb/ft² (14 kg/m²)" OR Description = "Light utility helicopter" AND Aircraft != "Mil Mi-26"

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

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

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

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


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


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


Question: SELECT title FROM item WHERE title != "cup" INTERSECT SELECT title FROM item WHERE "i_id" <> 1 OR title != "blue hoodie"


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


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


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


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


Question: SELECT Store_ID FROM store WHERE Type = "City Mall" UNION SELECT Store_ID FROM store_product WHERE "Product_ID" != 6


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


Question: SELECT Sales_in_Billion, Industry, MAX(Name), COUNT(Assets_in_Billion), MIN(Company_ID), COUNT(Profits_in_Billion), MAX(Headquarters) FROM company WHERE Industry != "Banking" UNION ALL SELECT Sales_in_Billion, Industry, MAX(Name), COUNT(Assets_in_Billion), MIN(Company_ID), COUNT(Profits_in_Billion), MAX(Headquarters) FROM company WHERE "Profits_in_Billion" <= 21.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 > 4


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


Question: SELECT draft_number, document_id FROM Document_Drafts WHERE draft_details != "a" AND "draft_number" > 10 INTERSECT SELECT draft_number, document_id FROM Draft_Copies WHERE "draft_number" >= 9 AND "document_id" = 10


Question: SELECT property_type_code FROM Properties WHERE apt_feature_2 != "est" OR shp_feature_1 <> "None" AND fld_feature_1 = "None" AND hse_feature_2 <> "None" OR apt_feature_1 <> "et" OR date_on_market <> "1986-12-31 10:05:32" AND oth_feature_2 = "None" OR "buyer_offered_price" < 0.0 AND property_type_code <> "Apartment" OR hse_feature_3 <> "None" OR oth_feature_1 <> "None" AND "property_id" <> 3 AND other_property_details = "None" AND date_sold != "1997-01-07 19:52:45" AND property_address <> "986 Hagenes Drives Draketon, UT 83411-3393" AND fld_feature_2 != "None" AND shp_feature_3 <> "None" OR hse_feature_1 <> "None" AND "vendor_requested_price" <> 6713620.9 AND property_name != "parc coliseum" INTERSECT SELECT property_type_code FROM Ref_Property_Types WHERE property_type_description <> "Other, to be determined." OR property_type_code != "Apartment"


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


Question: SELECT apt_feature_1, MIN(oth_feature_1), property_id, MAX(property_type_code), MIN(apt_feature_2), fld_feature_2, date_sold, AVG(shp_feature_2), apt_feature_3, shp_feature_1, fld_feature_3, COUNT(room_count), hse_feature_1, agreed_selling_price, other_property_details, property_address, fld_feature_1, MAX(oth_feature_3), MIN(vendor_requested_price), SUM(property_name), COUNT(hse_feature_3), MAX(shp_feature_3), buyer_offered_price FROM Properties WHERE "property_id" <= 7 OR property_type_code != "Field" AND oth_feature_1 != "None" AND fld_feature_3 != "None" AND shp_feature_2 <> "None" OR oth_feature_3 != "None" OR fld_feature_2 != "None" AND "room_count" != 2 OR shp_feature_1 = "None" AND date_sold = "2012-08-19 07:36:57" AND apt_feature_1 <> "aut" AND other_property_details <> "None" AND property_name <> "longacre" OR apt_feature_3 != "None" OR "vendor_requested_price" <> 983.8596 OR "agreed_selling_price" >= 44132.4621 AND property_address != "4745 Emerson Stravenue Suite 829 South Garret, IN 16772-5682" OR shp_feature_3 <> "None" AND fld_feature_1 <> "None" OR oth_feature_2 = "None" AND "buyer_offered_price" <> 2.0 AND hse_feature_2 = "None" OR apt_feature_2 != "est" AND hse_feature_3 = "None" AND date_on_market = "1978-05-15 10:53:37" UNION SELECT apt_feature_1, MIN(oth_feature_1), property_id, MAX(property_type_code), MIN(apt_feature_2), fld_feature_2, date_sold, AVG(shp_feature_2), apt_feature_3, shp_feature_1, fld_feature_3, COUNT(room_count), hse_feature_1, agreed_selling_price, other_property_details, property_address, fld_feature_1, MAX(oth_feature_3), MIN(vendor_requested_price), SUM(property_name), COUNT(hse_feature_3), MAX(shp_feature_3), buyer_offered_price FROM Properties WHERE date_sold != "1971-04-14 03:23:49" OR shp_feature_3 != "None" AND apt_feature_1 = "et" OR hse_feature_2 = "None" AND fld_feature_2 != "None" OR "buyer_offered_price" >= 2.0 OR oth_feature_2 != "None" AND property_type_code = "Other" AND property_address != "6837 Darien Views Apt. 475 South Maraview, KS 77770" AND oth_feature_3 = "None" OR shp_feature_1 = "None" AND "vendor_requested_price" = 661536468.4429 AND hse_feature_3 = "None" OR "room_count" > 2 OR apt_feature_3 <> "None" AND property_name <> "parc coliseum" AND hse_feature_1 != "None" AND "property_id" = 12 OR "agreed_selling_price" <> 4514.807 AND shp_feature_2 <> "None" AND oth_feature_1 = "None" OR date_on_market = "1994-02-14 02:27:13" AND fld_feature_1 <> "None" OR apt_feature_2 != "iusto" AND fld_feature_3 = "None" OR other_property_details != "None"

986 Hagenes Drives
Draketon, UT 83411-3393


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


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


Question: SELECT Branch_ID FROM branch WHERE Name != "Taverner" AND membership_amount <> "1418" OR Address_road <> "Glebe Street" OR City <> "Oxford" AND "Branch_ID" > 6 OR Open_year <> "2001" UNION SELECT Branch_ID FROM membership_register_branch WHERE Register_Year <> "2016" AND "Member_ID" <= 6


Question: SELECT head_ID, temporary_acting FROM management WHERE temporary_acting != "No" UNION SELECT head_ID, temporary_acting FROM management WHERE "head_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 > 5


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


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


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


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


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


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


Question: SELECT MAX(Employee_ID) FROM employee WHERE Name <> "Phil Vickery" AND "Age" <= 29 UNION ALL SELECT MAX(Employee_ID) FROM evaluation WHERE "Bonus" < 4000.0 OR Employee_ID != "7"


Question: SELECT Home_city, Party FROM driver WHERE Name != "Dan Carter" AND "Age" <> 46 AND Party = "Dem" OR Home_city = "Hartford" OR "Driver_ID" >= 6 UNION ALL SELECT Home_city, Party FROM driver WHERE "Age" > 46


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


Question: SELECT vehicle_id FROM Lessons WHERE lesson_date = "2018-03-05 18:05:31" OR "customer_id" = 5 INTERSECT SELECT vehicle_id FROM Vehicles WHERE vehicle_details != "Van" AND "vehicle_id" = 2


Question: SELECT id FROM airport WHERE "id" != 1 OR IATA <> "AMS" OR Country <> "United States" AND City != "Boston" UNION ALL SELECT id FROM flight WHERE "Altitude" <= 3650.0 AND Date = "August 30, 1965" OR Vehicle_Flight_number <> "M2-F1 #1" OR "Velocity" > 240.0 AND "id" >= 6 AND "company_id" != 7 OR Pilot = "Thompson"


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


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


Question: SELECT Writer FROM book WHERE Writer = "Michael Moorcock" OR "Issues" < 4.0 UNION SELECT Writer FROM book WHERE Writer <> "Christopher Hinz"


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


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


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


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


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


Question: SELECT i_id FROM item WHERE title != "comb" AND "i_id" <= 6 EXCEPT SELECT i_id FROM review WHERE "i_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 <= 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 >= 10


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


Question: SELECT Creation, AVG(Ranking) FROM department WHERE Creation != "1789" AND Name = "Labor" AND "Num_Employees" <= 71436.0 AND "Department_ID" = 12 OR "Ranking" >= 10 OR "Budget_in_Billions" != 62.8 GROUP BY Creation HAVING AVG(Ranking) >= 10.0 EXCEPT SELECT Creation, AVG(Ranking) FROM department WHERE "Department_ID" <= 4 OR Name != "Agriculture" GROUP BY Creation HAVING AVG(Ranking) >= 14.0


Question: SELECT Company_ID FROM company WHERE Name = "Walmart" UNION ALL SELECT Company_ID FROM employment WHERE "People_ID" > 7 AND "Company_ID" <= 17


Question: SELECT Zip_code, Population, County_name, County_Id FROM county WHERE "Population" <= 13300.0 UNION SELECT Zip_code, Population, County_name, County_Id FROM county WHERE "County_Id" = 4 AND County_name <> "Howard" OR Zip_code = "D11" OR "Population" != 21000.0


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


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


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


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


Question: SELECT lesson_id, lesson_date, lesson_time FROM Lessons WHERE "vehicle_id" > 1 OR "price" != 495.0 AND lesson_time = "2" AND lesson_status_code != "Completed" AND "staff_id" = 5 OR "customer_id" != 2 AND "lesson_id" > 11 UNION ALL SELECT lesson_id, lesson_date, lesson_time FROM Lessons WHERE "price" != 231.0 OR "staff_id" >= 8 OR lesson_date != "2018-03-07 16:12:36" OR lesson_status_code != "Cancelled"


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


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


Question: SELECT staff_address_id, date_of_birth, date_joined_staff, nickname, staff_id, last_name, first_name FROM Staff WHERE "staff_address_id" = 3 AND date_of_birth != "1994-05-17 05:32:11" OR middle_name <> "Amara" AND date_joined_staff <> "2017-12-22 03:06:32" UNION SELECT staff_address_id, date_of_birth, date_joined_staff, nickname, staff_id, last_name, first_name FROM Staff WHERE last_name != "Hermann" OR first_name = "Simeon" AND nickname != "lsenger" OR "staff_address_id" = 7 AND middle_name = "Sherwood" AND "staff_id" < 12


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


Question: SELECT MAX(Open_year), Name FROM branch WHERE Open_year = "2009" OR City != "Oxford" OR "Branch_ID" >= 6 UNION SELECT MAX(Open_year), Name FROM branch WHERE Address_road != "Oaks Crescent"


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


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


Question: SELECT id FROM airport WHERE Country != "United States" AND IATA != "BRU" UNION ALL SELECT id FROM flight WHERE "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 < 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 <= 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 <= 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 Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4


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


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


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


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


Question: SELECT employee_id FROM Circulation_History WHERE "draft_number" = 17 AND "employee_id" != 2 OR "copy_number" = 15 UNION ALL SELECT employee_id FROM Employees WHERE role_code <> "ED" AND other_details != "b"


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


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


Question: SELECT MAX(document_id) FROM Document_Drafts WHERE "draft_number" >= 12 UNION ALL SELECT MAX(document_id) FROM Documents_Mailed WHERE "mailed_to_address_id" >= 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 MAX(i_id) FROM review WHERE "u_id" = 2 UNION SELECT MAX(i_id) FROM review WHERE "rank" < 3 AND "u_id" >= 2 AND "rating" <> 6 AND "a_id" >= 1


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


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


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


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


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


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


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


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


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


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


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


Question: SELECT AVG(T1.ClubID), T2.StuID FROM Club as T1 JOIN Member_of_club as T2 ON T1.ClubID = T2.ClubID WHERE ClubName = "Bootup Baltimore" GROUP BY ClubLocation HAVING ClubLocation = "AKW"


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


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


Question: SELECT document_id FROM Documents WHERE receipt_date != "2017-07-02 17:39:09" AND receipt_number <> "19" AND shipping_agent_code = "UP" AND document_type_code != "CD" EXCEPT SELECT document_id FROM Documents_Mailed WHERE mailing_date != "1992-11-07 15:03:41" AND "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 = 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 < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3


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


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


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


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


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


Question: SELECT shipping_agent_code, shipping_agent_name FROM Ref_Shipping_Agents WHERE shipping_agent_name = "Ship" AND shipping_agent_description = "t" UNION ALL SELECT shipping_agent_code, shipping_agent_name FROM Ref_Shipping_Agents WHERE shipping_agent_code = "FE"


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 Document_ID FROM Documents WHERE "Document_ID" < 2394 OR Other_Details <> "None" OR "Template_ID" >= 20 EXCEPT SELECT Document_ID FROM Paragraphs WHERE "Document_ID" > 2394 AND Other_Details != "None"


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


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


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


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


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


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


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


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


Question: SELECT SUM(Template_Type_Description), SUM(Template_Type_Code) FROM Ref_Template_Types WHERE Template_Type_Description = "Presentation" UNION SELECT SUM(Template_Type_Description), SUM(Template_Type_Code) FROM Ref_Template_Types WHERE Template_Type_Code = "AD"


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


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 contestant_number FROM CONTESTANTS WHERE "contestant_number" != 8 AND contestant_name = "Loraine NygrenTania Mattioli" UNION SELECT contestant_number FROM VOTES WHERE "contestant_number" <= 3 OR created = "2018-03-09 19:03:21" AND state <> "NY"


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


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


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


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


Question: SELECT last_name, date_of_birth, date_left_staff FROM Staff WHERE date_joined_staff != "2016-06-05 22:22:23" AND "staff_id" < 4 OR middle_name = "Liam" OR last_name <> "Sawayn" OR nickname <> "nicholaus92" AND "staff_address_id" = 12 OR date_of_birth != "2015-08-10 11:37:39" AND date_left_staff != "2018-03-06 23:17:41" UNION SELECT last_name, date_of_birth, date_left_staff FROM Staff WHERE "staff_id" != 1


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


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


Question: SELECT feature_id, feature_description FROM Other_Available_Features WHERE feature_type_code != "Security" OR feature_name <> "AirCon" AND "feature_id" != 3 EXCEPT SELECT feature_id, feature_description FROM Other_Available_Features WHERE "feature_id" <> 4 OR feature_description != "Burglar Alarm" OR feature_name <> "Pool" AND feature_type_code = "Amenity"


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


Question: SELECT AVG(Name) FROM company WHERE "Profits_in_Billion" > 25.7 AND Headquarters <> "China" OR "Company_ID" > 5.0 OR Name <> "Gazprom" AND Industry != "Oil and gas" AND "Market_Value_in_Billion" > 407.4 AND "Sales_in_Billion" >= 102.6 UNION SELECT AVG(Name) FROM people WHERE Graduation_College != "Wisconsin–Stevens Point"


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


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


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


Question: SELECT Name FROM employee WHERE "Employee_ID" <= 3 OR Name != "Lee Mears" AND City != "Wasps" OR "Age" < 30 UNION SELECT Name FROM shop WHERE Location <> "Espoo" OR Name = "FC Inter" OR "Shop_ID" > 2 AND "Number_products" <> 6000 AND District = "Wiklöf Holding Arena"


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 aid FROM certificate WHERE "eid" != 269734834 OR "aid" <> 1 EXCEPT SELECT aid FROM flight WHERE "aid" < 5 OR origin = "Chicago"


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


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


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


Question: SELECT Start_from, Shop_ID, Is_full_time, Employee_ID FROM hiring WHERE "Shop_ID" >= 2 INTERSECT SELECT Start_from, Shop_ID, Is_full_time, Employee_ID FROM hiring WHERE "Employee_ID" < 7 OR Is_full_time != "T" OR Start_from != "2012"


Question: SELECT document_id FROM Documents WHERE receipt_number = "69" OR "document_id" >= 3 UNION SELECT document_id FROM Draft_Copies WHERE "document_id" > 2 AND "copy_number" != 6 OR "draft_number" < 20


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


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


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


Question: SELECT COUNT(pages_per_minute_color), AVG(dpi), MIN(product), product_id FROM product WHERE interface = "USB 2.0" OR "product_id" < 4 OR product <> "Xerox Travel Scanner 100" EXCEPT SELECT COUNT(pages_per_minute_color), AVG(dpi), MIN(product), product_id FROM product WHERE max_page_size != "A4" OR "product_id" <> 4


Question: SELECT staff_id FROM Lessons WHERE "customer_id" != 9 AND lesson_date = "2018-03-21 06:48:45" OR lesson_status_code <> "Completed" OR "price" != 492.0 INTERSECT SELECT staff_id FROM Staff WHERE "staff_address_id" >= 14 OR middle_name <> "Caesar" OR date_left_staff != "2018-03-01 17:10:03" OR nickname = "bkunze" AND date_of_birth != "2007-06-11 20:03:28" AND "staff_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 < 10


Question: SELECT property_type_code FROM Properties WHERE apt_feature_3 <> "None" AND "property_id" != 13 OR "vendor_requested_price" >= 2219.6778 AND oth_feature_1 != "None" UNION ALL SELECT property_type_code FROM Ref_Property_Types WHERE property_type_code <> "Shop"


Question: SELECT Starting_year, Player_ID FROM player_coach WHERE "Player_ID" < 10 OR "Starting_year" >= 2010 AND "Coach_ID" > 1 INTERSECT SELECT Starting_year, Player_ID FROM player_coach WHERE "Player_ID" != 1 AND "Coach_ID" <= 1 OR "Starting_year" > 2013


Question: SELECT Member_ID FROM member WHERE "Member_ID" < 5 UNION ALL SELECT Member_ID FROM membership_register_branch WHERE "Member_ID" < 8 OR Register_Year <> "2016"


Question: SELECT MAX(head_ID), age, MIN(name), born_state FROM head WHERE "head_ID" < 9 AND "age" = 68.0 OR born_state <> "Florida" OR name = "K. J. Choi" EXCEPT SELECT MAX(head_ID), age, MIN(name), born_state FROM head WHERE "head_ID" <= 3


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


Question: SELECT MAX(T1.Issues), T2.Publisher FROM book as T1 JOIN publication as T2 ON T1.Book_ID = T2.Book_ID WHERE Publisher <> "Pearson"


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


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


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


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


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


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


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


Question: SELECT Store_ID, MAX(Product_ID) FROM store_product WHERE "Product_ID" = 2 UNION ALL SELECT Store_ID, MAX(Product_ID) FROM store_product WHERE "Store_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 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 Rank, Club_ID, Coach_ID, Coach_name FROM coach WHERE Gender <> "M" OR "Rank" != 1 OR "Coach_ID" > 5 UNION ALL SELECT Rank, Club_ID, Coach_ID, Coach_name FROM coach WHERE "Rank" = 2 OR Coach_name != "Smith Brown" OR Gender != "M"


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


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


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


Question: SELECT 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 address_details FROM Addresses WHERE "address_id" <= 6 AND address_details != "IE" UNION ALL SELECT address_details FROM Addresses WHERE "address_id" = 9


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


Question: SELECT StuID FROM Has_Pet WHERE "StuID" <> 1002 OR "PetID" != 2002 INTERSECT SELECT StuID FROM Student WHERE "Advisor" <= 8723 AND "Age" >= 17 OR city_code = "WAS" OR LName <> "Kumar" AND "StuID" >= 1031 AND Sex != "M"


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


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


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


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


Question: SELECT document_id FROM Documents WHERE document_type_code <> "Paper" UNION ALL SELECT document_id FROM Draft_Copies WHERE "copy_number" = 10


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


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


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


Question: SELECT Gender, Rank FROM coach WHERE "Club_ID" != 3 AND Coach_name != "Joe Fabbri" AND "Coach_ID" >= 3 OR Gender = "M" EXCEPT SELECT Gender, Rank FROM player WHERE Residence = "Winnipeg"


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


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


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


Question: SELECT Company_ID FROM company WHERE Headquarters = "USA" UNION ALL SELECT Company_ID FROM employment WHERE "Year_working" > 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 <> 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 <> 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 < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9


Question: SELECT Incorporated_in, id, SUM(Type), MIN(name), MIN(Group_Equity_Shareholding), SUM(Principal_activities) FROM operate_company WHERE Incorporated_in != "Hong Kong" OR "id" != 11 AND "Group_Equity_Shareholding" > 100.0 OR name = "VN/CX Catering Services Limited" AND Type = "Joint Venture" OR Principal_activities != "Laundry" UNION ALL SELECT Incorporated_in, id, SUM(Type), MIN(name), MIN(Group_Equity_Shareholding), SUM(Principal_activities) FROM operate_company WHERE "id" <= 10 AND "Group_Equity_Shareholding" = 100.0 OR Type = "Joint Venture" OR name <> "Cathay Pacific Holidays" OR Principal_activities != "Airline" OR Incorporated_in <> "Hong Kong"


Question: SELECT AVG(Start_from), Shop_ID FROM hiring WHERE "Employee_ID" != 2 OR Is_full_time = "T" OR "Shop_ID" != 4 OR Start_from != "2009" UNION ALL SELECT AVG(Start_from), Shop_ID FROM hiring WHERE Is_full_time <> "T"


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


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


Question: SELECT SUM(Committee), Delegate, Counties_Represented, SUM(Election_ID), District FROM election WHERE "First_Elected" != 1994.0 EXCEPT SELECT SUM(Committee), Delegate, Counties_Represented, SUM(Election_ID), District FROM election WHERE "Election_ID" <> 6 OR "Party" <> 1 AND Delegate <> "Miller, Warren E. Warren E. Miller" AND Committee = "Appropriations" OR "District" > 1 OR "First_Elected" = 1994.0 AND Counties_Represented <> "13"


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 MAX(vehicle_details), COUNT(vehicle_id) FROM Vehicles WHERE vehicle_details = "Truck" AND "vehicle_id" = 1 UNION ALL SELECT MAX(vehicle_details), COUNT(vehicle_id) FROM Vehicles WHERE "vehicle_id" > 1


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


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


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


Question: SELECT County_Id FROM county WHERE "County_Id" >= 3 OR Zip_code <> "D08" OR County_name != "Howard" AND "Population" <> 90000.0 UNION ALL SELECT County_Id FROM county WHERE "Population" >= 79000.0


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


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


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


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


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


Question: SELECT AVG(Market_Value_in_Billion), Industry FROM company WHERE Name <> "Volkswagen Group" AND "Company_ID" >= 19.0 OR "Profits_in_Billion" <= 31.7 OR "Sales_in_Billion" <> 82.6 AND "Assets_in_Billion" >= 209.5 GROUP BY Industry HAVING AVG(Market_Value_in_Billion) >= 79.5 UNION SELECT AVG(Market_Value_in_Billion), Industry FROM company WHERE Industry = "Banking" OR "Company_ID" != 2.0 OR Name <> "ExxonMobil" OR "Market_Value_in_Billion" <> 202.2 OR "Profits_in_Billion" != 10.3 AND "Assets_in_Billion" >= 328.7 AND "Sales_in_Billion" > 433.5 GROUP BY Industry HAVING AVG(Market_Value_in_Billion) <= 208.4


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


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


Question: SELECT id FROM albums WHERE title <> "Live On Two Legs live" UNION ALL SELECT id FROM genres WHERE name = "Metal"


Question: SELECT customer_id FROM Customer_Payments WHERE "customer_id" <> 11 EXCEPT SELECT customer_id FROM Customers WHERE "amount_outstanding" < 1000.0 AND cell_mobile_phone_number = "00659133944" OR email_address <> "myrl.lind@example.net"


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


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


Question: SELECT id FROM albums WHERE "artist_id" >= 271 AND "id" >= 226 OR title != "Raul Seixas" UNION SELECT id FROM genres WHERE "id" < 22


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 SUM(Id) FROM car_makers WHERE "Id" <> 22 OR FullName <> "Kia Motors" UNION SELECT SUM(Id) FROM cars_data WHERE "Edispl" >= 168.0 AND "Id" > 371 OR "Year" = 1981 AND "Weight" >= 2979 AND "Accelerate" != 16.0 AND "Cylinders" > 6 AND Horsepower = "150"


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


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


Question: SELECT document_id FROM Document_Drafts WHERE draft_details != "w" UNION SELECT document_id FROM Documents WHERE "document_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 >= 4


Question: SELECT feature_type_code FROM Other_Available_Features WHERE feature_type_code <> "Security" AND "feature_id" > 4 UNION ALL SELECT feature_type_code FROM Ref_Feature_Types WHERE feature_type_name <> "Securiyt, eg Burglar Alarm."


Question: SELECT Allergy FROM Allergy_Type WHERE Allergy = "Grass Pollen" INTERSECT SELECT Allergy FROM Has_Allergy WHERE "StuID" = 1026


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


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


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


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


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


Question: SELECT role_code FROM Employees WHERE role_code <> "PT" UNION ALL SELECT role_code FROM Roles WHERE role_code != "PR" AND role_description != "Editor"


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


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


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


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


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


Question: SELECT Type, Number_of_product_category, COUNT(Ranking), AVG(Store_ID), Area_size, Store_Name FROM store WHERE "Ranking" >= 9 OR "Store_ID" <= 4 OR "Number_of_product_category" < 990.0 UNION ALL SELECT Type, Number_of_product_category, COUNT(Ranking), AVG(Store_ID), Area_size, Store_Name FROM store WHERE "Area_size" < 179.84 OR "Number_of_product_category" = 990.0 OR "Ranking" <> 10 OR "Store_ID" = 4


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


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


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


Question: SELECT zip_postcode, line_1_number_building, state_province_county, city, address_id, country FROM Addresses WHERE state_province_county != "Kentucky" OR country = "USA" OR zip_postcode = "95098" OR "address_id" < 4 OR city <> "Lake Rafaela" OR line_1_number_building <> "9260 Streich Mountain" UNION SELECT zip_postcode, line_1_number_building, state_province_county, city, address_id, country FROM Addresses WHERE country = "USA" AND zip_postcode = "27559"

5
484 O'Hara Drive
Oregon
Buckridgehaven
4
USA

8938
00704 Zoe Alley
Georgia
Lake Elaina
3
USA

14445
3904 Stroman Passage
Georgia
Port Melyssa
1
USA

22194
053 Quigley Island
Kentucky
Hagenesfurt
2
USA

27559
354 Frederik Ridge
Ohio
Powlowskichester
5
USA

34975
56461 Baumbach Well Suite 634
Washington
Lockmanfurt
7
USA

38197
7089 Mueller Forks
Louisiana
New Bernieceburgh
12
USA

43988
9260 Streich Mountain
Kentucky
West Edmondview
15
USA

61121
4834 Schaefer Light Suite 947
Connecticut
Damianfort
14
USA

63768
376 Kallie Tunnel Apt. 784
Connecticut
Elviebury
6
USA

75074
43235 Jazmin Mountain Suite 251
Louisiana
Ericamouth
13
USA

80376
29085 Dejah Pine Suite 059
WestVirginia
Lake Rafaela
8
USA

85954
535 Ariel Brook
Maine
Port Jackelinemouth
9
USA

95098
2291 Larkin Ports
Idaho
South Richieport
10
USA

99903
37698 Hahn Curve Apt. 572
Alabama
South Eugene
11
USA


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


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


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


Question: SELECT document_id, draft_number FROM Draft_Copies WHERE "draft_number" > 9 OR "copy_number" = 10 EXCEPT SELECT document_id, draft_number FROM Draft_Copies WHERE "document_id" <= 2


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


Question: SELECT 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 MIN(Issues) FROM book WHERE "Book_ID" > 3 AND Title <> "Gemini Blood" OR "Issues" <= 9.0 NOT IN (SELECT MIN(Issues) FROM book WHERE Title <> "Michael Moorcock's Multiverse" AND "Book_ID" > 6 AND "Issues" <= 4.0 OR Writer != "Garth Ennis")


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


Question: SELECT MIN(name), MAX(distance), AVG(aid) FROM aircraft WHERE "aid" != 9 UNION SELECT MIN(name), MAX(distance), AVG(aid) FROM aircraft WHERE name <> "Embraer ERJ-145" OR "aid" <= 16 AND "distance" > 1504


Question: SELECT School_id FROM School WHERE Mascot = "Trojans" AND County = "50 Marshall" UNION ALL SELECT School_id FROM budget WHERE "Year" <> 2005


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 AVG(copy_number), MAX(draft_number), SUM(document_id) FROM Circulation_History WHERE "draft_number" > 17 UNION ALL SELECT AVG(copy_number), MAX(draft_number), SUM(document_id) FROM Circulation_History WHERE "document_id" < 10 OR "employee_id" > 1


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


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


Question: SELECT AVG(Country) FROM car_makers WHERE Country = "8" AND "Id" <= 7 OR FullName = "Opel" UNION SELECT AVG(Country) FROM car_makers WHERE Country <> "3" OR "Id" > 1 AND FullName = "Saab"


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


Question: SELECT AVG(name) FROM aircraft WHERE "distance" >= 520 UNION ALL SELECT AVG(name) FROM employee WHERE "eid" >= 619023588 OR name = "Michael Miller"


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


Question: SELECT School_id FROM School WHERE "Enrollment" = 620 EXCEPT SELECT School_id FROM endowment WHERE "endowment_id" >= 7 OR donator_name = "San José de Ocoa" AND "School_id" >= 7 AND "amount" <> 8.53


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


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


Question: SELECT SUM(T1.area_code), T2.phone_number FROM AREA_CODE_STATE as T1 JOIN VOTES as T2 ON T1.state = T2.state WHERE created <> "2018-03-09 19:03:21" GROUP BY created HAVING vote_id <= 5 AND contestant_number >= 3


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


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


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


Question: SELECT feature_id FROM Other_Available_Features WHERE feature_description != "Air Conditioning." AND feature_name = "AirCon" AND feature_type_code = "Amenity" UNION ALL SELECT feature_id FROM Other_Property_Features WHERE property_feature_description != "hic" AND "feature_id" > 3


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


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


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


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


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


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


Question: SELECT cell_mobile_phone_number, date_of_birth, first_name, amount_outstanding FROM Customers WHERE date_became_customer != "2016-05-13 07:38:23" AND first_name <> "Amya" OR "amount_outstanding" >= 9500.0 UNION SELECT cell_mobile_phone_number, date_of_birth, first_name, amount_outstanding FROM Customers WHERE first_name <> "Clara" OR customer_status_code <> "Good Customer" AND date_became_customer = "2016-05-11 17:03:48" AND date_of_birth <> "1993-07-09 11:11:36" OR "customer_id" <> 4 AND phone_number != "+14(5)2351480248" OR last_name <> "Terry" AND "amount_outstanding" <> 2255.0 OR email_address != "karina.carroll@example.net" OR "customer_address_id" >= 10


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


Question: SELECT 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 COUNT(Club_ID) FROM club WHERE Region <> "UK" AND "Club_ID" > 3 AND "Start_year" = 2005 UNION SELECT COUNT(Club_ID) FROM coach WHERE "Rank" != 5 AND "Club_ID" != 1 AND Gender = "F" OR Coach_name = "Smith Brown"


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


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


Question: SELECT document_status_code, document_status_description FROM Ref_Document_Status WHERE document_status_code = "working" EXCEPT SELECT document_status_code, document_status_description FROM Ref_Document_Status WHERE document_status_code <> "working"


Question: SELECT Id FROM car_makers WHERE "Id" != 19 UNION SELECT Id FROM cars_data WHERE "Accelerate" != 13.7


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


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


Question: SELECT document_status_code, document_status_description FROM Ref_Document_Status WHERE document_status_description != "currently working on" OR document_status_code <> "done" EXCEPT SELECT document_status_code, document_status_description FROM Ref_Document_Status WHERE document_status_description != "currently working on"


Question: SELECT contestant_number, contestant_name FROM CONTESTANTS WHERE "contestant_number" >= 6 OR contestant_name != "Nita Coster" EXCEPT SELECT contestant_number, contestant_name FROM CONTESTANTS WHERE contestant_name != "Nita Coster" OR "contestant_number" > 10


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


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


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


Question: SELECT Member_ID, COUNT(Card_Number) FROM member WHERE "Level" <> 6 AND Hometown != "Simpsonville, South Carolina" OR Name <> "Corey Peters" AND "Member_ID" != 9 UNION SELECT Member_ID, COUNT(Card_Number) FROM member WHERE "Level" < 6 OR Name != "Myron Pryor"


Question: SELECT document_id FROM Documents WHERE other_details = "y" UNION ALL SELECT document_id FROM Draft_Copies WHERE "draft_number" < 9 AND "document_id" != 2 OR "copy_number" < 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 draft_number, document_id FROM Document_Drafts WHERE draft_details != "r" INTERSECT SELECT draft_number, document_id FROM Draft_Copies WHERE "document_id" <> 1 AND "draft_number" < 17 OR "copy_number" >= 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 <= 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 < 10


Question: SELECT Other_Details, Document_ID FROM Documents WHERE "Document_ID" < 16514113 AND Document_Name != "A history of Arts" AND Document_Description = "n" OR Other_Details <> "None" AND "Template_ID" != 22 UNION ALL SELECT Other_Details, Document_ID FROM Paragraphs WHERE "Paragraph_ID" < 243399026 AND "Document_ID" > 50123 OR Other_Details = "None"


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


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


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


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


Question: SELECT aid, AVG(name) FROM aircraft WHERE name = "British Aerospace Jetstream 41" AND "distance" != 1504 AND "aid" <= 4 UNION SELECT aid, AVG(name) FROM aircraft WHERE "distance" > 4010


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


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


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


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


Question: SELECT eid FROM certificate WHERE "eid" >= 556784565 UNION SELECT eid FROM employee WHERE "salary" > 48250 OR name = "Betty Adams"


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


Question: SELECT MAX(Area_size), Number_of_product_category, COUNT(Type) FROM store WHERE "Ranking" > 3 AND Type = "Village Store" OR "Number_of_product_category" <> 1678.0 UNION SELECT MAX(Area_size), Number_of_product_category, COUNT(Type) FROM store WHERE "Area_size" < 26.69


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


Question: SELECT MAX(draft_number), MIN(document_id), COUNT(draft_details) FROM Document_Drafts WHERE draft_details <> "r" EXCEPT SELECT MAX(draft_number), MIN(document_id), COUNT(draft_details) FROM Document_Drafts WHERE draft_details != "k" AND "draft_number" = 14 OR "document_id" >= 4


Question: SELECT SUM(T1.Enrollment), T2.Budget_invested_percent FROM School as T1 JOIN budget as T2 ON T1.School_id = T2.School_id WHERE Budget_invested_percent = "122.5" AND "total_budget_percent_budgeted" > 2.0


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


Question: SELECT Allergy FROM Allergy_Type WHERE AllergyType = "food" INTERSECT SELECT Allergy FROM Allergy_Type WHERE AllergyType <> "food" OR Allergy <> "Ragweed"


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


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