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


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


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


Question: SELECT PetType, weight, pet_age FROM Pets WHERE PetType != "cat" OR "weight" <> 13.4 OR "PetID" = 2002 UNION SELECT PetType, weight, pet_age FROM Pets WHERE "PetID" >= 2002 AND "weight" <= 9.3


Question: SELECT Budget_in_Billions, Creation, AVG(Department_ID), Name, Num_Employees, Ranking FROM department WHERE "Budget_in_Billions" > 23.4 OR "Department_ID" <= 14 OR Creation <> "1849" AND "Num_Employees" != 10600.0 OR "Ranking" >= 11 UNION ALL SELECT Budget_in_Billions, Creation, AVG(Department_ID), Name, Num_Employees, Ranking FROM department WHERE Creation != "1789" OR "Budget_in_Billions" != 44.6


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


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


Question: SELECT Year_working, Company_ID, People_ID FROM employment WHERE "People_ID" >= 4 AND "Company_ID" >= 11 EXCEPT SELECT Year_working, Company_ID, People_ID FROM employment WHERE "Year_working" <= 1


Question: SELECT aid FROM aircraft WHERE "aid" <= 8 AND "distance" <> 4103 GROUP BY aid HAVING aid != 3 UNION SELECT aid FROM aircraft WHERE name = "Lockheed L1011" OR "aid" >= 14 OR "distance" = 8430 GROUP BY aid HAVING aid >= 1


Question: SELECT property_type_description FROM Ref_Property_Types WHERE property_type_description != "Shop, Retail Outlet." AND property_type_code = "Apartment" UNION SELECT property_type_description FROM Ref_Property_Types WHERE property_type_description = "House, Bungalow, etc."


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


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


Question: SELECT Year_working FROM employment WHERE "Year_working" > 1 OR "Company_ID" <> 11 OR "People_ID" <= 7 UNION SELECT Year_working FROM employment WHERE "Year_working" >= 2 OR "Company_ID" = 17 AND "People_ID" <> 3


Question: SELECT document_status_code FROM Documents WHERE "document_id" = 3 OR receipt_number <> "79" OR document_type_code != "Paper" OR receipt_date != "1982-09-27 14:52:15" AND document_status_code <> "done" EXCEPT SELECT document_status_code FROM Ref_Document_Status WHERE document_status_description != "mailed late" AND document_status_code <> "done"


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


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


Question: SELECT Rank, Gender FROM coach WHERE "Club_ID" >= 3 OR "Coach_ID" >= 3 AND Coach_name != "Smith Brown" AND Gender = "M" EXCEPT SELECT Rank, Gender FROM player WHERE Rank <> "3rd" AND "Votes" > 12093 AND "Player_ID" = 14 AND Sponsor_name != "Selkirk—Interlake" OR Gender != "F"


Question: SELECT Company_ID FROM company WHERE "Sales_in_Billion" > 82.6 OR Headquarters = "UK" OR Industry <> "Oil and gas" OR Name = "China Construction Bank" EXCEPT SELECT Company_ID FROM employment WHERE "Year_working" <> 1 AND "Company_ID" != 15


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 Continent, ContId FROM continents WHERE Continent = "america" INTERSECT SELECT Continent, ContId FROM continents WHERE Continent <> "asia"


Question: SELECT StuID FROM Has_Allergy WHERE Allergy <> "Tree Pollen" UNION SELECT StuID FROM Student WHERE Fname <> "Charles" OR LName = "Smith" AND city_code = "YYZ"


Question: SELECT Major FROM Student WHERE LName <> "Adams" OR Sex <> "M" AND "Major" <= 600 UNION ALL SELECT Major FROM Student WHERE "Age" >= 21 AND LName = "Norris" AND city_code <> "HOU" OR Fname <> "Jandy" OR "Major" <= 600 AND Sex = "M"


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


Question: SELECT property_type_code FROM Properties WHERE "buyer_offered_price" <> 13991131.434 OR property_type_code <> "Shop" AND shp_feature_1 != "None" AND apt_feature_2 <> "eos" AND apt_feature_1 = "enim" AND hse_feature_2 <> "None" AND property_address <> "107 Roob Courts Erdmanburgh, IA 42926-0873" OR oth_feature_1 = "None" UNION SELECT property_type_code FROM Ref_Property_Types WHERE property_type_code = "House" OR property_type_description = "Field, Meadow."


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


