Question: SELECT MAX(id), SUM(name) FROM airport WHERE IATA = "BRU" OR ICAO != "KBOS" AND City <> "Barcelona" OR name = "Schiphol Airport" AND "id" >= 2 UNION SELECT MAX(id), SUM(name) FROM operate_company WHERE Principal_activities != "Cargo airline" OR "id" >= 7 OR "Group_Equity_Shareholding" != 45.0 OR name != "Hong Kong Airport Services"


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 MIN(document_status_code) FROM Ref_Document_Status WHERE document_status_description <> "currently working on" AND document_status_code = "overdue" UNION ALL SELECT MIN(document_status_code) FROM Ref_Document_Status WHERE document_status_code != "working"


Question: SELECT MAX(vehicle_id) FROM Vehicles WHERE "vehicle_id" > 1 AND vehicle_details != "Car" UNION ALL SELECT MAX(vehicle_id) FROM Vehicles WHERE vehicle_details = "Van" OR "vehicle_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 Member_ID FROM member WHERE Hometown = "Simpsonville, South Carolina" AND "Member_ID" = 7 OR Name <> "Ventrell Jenkins" UNION SELECT Member_ID FROM purchase WHERE Year <> "2018"


Question: SELECT date_joined_staff, date_left_staff, middle_name, date_of_birth, staff_address_id FROM Staff WHERE "staff_address_id" <> 3 UNION ALL SELECT date_joined_staff, date_left_staff, middle_name, date_of_birth, staff_address_id FROM Staff WHERE date_left_staff != "2018-03-23 22:53:12" OR date_of_birth <> "2005-05-02 06:23:36" AND "staff_id" <= 7 OR last_name != "Macejkovic" OR middle_name != "Mayra" AND first_name = "Margie"


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


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


Question: SELECT Age, COUNT(Name), MIN(Driver_ID) FROM driver GROUP BY Age HAVING COUNT(Name) > 1 UNION SELECT Age, COUNT(Name), MIN(Driver_ID) FROM driver GROUP BY Age HAVING MIN(Driver_ID) >= 1 AND COUNT(Name) < 1


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


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


Question: SELECT 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 Allergy FROM Allergy_Type WHERE AllergyType <> "animal" NOT IN (SELECT Allergy FROM Allergy_Type WHERE Allergy = "Dog" OR AllergyType != "food")


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 a_id FROM review WHERE "i_id" = 7 AND "rating" = 6 OR "a_id" >= 5 UNION SELECT a_id FROM review WHERE "a_id" != 7 OR "rank" != 2 OR "u_id" > 2 AND "i_id" < 1 AND "rating" <> 5


Question: SELECT Branch_ID FROM branch WHERE City <> "London" AND membership_amount = "112" AND Open_year = "2001" OR "Branch_ID" != 7 AND Address_road != "Valleys Place" UNION ALL SELECT Branch_ID FROM purchase WHERE Branch_ID = "3" AND Year = "2018"


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


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


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


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


Question: SELECT Store_ID FROM store_district WHERE "Store_ID" <> 4 OR "District_ID" != 15 UNION SELECT Store_ID FROM store_product WHERE "Store_ID" = 3 AND "Product_ID" < 1


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


Question: SELECT PetID FROM Pets WHERE "PetID" != 2001 UNION ALL SELECT PetID FROM Pets WHERE "weight" > 12.0 OR "pet_age" >= 3 AND "PetID" < 2003


Question: SELECT ModelId, AVG(Maker), COUNT(Model) FROM model_list WHERE "ModelId" > 4 UNION SELECT ModelId, AVG(Maker), COUNT(Model) FROM model_list WHERE "Maker" >= 10


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


Question: SELECT Name FROM company WHERE Industry != "Oil and gas" AND Name != "Citigroup" UNION SELECT Name FROM people WHERE Name != "Jerry Corcoran" OR Nationality = "United States" AND "People_ID" > 2


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


Question: SELECT MIN(Year) FROM budget WHERE "total_budget_percent_invested" < 2.2 AND "total_budget_percent_budgeted" < 2.0 AND "Year" <> 2001 AND Budget_invested_percent = "146.9" UNION SELECT MIN(Year) FROM budget WHERE "Year" = 2003 AND "Invested" <> 2134


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


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


Question: SELECT Shop_ID FROM hiring WHERE "Employee_ID" >= 6 OR Is_full_time = "F" AND "Shop_ID" > 8 UNION SELECT Shop_ID FROM shop WHERE Name = "HJK" AND "Shop_ID" = 6


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


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


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


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


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


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 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 SUM(staff_id), date_joined_staff, MIN(last_name), COUNT(date_of_birth), AVG(first_name), staff_address_id FROM Staff WHERE date_left_staff <> "2018-02-26 17:56:31" AND middle_name <> "Benny" EXCEPT SELECT SUM(staff_id), date_joined_staff, MIN(last_name), COUNT(date_of_birth), AVG(first_name), staff_address_id FROM Staff WHERE date_of_birth = "1996-03-09 08:19:49" OR "staff_address_id" < 3 AND "staff_id" >= 4 OR last_name = "Mertz"


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 lesson_status_code, staff_id, price FROM Lessons WHERE "staff_id" != 11 OR "vehicle_id" > 2 AND "lesson_id" >= 7 OR lesson_date != "2018-03-12 00:41:59" OR lesson_status_code != "Cancelled" OR "price" < 352.0 UNION SELECT lesson_status_code, staff_id, price FROM Lessons WHERE "customer_id" != 5 OR "staff_id" != 14 AND "price" >= 231.0 AND lesson_time = "9" AND lesson_date <> "2018-03-17 19:02:07"


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


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


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


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


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 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 T1.id, T2.Altitude FROM airport as T1 JOIN flight as T2 ON T1.id == T2.id GROUP BY Vehicle_Flight_number HAVING Velocity > 240.0 OR Pilot = "Thompson"


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


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


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


Question: SELECT Company_ID FROM company WHERE Headquarters = "USA" AND "Market_Value_in_Billion" <> 164.3 OR Industry = "Oil and gas" OR "Company_ID" <> 17.0 OR "Sales_in_Billion" >= 82.6 AND Name != "JPMorgan Chase" OR "Assets_in_Billion" < 2039.1 EXCEPT SELECT Company_ID FROM employment WHERE "People_ID" = 2 OR "Year_working" != 1 OR "Company_ID" = 11


Question: SELECT Store_ID FROM store WHERE "Area_size" = 179.84 OR "Ranking" > 9 UNION ALL SELECT Store_ID FROM store_product WHERE "Product_ID" < 6


Question: SELECT If_full_time FROM school_bus WHERE If_full_time <> "T" UNION ALL SELECT If_full_time FROM school_bus WHERE "School_ID" <= 1 OR If_full_time <> "T" OR "Years_Working" < 8


Question: SELECT MIN(School_ID) FROM school WHERE Grade != "4th grade" OR "School_ID" != 7 AND Location != "Jakarta, Indonesia" OR School = "Punahou School" UNION ALL SELECT MIN(School_ID) FROM school_bus WHERE If_full_time <> "T" OR "Driver_ID" > 3


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


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


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


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


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"


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


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


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


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


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


