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 Election_ID, District, MIN(First_Elected) FROM election WHERE "Party" >= 2 OR Delegate != "Bates, Gail H. Gail H. Bates" AND "District" <= 3 OR Committee <> "Environmental Matters" OR "First_Elected" < 2003.0 AND "Election_ID" <> 1 UNION ALL SELECT Election_ID, District, MIN(First_Elected) FROM election WHERE "Party" <= 2


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


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


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


Question: SELECT ClubName, ClubID FROM Club WHERE ClubDesc != "Play pen and paper games on campus." OR "ClubID" <> 2 OR ClubName = "Hopkins Student Enterprises" INTERSECT SELECT ClubName, ClubID FROM Club WHERE "ClubID" <= 1 AND ClubName = "Bootup Baltimore" AND ClubDesc <> "Venture capital fund for student business." OR ClubLocation = "HHH"


Question: SELECT document_id FROM Documents_Mailed WHERE "mailed_to_address_id" < 2 OR mailing_date != "1977-04-01 17:03:50" AND "document_id" = 14 UNION SELECT document_id FROM Documents_Mailed WHERE mailing_date = "2007-03-20 05:22:01"


Question: SELECT source_u_id, target_u_id, trust FROM trust WHERE "source_u_id" <> 2 OR "trust" <> 10 UNION ALL SELECT source_u_id, target_u_id, trust FROM trust WHERE "trust" < 6


Question: SELECT District_ID FROM district WHERE District_name <> "Chakwal District" AND "City_Population" != 530438.0 AND "District_ID" >= 13 AND Headquartered_City <> "Gujranwala City" OR "City_Area" < 22.0 UNION SELECT District_ID FROM store_district WHERE "Store_ID" != 4


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


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


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


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


Question: SELECT Continent, AVG(CountryName) FROM countries WHERE "CountryId" <= 13 UNION ALL SELECT Continent, AVG(CountryName) FROM countries WHERE "CountryId" <> 4


Question: SELECT Fname FROM Student WHERE city_code <> "PIT" AND "Advisor" = 7134 OR Fname <> "Mark" AND "Age" < 20 OR LName != "Jones" UNION ALL SELECT Fname FROM Student WHERE "Major" >= 100 OR Sex <> "F" OR "StuID" < 1002 OR "Advisor" != 8721 AND Fname = "Jun" OR city_code != "LOS" AND "Age" > 27


Question: SELECT role_description, role_code FROM Roles WHERE role_description <> "Editor" EXCEPT SELECT role_description, role_code FROM Roles WHERE role_description <> "Photo"


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 MIN(Rank) FROM match_result WHERE "Points" = 168 OR "Small_Silver" <= 6 OR "Gold" < 12 OR "Club_ID" > 1 OR "Bronze" <= 10 OR "Big_Silver" != 11 UNION ALL SELECT MIN(Rank) FROM player WHERE "Player_ID" <> 5


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


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


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


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"


Question: SELECT StuID, LName, Age, Major, COUNT(Fname) FROM Student WHERE Fname != "Jandy" OR city_code != "LON" AND "Major" >= 600 UNION SELECT StuID, LName, Age, Major, COUNT(Fname) FROM Student WHERE city_code != "HKG" AND Fname != "William" OR "Major" > 550


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 feature_type_name, feature_type_code FROM Ref_Feature_Types WHERE feature_type_name = "Securiyt, eg Burglar Alarm." INTERSECT SELECT feature_type_name, feature_type_code FROM Ref_Feature_Types WHERE feature_type_code = "Security"


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


Question: SELECT MIN(T1.City_Area), T2.Store_ID FROM district as T1 JOIN store_district as T2 ON T1.District_ID = T2.District_ID WHERE "City_Population" <> 530438.0 OR "Store_ID" <= 1 AND "City_Area" <> 22.0 AND District_name <> "Chiniot District" GROUP BY Store_ID HAVING Store_ID > 1 AND City_Population = 134936.0 OR Headquartered_City <> "Khanewal City" AND District_name <> "Khanewal District"


Question: SELECT Company_ID FROM employment WHERE "Year_working" >= 1 UNION ALL SELECT Company_ID FROM employment WHERE "Year_working" = 4 OR "Company_ID" != 11 AND "People_ID" <= 3


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


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


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


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


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


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


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


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


Question: SELECT SUM(T1.StuID), T2.pet_age FROM Has_Pet as T1 JOIN Pets as T2 ON T1.PetID = T2.PetID WHERE PetType <> "dog"


Question: SELECT Budget_invested_percent, School_id, Budgeted, Year, Invested, total_budget_percent_invested, total_budget_percent_budgeted FROM budget WHERE "total_budget_percent_budgeted" <> 2.0 OR "total_budget_percent_invested" <> 2.0 OR "Budgeted" < 6803 OR "Year" < 2003 AND "Invested" <> 5840 OR Budget_invested_percent != "42.9" INTERSECT SELECT Budget_invested_percent, School_id, Budgeted, Year, Invested, total_budget_percent_invested, total_budget_percent_budgeted FROM budget WHERE "total_budget_percent_budgeted" = 2.4 OR "Invested" = 5840 OR "Year" >= 2003 AND Budget_invested_percent != "122.5" AND "School_id" <> 5


Question: SELECT document_id FROM Documents_Mailed WHERE mailing_date = "1973-02-21 10:17:01" EXCEPT SELECT document_id FROM Draft_Copies WHERE "draft_number" > 9 AND "document_id" != 12 AND "copy_number" = 4


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


Question: SELECT document_id FROM Circulation_History WHERE "document_id" < 2 INTERSECT SELECT document_id FROM Documents WHERE receipt_date <> "2017-07-02 17:39:09" OR document_status_code = "working" AND document_type_code <> "CD" OR shipping_agent_code = "FE" OR other_details != "p"


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


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


Question: SELECT document_status_code FROM Documents WHERE "document_id" <> 3 OR document_status_code != "overdue" AND shipping_agent_code = "SH" UNION SELECT document_status_code FROM Ref_Document_Status WHERE document_status_code != "overdue" OR document_status_description <> "currently working on"


Question: SELECT Occupation, Residence FROM player WHERE Player_name <> "Patricia Cordner" OR Sponsor_name != "Elmwood—Transcona" AND Residence != "Winnipeg" OR "Player_ID" = 6 EXCEPT SELECT Occupation, Residence FROM player WHERE "Votes" <> 12285 AND "Player_ID" <= 6 OR Residence = "Winnipeg" OR Sponsor_name != "Winnipeg North" AND Occupation = "Retired" OR Gender = "M" AND Rank = "1st" OR Player_name = "Jim Maloway"


Question: SELECT head_ID, department_ID, temporary_acting FROM management WHERE "department_ID" != 7 INTERSECT SELECT head_ID, department_ID, temporary_acting FROM management WHERE "department_ID" <> 15 AND temporary_acting != "No" OR "head_ID" = 6


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


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