Question: SELECT Rank FROM match_result WHERE "Points" < 89 OR "Club_ID" > 2 OR "Bronze" > 9 AND "Small_Silver" = 9 UNION SELECT Rank FROM player WHERE Gender <> "M" AND "Player_ID" = 4 OR Player_name = "Matt Schaubroeck" OR Residence != "Winnipeg" OR Sponsor_name = "Brandon—Souris"


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


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


Question: SELECT ClubLocation, ClubID, ClubName, ClubDesc FROM Club WHERE ClubLocation = "AKW" AND ClubName = "Pen and Paper Gaming" OR ClubDesc <> "Play pen and paper games on campus." UNION SELECT ClubLocation, ClubID, ClubName, ClubDesc FROM Club WHERE ClubLocation = "AKW"

Refurbish computers; teach kids and adults about computer basics.

Venture capital fund for student business.

AKW
4
Tennis Club
A competitive tennis club.


Question: SELECT Allergy FROM Allergy_Type WHERE Allergy != "Tree Pollen" UNION ALL SELECT Allergy FROM Allergy_Type WHERE Allergy != "Grass Pollen"


Question: SELECT Continent, CountryName FROM countries WHERE CountryName = "russia" AND "Continent" <= 2 AND "CountryId" >= 2 UNION ALL SELECT Continent, CountryName FROM countries WHERE "CountryId" >= 6 OR "Continent" <> 4 AND CountryName <> "australia"


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


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


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


Question: SELECT People_ID FROM employment WHERE "Company_ID" = 13 AND "Year_working" = 2 OR "People_ID" <> 1 UNION SELECT People_ID FROM people WHERE Graduation_College <> "Virginia" OR "Age" > 25


Question: SELECT COUNT(feature_id) FROM Other_Available_Features WHERE feature_type_code <> "Amenity" OR "feature_id" != 2 UNION SELECT COUNT(feature_id) FROM Other_Property_Features WHERE "feature_id" <= 3 AND "property_id" = 1 OR property_feature_description = "hic"


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


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


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


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


Question: SELECT Branch_ID FROM branch WHERE Open_year <> "2013" OR "Branch_ID" >= 8 AND City <> "Oxford" UNION SELECT Branch_ID FROM membership_register_branch WHERE "Member_ID" != 4 OR Register_Year != "2016" AND Branch_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 Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3


Question: SELECT other_details, MIN(employee_id) FROM Employees WHERE employee_name != "Koby" OR role_code != "ED" UNION SELECT other_details, MIN(employee_id) FROM Employees WHERE employee_name <> "Haley"


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


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


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


Question: SELECT Other_Details, Document_ID FROM Documents WHERE Document_Description != "y" OR "Document_ID" <= 801801 AND Document_Name != "Introduction of OS" EXCEPT SELECT Other_Details, Document_ID FROM Paragraphs WHERE "Document_ID" < 16514113 OR Paragraph_Text = "Somalia" AND Other_Details != "None" OR "Paragraph_ID" <= 9946


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


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


Question: SELECT Hometown, Member_ID, AVG(Name) FROM member WHERE Hometown = "Fort Campbell, Kentucky" OR "Level" != 6 OR "Member_ID" <= 7 OR Name <> "Jeremy Jarmon" INTERSECT SELECT Hometown, Member_ID, AVG(Name) FROM member WHERE "Level" > 6 OR "Member_ID" < 9 AND Hometown != "Jacksonville, Florida"


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_type_description, document_type_code FROM Ref_Document_Types WHERE document_type_description <> "f" INTERSECT SELECT document_type_description, document_type_code FROM Ref_Document_Types WHERE document_type_code = "CD"


Question: SELECT County_name, Population, AVG(County_Id) FROM county WHERE Zip_code = "D09" OR County_name != "Manning" OR "County_Id" <= 1 UNION ALL SELECT County_name, Population, AVG(County_Id) FROM county WHERE "County_Id" < 4 AND County_name != "Mansfield" OR Zip_code = "D09" AND "Population" > 87200.0


Question: SELECT Document_Description FROM Documents WHERE "Template_ID" > 14 OR Document_Description != "z" AND Document_Name != "About Korea" OR Other_Details = "None" AND "Document_ID" >= 1 EXCEPT SELECT Document_Description FROM Documents WHERE "Document_ID" >= 801801


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Question: SELECT document_status_code FROM Documents WHERE other_details <> "h" UNION SELECT document_status_code FROM Ref_Document_Status WHERE document_status_description != "mailed" OR document_status_code <> "overdue"


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


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