Question: SELECT Template_ID FROM Documents WHERE Document_Name = "Do not panic" OR "Document_ID" <= 76 AND Document_Description <> "h" UNION SELECT Template_ID FROM Templates WHERE Template_Type_Code != "PP" OR Date_Effective_To != "1975-07-16 04:52:10"


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


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


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


Question: SELECT Shop_ID FROM hiring WHERE Is_full_time = "T" AND "Employee_ID" <= 3 OR Start_from = "2012" UNION ALL SELECT Shop_ID FROM shop WHERE "Shop_ID" < 9 OR "Number_products" != 10000 AND Name = "FC KooTeePee" AND Location <> "Lahti" OR Manager_name = "Mika Laurikainen" OR District = "Finnair Stadium"


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


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


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


Question: SELECT MIN(endowment_id) FROM endowment WHERE donator_name != "Distrito Nacional" OR "endowment_id" >= 1 AND "School_id" <= 6 UNION ALL SELECT MIN(endowment_id) FROM endowment WHERE "endowment_id" > 2


Question: SELECT SUM(T1.Sales_in_Billion), T2.Year_working FROM company as T1 JOIN employment as T2 ON T1.Company_ID = T2.Company_ID WHERE Headquarters <> "USA" OR "Sales_in_Billion" <= 447.0 AND "People_ID" > 7 OR "Profits_in_Billion" <> 25.7 AND "Year_working" > 1 OR "Market_Value_in_Billion" > 237.4 OR Name = "ExxonMobil" OR "Assets_in_Billion" <= 1873.9 GROUP BY Assets_in_Billion HAVING Assets_in_Billion <= 2039.1 OR Headquarters = "USA" OR Profits_in_Billion > 11.1 OR Year_working < 1 OR Name = "Wells Fargo" AND Industry = "Banking" OR Market_Value_in_Billion = 107.5 AND Sales_in_Billion <= 143.7


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


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


Question: SELECT MIN(source_u_id), target_u_id, AVG(trust) FROM trust WHERE "trust" != 4 UNION SELECT MIN(source_u_id), target_u_id, AVG(trust) FROM trust WHERE "source_u_id" <> 1 AND "target_u_id" > 2 OR "trust" > 3


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


Question: SELECT id FROM flight WHERE Date <> "September 3, 1963" AND Pilot = "Thompson" OR "Velocity" != 240.0 AND "company_id" = 4 AND "airport_id" <= 6 AND Vehicle_Flight_number <> "M2-F1 #39" OR "Altitude" <> 3650.0 UNION ALL SELECT id FROM operate_company WHERE "id" <> 2


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 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 COUNT(document_type_description), SUM(document_type_code) FROM Ref_Document_Types WHERE document_type_code <> "Hard Drive" UNION ALL SELECT COUNT(document_type_description), SUM(document_type_code) FROM Ref_Document_Types WHERE document_type_code <> "Hard Drive"


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


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


Question: SELECT id, MAX(title) FROM albums WHERE "id" < 131 UNION ALL SELECT id, MAX(title) FROM employees WHERE "id" >= 5 AND birth_date != "1958-12-08 00:00:00"


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


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


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


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


Question: SELECT endowment_id, donator_name, amount FROM endowment WHERE "amount" != 9.83 UNION SELECT endowment_id, donator_name, amount FROM endowment WHERE "amount" >= 9.55 AND "School_id" > 3


Question: SELECT Book_ID FROM book WHERE "Book_ID" >= 7 OR "Issues" > 12.0 OR Title != "Sheva's War" UNION SELECT Book_ID FROM publication WHERE "Book_ID" < 5


Question: SELECT MAX(document_id) FROM Document_Drafts WHERE draft_details != "r" OR "draft_number" = 14 OR "document_id" <> 12 EXCEPT SELECT MAX(document_id) FROM Documents_Mailed WHERE "document_id" < 7 AND "mailed_to_address_id" <= 9 AND mailing_date != "2013-01-27 03:29:31"


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Question: SELECT Name FROM company WHERE "Market_Value_in_Billion" = 202.2 UNION ALL SELECT Name FROM people WHERE "People_ID" != 2


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 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 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 Birth_Date, People_ID, Name, Nationality FROM people WHERE "People_ID" <> 5 OR Birth_Date = "August 8, 1986" AND Name = "Roman Bragin" OR Nationality != "Russia" UNION ALL SELECT Birth_Date, People_ID, Name, Nationality FROM people WHERE "Height" > 194.0

August 16, 1982
2
Teodor Salparov
Bulgaria

January 22, 1987
4
Sergey Grankin
Russia

February 8, 1981
7
Semen Poltavskiy
Russia

August 8, 1986
5
Yevgeni Sivozhelez
Russia

February 8, 1981
7
Semen Poltavskiy
Russia


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


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


Question: SELECT MIN(RoomId), roomName, bedType, maxOccupancy FROM Rooms WHERE RoomId != "CAS" UNION SELECT MIN(RoomId), roomName, bedType, maxOccupancy FROM Rooms WHERE "basePrice" > 175

MIN(RoomId) roomName bedType maxOccupancy


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


Question: SELECT customer_id FROM Customers WHERE cell_mobile_phone_number != "(780)719-4206x033" AND first_name != "Amya" OR customer_status_code <> "Good Customer" AND "amount_outstanding" <= 9500.0 OR phone_number != "753.921.0871" OR "customer_id" <> 3 OR email_address = "asha.kilback@example.org" AND last_name <> "Leuschke" EXCEPT SELECT customer_id FROM Lessons WHERE "vehicle_id" >= 1 AND "price" > 352.0 OR lesson_date = "2018-03-05 18:05:31" OR "staff_id" > 8 OR "lesson_id" = 7 AND "customer_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 >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4


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


Question: SELECT id FROM albums WHERE "id" < 184 AND title = "Tchaikovsky: The Nutcracker" UNION ALL SELECT id FROM employees WHERE postal_code = "T3B 1Y7" OR city != "Lethbridge" AND hire_date <> "2002-05-01 00:00:00" OR phone != "+1 (403) 262-3443" AND address = "1111 6 Ave SW" OR "id" <> 1 OR first_name <> "Margaret" AND country <> "Canada" OR birth_date <> "1973-07-01 00:00:00"


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 Money_Rank, Poker_Player_ID FROM poker_player WHERE "Poker_Player_ID" <> 5 OR "People_ID" < 6 AND "Final_Table_Made" != 19.0 AND "Earnings" <= 476090.0 AND "Money_Rank" != 68.0 EXCEPT SELECT Money_Rank, Poker_Player_ID FROM poker_player WHERE "Earnings" <= 142800.0


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 city_code, AVG(LName), Major, Advisor FROM Student WHERE "Age" <= 22 AND "Major" >= 540 OR city_code != "ROC" OR "StuID" >= 1020 AND "Advisor" >= 1148 AND Fname = "Tracy" UNION ALL SELECT city_code, AVG(LName), Major, Advisor FROM Student WHERE city_code = "DAL" AND "StuID" <= 1016 AND "Advisor" >= 8772 AND Fname != "Sarah"


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