Question: SELECT first_name FROM Customers WHERE date_of_birth <> "1988-09-19 14:45:56" AND "customer_id" < 7 OR "customer_address_id" != 10 OR last_name <> "Mertz" OR customer_status_code != "Good Customer" AND phone_number = "417.136.2900x672" AND date_became_customer <> "2017-11-25 01:42:26" AND first_name = "Amya" AND "amount_outstanding" < 5494.0 OR email_address <> "karina.carroll@example.net" EXCEPT SELECT first_name FROM Staff WHERE "staff_address_id" <= 6 AND first_name != "Camylle" OR date_joined_staff = "2017-08-30 15:08:37" OR last_name = "Weissnat" OR nickname <> "lsenger" OR date_of_birth <> "1997-03-29 10:55:45" AND date_left_staff = "2018-03-09 05:08:35" OR middle_name != "Madelyn"


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


Question: SELECT Club_ID, COUNT(Region), MIN(Start_year), COUNT(Club_name) FROM club GROUP BY Club_ID HAVING COUNT(Region) != 1 OR MIN(Start_year) <= 2000 UNION ALL SELECT Club_ID, COUNT(Region), MIN(Start_year), COUNT(Club_name) FROM club GROUP BY Club_ID HAVING COUNT(Region) <> 1 OR MIN(Start_year) <= 2001


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 MAX(T1.Enrollment), T2.Invested FROM School as T1 JOIN budget as T2 ON T1.School_id = T2.School_id WHERE "Year" <= 2005 OR "Invested" < 5840 AND IHSAA_Class = "AAA" AND IHSAA_Football_Class <> "A" AND "total_budget_percent_budgeted" < 2.0 OR "Enrollment" <= 620 OR Location <> "Culver" GROUP BY IHSAA_Class HAVING Enrollment < 495 AND School_name = "Glenn" OR Budget_invested_percent <> "42.9" OR County = "71 St. Joseph"


Question: SELECT name FROM airport WHERE name != "Baltimore-Washington Airport" OR IATA <> "BWI" AND Country <> "Belgium" EXCEPT SELECT name FROM operate_company WHERE Type = "Subsidiary" AND "id" <> 7 AND name <> "Vogue Laundry Service Limited" OR "Group_Equity_Shareholding" < 30.0


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


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 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 Location, School_ID FROM school WHERE School != "Noelani Elementary School" OR Grade != "1st-3rd grade" OR "School_ID" < 2 AND Location = "Jakarta, Indonesia" OR Type = "Public" INTERSECT SELECT Location, School_ID FROM school WHERE Type != "Private"


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 document_status_code FROM Documents WHERE receipt_number <> "114" UNION ALL SELECT document_status_code FROM Ref_Document_Status WHERE document_status_description <> "currently working on"


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


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


Question: SELECT StuID FROM Has_Allergy WHERE "StuID" <= 1025 OR Allergy != "Cat" INTERSECT SELECT StuID FROM Student WHERE "Major" = 520


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


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


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


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


Question: SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Description != "Paper" AND Template_Type_Code <> "CV" UNION SELECT Template_Type_Code FROM Templates WHERE "Template_ID" != 1 AND Template_Type_Code <> "PP" OR Date_Effective_From != "1975-10-20 02:28:58" AND Date_Effective_To <> "2015-09-06 01:08:44" AND "Version_Number" != 4 OR Template_Details = ""


Question: SELECT COUNT(document_id) FROM Document_Drafts WHERE "draft_number" >= 1 UNION ALL SELECT COUNT(document_id) FROM Documents_Mailed WHERE "mailed_to_address_id" < 5


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


Question: SELECT Document_ID FROM Documents WHERE Document_Description = "w" AND Other_Details <> "None" AND "Template_ID" <> 14 UNION ALL SELECT Document_ID FROM Documents WHERE Document_Name <> "About Korea"


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


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


Question: SELECT trust FROM trust WHERE "source_u_id" >= 2 EXCEPT SELECT trust FROM trust WHERE "target_u_id" > 6


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


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


Question: SELECT document_id FROM Circulation_History WHERE "employee_id" <= 2 OR "document_id" >= 20 AND "copy_number" = 5 OR "draft_number" >= 1 UNION SELECT document_id FROM Circulation_History WHERE "copy_number" >= 15 AND "employee_id" <= 8


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


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


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


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


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


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


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


Question: SELECT SUM(Level), MAX(Name), SUM(Hometown), Member_ID FROM member WHERE Name <> "Johnny Williams" AND Hometown = "Columbia, South Carolina" OR Card_Number <> "RCB32" OR "Member_ID" > 10 UNION ALL SELECT SUM(Level), MAX(Name), SUM(Hometown), Member_ID FROM member WHERE "Level" = 6 OR Hometown <> "LaGrange, Georgia" AND Card_Number != "FS10"

SUM(Level) MAX(Name) SUM(Hometown) Member_ID


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


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


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


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


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


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


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


Question: SELECT District_ID FROM district WHERE "City_Area" < 17.0 AND Headquartered_City = "Faisalabad City" OR "City_Population" <> 1526168.0 AND "District_ID" >= 14 INTERSECT SELECT District_ID FROM store_district WHERE "District_ID" >= 15


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


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


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


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


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


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


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


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


Question: SELECT document_id FROM Document_Drafts WHERE "document_id" != 1 EXCEPT SELECT document_id FROM Documents WHERE receipt_date = "1974-05-08 00:00:46"


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


Question: SELECT Employee_ID FROM evaluation WHERE Year_awarded <> "2016" AND "Bonus" >= 3200.0 AND Employee_ID <> "2" UNION SELECT Employee_ID FROM hiring WHERE "Shop_ID" <> 1 OR "Employee_ID" < 6 AND Is_full_time != "T" OR Start_from != "2009"


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


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


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


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


Question: SELECT AVG(Zip_code), AVG(County_Id) FROM county WHERE County_name != "Mansfield" AND Zip_code = "D02" UNION SELECT AVG(Zip_code), AVG(County_Id) FROM county WHERE "County_Id" < 4 OR County_name != "Manning"


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


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


Question: SELECT People_ID FROM employment WHERE "Company_ID" != 17 OR "Year_working" != 1 UNION ALL SELECT People_ID FROM people WHERE Name <> "Tim Naegeli"


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


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


Question: SELECT last_name, date_of_birth FROM Customers WHERE "customer_address_id" < 7 OR email_address != "kitty.hand@example.net" AND last_name != "Spinka" OR first_name != "Dameon" AND customer_status_code != "Good Customer" AND cell_mobile_phone_number != "(630)964-2426" AND date_of_birth <> "1996-08-30 06:17:50" OR phone_number <> "(297)122-0086" EXCEPT SELECT last_name, date_of_birth FROM Staff WHERE "staff_address_id" >= 3 AND middle_name <> "Stephania" AND last_name <> "Carroll" OR date_joined_staff = "2016-06-06 08:54:28" OR date_left_staff = "2018-03-10 15:25:00" AND nickname != "ynader" OR date_of_birth != "1995-06-03 08:09:17" AND "staff_id" <= 15 AND first_name = "Kaitlin"


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


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