Question: SELECT feature_id FROM Other_Available_Features WHERE feature_description <> "Air Conditioning." OR feature_type_code = "Security" OR feature_name = "AirCon" OR "feature_id" > 2 UNION ALL SELECT feature_id FROM Other_Property_Features WHERE "property_id" != 9


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


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


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


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


Question: SELECT AVG(T1.City_Population), T2.District_ID FROM district as T1 JOIN store_district as T2 ON T1.District_ID = T2.District_ID WHERE "City_Area" = 25.0 OR "Store_ID" <= 4 OR Headquartered_City <> "Chiniot City" AND District_name <> "Gujrat District" OR "City_Population" <= 1526168.0 GROUP BY District_name HAVING City_Area <> 12.0 OR City_Population = 2793721.0


Question: SELECT MAX(Employee_ID) FROM employee WHERE "Age" < 43 UNION ALL SELECT MAX(Employee_ID) FROM evaluation WHERE Employee_ID = "7" AND "Bonus" <= 3200.0


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


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


Question: SELECT Player_name, COUNT(Occupation), SUM(Rank), SUM(Player_ID), Residence FROM player WHERE "Player_ID" <= 5 OR Occupation <> "Distribution Centre Associate" AND Residence <> "Oakbank" OR Player_name = "Fiona Shiells" OR Sponsor_name = "Portage—Lisgar" EXCEPT SELECT Player_name, COUNT(Occupation), SUM(Rank), SUM(Player_ID), Residence FROM player WHERE Rank = "3rd"


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


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


Question: SELECT MIN(People_ID) FROM people WHERE Birth_Date <> "April 17, 1987" AND "Height" > 196.0 OR "People_ID" != 7 AND Nationality <> "Russia" OR Name != "Aleksey Ostapenko" EXCEPT SELECT MIN(People_ID) FROM poker_player WHERE "Best_Finish" != 1.0


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


Question: SELECT StuID FROM Member_of_club WHERE "ClubID" != 1 UNION SELECT StuID FROM Student WHERE Sex = "M" AND "StuID" = 1018 AND LName <> "Han" AND "Advisor" <> 2311 AND "Age" <> 19 OR "Major" <> 600 OR Fname = "Eric"


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


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


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


Question: SELECT Continent FROM continents WHERE Continent != "europe" OR "ContId" = 1 UNION ALL SELECT Continent FROM countries WHERE "Continent" != 4 AND CountryName != "mexico"


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


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


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


Question: SELECT School_id FROM budget WHERE "total_budget_percent_budgeted" = 2.0 AND Budget_invested_percent <> "42.9" OR "Budgeted" <= 74849 INTERSECT SELECT School_id FROM endowment WHERE "endowment_id" != 3 OR donator_name <> "Duarte"


Question: SELECT other_details, role_code, employee_name FROM Employees WHERE other_details = "b" OR role_code = "ED" OR employee_name != "Koby" INTERSECT SELECT other_details, role_code, employee_name FROM Employees WHERE other_details != "h" OR employee_name != "Kenyon" AND role_code != "ED"


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


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


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


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


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


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


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


Question: SELECT city FROM Addresses WHERE "address_id" != 6 OR city <> "Port Melyssa" AND state_province_county != "Kentucky" AND country <> "USA" UNION ALL SELECT city FROM Addresses WHERE state_province_county = "Maine" AND line_1_number_building != "354 Frederik Ridge" OR "address_id" > 7 OR city = "Elviebury" OR zip_postcode = "34975" OR country = "USA"


Question: SELECT Store_ID FROM store_district WHERE "Store_ID" < 5 EXCEPT SELECT Store_ID FROM store_district WHERE "District_ID" != 11


Question: SELECT i_id FROM item WHERE title = "apple" OR "i_id" > 2 UNION SELECT i_id FROM review WHERE "a_id" > 5 AND "rank" < 6 OR "rating" != 5 OR "i_id" >= 7 AND "u_id" < 1


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


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


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


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