Question: SELECT AVG(Coach_name), Gender, Coach_ID, COUNT(Rank) FROM coach WHERE "Rank" > 2 OR Gender <> "M" OR Coach_name <> "Joe Fabbri" OR "Club_ID" = 1 OR "Coach_ID" = 4 UNION ALL SELECT AVG(Coach_name), Gender, Coach_ID, COUNT(Rank) FROM coach WHERE "Club_ID" > 1


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


Question: SELECT COUNT(Employee_ID) FROM employee WHERE City = "Bristol" OR "Age" >= 23 AND "Employee_ID" <> 6 AND Name = "Matt Stevens" EXCEPT SELECT COUNT(Employee_ID) FROM hiring WHERE Start_from = "2009" OR "Employee_ID" > 6 AND Is_full_time = "T" OR "Shop_ID" = 8


Question: SELECT Book_ID FROM book WHERE "Book_ID" > 5 OR Writer = "Garth Ennis" AND "Issues" != 12.0 UNION ALL SELECT Book_ID FROM publication WHERE "Publication_ID" < 2 OR "Book_ID" <= 7 AND Publication_Date <> "August 2008" AND Publisher = "Wiley" AND "Price" >= 4100000.0


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 document_id FROM Draft_Copies WHERE "document_id" <> 12 OR "draft_number" = 8 OR "copy_number" <> 5 INTERSECT SELECT document_id FROM Draft_Copies WHERE "draft_number" != 1 AND "copy_number" >= 15


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 albums WHERE title != "Beyond Good And Evil" OR "id" != 9 EXCEPT SELECT id FROM genres WHERE name = "World"


Question: SELECT customer_id FROM Customers WHERE phone_number != "374-483-2758x85087" OR customer_status_code <> "Bad Customer" UNION SELECT customer_id FROM Lessons WHERE "staff_id" >= 3 AND "lesson_id" < 11 AND "customer_id" = 11 AND "price" < 231.0 AND "vehicle_id" = 2


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


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


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


Question: SELECT Club_ID FROM club WHERE "Club_ID" < 1 OR "Start_year" <> 2000 AND Region <> "Russia" AND Club_name != "Djurgårdens IF" UNION ALL SELECT Club_ID FROM coach WHERE "Coach_ID" > 5 OR "Club_ID" > 1 OR Gender != "F"


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 lesson_time, staff_id, lesson_status_code FROM Lessons WHERE "lesson_id" != 7 OR "vehicle_id" = 2 OR "price" <= 199.0 AND lesson_time = "9" UNION ALL SELECT lesson_time, staff_id, lesson_status_code FROM Lessons WHERE lesson_status_code != "Completed" OR "lesson_id" <> 8


Question: SELECT AVG(ContId) FROM continents WHERE "ContId" > 3 UNION SELECT AVG(ContId) FROM continents WHERE "ContId" != 1 OR Continent = "australia"


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


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


Question: SELECT COUNT(target_u_id) FROM trust WHERE "trust" = 2 EXCEPT SELECT COUNT(target_u_id) FROM trust WHERE "target_u_id" >= 5 AND "trust" > 4


Question: SELECT property_type_code FROM Properties WHERE fld_feature_1 != "None" OR apt_feature_3 <> "None" OR oth_feature_2 = "None" AND hse_feature_3 <> "None" AND "vendor_requested_price" <= 150045.7568 AND "agreed_selling_price" = 4201.8 AND shp_feature_2 <> "None" OR property_name != "murray hill" AND oth_feature_3 <> "None" OR date_on_market != "1990-05-25 23:01:51" OR property_address <> "743 Ephraim Greens Anniemouth, HI 47084-3853" OR "room_count" > 7 OR property_type_code <> "Apartment" OR fld_feature_3 <> "None" INTERSECT SELECT property_type_code FROM Ref_Property_Types WHERE property_type_code <> "House" OR property_type_description = "Apartment, Flat, Condo, etc."


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


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


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


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


Question: SELECT COUNT(contestant_number) FROM CONTESTANTS WHERE "contestant_number" != 8 EXCEPT SELECT COUNT(contestant_number) FROM VOTES WHERE "contestant_number" >= 3 AND "vote_id" <= 1 AND created = "2018-03-09 19:03:40"


Question: SELECT document_status_code FROM Documents WHERE "document_id" <> 23 AND receipt_number = "83" OR other_details <> "h" AND document_type_code = "Paper" UNION ALL SELECT document_status_code FROM Ref_Document_Status WHERE document_status_description <> "mailed late" AND document_status_code <> "working"


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


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


Question: SELECT AVG(Name) FROM company WHERE "Assets_in_Billion" <> 213.0 AND "Company_ID" <> 11.0 AND "Sales_in_Billion" > 147.3 OR Industry <> "Oil and gas" OR "Profits_in_Billion" = 41.1 OR Headquarters <> "USA" OR "Market_Value_in_Billion" = 237.4 INTERSECT SELECT AVG(Name) FROM people WHERE Name = "Tim Naegeli"


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


Question: SELECT MIN(Document_ID), Other_Details FROM Documents GROUP BY Other_Details HAVING MIN(Document_ID) >= 0 UNION SELECT MIN(Document_ID), Other_Details FROM Paragraphs GROUP BY Other_Details HAVING MIN(Document_ID) < 3


Question: SELECT SUM(T1.Id), T2.Weight FROM car_makers as T1 JOIN cars_data as T2 ON T1.Id = T2.Id WHERE FullName = "American Motor Company" OR "Cylinders" < 4 AND Horsepower <> "75" OR "Year" <= 1982 OR "Accelerate" <= 16.5 AND "Weight" <> 2472 OR Country <> "8" AND Maker <> "toyota" GROUP BY FullName HAVING Edispl > 156.0 AND Accelerate = 11.5


Question: SELECT People_ID FROM people WHERE Nationality = "Russia" AND Birth_Date <> "August 8, 1986" OR Name != "Semen Poltavskiy" OR "Height" = 196.0 INTERSECT SELECT People_ID FROM poker_player WHERE "People_ID" >= 5 OR "Earnings" <> 476090.0


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


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


Question: SELECT SUM(Member_ID) FROM member WHERE Name = "Johnny Williams" OR Hometown != "Columbia, South Carolina" UNION ALL SELECT SUM(Member_ID) FROM membership_register_branch WHERE Register_Year != "2017" OR Branch_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 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9


Question: SELECT ClubID FROM Member_of_club WHERE "StuID" >= 1010 AND "ClubID" = 2 UNION SELECT ClubID FROM Member_of_club WHERE "ClubID" > 1 AND Position <> "Vice-President"


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


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


Question: SELECT role_description FROM Roles WHERE role_code <> "MG" INTERSECT SELECT role_description FROM Roles WHERE role_description != "Photo" AND role_code = "PR"


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


Question: SELECT COUNT(T1.amount_payment), T2.cell_mobile_phone_number FROM Customer_Payments as T1 JOIN Customers as T2 ON T1.customer_id = T2.customer_id WHERE payment_method_code <> "Direct Debit" AND datetime_payment = "2018-02-06 13:35:58" AND customer_status_code = "Good Customer" AND phone_number <> "(662)490-3108" OR "amount_payment" = 1708.18 AND date_became_customer = "2017-10-05 14:15:46" AND date_of_birth = "1998-09-18 04:45:01" OR "amount_outstanding" >= 9332.0 OR email_address = "kroberts@example.org" GROUP BY cell_mobile_phone_number HAVING date_of_birth <> "1996-08-29 00:03:08" AND datetime_payment <> "2018-02-06 13:35:58" AND cell_mobile_phone_number <> "1-387-258-1016x96963" OR amount_outstanding = 2255.0