Question: SELECT SUM(Max_Gross_Weight), Total_disk_area, COUNT(Max_disk_Loading) FROM aircraft WHERE "Aircraft_ID" <= 2 AND Aircraft != "Robinson R-22" OR Max_Gross_Weight != "1,370 lb (635 kg)" OR Description != "Heavy-lift helicopter" AND Max_disk_Loading <> "8.8 lb/ft² (43 kg/m²)" EXCEPT SELECT SUM(Max_Gross_Weight), Total_disk_area, COUNT(Max_disk_Loading) FROM aircraft WHERE Max_Gross_Weight != "1,370 lb (635 kg)" AND "Aircraft_ID" >= 5 OR Max_disk_Loading <> "8.8 lb/ft² (43 kg/m²)"


Question: SELECT customer_address_id, phone_number, last_name, amount_outstanding, first_name, customer_status_code, customer_id, email_address, date_of_birth, cell_mobile_phone_number, date_became_customer FROM Customers WHERE last_name != "Koelpin" OR email_address != "kitty.hand@example.net" OR "customer_address_id" <> 1 AND cell_mobile_phone_number != "578-518-4785x612" AND date_became_customer != "2017-11-12 04:34:44" INTERSECT SELECT customer_address_id, phone_number, last_name, amount_outstanding, first_name, customer_status_code, customer_id, email_address, date_of_birth, cell_mobile_phone_number, date_became_customer FROM Customers WHERE email_address <> "asha.kilback@example.org"


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


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


Question: SELECT property_id FROM Other_Property_Features WHERE "feature_id" >= 4 OR property_feature_description <> "ad" UNION SELECT property_id FROM Properties WHERE fld_feature_1 <> "None" OR other_property_details <> "None" OR "property_id" != 6 AND date_on_market != "1981-08-23 05:40:38" OR property_name != "wall street" AND hse_feature_2 = "None" OR oth_feature_2 != "None" OR hse_feature_1 != "None" OR shp_feature_3 <> "None" OR fld_feature_3 != "None" OR date_sold <> "2003-02-27 18:17:11" AND fld_feature_2 != "None" AND apt_feature_1 <> "ut" AND shp_feature_1 != "None" AND property_type_code != "Apartment" AND apt_feature_2 != "est" AND apt_feature_3 = "None" AND "agreed_selling_price" <= 4201.8 OR oth_feature_3 != "None" OR hse_feature_3 = "None" OR "buyer_offered_price" <= 296733.0


Question: SELECT MAX(Member_ID) FROM member WHERE Card_Number = "OLB56" OR Name <> "Myron Pryor" OR Hometown = "Fort Campbell, Kentucky" AND "Level" != 6 AND "Member_ID" >= 7 EXCEPT SELECT MAX(Member_ID) FROM purchase WHERE "Total_pounds" <> 20.99 AND "Member_ID" <> 3 AND Year != "2018"


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


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


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


Question: SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 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 T1.Aircraft_ID, T2.Airport_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID == T2.Aircraft_ID GROUP BY ID HAVING Total_disk_area = "497 ft² (46.2 m²)" OR Airport_ID < 1 AND Max_Gross_Weight = "50,000 lb (22,680 kg)"


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


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


Question: SELECT MIN(Model) FROM model_list WHERE Model != "amc" OR "ModelId" <> 16 UNION ALL SELECT MIN(Model) FROM model_list WHERE "Maker" != 15 OR "ModelId" != 25


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


Question: SELECT StuID FROM Has_Allergy WHERE Allergy <> "Tree Pollen" AND "StuID" != 1029 EXCEPT SELECT StuID FROM Student WHERE LName = "Epp" AND Sex = "M"


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


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


Question: SELECT PetID FROM Has_Pet WHERE "PetID" > 2002 OR "StuID" >= 1002 UNION SELECT PetID FROM Has_Pet WHERE "PetID" = 2002


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


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


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


Question: SELECT AllergyType, Allergy FROM Allergy_Type WHERE AllergyType != "environmental" INTERSECT SELECT AllergyType, Allergy FROM Allergy_Type WHERE Allergy <> "Rodent" OR AllergyType <> "environmental"


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


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


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


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


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


Question: SELECT School_id FROM budget WHERE "Year" > 2005 OR Budget_invested_percent = "127.6" OR "total_budget_percent_invested" = 2.7 OR "School_id" != 2 OR "Budgeted" > 3666 UNION SELECT School_id FROM endowment WHERE "endowment_id" != 7 OR "amount" != 9.51


Question: SELECT Group_Equity_Shareholding, name, Incorporated_in FROM operate_company WHERE Type != "Joint Venture" OR "Group_Equity_Shareholding" >= 60.0 OR Principal_activities <> "Cargo" OR Incorporated_in = "Hong Kong" UNION ALL SELECT Group_Equity_Shareholding, name, Incorporated_in FROM operate_company WHERE Type != "Subsidiary" AND "id" < 1 AND name != "Dragonair"

Cathay Pacific Catering Services (HK) Limited

100.0
Cathay Pacific Services Limited
Hong Kong

100.0
Hong Kong Airport Services
Hong Kong

100.0
Vogue Laundry Service Limited
Hong Kong

45.0
China Pacific Laundry Services
Taiwan

40.0
VN/CX Catering Services Limited
Vietnam

30.0
CLS Catering Services Limited
Canada


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


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


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


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


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


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


Question: SELECT Sex, StuID, Major, city_code, Advisor, Fname, LName FROM Student WHERE "Major" != 600 AND city_code != "PEK" AND "StuID" <= 1010 AND "Advisor" <= 1121 AND "Age" >= 16 OR Fname != "Linda" AND Sex != "M" UNION ALL SELECT Sex, StuID, Major, city_code, Advisor, Fname, LName FROM Student WHERE Fname != "Susan" AND city_code = "PEK" AND LName != "Thornton" AND "Advisor" >= 5718 OR "Major" <= 600 OR "StuID" <= 1010 OR "Age" = 20

Sex StuID Major city_code Advisor Fname LName


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


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


Question: SELECT SUM(shipping_agent_code) FROM Documents WHERE receipt_number = "34" AND "document_id" != 4 OR receipt_date = "1996-05-31 06:51:58" OR shipping_agent_code != "SH" INTERSECT SELECT SUM(shipping_agent_code) FROM Ref_Shipping_Agents WHERE shipping_agent_code = "US" OR shipping_agent_description <> "g"


Question: SELECT MAX(T1.age), T2.head_ID FROM head as T1 JOIN management as T2 ON T1.head_ID = T2.head_ID WHERE born_state = "California" AND age = 68.0 OR department_ID > 2 OR name = "Nick Faldo" AND temporary_acting = "Yes"


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 T1.Aircraft_ID, COUNT(T2.Aircraft_ID) FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID


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


Question: SELECT MIN(Starting_year) FROM player_coach WHERE "Coach_ID" <> 1 AND "Starting_year" >= 2013 EXCEPT SELECT MIN(Starting_year) FROM player_coach WHERE "Player_ID" != 10