Question: SELECT first_name, AVG(date_of_birth) FROM Customers WHERE last_name <> "Kohler" AND date_of_birth <> "1998-09-18 04:45:01" AND cell_mobile_phone_number <> "00659133944" OR "customer_id" <> 1 AND "customer_address_id" = 13 AND first_name = "Carole" OR phone_number != "(729)396-4354x3576" UNION ALL SELECT first_name, AVG(date_of_birth) FROM Staff WHERE date_left_staff != "2018-02-26 17:56:31" AND nickname != "nicholaus92" AND "staff_address_id" = 14


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


Question: SELECT MIN(copy_number), SUM(draft_number) FROM Draft_Copies WHERE "draft_number" < 2 EXCEPT SELECT MIN(copy_number), SUM(draft_number) FROM Draft_Copies WHERE "draft_number" <> 9


Question: SELECT aid, distance FROM aircraft WHERE "distance" > 1504 AND "aid" >= 10 OR name <> "Piper Archer III" UNION SELECT aid, distance FROM flight WHERE departure_date = "04/12/2005 07:03" OR destination <> "Honolulu" AND "flno" <> 13 OR "distance" = 1749 OR origin != "Los Angeles" AND "aid" != 9 AND arrival_date <> "04/12/2005 09:40"


Question: SELECT MIN(Rank), Club_ID FROM coach WHERE Gender != "M" AND "Rank" <> 2 AND "Coach_ID" <= 1 AND Coach_name = "James Wong" OR "Club_ID" <> 3 UNION SELECT MIN(Rank), Club_ID FROM coach WHERE "Rank" = 1 OR "Coach_ID" = 4 OR "Club_ID" >= 3 AND Gender <> "M"


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 MIN(Branch_ID) FROM branch WHERE membership_amount <> "56" OR Name <> "Alexandre" OR City = "London" AND "Branch_ID" <> 2 AND Open_year <> "2009" UNION SELECT MIN(Branch_ID) FROM membership_register_branch WHERE "Member_ID" != 6 OR Branch_ID != "1" OR Register_Year <> "2016"


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


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


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


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


Question: SELECT StuID, Position FROM Member_of_club WHERE Position = "CTO" OR "StuID" < 1001 UNION SELECT StuID, Position FROM Member_of_club WHERE Position = "President" OR "StuID" = 1010


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


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


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


Question: SELECT COUNT(feature_type_code) FROM Other_Available_Features WHERE feature_description = "Swimming Pool." AND feature_name <> "BurglarAlarm" OR "feature_id" < 3 OR feature_type_code <> "Amenity" EXCEPT SELECT COUNT(feature_type_code) FROM Ref_Feature_Types WHERE feature_type_name = "Amenity, eg Pool." AND feature_type_code != "Security"


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 MIN(Employee_ID) FROM employee WHERE "Employee_ID" <> 8 AND Name = "Phil Vickery" AND "Age" <= 30 AND City <> "Bristol" EXCEPT SELECT MIN(Employee_ID) FROM evaluation WHERE "Bonus" != 3200.0 AND Employee_ID != "1"


Question: SELECT Name FROM employee WHERE City <> "Bath" AND "Employee_ID" >= 4 AND "Age" <> 28 UNION ALL SELECT Name FROM shop WHERE "Shop_ID" < 6 OR "Number_products" <= 3500 AND Name = "FC Inter" AND Location = "Helsinki" AND Manager_name = "Pekka Lyyski" AND District = "Lahden Stadion"


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


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


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


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


Question: SELECT shipping_agent_code FROM Documents WHERE "document_id" > 24 AND document_status_code <> "working" UNION ALL SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_description = "q" AND shipping_agent_code <> "US"


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


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


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


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


Question: SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Description != "Paper" INTERSECT SELECT Template_Type_Code FROM Templates WHERE Date_Effective_From <> "2005-02-20 00:31:34" AND Date_Effective_To <> "2008-08-08 18:36:43" OR "Version_Number" != 5 OR "Template_ID" >= 14 AND Template_Type_Code = "AD" AND Template_Details <> ""


Question: SELECT AVG(i_id), COUNT(title) FROM item WHERE "i_id" <> 5 OR title != "orange" UNION SELECT AVG(i_id), COUNT(title) FROM item WHERE "i_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 <> 3


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


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


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


Question: SELECT draft_number, copy_number FROM Circulation_History WHERE "document_id" < 20 AND "draft_number" <= 2 UNION SELECT draft_number, copy_number FROM Draft_Copies WHERE "copy_number" > 5


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


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