Question: SELECT City_Area FROM district WHERE "City_Population" <> 328512.0 OR "City_Area" <> 10.0 UNION SELECT City_Area FROM district WHERE "District_ID" < 2 OR District_name = "Faisalabad District" AND "City_Area" <> 22.0 OR "City_Population" <> 134936.0 AND Headquartered_City = "Bahawalnagar City"


Question: SELECT ContId FROM continents WHERE Continent <> "africa" OR "ContId" < 3 UNION ALL SELECT ContId FROM continents WHERE Continent <> "europe" OR "ContId" <> 5


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


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


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


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


Question: SELECT u_id FROM review WHERE "i_id" >= 1 OR "a_id" > 5 UNION SELECT u_id FROM useracct WHERE "u_id" = 7


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


Question: SELECT School_id FROM School WHERE IHSAA_Class = "AAA" AND IHSAA_Football_Class <> "A" OR "Enrollment" <= 605 AND School_name <> "Glenn" OR School_id = "2" OR County <> "75 Starke" AND Location <> "Bremen" UNION ALL SELECT School_id FROM endowment WHERE "School_id" >= 3 OR "endowment_id" > 4 AND "amount" <> 8.53 OR donator_name = "Santiago"


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


Question: SELECT SUM(People_ID), COUNT(Final_Table_Made), Money_Rank, AVG(Poker_Player_ID), AVG(Earnings), Best_Finish FROM poker_player WHERE "Money_Rank" <= 68.0 AND "Earnings" > 142800.0 OR "Final_Table_Made" != 10.0 AND "Poker_Player_ID" <= 4 OR "People_ID" <> 2 EXCEPT SELECT SUM(People_ID), COUNT(Final_Table_Made), Money_Rank, AVG(Poker_Player_ID), AVG(Earnings), Best_Finish FROM poker_player WHERE "Money_Rank" < 141.0 AND "People_ID" <> 7


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


Question: SELECT SUM(T1.Id), T2.Horsepower FROM car_makers as T1 JOIN cars_data as T2 ON T1.Id = T2.Id WHERE AVG(Cylinders) > 4 OR Horsepower <> "105" OR AVG(Accelerate) >= 18.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 > 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 = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1


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


Question: SELECT COUNT(feature_id), AVG(property_feature_description), property_id FROM Other_Property_Features WHERE "feature_id" < 3 AND property_feature_description != "corrupti" AND "property_id" < 13 UNION SELECT COUNT(feature_id), AVG(property_feature_description), property_id FROM Other_Property_Features WHERE "property_id" <> 15 OR property_feature_description != "quo" OR "feature_id" < 3


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


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


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


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


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


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


Question: SELECT feature_type_name FROM Ref_Feature_Types WHERE feature_type_code != "Amenity" OR feature_type_name <> "Amenity, eg Pool." UNION ALL SELECT feature_type_name FROM Ref_Feature_Types WHERE feature_type_name <> "Amenity, eg Pool."


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


Question: SELECT document_id FROM Documents_Mailed WHERE "mailed_to_address_id" >= 2 OR mailing_date != "1982-01-14 05:50:54" AND "document_id" > 24 UNION ALL SELECT document_id FROM Draft_Copies WHERE "draft_number" = 1


Question: SELECT Company_ID FROM company WHERE "Assets_in_Billion" < 1563.9 OR "Profits_in_Billion" < 14.2 AND "Sales_in_Billion" >= 221.9 EXCEPT SELECT Company_ID FROM employment WHERE "Year_working" != 1 OR "Company_ID" >= 15 OR "People_ID" <> 7


Question: SELECT pages_per_minute_color FROM product WHERE product = "Xerox Travel Scanner 100" AND interface = "USB 2.0" AND "dpi" > 600.0 UNION ALL SELECT pages_per_minute_color FROM product WHERE max_page_size <> "A4" OR dimensions != "280 x 95 x 40" OR "pages_per_minute_color" != 4.0


Question: SELECT Market_Value_in_Billion, Profits_in_Billion, Industry, Name, Assets_in_Billion, Company_ID FROM company WHERE "Profits_in_Billion" <> 15.9 INTERSECT SELECT Market_Value_in_Billion, Profits_in_Billion, Industry, Name, Assets_in_Billion, Company_ID FROM company WHERE "Market_Value_in_Billion" > 201.9 OR "Profits_in_Billion" != 31.7


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


Question: SELECT shp_feature_3, other_property_details, property_address, shp_feature_1, oth_feature_1 FROM Properties WHERE apt_feature_1 != "qui" AND shp_feature_1 <> "None" OR apt_feature_3 != "None" OR shp_feature_3 <> "None" OR oth_feature_2 != "None" OR property_name != "vogue" AND hse_feature_3 != "None" OR fld_feature_2 <> "None" AND "buyer_offered_price" != 0.0 AND "agreed_selling_price" != 170766.472 AND fld_feature_3 = "None" OR "room_count" < 7 AND hse_feature_2 != "None" OR date_on_market <> "1991-06-21 23:52:10" OR oth_feature_1 = "None" AND property_address = "084 Lakin Vista Apt. 394 Fishertown, MA 16876" OR fld_feature_1 != "None" OR shp_feature_2 <> "None" AND date_sold = "1995-01-31 11:18:42" OR "property_id" < 14 AND property_type_code <> "House" OR apt_feature_2 <> "sit" AND other_property_details <> "None" AND "vendor_requested_price" >= 305.0 OR oth_feature_3 != "None" OR hse_feature_1 <> "None" UNION ALL SELECT shp_feature_3, other_property_details, property_address, shp_feature_1, oth_feature_1 FROM Properties WHERE oth_feature_3 != "None" OR "vendor_requested_price" <> 305.0 AND apt_feature_3 != "None" AND "property_id" = 11 OR property_type_code = "Shop" OR apt_feature_1 != "nesciunt" AND other_property_details != "None" AND date_sold = "2003-02-27 18:17:11" AND shp_feature_3 != "None" OR hse_feature_2 <> "None" AND shp_feature_2 = "None" OR "buyer_offered_price" > 8.7122 AND apt_feature_2 <> "suscipit" AND hse_feature_3 <> "None" OR "agreed_selling_price" < 0.0 OR hse_feature_1 <> "None" OR property_address != "098 Tremaine Highway Suite 569 South Wilford, NJ 46587-3537" OR oth_feature_2 != "None" OR "room_count" > 9 AND date_on_market != "1994-02-14 02:27:13" OR oth_feature_1 <> "None" OR fld_feature_2 <> "None" AND fld_feature_1 != "None" OR fld_feature_3 != "None" AND property_name = "ten tower"

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

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

49578 Ayden Mountains
New Russellhaven, UT 46626

2765 Schulist Stream
Lindmouth, UT 03391-3817

6837 Darien Views Apt. 475
South Maraview, KS 77770