Question: SELECT MIN(Gold), Bronze, SUM(Rank), MIN(Big_Silver), MAX(Club_ID) FROM match_result WHERE "Small_Silver" != 4 OR "Big_Silver" <= 7 AND "Points" >= 168 AND "Rank" > 4 UNION ALL SELECT MIN(Gold), Bronze, SUM(Rank), MIN(Big_Silver), MAX(Club_ID) FROM match_result WHERE "Points" <= 139 AND "Big_Silver" != 14 OR "Club_ID" != 2 OR "Gold" != 13 AND "Rank" < 2 OR "Bronze" > 9 OR "Small_Silver" <= 16


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


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


Question: SELECT MAX(mailed_to_address_id), MAX(document_id), MIN(mailing_date) FROM Documents_Mailed WHERE mailing_date <> "1971-11-03 12:32:14" UNION SELECT MAX(mailed_to_address_id), MAX(document_id), MIN(mailing_date) FROM Documents_Mailed WHERE "document_id" > 24 AND mailing_date <> "1999-05-22 23:21:07"


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 MAX(Name) FROM people WHERE "Age" > 25 OR "People_ID" != 3 AND Name != "Brad Lohaus" AND Graduation_College = "Northeastern" EXCEPT SELECT MAX(Name) FROM people WHERE "People_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 >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2


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


Question: SELECT Employee_ID FROM employee WHERE City = "Bath" OR "Age" >= 32 AND "Employee_ID" <= 1 OR Name != "Louis Deacon" EXCEPT SELECT Employee_ID FROM evaluation WHERE Year_awarded <> "2016"


Question: SELECT document_id FROM Document_Drafts WHERE draft_details != "p" UNION ALL SELECT document_id FROM Documents_Mailed WHERE mailing_date != "1991-05-27 14:17:37"


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 Member_ID FROM member WHERE Name != "Ventrell Jenkins" AND "Level" >= 6 UNION ALL SELECT Member_ID FROM purchase WHERE "Member_ID" > 1 AND Year != "2018" OR "Total_pounds" <> 232.09 OR Branch_ID != "2"


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


Question: SELECT ClubID, Position FROM Member_of_club WHERE "StuID" < 1007 OR Position != "Vice-President" INTERSECT SELECT ClubID, Position FROM Member_of_club WHERE "StuID" <> 1007 OR "ClubID" >= 2 OR Position <> "President"


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


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


Question: SELECT COUNT(Aircraft_ID) FROM aircraft WHERE Description <> "Light utility helicopter" OR Total_disk_area != "497 ft² (46.2 m²)" AND Aircraft <> "Robinson R-22" AND Max_disk_Loading <> "14.5 lb/ft² (71 kg/m²)" OR Max_Gross_Weight = "73,500 lb (33,300 kg)" AND "Aircraft_ID" > 4 INTERSECT SELECT COUNT(Aircraft_ID) FROM airport_aircraft WHERE "Aircraft_ID" <= 5


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


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


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


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


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


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


Question: SELECT AVG(draft_number) FROM Document_Drafts WHERE "document_id" = 20 EXCEPT SELECT AVG(draft_number) FROM Draft_Copies WHERE "document_id" > 12


Question: SELECT Member_ID FROM member WHERE Hometown = "Simpsonville, South Carolina" OR Card_Number <> "LE99" OR "Member_ID" >= 5 OR Name <> "Braxton Kelley" INTERSECT SELECT Member_ID FROM purchase WHERE "Total_pounds" <> 430.29 OR Year <> "2017"


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


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


Question: SELECT Model FROM car_names WHERE Model = "cadillac" AND "MakeId" >= 169 OR Make = "toyota corolla" EXCEPT SELECT Model FROM model_list WHERE "Maker" <> 4


Question: SELECT feature_name FROM Other_Available_Features WHERE feature_description = "Burglar Alarm" OR feature_name <> "BurglarAlarm" AND "feature_id" > 2 OR feature_type_code != "Security" UNION ALL SELECT feature_name FROM Other_Available_Features WHERE feature_description != "Burglar Alarm"


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 i_id FROM item WHERE "i_id" >= 6 UNION ALL SELECT i_id FROM item WHERE title <> "apple"


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


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


Question: SELECT Name, Ranking, Creation, Num_Employees, Budget_in_Billions, Department_ID FROM department WHERE Name = "Transportation" OR "Department_ID" >= 2 AND "Budget_in_Billions" != 59.7 AND Creation <> "1966" AND "Num_Employees" <= 115897.0 AND "Ranking" <= 4 INTERSECT SELECT Name, Ranking, Creation, Num_Employees, Budget_in_Billions, Department_ID FROM department WHERE "Num_Employees" >= 17347.0 AND "Department_ID" = 2 OR "Ranking" <= 14 OR Name != "Justice"


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 customer_id FROM Customer_Payments WHERE "amount_payment" != 6782.84 OR "customer_id" != 6 EXCEPT SELECT customer_id FROM Lessons WHERE lesson_date <> "2018-03-05 18:05:31" OR "vehicle_id" != 2 OR "lesson_id" < 5 OR "staff_id" >= 8 OR lesson_status_code = "Completed"


Question: SELECT AVG(Branch_ID), MIN(Member_ID) FROM membership_register_branch WHERE "Member_ID" != 6 AND Register_Year = "2016" EXCEPT SELECT AVG(Branch_ID), MIN(Member_ID) FROM purchase WHERE Year <> "2018" AND "Total_pounds" <= 343.76


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


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


Question: SELECT MIN(T1.Aircraft_ID), T2.Airport_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID WHERE "Airport_ID" <> 9 GROUP BY Max_Gross_Weight HAVING Description = "Tandem rotor helicopter" AND Aircraft <> "CH-47D Chinook" AND Max_disk_Loading <> "14.5 lb/ft² (71 kg/m²)" OR Airport_ID < 9


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


Question: SELECT SUM(Issues), SUM(Title), Writer FROM book WHERE Writer <> "Dave Gibbons" OR Title = "Bloody Mary" AND "Issues" != 6.0 AND "Book_ID" != 2 UNION SELECT SUM(Issues), SUM(Title), Writer FROM book WHERE Title != "The Dome: Ground Zero" OR "Issues" <> 4.0 AND Writer = "Garth Ennis"


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 MIN(Continent) FROM continents WHERE Continent = "australia" AND "ContId" < 3 UNION ALL SELECT MIN(Continent) FROM continents WHERE "ContId" = 5


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


Question: SELECT 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 Name, Budget_in_Billions FROM department WHERE "Ranking" <= 8 AND "Budget_in_Billions" < 21.5 AND "Department_ID" < 7 AND "Num_Employees" < 115897.0 EXCEPT SELECT Name, Budget_in_Billions FROM department WHERE "Num_Employees" > 116100.0


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


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


Question: SELECT amount, donator_name, School_id FROM endowment WHERE "amount" <> 8.99 OR "endowment_id" != 7 AND "School_id" = 4 INTERSECT SELECT amount, donator_name, School_id FROM endowment WHERE "amount" != 9.51 AND "School_id" = 3 OR "endowment_id" = 4


Question: SELECT customer_id FROM Customer_Payments WHERE datetime_payment != "2018-03-12 08:41:47" AND payment_method_code = "Direct Debit" INTERSECT SELECT customer_id FROM Customers WHERE "amount_outstanding" > 3751.0 AND date_of_birth = "1995-07-17 12:13:16" AND customer_status_code = "Good Customer" AND date_became_customer != "2015-06-24 03:50:04" AND email_address = "mariela28@example.org" AND "customer_address_id" <= 10 OR last_name <> "Sanford" AND cell_mobile_phone_number != "578-518-4785x612" OR "customer_id" < 9 AND first_name != "Estelle"


Question: SELECT Employee_ID, City FROM employee WHERE City = "Bristol" AND Name = "Jason Hobson" AND "Employee_ID" != 1 OR "Age" = 23 UNION ALL SELECT Employee_ID, City FROM employee WHERE Name <> "Jason Hobson"


Question: SELECT address_details, address_id FROM Addresses WHERE "address_id" < 9 INTERSECT SELECT address_details, address_id FROM Addresses WHERE "address_id" >= 6


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


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


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


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


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 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 People_ID FROM people WHERE Nationality = "Russia" AND "Height" >= 182.0 UNION SELECT People_ID FROM poker_player WHERE "People_ID" >= 1 AND "Final_Table_Made" < 26.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 <> 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 <= 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 < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9


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


Question: SELECT Country, FullName FROM car_makers WHERE "Id" < 16 UNION ALL SELECT Country, FullName FROM car_makers WHERE Maker = "volkswagen" OR FullName = "BMW" OR Country <> "3" OR "Id" != 17


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


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


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


Question: SELECT SUM(contestant_number) FROM CONTESTANTS WHERE "contestant_number" <> 10 UNION SELECT SUM(contestant_number) FROM VOTES WHERE "contestant_number" <> 3


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


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


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


Question: SELECT Store_ID FROM store_district WHERE "Store_ID" != 1 AND "District_ID" < 15 UNION SELECT Store_ID FROM store_product WHERE "Store_ID" = 1 AND "Product_ID" != 6


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


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


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


Question: SELECT MAX(Book_ID) FROM book WHERE Writer <> "Howard Chaykin" OR "Issues" != 12.0 UNION ALL SELECT MAX(Book_ID) FROM publication WHERE "Publication_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 > 7


Question: SELECT id FROM albums WHERE title != "Kill 'Em All" OR "id" <> 164 OR "artist_id" <= 240 INTERSECT SELECT id FROM playlists WHERE name = "Music Videos"


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


Question: SELECT Allergy FROM Allergy_Type WHERE Allergy = "Shellfish" UNION SELECT Allergy FROM Allergy_Type WHERE Allergy = "Soy"


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


Question: SELECT MAX(vehicle_details) FROM Vehicles WHERE vehicle_details != "Van" EXCEPT SELECT MAX(vehicle_details) FROM Vehicles WHERE "vehicle_id" != 3


Question: SELECT feature_type_code, feature_type_name FROM Ref_Feature_Types WHERE feature_type_code <> "Security" UNION ALL SELECT feature_type_code, feature_type_name FROM Ref_Feature_Types WHERE feature_type_code != "Amenity"


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 Club_ID FROM coach WHERE Gender <> "F" AND "Rank" <= 4 AND Coach_name <> "Smith Brown" EXCEPT SELECT Club_ID FROM match_result WHERE "Bronze" != 8 AND "Rank" > 6 OR "Big_Silver" != 14 AND "Points" >= 89 AND "Gold" >= 7


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


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


Question: SELECT 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 name, eid FROM employee WHERE "salary" != 18050 OR name <> "William Jones" INTERSECT SELECT name, eid FROM employee WHERE name != "Barbara Wilson" AND "salary" <> 44740


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


Question: SELECT MAX(Branch_ID) FROM purchase WHERE "Total_pounds" < 321.13 UNION SELECT MAX(Branch_ID) FROM purchase WHERE "Total_pounds" != 988.09


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


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


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


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


Question: SELECT COUNT(vehicle_id) FROM Lessons WHERE "price" > 167.0 OR "vehicle_id" > 2 EXCEPT SELECT COUNT(vehicle_id) FROM Vehicles WHERE vehicle_details <> "Truck"


Question: SELECT Age, City, Employee_ID FROM employee WHERE "Age" < 32 AND Name = "Andrew Sheridan" INTERSECT SELECT Age, City, Employee_ID FROM employee WHERE Name <> "Steve Borthwick"


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 eid FROM certificate WHERE "eid" < 269734834 UNION SELECT eid FROM employee WHERE name <> "Joseph Thompson" AND "salary" <> 48090


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


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


Question: SELECT Allergy FROM Allergy_Type WHERE AllergyType = "environmental" OR Allergy <> "Tree Pollen" UNION ALL SELECT Allergy FROM Has_Allergy WHERE Allergy <> "Grass Pollen"


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


Question: SELECT customer_address_id, cell_mobile_phone_number, email_address, amount_outstanding, phone_number, SUM(customer_id), COUNT(date_became_customer) FROM Customers WHERE customer_status_code = "Good Customer" AND first_name != "Carole" OR "amount_outstanding" <= 1000.0 AND email_address = "huel.jana@example.org" OR "customer_address_id" < 2 UNION ALL SELECT customer_address_id, cell_mobile_phone_number, email_address, amount_outstanding, phone_number, SUM(customer_id), COUNT(date_became_customer) FROM Customers WHERE first_name <> "Jordy" OR date_of_birth <> "1993-03-08 08:48:42"


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


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


Question: SELECT u_id FROM review WHERE "u_id" <> 2 UNION SELECT u_id FROM useracct WHERE "u_id" <= 1 OR name <> "Helen"


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


Question: SELECT T1.ClubID, T2.ClubID FROM Club as T1 JOIN Member_of_club as T2 ON T1.ClubID == T2.ClubID GROUP BY Position HAVING StuID = 1007


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


Question: SELECT Branch_ID FROM branch WHERE "Branch_ID" = 8 AND membership_amount != "7" OR Address_road != "Cecilia Avenue" AND Name != "Taverner" AND Open_year != "2012" UNION ALL SELECT Branch_ID FROM purchase WHERE Branch_ID <> "5" OR "Total_pounds" > 988.09 AND "Member_ID" > 2 OR Year != "2017"


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


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


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


Question: SELECT 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 shipping_agent_code, COUNT(shipping_agent_name) FROM Ref_Shipping_Agents WHERE shipping_agent_code != "US" EXCEPT SELECT shipping_agent_code, COUNT(shipping_agent_name) FROM Ref_Shipping_Agents WHERE shipping_agent_description = "k"


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


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


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


Question: SELECT MIN(aid) FROM certificate WHERE "aid" > 3 EXCEPT SELECT MIN(aid) FROM flight WHERE "flno" > 33 OR "distance" <> 7487 OR origin = "Los Angeles" OR arrival_date != "04/12/2005 09:40" OR "price" >= 202.45


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


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


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


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


Question: SELECT Member_ID FROM membership_register_branch WHERE Register_Year != "2016" INTERSECT SELECT Member_ID FROM membership_register_branch WHERE "Member_ID" < 1 AND Register_Year = "2016" OR Branch_ID != "5"