092 Paucek Highway Apt. 772
East Erika, IA 61358

24365 Ulices Run
Homenicktown, MD 88485-6198

107 Roob Courts
Erdmanburgh, IA 42926-0873

084 Lakin Vista Apt. 394
Fishertown, MA 16876

2088 Bashirian Fork Suite 337
Faustinoport, MT 16771-9320

743 Ephraim Greens
Anniemouth, HI 47084-3853

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

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

986 Hagenes Drives
Draketon, UT 83411-3393

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

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

49578 Ayden Mountains
New Russellhaven, UT 46626

2765 Schulist Stream
Lindmouth, UT 03391-3817

6837 Darien Views Apt. 475
South Maraview, KS 77770

092 Paucek Highway Apt. 772
East Erika, IA 61358

24365 Ulices Run
Homenicktown, MD 88485-6198

107 Roob Courts
Erdmanburgh, IA 42926-0873

084 Lakin Vista Apt. 394
Fishertown, MA 16876

2088 Bashirian Fork Suite 337
Faustinoport, MT 16771-9320

743 Ephraim Greens
Anniemouth, HI 47084-3853

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

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

986 Hagenes Drives
Draketon, UT 83411-3393


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 Home_city FROM driver WHERE Name = "Angel Acre" OR "Age" <> 52 EXCEPT SELECT Home_city FROM driver WHERE Name <> "Timothy Ackert" AND "Age" < 52 OR "Driver_ID" != 6 AND Home_city = "Hartford"


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


Question: SELECT id FROM flight WHERE Pilot <> "Thompson" AND "Velocity" > 240.0 AND "airport_id" = 2 OR Vehicle_Flight_number <> "M2-F1 #21" INTERSECT SELECT id FROM operate_company WHERE "id" > 6


Question: SELECT SUM(T1.Enrollment), T2.total_budget_percent_budgeted FROM School as T1 JOIN budget as T2 ON T1.School_id = T2.School_id WHERE Mascot <> "Lions" OR School_name = "New Prairie 1" AND "total_budget_percent_invested" <= 2.0


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 decor FROM Rooms WHERE "beds" != 2 OR "basePrice" != 125 AND "maxOccupancy" < 2 OR roomName <> "Harbinger but bequest" AND decor <> "traditional" AND RoomId <> "HBB" INTERSECT SELECT decor FROM Rooms WHERE bedType != "Queen" AND roomName != "Convoke and sanguine"


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


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


Question: SELECT document_id FROM Circulation_History WHERE "employee_id" < 1 AND "draft_number" < 17 UNION SELECT document_id FROM Documents WHERE other_details != "h" AND receipt_number != "55"


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


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


Question: SELECT customer_id, datetime_payment, MIN(payment_method_code), amount_payment FROM Customer_Payments WHERE "amount_payment" < 9886.62 AND payment_method_code != "Direct Debit" UNION ALL SELECT customer_id, datetime_payment, MIN(payment_method_code), amount_payment FROM Customer_Payments WHERE datetime_payment != "2018-02-24 10:07:05" OR "customer_id" <> 14 OR "amount_payment" <> 9414.74 AND payment_method_code = "Direct Debit"


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 document_id FROM Circulation_History WHERE "document_id" > 2 OR "draft_number" > 1 OR "copy_number" < 5 INTERSECT SELECT document_id FROM Documents_Mailed WHERE "document_id" = 2 AND "mailed_to_address_id" > 4 AND mailing_date != "1993-05-24 22:13:48"


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


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


Question: SELECT document_status_description FROM Ref_Document_Status WHERE document_status_code <> "done" EXCEPT SELECT document_status_description FROM Ref_Document_Status WHERE document_status_description = "mailed late"


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


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


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


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


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


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


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


Question: SELECT Group_Equity_Shareholding, Incorporated_in, id FROM operate_company WHERE Type <> "Joint Venture" AND Principal_activities = "Cargo airline" AND Incorporated_in != "Hong Kong" UNION SELECT Group_Equity_Shareholding, Incorporated_in, id FROM operate_company WHERE Incorporated_in = "Taiwan" OR Principal_activities = "Cargo"


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


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


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


Question: SELECT Book_ID FROM book WHERE Title != "Bloody Mary : Lady Liberty" AND "Book_ID" <= 2 EXCEPT SELECT Book_ID FROM publication WHERE Publication_Date = "August 2008" AND Publisher = "Springer Nature" AND "Price" >= 2000000.0


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


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


Question: SELECT School_id FROM School WHERE County != "75 Starke" OR Mascot <> "Cavaliers" AND Location = "New Carlisle" AND IHSAA_Football_Class = "A" AND IHSAA_Class != "AAA" OR School_id != "4" OR "Enrollment" < 852 UNION SELECT School_id FROM budget WHERE Budget_invested_percent = "127.6"


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


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


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


Question: SELECT eid, name, AVG(salary) FROM employee WHERE "salary" > 99890 EXCEPT SELECT eid, name, AVG(salary) FROM employee WHERE name = "Jennifer Thomas"


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 Rank FROM match_result WHERE "Points" <= 89 AND "Bronze" != 8 OR "Big_Silver" <> 11 OR "Small_Silver" = 10 OR "Club_ID" <= 2 AND "Rank" <> 4 UNION SELECT Rank FROM player WHERE Rank = "3rd" OR Gender <> "M" AND Sponsor_name != "Winnipeg South" AND Residence != "Oakbank" OR Occupation <> "Student" AND "Player_ID" >= 13 AND Player_name = "Niki Ashton" AND "Votes" <> 14097


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


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


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


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


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


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


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


Question: SELECT SUM(shipping_agent_description) FROM Ref_Shipping_Agents WHERE shipping_agent_description = "q" AND shipping_agent_code <> "SH" UNION ALL SELECT SUM(shipping_agent_description) FROM Ref_Shipping_Agents WHERE shipping_agent_code <> "UP"


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


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


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


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


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


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


Question: SELECT maxOccupancy, beds, roomName, bedType, basePrice, RoomId FROM Rooms WHERE "basePrice" < 175 AND decor <> "modern" OR roomName <> "Thrift and accolade" UNION ALL SELECT maxOccupancy, beds, roomName, bedType, basePrice, RoomId FROM Rooms WHERE bedType != "King" AND decor = "modern" AND "basePrice" < 175

maxOccupancy beds roomName bedType basePrice RoomId


Question: SELECT COUNT(City), COUNT(ICAO), MIN(id), Country FROM airport WHERE City != "Bergen" OR ICAO != "LEBL" AND name != "National Airport" GROUP BY Country HAVING COUNT(ICAO) = 1 OR MIN(id) <= 6 INTERSECT SELECT COUNT(City), COUNT(ICAO), MIN(id), Country FROM airport WHERE City <> "Brussels" GROUP BY Country HAVING COUNT(ICAO) >= 1


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


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 name FROM aircraft WHERE name != "British Aerospace Jetstream 41" UNION SELECT name FROM aircraft WHERE name != "Schwitzer 2-33" OR "aid" <= 6 OR "distance" != 3383


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 SUM(Rank) FROM match_result WHERE "Points" >= 66 OR "Rank" > 3 AND "Gold" <= 20 AND "Small_Silver" >= 9 AND "Club_ID" >= 5 AND "Bronze" >= 10 EXCEPT SELECT SUM(Rank) FROM player WHERE Rank = "3rd"


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


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


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