Question: SELECT School_id FROM School WHERE County != "20 Elkhart" OR IHSAA_Football_Class != "A" AND School_name = "Knox Community" UNION ALL SELECT School_id FROM budget WHERE "Year" <> 2004 AND "Invested" != 146102 OR "Budgeted" < 113531 OR "total_budget_percent_budgeted" != 2.0 OR Budget_invested_percent = "146.9" OR "School_id" <= 5 AND "total_budget_percent_invested" = 2.7


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


Question: SELECT customer_id FROM Customer_Payments WHERE "amount_payment" > 4032.33 OR datetime_payment = "2018-03-20 21:38:41" AND payment_method_code = "Credit Card" UNION ALL SELECT customer_id FROM Customers WHERE date_of_birth = "1994-05-07 01:32:16" AND cell_mobile_phone_number <> "848-099-2095x785" AND customer_status_code <> "Bad Customer" OR date_became_customer = "2016-11-30 10:37:41"


Question: SELECT COUNT(T1.People_ID), T2.Poker_Player_ID FROM people as T1 JOIN poker_player as T2 ON T1.People_ID = T2.People_ID WHERE Nationality = "Bulgaria" OR "Final_Table_Made" <> 26.0 OR "Best_Finish" = 1.0 OR "Money_Rank" <> 68.0 OR Birth_Date <> "April 17, 1987" AND "Poker_Player_ID" = 1 AND "Height" < 196.0 GROUP BY Best_Finish HAVING Earnings = 104871.0 OR Height < 196.0 AND Best_Finish < 3.0 OR Nationality <> "Russia" AND Birth_Date <> "April 17, 1987" AND Name <> "Maksim Botin" OR Final_Table_Made <> 42.0 AND Poker_Player_ID >= 1


Question: SELECT Maker, Model FROM model_list WHERE "Maker" = 19 OR "ModelId" <> 14 OR Model != "buick" UNION SELECT Maker, Model FROM model_list WHERE Model != "volvo" AND "ModelId" > 35 AND "Maker" < 14


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


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


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


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


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


Question: SELECT Starting_year FROM player_coach WHERE "Coach_ID" = 1 INTERSECT SELECT Starting_year FROM player_coach WHERE "Player_ID" >= 1 OR "Starting_year" <> 2012 OR "Coach_ID" < 3


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


Question: SELECT Number_products, Name, Manager_name, Location, District FROM shop WHERE Name <> "FC Lahti" AND Location = "Helsinki" UNION ALL SELECT Number_products, Name, Manager_name, Location, District FROM shop WHERE Name != "FC Inter"

10770
HJK
Antti Muurinen
Helsinki
Finnair Stadium

3516
FC Haka
Olli Huttunen
Valkeakoski
Tehtaan kenttä

10770
HJK
Antti Muurinen
Helsinki
Finnair Stadium

6000
FC Honka
Mika Lehkosuo
Espoo
Tapiolan Urheilupuisto

5000
FF Jaro
Mika Laurikainen
Jakobstad
Jakobstads Centralplan

4780
FC KooTeePee
Tommi Kautonen
Kotka
Arto Tolsa Areena

3500
KuPS
Kai Nyyssönen
Kuopio
Magnum Areena

15000
FC Lahti
Ilkka Mäkelä
Lahti
Lahden Stadion

1600
IFK Mariehamn
Pekka Lyyski
Mariehamn
Wiklöf Holding Arena


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


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


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


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


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


Question: SELECT 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 Shop_ID FROM hiring WHERE "Shop_ID" = 6 OR "Employee_ID" != 4 OR Is_full_time = "T" OR Start_from <> "2012" EXCEPT SELECT Shop_ID FROM shop WHERE Location = "Turku"


Question: SELECT MAX(distance), MIN(name), AVG(aid) FROM aircraft WHERE name <> "Boeing 777-300" AND "aid" = 7 OR "distance" >= 2605 EXCEPT SELECT MAX(distance), MIN(name), AVG(aid) FROM aircraft WHERE "distance" = 1530 AND name = "Airbus A319"


Question: SELECT Maker FROM car_makers WHERE Country <> "6" EXCEPT SELECT Maker FROM model_list WHERE "Maker" > 18


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


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


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


Question: SELECT MAX(Club_ID), MIN(Start_year), Club_name, Region FROM club WHERE "Start_year" > 1998 AND "Club_ID" < 5 OR Region = "USA" AND Club_name != "Gefle IF" UNION SELECT MAX(Club_ID), MIN(Start_year), Club_name, Region FROM club WHERE "Club_ID" = 4


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


Question: SELECT Store_ID FROM store WHERE "Store_ID" = 4 AND "Area_size" >= 28.74 AND Store_Name <> "Rogersville" OR "Number_of_product_category" <> 990.0 OR Type != "City Mall" OR "Ranking" > 1 EXCEPT SELECT Store_ID FROM store_product WHERE "Store_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 >= 7


Question: SELECT StuID FROM Member_of_club WHERE Position != "President" OR "StuID" > 1001 EXCEPT SELECT StuID FROM Student WHERE "Age" <> 18 AND city_code != "YYZ" AND Sex <> "M"


Question: SELECT COUNT(draft_number) FROM Circulation_History WHERE "employee_id" >= 1 UNION SELECT COUNT(draft_number) FROM Draft_Copies WHERE "document_id" = 2 OR "copy_number" = 10


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


Question: SELECT School_id FROM budget WHERE Budget_invested_percent <> "127.6" AND "Budgeted" > 61283 AND "Year" > 2004 UNION ALL SELECT School_id FROM endowment WHERE "School_id" <> 6 AND "amount" <= 8.53 AND "endowment_id" <= 8


Question: SELECT Assets_in_Billion, Name, Sales_in_Billion, Profits_in_Billion, Industry FROM company WHERE "Market_Value_in_Billion" >= 79.5 OR "Company_ID" >= 17.0 AND "Sales_in_Billion" < 87.6 OR "Assets_in_Billion" = 2039.1 AND "Profits_in_Billion" = 15.7 UNION ALL SELECT Assets_in_Billion, Name, Sales_in_Billion, Profits_in_Billion, Industry FROM company WHERE "Market_Value_in_Billion" <= 154.8 AND Headquarters != "France" AND Name != "Citigroup" OR "Sales_in_Billion" != 433.5 OR "Assets_in_Billion" >= 304.7 OR "Company_ID" != 8.0 OR "Profits_in_Billion" != 25.7


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


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


Question: SELECT School_id FROM School WHERE School_id <> "2" AND "Enrollment" >= 852 AND IHSAA_Class = "AAA" OR Mascot <> "Jimmies" AND Location != "New Carlisle" UNION ALL SELECT School_id FROM budget WHERE "total_budget_percent_invested" > 2.0 OR "Invested" != 5840 OR Budget_invested_percent != "159.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 <> 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 != 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 <= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3


Question: SELECT Employee_ID FROM employee WHERE Name = "Louis Deacon" OR City = "Leicester" OR "Age" != 23 OR "Employee_ID" > 2 EXCEPT SELECT Employee_ID FROM hiring WHERE "Shop_ID" >= 8