Question: SELECT 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 document_id FROM Document_Drafts WHERE "document_id" = 1 AND "draft_number" <= 8 AND draft_details <> "w" EXCEPT SELECT document_id FROM Documents_Mailed WHERE "mailed_to_address_id" <> 8 OR mailing_date = "2007-03-20 05:22:01" AND "document_id" < 12


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


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


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


Question: SELECT document_id FROM Circulation_History WHERE "draft_number" > 2 OR "employee_id" <= 2 AND "copy_number" > 4 UNION ALL SELECT document_id FROM Document_Drafts WHERE "draft_number" < 9 OR "document_id" != 1


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


Question: SELECT other_details FROM Documents WHERE "document_id" != 3 OR shipping_agent_code != "FE" OR document_status_code != "done" OR receipt_date <> "1996-07-27 03:30:40" AND receipt_number != "124" AND document_type_code = "CD" EXCEPT SELECT other_details FROM Employees WHERE other_details = "b"


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 AVG(role_code), employee_name, employee_id, other_details FROM Employees WHERE other_details != "v" OR employee_name <> "Erling" INTERSECT SELECT AVG(role_code), employee_name, employee_id, other_details FROM Employees WHERE other_details != "v" 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 > 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 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 < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2


Question: SELECT head_ID FROM head WHERE "head_ID" >= 3 AND born_state = "California" EXCEPT SELECT head_ID FROM management WHERE "department_ID" = 2 OR temporary_acting != "Yes" OR "head_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 != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10


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


Question: SELECT SUM(ICAO), City FROM airport WHERE ICAO = "ENBR" OR name <> "El Prat Airport" OR City <> "Brussels" OR "id" <> 1 AND IATA <> "AEY" EXCEPT SELECT SUM(ICAO), City FROM airport WHERE IATA = "BWI" OR City != "Akureyri"


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


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


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


Question: SELECT customer_id FROM Customers WHERE "customer_id" <> 6 AND cell_mobile_phone_number != "1-401-108-8016x078" OR "amount_outstanding" > 5494.0 AND customer_status_code != "Bad Customer" AND "customer_address_id" > 13 AND first_name = "Rylan" OR last_name <> "Kohler" EXCEPT SELECT customer_id FROM Lessons WHERE lesson_time != "5" OR "vehicle_id" = 1 OR lesson_date = "2018-03-12 00:41:59" OR "lesson_id" <> 14


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


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


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


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


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


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


Question: SELECT Delegate, Counties_Represented, Committee FROM election WHERE "District" = 1 AND Delegate <> "Pendergrass, Shane E. Shane Pendergrass" UNION SELECT Delegate, Counties_Represented, Committee FROM election WHERE "Election_ID" < 1 OR "District" < 2

Bates, Gail H. Gail H. Bates
09.1 9A
Appropriations

Miller, Warren E. Warren E. Miller
09.1 9A
Economic Matters

Pendergrass, Shane E. Shane Pendergrass
13
Health and Government Operations


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


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


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


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


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


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


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


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


Question: SELECT draft_number FROM Document_Drafts WHERE "document_id" < 13 UNION ALL SELECT draft_number FROM Draft_Copies WHERE "document_id" <> 10


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


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


Question: SELECT COUNT(last_name), nickname FROM Staff WHERE nickname != "ynader" OR last_name <> "Jast" AND "staff_id" >= 8 OR date_joined_staff <> "2017-12-22 03:06:32" UNION ALL SELECT COUNT(last_name), nickname FROM Staff WHERE nickname != "norma73" AND "staff_address_id" >= 6 AND date_of_birth != "2005-05-02 06:23:36" OR middle_name <> "Maiya" AND date_left_staff != "2018-03-06 23:17:41"


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


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


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


Question: SELECT trust, COUNT(source_u_id) FROM trust WHERE "trust" < 2 UNION ALL SELECT trust, COUNT(source_u_id) FROM trust WHERE "target_u_id" < 2 AND "source_u_id" >= 1 AND "trust" != 10


Question: SELECT AVG(id), COUNT(name) FROM airport WHERE ICAO != "EBBR" OR City <> "Barcelona" OR name = "El Prat Airport" UNION SELECT AVG(id), COUNT(name) FROM operate_company WHERE "id" = 11 OR Incorporated_in <> "Hong Kong" OR Principal_activities = "Ground handling" AND "Group_Equity_Shareholding" < 100.0


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


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


Question: SELECT SUM(phone_number), contestant_number, MIN(vote_id), created FROM VOTES WHERE created = "2018-03-09 19:03:36" AND state = "NY" OR "phone_number" >= 7148407040 EXCEPT SELECT SUM(phone_number), contestant_number, MIN(vote_id), created FROM VOTES WHERE "contestant_number" < 3 OR state != "NJ "


Question: SELECT Allergy, SUM(AllergyType) FROM Allergy_Type WHERE Allergy <> "Milk" AND AllergyType != "food" EXCEPT SELECT Allergy, SUM(AllergyType) FROM Allergy_Type WHERE Allergy != "Tree Pollen"


Question: SELECT document_id FROM Circulation_History WHERE "draft_number" <> 20 AND "employee_id" != 2 AND "document_id" >= 10 AND "copy_number" = 15 UNION SELECT document_id FROM Documents WHERE document_status_code = "overdue"


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


Question: SELECT other_property_details, fld_feature_2, fld_feature_1 FROM Properties WHERE apt_feature_1 = "et" OR property_name = "high line" OR date_sold != "1973-02-24 02:56:06" AND "buyer_offered_price" < 11375259.502 AND fld_feature_1 = "None" AND fld_feature_2 = "None" OR apt_feature_3 != "None" OR shp_feature_2 = "None" AND shp_feature_1 = "None" AND date_on_market <> "1994-02-14 02:27:13" AND property_address != "098 Tremaine Highway Suite 569 South Wilford, NJ 46587-3537" AND oth_feature_1 = "None" AND "room_count" > 7 AND fld_feature_3 <> "None" AND hse_feature_3 <> "None" OR oth_feature_2 = "None" AND "property_id" < 14 AND property_type_code <> "Other" OR hse_feature_1 = "None" AND other_property_details != "None" AND oth_feature_3 != "None" UNION SELECT other_property_details, fld_feature_2, fld_feature_1 FROM Properties WHERE hse_feature_2 <> "None" OR "agreed_selling_price" != 1.0012 AND hse_feature_1 <> "None" AND other_property_details != "None" AND oth_feature_1 <> "None" AND "property_id" < 3 OR apt_feature_1 != "nesciunt"


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


Question: SELECT Shop_ID, Is_full_time FROM hiring WHERE "Employee_ID" <> 4 AND Is_full_time = "F" OR "Shop_ID" <> 1 AND Start_from != "2009" UNION SELECT Shop_ID, Is_full_time FROM hiring WHERE Is_full_time != "T" AND "Shop_ID" = 1


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


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


Question: SELECT 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 Writer, Book_ID, SUM(Issues), Title FROM book WHERE Writer != "Michael Moorcock" OR "Issues" >= 12.0 EXCEPT SELECT Writer, Book_ID, SUM(Issues), Title FROM book WHERE "Issues" < 4.0


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


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


Question: SELECT Branch_ID, Member_ID FROM membership_register_branch WHERE Branch_ID = "6" OR "Member_ID" >= 6 OR Register_Year = "2016" EXCEPT SELECT Branch_ID, Member_ID FROM purchase WHERE Year != "2018" OR Branch_ID != "5" AND "Member_ID" <= 2


Question: SELECT COUNT(Maker), Country, COUNT(Id), COUNT(FullName) FROM car_makers GROUP BY Country HAVING COUNT(Id) > 2 AND COUNT(Maker) >= 4 UNION ALL SELECT COUNT(Maker), Country, COUNT(Id), COUNT(FullName) FROM car_makers GROUP BY Country HAVING COUNT(Id) > 4

COUNT(Maker) Country COUNT(Id) COUNT(FullName)


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 SUM(ClubID) FROM Club WHERE ClubLocation = "HHH" UNION ALL SELECT SUM(ClubID) FROM Member_of_club WHERE "ClubID" = 2 AND Position != "Teaching Coordinator" OR "StuID" = 1007


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


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


Question: SELECT Member_ID FROM member WHERE Card_Number != "LT98" AND Name = "Johnny Williams" OR Hometown != "Red Jacket, West Virginia" OR "Member_ID" != 4 AND "Level" < 4 UNION SELECT Member_ID FROM purchase WHERE "Total_pounds" <> 988.09 OR Year != "2018" OR "Member_ID" >= 4 AND Branch_ID = "6"


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


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


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


Question: SELECT customer_id FROM Customers WHERE "customer_address_id" = 12 AND phone_number <> "(729)396-4354x3576" OR cell_mobile_phone_number <> "577-584-4864" AND "amount_outstanding" < 9500.0 OR customer_status_code != "Bad Customer" AND date_became_customer = "2017-04-16 05:12:21" AND email_address = "mayert.judy@example.com" AND date_of_birth <> "1993-07-09 11:11:36" AND "customer_id" <> 15 AND first_name <> "Dianna" AND last_name = "Kohler" UNION ALL SELECT customer_id FROM Lessons WHERE "customer_id" < 13 AND lesson_date = "2018-03-07 11:53:32" AND lesson_status_code <> "Cancelled" AND "lesson_id" >= 4 AND "staff_id" != 1 AND "vehicle_id" = 3


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


Question: SELECT head_ID, name, born_state FROM head WHERE name = "Sergio García" AND "age" < 50.0 OR "head_ID" <> 5 OR born_state <> "Delaware" UNION ALL SELECT head_ID, name, born_state FROM head WHERE "age" >= 43.0 OR "head_ID" != 1 AND born_state != "Alabama"


Question: SELECT Manager_name FROM shop WHERE Name != "FC KooTeePee" OR "Number_products" <= 1600 AND District != "Veritas Stadion" AND Manager_name = "Job Dragtsma" AND "Shop_ID" < 3 OR Location != "Jakobstad" INTERSECT SELECT Manager_name FROM shop WHERE Manager_name = "Antti Muurinen" OR Location != "Valkeakoski"


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


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


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


Question: SELECT name, aid FROM aircraft WHERE "distance" = 1805 OR name = "Piper Archer III" UNION ALL SELECT name, aid FROM aircraft WHERE name != "Boeing 727" OR "aid" != 2 AND "distance" <= 3383


Question: SELECT MAX(Company_ID) FROM company WHERE "Sales_in_Billion" != 87.6 AND Headquarters <> "USA" AND Name = "Berkshire Hathaway" AND Industry != "Banking" OR "Company_ID" < 9.0 AND "Assets_in_Billion" > 209.5 EXCEPT SELECT MAX(Company_ID) FROM employment WHERE "People_ID" > 3 AND "Company_ID" != 15


Question: SELECT id, MAX(IATA), Country, SUM(City), name, MAX(ICAO) FROM airport WHERE ICAO != "ENBR" AND name = "Akureyri Airport" AND City = "Baltimore" AND "id" < 7 UNION SELECT id, MAX(IATA), Country, SUM(City), name, MAX(ICAO) FROM airport WHERE Country != "Iceland" OR IATA = "BGO" OR name <> "Bergen Airport" OR "id" = 7 AND City <> "Baltimore" AND ICAO != "ENBR"

id MAX(IATA) Country SUM(City) name MAX(ICAO)

3.0
BWI
United States
0.0
Ted Stevens Airport
PANC


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 country FROM Addresses WHERE line_1_number_building != "37698 Hahn Curve Apt. 572" OR country != "USA" AND state_province_county = "Idaho" OR "address_id" <= 2 AND zip_postcode = "61121" UNION ALL SELECT country FROM Addresses WHERE city <> "Port Melyssa" AND zip_postcode = "27559" AND "address_id" > 10 OR country != "USA" AND state_province_county <> "WestVirginia"


Question: SELECT Allergy, AVG(AllergyType) FROM Allergy_Type WHERE Allergy != "Eggs" UNION SELECT Allergy, AVG(AllergyType) FROM Allergy_Type WHERE Allergy = "Soy" OR AllergyType = "environmental"


Question: SELECT MIN(Id) FROM car_makers WHERE "Id" <> 3 AND FullName <> "Volvo" INTERSECT SELECT MIN(Id) FROM cars_data WHERE "Weight" = 2945 OR "Accelerate" != 12.1 OR "Edispl" >= 258.0 AND "Id" <> 17 AND MPG = "28"


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


Question: SELECT MAX(role_description), MAX(role_code) FROM Roles WHERE role_code != "PT" UNION SELECT MAX(role_description), MAX(role_code) FROM Roles WHERE role_description != "Manager"


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


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


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


Question: SELECT Description, Max_Gross_Weight FROM aircraft WHERE Max_disk_Loading <> "2.6 lb/ft² (14 kg/m²)" AND Max_Gross_Weight <> "3,200 lb (1,451 kg)" AND Aircraft = "CH-53E Super Stallion" OR "Aircraft_ID" = 5 AND Total_disk_area = "4,900 ft² (460 m²)" UNION ALL SELECT Description, Max_Gross_Weight FROM aircraft WHERE Max_Gross_Weight != "73,500 lb (33,300 kg)" AND Total_disk_area = "4,900 ft² (460 m²)"

Heavy-lift helicopter
73,500 lb (33,300 kg)


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


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


Question: SELECT Club_ID, Coach_name, Gender, Coach_ID FROM coach WHERE Gender != "M" AND "Coach_ID" != 3 OR "Rank" <> 1 INTERSECT SELECT Club_ID, Coach_name, Gender, Coach_ID FROM coach WHERE Gender = "F"


Question: SELECT document_id FROM Documents_Mailed WHERE mailing_date = "2007-01-01 22:32:11" OR "mailed_to_address_id" = 8 UNION SELECT document_id FROM Draft_Copies WHERE "draft_number" = 17 OR "document_id" >= 1 AND "copy_number" = 10