Question: SELECT Driver_ID FROM driver WHERE "Age" = 37 OR "Driver_ID" >= 12 AND Name != "Timothy Ackert" INTERSECT SELECT Driver_ID FROM school_bus WHERE If_full_time <> "T" OR "Driver_ID" <> 4 AND "School_ID" = 1


Question: SELECT Driver_ID, School_ID, If_full_time FROM school_bus WHERE If_full_time <> "T" OR "Years_Working" <= 3 OR "School_ID" <= 5 OR "Driver_ID" < 9 INTERSECT SELECT Driver_ID, School_ID, If_full_time FROM school_bus WHERE "Driver_ID" >= 3


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


Question: SELECT Name FROM employee WHERE Name <> "George Chuter" OR "Age" <> 30 AND City != "Wasps" UNION SELECT Name FROM shop WHERE Manager_name != "Mika Lehkosuo" AND "Shop_ID" >= 4 AND "Number_products" >= 10000 OR District = "Finnair Stadium" OR Location != "Valkeakoski" AND Name != "FC Haka"


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


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


Question: SELECT head_ID FROM head WHERE "age" >= 43.0 INTERSECT SELECT head_ID FROM management WHERE "department_ID" <> 7


Question: SELECT Employee_ID FROM employee WHERE "Age" < 32 OR Name != "Andrew Sheridan" OR City != "Bristol" AND "Employee_ID" <> 6 EXCEPT SELECT Employee_ID FROM hiring WHERE Is_full_time <> "F" OR "Employee_ID" <> 1


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


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


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


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


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


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


Question: SELECT Store_ID FROM store WHERE "Number_of_product_category" <= 17811.0 OR "Ranking" != 2 AND "Area_size" >= 28.74 AND "Store_ID" < 2 OR Store_Name = "Doaktown" AND Type <> "City Mall" UNION SELECT Store_ID FROM store_product WHERE "Store_ID" > 1


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


Question: SELECT Publication_Date, Publication_ID, Publisher, Book_ID, Price FROM publication WHERE "Publication_ID" < 7 OR "Book_ID" < 9 INTERSECT SELECT Publication_Date, Publication_ID, Publisher, Book_ID, Price FROM publication WHERE "Publication_ID" = 2 OR Publisher != "Pearson" OR "Book_ID" >= 7 OR "Price" <> 4100000.0


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


Question: SELECT feature_type_code FROM Other_Available_Features WHERE "feature_id" != 3 OR feature_name <> "BurglarAlarm" AND feature_type_code <> "Amenity" AND feature_description != "Air Conditioning." UNION ALL SELECT feature_type_code FROM Ref_Feature_Types WHERE feature_type_code <> "Amenity" AND feature_type_name = "Securiyt, eg Burglar Alarm."


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


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


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


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


Question: SELECT COUNT(id) FROM airport WHERE ICAO != "LEBL" EXCEPT SELECT COUNT(id) FROM flight WHERE "id" >= 9 AND "airport_id" >= 1 AND "Altitude" <> 3650.0 OR Pilot = "Thompson" AND Date = "August 30, 1965" OR "company_id" <= 5 OR "Velocity" <= 240.0


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


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


Question: SELECT Id FROM car_makers WHERE Country != "6" AND FullName != "Peugeaut" OR "Id" < 7 AND Maker <> "kia" UNION ALL SELECT Id FROM cars_data WHERE "Edispl" = 302.0 AND "Year" <> 1977 AND "Weight" < 3365 OR "Accelerate" > 16.4 AND "Id" >= 125 AND Horsepower != "68" AND MPG = "24" OR "Cylinders" = 4


Question: SELECT Name, Sales_in_Billion, Company_ID FROM company WHERE "Profits_in_Billion" <> 15.9 AND "Company_ID" >= 6.0 OR Name = "JPMorgan Chase" AND "Sales_in_Billion" <= 68.7 EXCEPT SELECT Name, Sales_in_Billion, Company_ID FROM company WHERE "Sales_in_Billion" >= 310.1 OR Name != "Gazprom" AND "Assets_in_Billion" <= 328.7 AND Headquarters <> "USA" OR "Company_ID" <= 18.0 AND "Market_Value_in_Billion" <> 227.6 AND Industry != "Banking" OR "Profits_in_Billion" > 11.1


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


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


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


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


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


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


Question: SELECT SUM(StuID) FROM Has_Pet WHERE "PetID" >= 2001 OR "StuID" <= 1002 UNION SELECT SUM(StuID) FROM Student WHERE "Major" < 600 AND LName != "Smith" OR city_code = "PIT" AND "StuID" = 1009 AND Sex = "M"


Question: SELECT StuID FROM Has_Pet WHERE "PetID" > 2001 AND "StuID" < 1002 UNION SELECT StuID FROM Student WHERE "StuID" <= 1018 OR Fname = "George" AND LName != "Kim" OR city_code != "PHL" AND Sex <> "F" AND "Age" < 17 OR "Major" <= 600


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


Question: SELECT AVG(aid) FROM aircraft WHERE "aid" != 3 OR name != "Boeing 777-300" OR "distance" > 6475 UNION ALL SELECT AVG(aid) FROM flight WHERE "aid" < 3 AND origin <> "Los Angeles" AND "price" <> 278.56 AND destination != "Chicago"


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


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


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


Question: SELECT 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 AVG(draft_details), document_id FROM Document_Drafts WHERE draft_details = "m" AND "draft_number" < 14 OR "document_id" >= 13 EXCEPT SELECT AVG(draft_details), document_id FROM Document_Drafts WHERE "draft_number" < 17 AND "document_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 = 7


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


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


Question: SELECT document_id, AVG(draft_number), draft_details FROM Document_Drafts WHERE "document_id" <= 2 AND draft_details = "p" AND "draft_number" != 8 EXCEPT SELECT document_id, AVG(draft_number), draft_details FROM Document_Drafts WHERE "document_id" <= 20 AND "draft_number" >= 14 AND draft_details != "r"


Question: SELECT Branch_ID FROM branch WHERE City != "London" OR Open_year = "2001" OR "Branch_ID" <= 2 OR membership_amount <> "112" OR Name = "Cochrane" EXCEPT SELECT Branch_ID FROM membership_register_branch WHERE Branch_ID != "5"


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


Question: SELECT id FROM albums WHERE title != "Radio Brasil (O Som da Jovem Vanguarda) - Seleccao de Henrique Amaro" AND "id" >= 153 OR "artist_id" != 254 EXCEPT SELECT id FROM employees WHERE last_name = "Park" OR first_name <> "Jane" OR "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 <= 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 MAX(Bonus) FROM evaluation WHERE Employee_ID != "10" EXCEPT SELECT MAX(Bonus) FROM evaluation WHERE Employee_ID <> "7" OR Year_awarded != "2016"


Question: SELECT draft_number FROM Document_Drafts WHERE draft_details = "b" OR "document_id" > 10 AND "draft_number" != 14 UNION ALL SELECT draft_number FROM Draft_Copies WHERE "draft_number" >= 12 AND "copy_number" <> 5