Question: SELECT COUNT(Gender) FROM coach WHERE Coach_name <> "James Wong" AND "Coach_ID" <> 2 UNION ALL SELECT COUNT(Gender) FROM player WHERE Sponsor_name = "Selkirk—Interlake" AND Occupation <> "Ministerial Assistant" AND Rank <> "1st" AND "Player_ID" >= 14 AND Residence != "Winnipeg" OR Player_name <> "Judy Wasylycia-Leis"


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 Product_ID FROM store_product WHERE "Product_ID" <= 3 UNION SELECT Product_ID FROM store_product WHERE "Product_ID" = 1


Question: SELECT ClubID, ClubName FROM Club WHERE ClubLocation <> "AKW" OR ClubName = "Bootup Baltimore" OR "ClubID" <> 3 OR ClubDesc = "Venture capital fund for student business." UNION SELECT ClubID, ClubName FROM Club WHERE ClubLocation = "HHH" OR ClubDesc = "Play pen and paper games on campus."


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


Question: SELECT contestant_number, vote_id, created, state FROM VOTES WHERE "contestant_number" > 3 OR "phone_number" <= 6209222712 UNION SELECT contestant_number, vote_id, created, state FROM VOTES WHERE created = "2018-03-09 19:03:36" OR "vote_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 <> 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 != 7


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


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


Question: SELECT Party_ID, Comptroller FROM party WHERE Attorney_General != "Andrew Cuomo" OR Lieutenant_Governor != "Dennis Mehiel" AND Party <> "Working Families" AND US_Senate = "(no election)" AND Governor != "Eliot Spitzer" AND "Party_ID" < 2 OR "Year" <> 1998.0 UNION ALL SELECT Party_ID, Comptroller FROM party WHERE Lieutenant_Governor <> "David Paterson" OR US_Senate != "Hillary Rodham Clinton" AND Attorney_General <> "Andrew Cuomo" OR Party <> "Independence" AND Governor != "Carl McCall"


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


Question: SELECT MIN(Publication_Date), MAX(Price), Publisher FROM publication WHERE Publisher <> "Thomson Reuters" AND "Book_ID" <> 9 AND Publication_Date = "April 2007" OR "Price" < 6000000.0 UNION ALL SELECT MIN(Publication_Date), MAX(Price), Publisher FROM publication WHERE "Publication_ID" < 1 OR "Price" >= 3000000.0 AND Publisher <> "Bertelsmann"


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


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


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


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


Question: SELECT Department_ID, COUNT(Creation), SUM(Budget_in_Billions) FROM department WHERE "Ranking" = 5 AND Name != "State" OR "Budget_in_Billions" <> 62.8 OR "Num_Employees" != 17347.0 GROUP BY Department_ID HAVING COUNT(Creation) >= 1 UNION SELECT Department_ID, COUNT(Creation), SUM(Budget_in_Billions) FROM department WHERE Creation = "1789" AND Name != "Energy" OR "Num_Employees" = 58622.0 GROUP BY Department_ID HAVING SUM(Budget_in_Billions) != 11.1 AND COUNT(Creation) != 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 ClubID FROM Club WHERE ClubDesc != "Refurbish computers; teach kids and adults about computer basics." UNION ALL SELECT ClubID FROM Member_of_club WHERE "StuID" > 1001 AND Position != "President"


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


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


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


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


Question: SELECT MIN(Member_ID) FROM member WHERE Card_Number = "LCB7" OR Hometown <> "Fort Campbell, Kentucky" AND "Level" >= 4 AND "Member_ID" <> 9 EXCEPT SELECT MIN(Member_ID) FROM membership_register_branch WHERE "Member_ID" <> 8 AND Branch_ID = "6"


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


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


Question: SELECT MIN(draft_number), MAX(document_id) FROM Circulation_History WHERE "draft_number" <= 1 UNION ALL SELECT MIN(draft_number), MAX(document_id) FROM Document_Drafts WHERE draft_details <> "k"


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


Question: SELECT COUNT(i_id), title FROM item WHERE "i_id" = 5 UNION ALL SELECT COUNT(i_id), title FROM item WHERE title = "comb"


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


Question: SELECT StuID FROM Member_of_club WHERE "StuID" = 1010 OR Position != "Teaching Coordinator" UNION ALL SELECT StuID FROM Student WHERE city_code != "PIT" AND Sex <> "M" AND Fname = "Eric"


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


Question: SELECT MIN(StuID) FROM Has_Allergy WHERE Allergy = "Shellfish" EXCEPT SELECT MIN(StuID) FROM Student WHERE "Advisor" >= 2311 AND city_code = "BOS" OR LName = "Prater"


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 Name FROM employee WHERE Name != "Jason Hobson" OR City != "Leicester" AND "Age" <= 40 OR "Employee_ID" <= 7 UNION ALL SELECT Name FROM shop WHERE Location != "Mariehamn" OR Manager_name != "Mika Laurikainen" OR District <> "Finnair Stadium"


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 Name FROM branch WHERE Name <> "Stanley" AND Open_year <> "2015" AND "Branch_ID" >= 4 OR Address_road = "Valleys Place" AND membership_amount = "11" UNION SELECT Name FROM member WHERE Card_Number = "RCB32" AND Hometown <> "Red Jacket, West Virginia" AND Name != "Myron Pryor"


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 StuID FROM Has_Allergy WHERE "StuID" <= 1003 OR Allergy <> "Shellfish" INTERSECT SELECT StuID FROM Student WHERE "StuID" = 1022


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 SUM(District_ID) FROM district WHERE "City_Area" > 38.0 AND "District_ID" != 8 AND District_name = "Chiniot District" UNION ALL SELECT SUM(District_ID) FROM store_district WHERE "District_ID" <> 15 OR "Store_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 != 1


Question: SELECT Employee_ID FROM evaluation WHERE "Bonus" <= 3200.0 OR Year_awarded != "2016" EXCEPT SELECT Employee_ID FROM hiring WHERE "Shop_ID" <= 6 OR "Employee_ID" <> 6 OR Start_from != "2008" OR Is_full_time <> "T"


Question: SELECT School_id FROM budget WHERE "total_budget_percent_budgeted" = 1.3 AND "Budgeted" >= 113531 AND Budget_invested_percent <> "228.6" UNION SELECT School_id FROM endowment WHERE "School_id" <> 6 AND donator_name != "Duarte"


Question: SELECT Name FROM shop WHERE Name <> "FC KooTeePee" AND District = "Tehtaan kenttä" OR Location = "Valkeakoski" OR "Number_products" > 3500 OR "Shop_ID" = 5 AND Manager_name = "Mika Lehkosuo" UNION ALL SELECT Name FROM shop WHERE Name <> "HJK" AND "Shop_ID" != 5 OR "Number_products" <> 1600 OR Location != "Helsinki" AND District <> "Magnum Areena"


Question: SELECT Coach_ID, SUM(Starting_year) FROM player_coach WHERE "Player_ID" <> 14 OR "Coach_ID" != 3 OR "Starting_year" >= 2012 UNION ALL SELECT Coach_ID, SUM(Starting_year) FROM player_coach WHERE "Starting_year" < 2011


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


Question: SELECT Maker FROM car_makers WHERE Country = "1" UNION SELECT Maker FROM model_list WHERE "ModelId" = 25


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