Question: SELECT SUM(Branch_ID), Year FROM purchase WHERE "Member_ID" > 3 OR "Total_pounds" <> 321.13 AND Branch_ID != "3" UNION ALL SELECT SUM(Branch_ID), Year FROM purchase WHERE "Member_ID" = 3 OR Year != "2018" AND Branch_ID = "2" AND "Total_pounds" < 2013.32


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


Question: SELECT Id, Country, SUM(Maker), FullName FROM car_makers WHERE FullName != "Peugeaut" AND Maker = "gm" OR "Id" <= 18 OR Country <> "1" INTERSECT SELECT Id, Country, SUM(Maker), FullName FROM car_makers WHERE FullName != "Subaru" AND "Id" <> 12


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 a_id, rating FROM review WHERE "i_id" = 1 OR "a_id" <> 4 AND "rating" <= 5 INTERSECT SELECT a_id, rating FROM review WHERE "rating" = 5 OR "u_id" < 1 OR "a_id" = 3 AND "i_id" >= 7 AND "rank" >= 7


Question: SELECT T1.customer_id, T2.customer_address_id FROM Customer_Payments as T1 JOIN Customers as T2 ON T1.customer_id == T2.customer_id GROUP BY date_became_customer HAVING datetime_payment = "2018-03-12 13:31:36" AND last_name = "Ortiz" OR date_became_customer = "2016-09-04 23:08:20" OR payment_method_code <> "Direct Debit" AND phone_number = "1-875-045-0806" AND amount_payment < 5475.26 AND amount_outstanding < 3900.0 AND customer_status_code <> "Bad Customer"


Question: SELECT zip_postcode, city, address_id FROM Addresses WHERE "address_id" != 2 AND zip_postcode != "85954" AND city != "South Richieport" AND line_1_number_building <> "376 Kallie Tunnel Apt. 784" INTERSECT SELECT zip_postcode, city, address_id FROM Addresses WHERE state_province_county != "Washington" AND city <> "South Richieport" OR country <> "USA" OR line_1_number_building <> "2291 Larkin Ports"


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 vehicle_id FROM Lessons WHERE lesson_status_code = "Completed" AND "lesson_id" = 5 UNION SELECT vehicle_id FROM Vehicles WHERE vehicle_details = "Car"


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


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


Question: SELECT MIN(People_ID) FROM employment WHERE "Company_ID" > 15 UNION ALL SELECT MIN(People_ID) FROM people WHERE "People_ID" = 2 AND Graduation_College = "California" OR Name != "David Butler" OR "Age" <> 25 OR Nationality = "United Kindom"


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 vehicle_details, vehicle_id FROM Vehicles WHERE "vehicle_id" <> 2 EXCEPT SELECT vehicle_details, vehicle_id FROM Vehicles WHERE "vehicle_id" <> 1


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 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 mailing_date, AVG(mailed_to_address_id), document_id FROM Documents_Mailed WHERE "document_id" > 13 OR "mailed_to_address_id" < 3 UNION ALL SELECT mailing_date, AVG(mailed_to_address_id), document_id FROM Documents_Mailed WHERE "mailed_to_address_id" <> 4


Question: SELECT Age, Nationality, People_ID FROM people WHERE Nationality <> "United States" AND Graduation_College != "California" OR "Age" <= 34 OR "People_ID" = 3 AND Name = "Tom Sheehey" UNION SELECT Age, Nationality, People_ID FROM people WHERE Name != "Brad Lohaus" AND "People_ID" != 3 AND "Age" = 37 AND Nationality = "United States" AND Graduation_College != "California"


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 Book_ID, SUM(Publisher) FROM publication WHERE "Publication_ID" = 6 EXCEPT SELECT Book_ID, SUM(Publisher) FROM publication WHERE "Publication_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 Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9


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


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


Question: SELECT trust, target_u_id FROM trust WHERE "source_u_id" = 6 OR "target_u_id" <= 5 OR "trust" = 8 UNION ALL SELECT trust, target_u_id FROM trust WHERE "trust" >= 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 >= 9


Question: SELECT Aircraft_ID FROM aircraft WHERE Aircraft = "Robinson R-22" OR Total_disk_area = "4,900 ft² (460 m²)" AND Max_disk_Loading <> "3.7 lb/ft² (18 kg/m²)" OR "Aircraft_ID" = 2 AND Max_Gross_Weight <> "73,500 lb (33,300 kg)" EXCEPT SELECT Aircraft_ID FROM airport_aircraft WHERE "ID" = 3 OR "Aircraft_ID" = 5 AND "Airport_ID" = 6


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


Question: SELECT Earnings, Final_Table_Made FROM poker_player WHERE "Poker_Player_ID" >= 1 OR "Earnings" >= 476090.0 AND "Money_Rank" >= 58.0 OR "Final_Table_Made" <= 42.0 UNION ALL SELECT Earnings, Final_Table_Made FROM poker_player WHERE "Best_Finish" <> 1.0 OR "Earnings" > 596462.0 OR "People_ID" != 6


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


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


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


Question: SELECT Age, Driver_ID, Party FROM driver WHERE Name = "Jason Rojas" UNION SELECT Age, Driver_ID, Party FROM driver WHERE Home_city != "Bethel" AND Name = "Dan Carter" OR Party = "Dem" AND "Age" != 45 OR "Driver_ID" >= 6


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


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


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


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


Question: SELECT Party, Name, Driver_ID, Age, Home_city FROM driver WHERE "Age" <> 46 OR Party != "Dem" UNION ALL SELECT Party, Name, Driver_ID, Age, Home_city FROM driver WHERE Party = "Rep" AND "Driver_ID" != 4


Question: SELECT School_id FROM School WHERE Mascot != "Cavaliers" OR County <> "50 Marshall" OR IHSAA_Class <> "AAA" AND IHSAA_Football_Class = "AA" UNION SELECT School_id FROM endowment WHERE donator_name = "Monte Plata" OR "endowment_id" <= 5 AND "amount" >= 8.43


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


Question: SELECT COUNT(eid) FROM certificate WHERE "eid" = 141582651 UNION ALL SELECT COUNT(eid) FROM employee WHERE "eid" > 489221823 OR name != "Michael Miller" AND "salary" > 48090


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


Question: SELECT MIN(People_ID), MAX(Age), MIN(Graduation_College), MIN(Name), AVG(Nationality) FROM people WHERE "Age" <> 34 AND Name != "David Butler" AND Graduation_College <> "Northeastern" OR Nationality != "United Kindom" AND "People_ID" > 2 EXCEPT SELECT MIN(People_ID), MAX(Age), MIN(Graduation_College), MIN(Name), AVG(Nationality) FROM people WHERE Graduation_College = "Iowa" OR "People_ID" <= 7 AND Nationality <> "United Kindom" OR Name = "Jerry Corcoran"


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


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


Question: SELECT Name FROM branch WHERE "Branch_ID" = 1 AND membership_amount <> "6" OR Address_road != "Glebe Street" AND City = "Oxford" AND Name != "Popert" OR Open_year != "2015" UNION SELECT Name FROM member WHERE "Level" <> 6 OR "Member_ID" < 9 AND Name <> "Johnny Williams" AND Hometown != "Jacksonville, Florida"


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


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


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


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