Question: SELECT MAX(property_type_code) FROM Properties WHERE apt_feature_3 != "None" OR oth_feature_1 = "None" OR date_on_market = "2016-05-06 16:53:39" OR fld_feature_1 <> "None" AND shp_feature_2 != "None" AND property_name != "chelsea" UNION ALL SELECT MAX(property_type_code) FROM Ref_Property_Types WHERE property_type_code = "Shop"


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


Question: SELECT SUM(id) FROM airport WHERE City <> "Anchorage" AND ICAO = "LEBL" UNION ALL SELECT SUM(id) FROM flight WHERE Pilot <> "Thompson" AND "company_id" <> 5 OR "airport_id" = 2 OR "Velocity" > 240.0 OR Date != "May 19, 1964" OR "Altitude" > 3650.0 OR "id" <> 12


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


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


Question: SELECT name FROM aircraft WHERE "aid" != 5 AND "distance" <= 6900 AND name != "Boeing 727" UNION ALL SELECT name FROM employee WHERE "eid" = 159542516 AND name = "Angela Martinez" OR "salary" != 289950


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


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


Question: SELECT MAX(Name) FROM branch WHERE membership_amount <> "11" AND Address_road != "Abbey Rise" OR "Branch_ID" = 7 AND City = "London" OR Open_year != "2013" EXCEPT SELECT MAX(Name) FROM member WHERE Card_Number = "MLB4" OR Name = "Micah Johnson" OR "Member_ID" > 9 AND Hometown != "Red Jacket, West Virginia"


Question: SELECT AVG(Club_name), MAX(Club_ID) FROM club WHERE Club_name <> "Gefle IF" OR "Club_ID" < 1 AND Region <> "UK" UNION SELECT AVG(Club_name), MAX(Club_ID) FROM club WHERE Region <> "Russia" AND "Start_year" < 2001 AND Club_name <> "Djurgårdens IF"


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 <= 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 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 PetID FROM Has_Pet WHERE "StuID" <= 1001 UNION SELECT PetID FROM Pets WHERE "PetID" > 2002 AND "weight" = 12.0 AND PetType = "cat" AND "pet_age" < 2


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


Question: SELECT Type, Area_size, Number_of_product_category FROM store WHERE Type != "City Mall" AND "Store_ID" <= 3 AND "Ranking" < 2 AND "Area_size" <> 28.74 AND "Number_of_product_category" <> 1678.0 OR Store_Name = "Doaktown" INTERSECT SELECT Type, Area_size, Number_of_product_category FROM store WHERE "Number_of_product_category" = 1678.0 OR Type <> "Village Store" OR "Store_ID" >= 4 OR Store_Name <> "Doaktown" AND "Area_size" <= 26.69 AND "Ranking" != 10


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


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


Question: SELECT SUM(Continent) FROM continents WHERE Continent <> "america" EXCEPT SELECT SUM(Continent) FROM countries WHERE "Continent" = 2


Question: SELECT Model FROM car_names WHERE Model != "chevrolet" OR "MakeId" <> 263 OR Make = "dodge d200" INTERSECT SELECT Model FROM model_list WHERE "Maker" <> 16 OR "ModelId" <> 29


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


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


Question: SELECT Nationality FROM people WHERE Nationality != "United States" AND "Age" != 25 OR Graduation_College = "Iowa" UNION SELECT Nationality FROM people WHERE Name <> "Tim Naegeli" OR "People_ID" != 2 AND Nationality <> "United States" AND "Age" = 37


Question: SELECT AVG(title) FROM item WHERE title <> "comb" OR "i_id" != 1 INTERSECT SELECT AVG(title) FROM item WHERE "i_id" > 5


Question: SELECT staff_id FROM Lessons WHERE "price" != 306.0 AND lesson_date = "2018-03-12 00:41:59" AND lesson_status_code <> "Cancelled" OR lesson_time = "9" OR "vehicle_id" > 2 AND "customer_id" <> 8 UNION SELECT staff_id FROM Staff WHERE "staff_id" > 15 AND date_left_staff != "2018-03-04 17:13:53" OR date_joined_staff != "2016-06-06 08:54:28" AND date_of_birth <> "1998-04-27 12:55:05" OR middle_name != "Liam" AND first_name <> "Kaitlin" AND nickname != "nicholaus92" AND last_name <> "Hermann"


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


Question: SELECT Driver_ID FROM driver WHERE Home_city != "East Hartford" AND "Driver_ID" > 3 OR "Age" = 36 OR Name != "Douglas McCrory" OR Party = "Dem" EXCEPT SELECT Driver_ID FROM school_bus WHERE If_full_time = "T"


Question: SELECT Election_ID, Party, District, Delegate, Counties_Represented, Committee FROM election WHERE Delegate != "Guzzone, Guy Guy Guzzone" AND "Election_ID" >= 5 AND "District" > 1 UNION ALL SELECT Election_ID, Party, District, Delegate, Counties_Represented, Committee FROM election WHERE "Election_ID" < 7 AND Delegate != "DeBoy, Steven J. Sr. Steven J. DeBoy, Sr." AND Committee != "Ways and Means" OR Counties_Represented != "13" OR "First_Elected" < 1994.0

Election_ID Party District Delegate Counties_Represented Committee

DeBoy, Steven J. Sr. Steven J. DeBoy, Sr.

Malone, James E. Jr. James E. Malone, Jr.


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


Question: SELECT Shop_ID, Is_full_time, Employee_ID FROM hiring WHERE "Employee_ID" <> 2 AND Is_full_time = "F" AND Start_from = "2008" OR "Shop_ID" < 5 UNION ALL SELECT Shop_ID, Is_full_time, Employee_ID FROM hiring WHERE "Employee_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 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 > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7


Question: SELECT District_ID FROM store_district WHERE "Store_ID" != 2 OR "District_ID" > 4 UNION ALL SELECT District_ID FROM store_district WHERE "District_ID" <= 15


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


Question: SELECT Club_ID FROM club WHERE Region <> "USA" AND "Club_ID" = 6 AND Club_name = "Halmstads BK" AND "Start_year" >= 2005 UNION SELECT Club_ID FROM coach WHERE "Rank" > 5 OR "Club_ID" <> 3 AND "Coach_ID" <= 5


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


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


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


Question: SELECT document_id FROM Documents_Mailed WHERE mailing_date = "1977-04-01 17:03:50" AND "document_id" <> 24 OR "mailed_to_address_id" >= 2 UNION SELECT document_id FROM Draft_Copies WHERE "draft_number" > 20 AND "copy_number" >= 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 aid FROM aircraft WHERE name = "Airbus A320" INTERSECT SELECT aid FROM certificate WHERE "aid" <> 2


Question: SELECT MAX(T1.Club_ID), T2.Gender FROM club as T1 JOIN coach as T2 ON T1.Club_ID = T2.Club_ID WHERE Gender = "M" OR Club_name <> "Gefle IF" OR Coach_name = "James Wong" AND AVG(Start_year) <= 2011 AND Region = "UK" AND MIN(Rank) <= 1 OR Coach_ID >= 4


Question: SELECT MAX(Rank) FROM match_result WHERE "Club_ID" <> 4 AND "Points" <> 139 OR "Gold" = 6 OR "Small_Silver" <> 4 UNION ALL SELECT MAX(Rank) FROM player WHERE Gender = "F" AND Residence != "Oakbank" OR Sponsor_name <> "Saint Boniface" OR Occupation = "Retired" AND Rank <> "1st" OR Player_name != "Pat Martin" AND "Player_ID" < 11


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


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


Question: SELECT document_id FROM Documents WHERE document_type_code <> "Hard Drive" AND other_details <> "h" AND shipping_agent_code <> "US" AND receipt_date <> "2015-04-03 09:36:19" OR "document_id" < 24 OR document_status_code <> "working" OR receipt_number = "34" UNION ALL SELECT document_id FROM Draft_Copies WHERE "copy_number" < 6 AND "draft_number" < 8 AND "document_id" <= 20


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 AVG(aid) FROM aircraft WHERE "distance" <> 1805 AND name = "British Aerospace Jetstream 41" EXCEPT SELECT AVG(aid) FROM certificate WHERE "eid" = 567354612


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 MAX(Writer), AVG(Title) FROM book WHERE Title != "The Black Lamb" EXCEPT SELECT MAX(Writer), AVG(Title) FROM book WHERE "Issues" <> 12.0


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


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


Question: SELECT Year_working FROM employment WHERE "People_ID" < 7 AND "Year_working" = 1 UNION ALL SELECT Year_working FROM employment WHERE "Company_ID" <= 13 OR "Year_working" >= 2 OR "People_ID" > 2


Question: SELECT rank, rating, i_id FROM review WHERE "rank" = 6 UNION SELECT rank, rating, i_id FROM review WHERE "rank" < 7


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


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


Question: SELECT Branch_ID FROM branch WHERE Open_year = "2013" OR Address_road = "Cecilia Avenue" OR membership_amount != "11" OR "Branch_ID" > 1 AND City = "London" EXCEPT SELECT Branch_ID FROM membership_register_branch WHERE Register_Year = "2016" AND Branch_ID = "1"


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


Question: SELECT County_Id FROM county WHERE County_name = "Manning" NOT IN (SELECT County_Id FROM county WHERE "Population" < 21000.0 AND Zip_code = "D21")


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


Question: SELECT Description, Total_disk_area, Aircraft_ID, Max_disk_Loading FROM aircraft WHERE "Aircraft_ID" <= 5 AND Aircraft = "Robinson R-22" OR Description != "Turboshaft utility helicopter" UNION SELECT Description, Total_disk_area, Aircraft_ID, Max_disk_Loading FROM aircraft WHERE Description != "Turboshaft utility helicopter" OR "Aircraft_ID" > 5 AND Aircraft = "Bell 206B3 JetRanger" AND Max_disk_Loading != "14.5 lb/ft² (71 kg/m²)" AND Total_disk_area <> "8,495 ft² (789 m²)" OR Max_Gross_Weight != "1,370 lb (635 kg)"

Heavy-lift helicopter
4,900 ft² (460 m²)
5
15 lb/ft² (72 kg/m²)

Heavy-lift helicopter
8,495 ft² (789 m²)
4
14.5 lb/ft² (71 kg/m²)

Light utility helicopter
497 ft² (46.2 m²)
1
2.6 lb/ft² (14 kg/m²)

Tandem rotor helicopter
5,655 ft² (526 m²)
3
8.8 lb/ft² (43 kg/m²)

Turboshaft utility helicopter
872 ft² (81.1 m²)
2
3.7 lb/ft² (18 kg/m²)


Question: SELECT T1.Book_ID, T2.Price FROM book as T1 JOIN publication as T2 ON T1.Book_ID == T2.Book_ID GROUP BY Writer HAVING Publisher = "Thomson Reuters"


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


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


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


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


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


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


Question: SELECT document_id, draft_number FROM Circulation_History WHERE "draft_number" < 1 OR "copy_number" = 5 OR "employee_id" >= 2 OR "document_id" >= 2 UNION ALL SELECT document_id, draft_number FROM Document_Drafts WHERE "draft_number" < 9 AND draft_details <> "r"


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


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


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


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


Question: SELECT MIN(first_name), SUM(date_of_birth) FROM Customers WHERE "customer_id" <> 15 OR last_name != "Terry" AND "amount_outstanding" = 2099.0 OR date_became_customer != "2017-10-05 14:15:46" AND email_address = "kitty.hand@example.net" OR date_of_birth != "1991-02-10 00:42:17" UNION SELECT MIN(first_name), SUM(date_of_birth) FROM Staff WHERE date_left_staff <> "2018-03-08 04:23:14" AND "staff_address_id" >= 7 OR nickname = "ledner.jamie" AND first_name <> "Eulalia" OR date_of_birth != "2000-06-13 18:09:11"


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 City FROM employee WHERE Name <> "Andrew Sheridan" AND "Age" != 23 OR City = "Bristol" AND "Employee_ID" > 2 INTERSECT SELECT City FROM employee WHERE City = "Bristol" AND "Age" = 30


Question: SELECT role_description FROM Roles WHERE role_description != "Photo" OR role_code = "PR" UNION SELECT role_description FROM Roles WHERE role_description <> "Editor"


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(City) FROM employee WHERE City = "Wasps" UNION ALL SELECT MIN(City) FROM employee WHERE "Employee_ID" != 10 OR City != "Bath" OR Name != "Matt Stevens"


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


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


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


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


Question: SELECT role_code FROM Employees WHERE other_details = "v" OR "employee_id" >= 2 INTERSECT SELECT role_code FROM Roles WHERE role_description != "Photo"


Question: SELECT StuID FROM Member_of_club WHERE "ClubID" > 1 AND "StuID" < 1008 OR Position = "Vice-President" INTERSECT SELECT StuID FROM Student WHERE "Age" != 21 OR Fname = "Bruce"


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 document_id FROM Documents_Mailed WHERE "document_id" = 2 OR "mailed_to_address_id" != 0 OR mailing_date = "2013-01-27 03:29:31" EXCEPT SELECT document_id FROM Draft_Copies WHERE "copy_number" < 5 OR "document_id" >= 12


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


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


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


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


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


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


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


Question: SELECT other_details FROM Documents WHERE "document_id" != 24 UNION ALL SELECT other_details FROM Employees WHERE other_details != "f" AND employee_name <> "Jordyn"


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


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


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


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


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


Question: SELECT Year, Invested FROM budget WHERE "total_budget_percent_budgeted" > 1.3 UNION ALL SELECT Year, Invested FROM budget WHERE "total_budget_percent_budgeted" = 2.0 AND "School_id" != 2 AND "Budgeted" != 61283 AND "total_budget_percent_invested" = 2.0 OR "Invested" >= 8335 AND "Year" <= 2005 OR Budget_invested_percent <> "159.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 != 7


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


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


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


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


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


Question: SELECT Member_ID FROM member WHERE Card_Number != "RT91" OR Hometown <> "Collierville, Tennessee" AND Name <> "Matt Lentz" AND "Member_ID" <= 4 EXCEPT SELECT Member_ID FROM membership_register_branch WHERE Register_Year = "2017"


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


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


Question: SELECT AVG(Address_road), MAX(Open_year), Name, AVG(Branch_ID), AVG(City) FROM branch WHERE "Branch_ID" != 7 OR membership_amount != "91" AND Address_road != "Oaks Crescent" AND Open_year = "2001" AND Name != "Zytogorski" AND City = "London" EXCEPT SELECT AVG(Address_road), MAX(Open_year), Name, AVG(Branch_ID), AVG(City) FROM branch WHERE Address_road <> "Concord Road" AND Open_year <> "2001" OR City = "Oxford"


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 Allergy FROM Allergy_Type WHERE Allergy = "Tree Pollen" OR AllergyType <> "animal" EXCEPT SELECT Allergy FROM Has_Allergy WHERE Allergy = "Tree Pollen" OR "StuID" != 1031


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


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


Question: SELECT AVG(employee_id), role_code, employee_name FROM Employees WHERE other_details = "u" UNION SELECT AVG(employee_id), role_code, employee_name FROM Employees WHERE "employee_id" <= 1 OR employee_name != "Kenyon" AND other_details = "u"


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


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


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


Question: SELECT MAX(temporary_acting) FROM management WHERE "department_ID" != 15 OR "head_ID" >= 10 OR temporary_acting = "No" UNION SELECT MAX(temporary_acting) FROM management WHERE "department_ID" = 2 AND temporary_acting != "Yes"


Question: SELECT feature_id FROM Other_Available_Features WHERE "feature_id" < 2 AND feature_description <> "Swimming Pool." UNION SELECT feature_id FROM Other_Property_Features WHERE "property_id" < 13 AND "feature_id" < 3 AND property_feature_description = "ad"


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 <> 7 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_Code = "PPT" AND Template_Type_Description = "Paper" UNION SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code = "PP" AND Template_Type_Description <> "CV"


Question: SELECT Store_ID FROM store_district WHERE "Store_ID" != 2 INTERSECT SELECT Store_ID FROM store_product WHERE "Store_ID" >= 2 OR "Product_ID" > 1


Question: SELECT T1.Aircraft_Movements, T2.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 >= 10


Question: SELECT T1.ClubID, T2.ClubID FROM Club as T1 JOIN Member_of_club as T2 ON T1.ClubID == T2.ClubID GROUP BY ClubLocation HAVING ClubLocation = "AKW"


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


Question: SELECT document_status_code FROM Documents WHERE document_type_code != "Paper" AND receipt_date != "2005-09-30 00:10:02" UNION ALL SELECT document_status_code FROM Ref_Document_Status WHERE document_status_code != "overdue" OR document_status_description = "currently working on"


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


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


Question: SELECT document_id FROM Document_Drafts WHERE "draft_number" > 4 AND "document_id" >= 7 AND draft_details != "x" INTERSECT SELECT document_id FROM Documents_Mailed WHERE mailing_date <> "1977-04-01 17:03:50" OR "mailed_to_address_id" <= 4 AND "document_id" = 14


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


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


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


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


Question: SELECT Years_Working FROM school_bus WHERE "Driver_ID" <> 7 OR If_full_time = "T" OR "Years_Working" > 3 UNION SELECT Years_Working FROM school_bus WHERE If_full_time <> "T"


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


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


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


Question: SELECT T1.Aircraft_ID, AVG(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 != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9


Question: SELECT MAX(u_id) FROM review WHERE "rating" = 7 AND "a_id" <> 5 AND "i_id" >= 7 UNION SELECT MAX(u_id) FROM useracct WHERE "u_id" >= 3 AND name != "Emily"


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 MAX(Aircraft_ID), COUNT(Aircraft), Description, COUNT(Max_disk_Loading), COUNT(Total_disk_area) FROM aircraft WHERE Total_disk_area = "872 ft² (81.1 m²)" OR Max_Gross_Weight = "73,500 lb (33,300 kg)" OR Max_disk_Loading = "14.5 lb/ft² (71 kg/m²)" GROUP BY Description HAVING COUNT(Aircraft) < 2 INTERSECT SELECT MAX(Aircraft_ID), COUNT(Aircraft), Description, COUNT(Max_disk_Loading), COUNT(Total_disk_area) FROM aircraft WHERE Aircraft <> "Robinson R-22" GROUP BY Description HAVING COUNT(Max_disk_Loading) <> 1 OR COUNT(Total_disk_area) >= 1 AND COUNT(Aircraft) = 1 AND MAX(Aircraft_ID) < 3


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


Question: SELECT Book_ID, Publisher FROM publication WHERE Publisher <> "Wiley" OR "Book_ID" != 1 AND "Publication_ID" != 5 AND "Price" != 15000000.0 AND Publication_Date = "June 2006" EXCEPT SELECT Book_ID, Publisher FROM publication WHERE "Publication_ID" = 1 OR "Price" = 4100000.0


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


Question: SELECT document_type_code FROM Ref_Document_Types WHERE document_type_code = "Hard Drive" OR document_type_description != "b" INTERSECT SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description <> "b"


Question: SELECT Member_ID FROM member WHERE Name = "Matt Lentz" OR Card_Number != "LCB7" AND "Level" >= 6 OR Hometown = "Fort Campbell, Kentucky" OR "Member_ID" < 9 UNION SELECT Member_ID FROM member WHERE Name != "Matt Lentz" AND "Member_ID" = 4 AND Hometown = "Red Jacket, West Virginia" AND Card_Number <> "RT91"


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


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 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 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 RoomId, bedType, roomName FROM Rooms WHERE decor = "modern" AND RoomId <> "MWC" AND "maxOccupancy" <= 2 AND roomName = "Thrift and accolade" OR "beds" <> 1 UNION SELECT RoomId, bedType, roomName FROM Rooms WHERE "basePrice" >= 175


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


Question: SELECT customer_id FROM Customers WHERE "customer_id" <> 10 AND phone_number = "753.921.0871" INTERSECT SELECT customer_id FROM Lessons WHERE lesson_time = "9" OR "price" <> 340.0 OR "customer_id" > 8 OR "lesson_id" = 4 OR lesson_date != "2018-03-04 06:55:46" OR lesson_status_code <> "Completed"


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


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


Question: SELECT document_id FROM Document_Drafts WHERE "document_id" >= 1 INTERSECT SELECT document_id FROM Document_Drafts WHERE "draft_number" < 2 OR draft_details != "v" AND "document_id" != 7


Question: SELECT document_id, shipping_agent_code, other_details, receipt_number, receipt_date, document_type_code, document_status_code FROM Documents WHERE receipt_date <> "1976-09-15 19:24:17" AND "document_id" <= 4 AND document_status_code != "working" AND document_type_code != "Hard Drive" OR shipping_agent_code != "FE" OR other_details <> "x" UNION ALL SELECT document_id, shipping_agent_code, other_details, receipt_number, receipt_date, document_type_code, document_status_code FROM Documents WHERE document_status_code != "overdue" AND receipt_date != "2008-04-21 20:42:25" AND document_type_code <> "CD" AND shipping_agent_code = "UP" OR "document_id" = 4


Question: SELECT AVG(PetID), MIN(StuID) FROM Has_Pet WHERE "PetID" >= 2003 UNION ALL SELECT AVG(PetID), MIN(StuID) FROM Has_Pet WHERE "StuID" < 1001


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


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


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


Question: SELECT Name FROM branch WHERE Open_year = "2009" OR City != "London" UNION ALL SELECT Name FROM member WHERE "Member_ID" != 7 AND Hometown != "Louisville, Kentucky" OR Name != "Ventrell Jenkins" AND Card_Number <> "MLB4" AND "Level" <= 4


Question: SELECT id FROM albums WHERE "id" > 46 AND "artist_id" <= 90 AND title != "A Real Dead One" UNION SELECT id FROM playlists WHERE "id" >= 2 OR name <> "Classical 101 - Deep Cuts"


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


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


Question: SELECT MIN(vehicle_id) FROM Lessons WHERE "lesson_id" = 3 UNION ALL SELECT MIN(vehicle_id) FROM Vehicles WHERE vehicle_details = "Truck"


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 Shop_ID FROM hiring WHERE "Employee_ID" = 6 OR Is_full_time != "T" AND Start_from != "2012" AND "Shop_ID" < 5 UNION ALL SELECT Shop_ID FROM shop WHERE Name <> "KuPS" AND District <> "Finnair Stadium" AND Manager_name = "Kai Nyyssönen" AND "Number_products" <> 3516 OR Location != "Espoo"


Question: SELECT i_id FROM item WHERE title != "cup" OR "i_id" = 3 INTERSECT SELECT i_id FROM review WHERE "rank" >= 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 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 Branch_ID FROM branch WHERE membership_amount = "1418" OR City = "London" AND Address_road = "Oaks Crescent" OR Name = "Zytogorski" OR Open_year = "2009" AND "Branch_ID" <= 3 EXCEPT SELECT Branch_ID FROM membership_register_branch WHERE Register_Year = "2016" AND "Member_ID" >= 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 = 4


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


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


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


Question: SELECT name FROM aircraft WHERE "distance" <> 3383 UNION SELECT name FROM employee WHERE "eid" <= 574489456


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


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


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


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 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 AVG(document_id) FROM Documents WHERE shipping_agent_code <> "FE" OR receipt_date = "1973-11-05 21:48:53" OR document_status_code <> "done" AND document_type_code != "Paper" OR receipt_number = "189" OR "document_id" != 17 AND other_details = "n" UNION ALL SELECT AVG(document_id) FROM Documents_Mailed WHERE "document_id" < 2 AND "mailed_to_address_id" > 7 OR mailing_date <> "1999-05-22 23:21:07"


Question: SELECT vehicle_details FROM Vehicles WHERE vehicle_details = "Car" AND "vehicle_id" != 3 UNION ALL SELECT vehicle_details FROM Vehicles WHERE "vehicle_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 <> 1


Question: SELECT document_id, draft_number FROM Document_Drafts WHERE draft_details <> "x" UNION ALL SELECT document_id, draft_number FROM Document_Drafts WHERE "draft_number" < 2


Question: SELECT vehicle_id FROM Lessons WHERE "customer_id" != 13 AND "lesson_id" = 6 OR "vehicle_id" != 2 OR "staff_id" = 1 AND lesson_status_code = "Completed" OR "price" = 295.0 OR lesson_date = "2018-03-07 16:12:36" OR lesson_time <> "5" INTERSECT SELECT vehicle_id FROM Vehicles WHERE vehicle_details <> "Truck"


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


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


Question: SELECT Party FROM election WHERE Counties_Represented <> "13" OR "District" > 3 AND Delegate != "Guzzone, Guy Guy Guzzone" OR Committee <> "Ways and Means" OR "Party" <= 2 EXCEPT SELECT Party FROM party WHERE "Year" >= 1998.0 AND US_Senate <> "Charles Schumer"


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


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


Question: SELECT Headquarters, MIN(Assets_in_Billion), Profits_in_Billion, SUM(Name), MAX(Industry) FROM company WHERE Name <> "Wells Fargo" AND Headquarters <> "China" UNION ALL SELECT Headquarters, MIN(Assets_in_Billion), Profits_in_Billion, SUM(Name), MAX(Industry) FROM company WHERE Headquarters <> "China" AND "Sales_in_Billion" <> 110.8 OR Industry = "Oil and gas" AND "Profits_in_Billion" < 41.1 AND Name <> "China Construction Bank" AND "Assets_in_Billion" = 1873.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 > 4


Question: SELECT MIN(Start_year), COUNT(Region), Club_name FROM club WHERE Club_name <> "BK Häcken" OR "Club_ID" <> 1 AND "Start_year" <> 2009 OR Region != "USA" UNION ALL SELECT MIN(Start_year), COUNT(Region), Club_name FROM club WHERE Club_name = "Halmstads BK" OR "Start_year" <= 2011


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


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


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


Question: SELECT Velocity, SUM(company_id) FROM flight WHERE "Velocity" <> 240.0 OR Date = "March 1, 1963" AND "Altitude" <> 0.0 OR "company_id" > 4 AND "airport_id" > 9 AND Vehicle_Flight_number != "M2-F1 #0" AND Pilot <> "Thompson" UNION ALL SELECT Velocity, SUM(company_id) FROM flight WHERE Vehicle_Flight_number != "M2-F1 #73" AND "Altitude" >= 3650.0 AND "company_id" <> 6 OR Date != "August 16, 1963" OR Pilot != "Peterson" OR "id" < 6


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 <= 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 != 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 = 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 > 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 SUM(id) FROM artists WHERE name = "Aerosmith & Sierra Leone's Refugee Allstars" EXCEPT SELECT SUM(id) FROM employees WHERE "id" <= 8 OR fax = "+1 (403) 456-8485" AND last_name <> "Adams" OR first_name <> "Jane" AND postal_code != "T3B 0C5" AND email != "andrew@chinookcorp.com" OR state != "AB" AND "reports_to" > 6.0 OR phone != "+1 (403) 262-3443" AND title = "IT Staff" AND city <> "Lethbridge" OR address = "1111 6 Ave SW" AND country = "Canada" AND birth_date = "1947-09-19 00:00:00"


Question: SELECT Rank FROM match_result WHERE "Gold" > 12 OR "Big_Silver" = 7 UNION ALL SELECT Rank FROM player WHERE Gender = "F" AND Player_name <> "Ross Eadie"


Question: SELECT Final_Table_Made, Earnings, Best_Finish, AVG(Money_Rank), Poker_Player_ID FROM poker_player WHERE "Earnings" <> 189233.0 AND "Money_Rank" < 166.0 AND "Poker_Player_ID" <> 3 EXCEPT SELECT Final_Table_Made, Earnings, Best_Finish, AVG(Money_Rank), Poker_Player_ID FROM poker_player WHERE "People_ID" >= 2 OR "Best_Finish" > 3.0 AND "Earnings" < 104871.0 OR "Final_Table_Made" <= 42.0 OR "Poker_Player_ID" < 5


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


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


Question: SELECT id FROM albums WHERE "id" < 142 UNION ALL SELECT id FROM playlists WHERE name = "Heavy Metal Classic"


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


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


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


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


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


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


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


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


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


Question: SELECT eid FROM certificate WHERE "eid" != 269734834 UNION ALL SELECT eid FROM employee WHERE name != "Robert Brown"


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


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


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


Question: SELECT School_id FROM budget WHERE "Budgeted" < 6803 AND "Year" > 1999 OR "Invested" = 146102 OR Budget_invested_percent <> "159.3" AND "School_id" > 2 UNION ALL SELECT School_id FROM endowment WHERE "amount" != 9.05 OR "School_id" >= 8 OR donator_name = "La Vega" OR "endowment_id" != 4


Question: SELECT COUNT(Store_ID), SUM(District_ID) FROM store_district WHERE "Store_ID" != 2 OR "District_ID" = 3 UNION SELECT COUNT(Store_ID), SUM(District_ID) FROM store_district WHERE "Store_ID" > 2


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


Question: SELECT Votes, Occupation, Gender, Rank, Player_name FROM player WHERE "Votes" <= 8734 OR "Player_ID" < 12 AND Occupation <> "Product Consultant - MLCC" UNION ALL SELECT Votes, Occupation, Gender, Rank, Player_name FROM player WHERE Residence = "Selkirk" OR Sponsor_name != "Dauphin—Swan River—Marquette" OR Player_name = "Patricia Cordner" OR "Votes" > 14097 AND Occupation != "Retired"

Votes Occupation Gender Rank Player_name


Question: SELECT MAX(Book_ID) FROM book WHERE Writer = "Dave Gibbons" AND "Book_ID" != 7 AND "Issues" > 12.0 AND Title != "Cyberella" UNION SELECT MAX(Book_ID) FROM publication WHERE "Publication_ID" = 1 OR "Book_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 != 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4


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


Question: SELECT StuID FROM Has_Pet WHERE "StuID" != 1001 OR "PetID" <= 2002 UNION ALL SELECT StuID FROM Student WHERE city_code != "HKG" OR Sex <> "M" OR Fname != "Ian" OR "Age" <= 20 OR LName != "Andreou" AND "Major" > 520 AND "StuID" > 1014 AND "Advisor" < 8423


Question: SELECT document_id, draft_number FROM Circulation_History WHERE "copy_number" >= 10 OR "document_id" < 2 UNION ALL SELECT document_id, draft_number FROM Document_Drafts WHERE draft_details != "b" AND "document_id" >= 7


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


Question: SELECT property_feature_description FROM Other_Property_Features WHERE "property_id" != 6 OR "feature_id" <= 2 OR property_feature_description = "illo" UNION ALL SELECT property_feature_description FROM Other_Property_Features WHERE property_feature_description = "modi" OR "property_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 != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10


Question: SELECT Employee_ID FROM employee WHERE "Age" <= 29 AND City = "Bath" OR Name != "Andrew Sheridan" UNION SELECT Employee_ID FROM evaluation WHERE Year_awarded <> "2011" OR Employee_ID != "7" OR "Bonus" < 4000.0


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


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


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


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


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


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


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


Question: SELECT SUM(eid) FROM certificate WHERE "aid" != 14 EXCEPT SELECT SUM(eid) FROM employee WHERE "salary" < 43723 AND "eid" >= 574489457 OR name = "Dorthy Lewis"


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


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


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


Question: SELECT property_type_code, property_type_description FROM Ref_Property_Types WHERE property_type_code != "Shop" UNION SELECT property_type_code, property_type_description FROM Ref_Property_Types WHERE property_type_code <> "Apartment"


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 Year_working FROM employment WHERE "Company_ID" < 13 UNION ALL SELECT Year_working FROM employment WHERE "People_ID" = 1 AND "Year_working" >= 2


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


Question: SELECT AVG(feature_type_code), SUM(feature_id), MIN(feature_name) FROM Other_Available_Features WHERE feature_name = "AirCon" AND "feature_id" = 3 AND feature_description <> "Burglar Alarm" EXCEPT SELECT AVG(feature_type_code), SUM(feature_id), MIN(feature_name) FROM Other_Available_Features WHERE feature_type_code != "Amenity"


Question: SELECT StuID, PetID FROM Has_Pet WHERE "StuID" <= 1001 UNION SELECT StuID, PetID FROM Has_Pet WHERE "StuID" <= 1002


Question: SELECT Zip_code, Population FROM county WHERE County_name != "Baltimore County" AND Zip_code != "D08" AND "Population" <= 79000.0 AND "County_Id" = 5 UNION ALL SELECT Zip_code, Population FROM county WHERE Zip_code != "D09" AND "County_Id" < 3


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


Question: SELECT 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 role_code FROM Employees WHERE other_details <> "b" OR "employee_id" >= 3 AND employee_name = "Koby" AND role_code != "MG" INTERSECT SELECT role_code FROM Roles WHERE role_description = "Editor" OR role_code = "PR"


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 shipping_agent_code FROM Documents WHERE other_details <> "q" AND shipping_agent_code = "FE" AND receipt_number != "79" AND receipt_date != "2015-04-03 09:36:19" UNION SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_description != "q"


Question: SELECT email_address FROM Customers WHERE date_of_birth = "1993-02-07 05:40:26" OR customer_status_code <> "Bad Customer" OR "amount_outstanding" <= 9447.0 AND last_name <> "Mertz" OR "customer_id" = 15 AND cell_mobile_phone_number <> "1-401-108-8016x078" AND phone_number <> "374-483-2758x85087" UNION ALL SELECT email_address FROM Customers WHERE phone_number <> "(729)396-4354x3576" AND email_address <> "afranecki@example.com" OR "customer_address_id" > 10 AND customer_status_code <> "Bad Customer" OR date_of_birth = "1996-08-30 06:17:50" AND date_became_customer != "2017-10-05 14:15:46" OR last_name = "Tromp" OR first_name = "Omer" AND "customer_id" <> 11 AND cell_mobile_phone_number <> "1-197-686-2849x8761" AND "amount_outstanding" <> 7256.0


Question: SELECT COUNT(Book_ID) FROM publication WHERE "Book_ID" >= 1 OR Publisher <> "Thomson Reuters" OR "Publication_ID" != 4 OR Publication_Date != "June 2006" UNION SELECT COUNT(Book_ID) FROM publication WHERE "Book_ID" > 5 OR Publisher != "Wiley" OR Publication_Date <> "August 2008" AND "Publication_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 != 4


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


Question: SELECT Book_ID FROM book WHERE "Issues" = 4.0 UNION ALL SELECT Book_ID FROM publication WHERE "Book_ID" <> 4 AND "Publication_ID" < 2 AND Publication_Date <> "March 2008"


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


Question: SELECT StuID FROM Has_Allergy WHERE Allergy = "Grass Pollen" AND "StuID" >= 1016 INTERSECT SELECT StuID FROM Student WHERE Fname != "Dinesh" AND "Age" != 19 OR Sex <> "M"


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


Question: SELECT Shop_ID FROM shop WHERE "Number_products" = 3516 UNION ALL SELECT Shop_ID FROM shop WHERE Location = "Valkeakoski" OR District != "Finnair Stadium"


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 last_name, first_name, date_of_birth FROM Customers WHERE "customer_address_id" >= 1 AND "amount_outstanding" <> 2255.0 OR cell_mobile_phone_number <> "739-333-6966x187" OR date_of_birth != "1993-02-07 05:40:26" OR customer_status_code != "Bad Customer" UNION SELECT last_name, first_name, date_of_birth FROM Staff WHERE "staff_id" > 14 AND date_left_staff != "2018-03-08 04:23:14" AND middle_name = "Clarabelle"


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 Id FROM car_makers WHERE Country = "3" OR FullName <> "Citroen" AND Maker <> "chrysler" UNION ALL SELECT Id FROM cars_data WHERE "Accelerate" > 16.8 OR Horsepower != "90" AND "Id" != 238 OR "Cylinders" > 4 AND MPG = "18" AND "Weight" != 2795 OR "Year" != 1982 OR "Edispl" >= 304.0


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


Question: SELECT SUM(target_u_id), source_u_id FROM trust WHERE "trust" != 10 EXCEPT SELECT SUM(target_u_id), source_u_id FROM trust WHERE "target_u_id" >= 2 AND "trust" < 3 AND "source_u_id" < 7


Question: SELECT Template_ID, MAX(Document_ID), COUNT(Other_Details) FROM Documents WHERE Other_Details <> "None" AND "Template_ID" = 25 OR Document_Name = "Robbin CV" AND "Document_ID" <> 80 UNION SELECT Template_ID, MAX(Document_ID), COUNT(Other_Details) FROM Documents WHERE Document_Description != "n" OR Other_Details <> "None" AND "Document_ID" = 80 OR "Template_ID" >= 14


Question: SELECT School_id FROM School WHERE "Enrollment" != 620 UNION SELECT School_id FROM endowment WHERE "endowment_id" != 7 AND "School_id" <> 8 OR "amount" > 8.53


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


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


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


Question: SELECT distance, MAX(aid) FROM aircraft WHERE "distance" > 8430 OR "aid" != 14 UNION ALL SELECT distance, MAX(aid) FROM flight WHERE arrival_date != "04/12/2005 11:10"


Question: SELECT Publication_ID, Price, Book_ID, Publisher FROM publication WHERE Publication_Date != "March 2007" AND "Price" >= 2000000.0 OR "Book_ID" < 3 UNION SELECT Publication_ID, Price, Book_ID, Publisher FROM publication WHERE "Book_ID" = 4 AND Publisher <> "Bertelsmann" AND "Publication_ID" < 5 AND "Price" = 2000000.0


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


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


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


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


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


Question: SELECT MIN(Occupation), MIN(Residence), Player_name, MAX(Votes), Player_ID, MAX(Rank) FROM player WHERE Gender != "M" AND "Votes" = 4673 AND "Player_ID" <> 9 AND Player_name = "Fiona Shiells" AND Occupation = "Retired" EXCEPT SELECT MIN(Occupation), MIN(Residence), Player_name, MAX(Votes), Player_ID, MAX(Rank) FROM player WHERE Gender = "F" AND Rank != "3rd" OR "Votes" <= 5502 OR Sponsor_name != "Kildonan—St. Paul" OR Residence <> "Birtle" OR Player_name != "Jim Maloway" AND "Player_ID" <> 5 OR Occupation != "Small Businessman"

MIN(Occupation) MIN(Residence) Player_name MAX(Votes) Player_ID MAX(Rank)


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 MAX(People_ID), MIN(Graduation_College), AVG(Nationality), COUNT(Age), Name FROM people WHERE Graduation_College = "Northeastern" UNION SELECT MAX(People_ID), MIN(Graduation_College), AVG(Nationality), COUNT(Age), Name FROM people WHERE "Age" != 25 OR Name != "Jerry Corcoran" AND Nationality <> "United States" OR Graduation_College <> "Northeastern"


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


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


Question: SELECT Member_ID FROM member WHERE "Level" < 6 OR "Member_ID" < 1 UNION SELECT Member_ID FROM purchase WHERE Year = "2017" AND Branch_ID != "1"


Question: SELECT AVG(School_id), amount, AVG(endowment_id), donator_name FROM endowment WHERE "School_id" > 3 OR "amount" >= 9.05 AND donator_name <> "Santo Domingo Este" AND "endowment_id" > 4 UNION SELECT AVG(School_id), amount, AVG(endowment_id), donator_name FROM endowment WHERE "endowment_id" < 2 OR "School_id" = 6


Question: SELECT Rank FROM match_result WHERE "Rank" <= 6 UNION ALL SELECT Rank FROM player WHERE "Votes" < 4673 OR Residence = "Birtle" AND Occupation != "Retired" AND Sponsor_name != "Elmwood—Transcona" OR Rank <> "2nd" AND Gender <> "M" OR "Player_ID" <> 14 OR Player_name = "Matt Schaubroeck"


Question: SELECT id, name, IATA, ICAO, Country FROM airport WHERE name != "El Prat Airport" OR IATA != "BWI" AND City = "Barcelona" OR ICAO <> "EKBI" AND Country <> "Norway" AND "id" = 4 UNION SELECT id, name, IATA, ICAO, Country FROM airport WHERE IATA != "BRU" OR name != "National Airport" OR City <> "Boston" AND "id" >= 3 OR ICAO = "EBBR" OR Country != "Denmark"

3
Ted Stevens Airport
ANC
PANC
United States

4
Baltimore-Washington Airport
BWI
KBWI
United States

8
Logan International Airport
BOS
KBOS
United States


Question: SELECT AVG(Continent) FROM continents WHERE Continent <> "australia" UNION SELECT AVG(Continent) FROM countries WHERE CountryName = "uk"


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


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


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


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


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


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


Question: SELECT Maker FROM car_makers WHERE FullName = "BMW" UNION ALL SELECT Maker FROM model_list WHERE Model != "mercedes-benz" OR "ModelId" != 35 AND "Maker" < 2


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


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


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


Question: SELECT Template_ID FROM Documents WHERE Other_Details <> "None" UNION SELECT Template_ID FROM Templates WHERE "Template_ID" >= 11


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 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 COUNT(School_ID) FROM school WHERE School <> "Columbia University" AND Location != "Honolulu, Hawaii" OR "School_ID" >= 6 OR Type <> "Private" AND Grade <> "4th grade" UNION ALL SELECT COUNT(School_ID) FROM school_bus WHERE If_full_time <> "T"


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


Question: SELECT Date_Effective_From, Date_Effective_To, Template_ID, Template_Details, Template_Type_Code FROM Templates WHERE Template_Type_Code != "PP" AND "Version_Number" <= 5 UNION ALL SELECT Date_Effective_From, Date_Effective_To, Template_ID, Template_Details, Template_Type_Code FROM Templates WHERE Template_Details != "" OR "Template_ID" >= 22 OR Date_Effective_From != "2012-04-05 07:11:42" AND Template_Type_Code <> "AD" OR "Version_Number" <= 9


Question: SELECT Graduation_College, Age, Nationality, People_ID FROM people WHERE "Age" != 37 AND Nationality != "United States" AND Graduation_College <> "Wisconsin–Stevens Point" OR Name <> "Darryl Kennedy" AND "People_ID" <> 6 UNION ALL SELECT Graduation_College, Age, Nationality, People_ID FROM people WHERE "Age" < 37 OR Nationality <> "United States"


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


Question: SELECT Club_ID, Club_name, Start_year FROM club WHERE Region != "USA" OR "Start_year" != 2005 OR Club_name != "Djurgårdens IF" EXCEPT SELECT Club_ID, Club_name, Start_year FROM club WHERE Region = "UK" AND "Start_year" = 2005 OR Club_name = "Djurgårdens IF"


Question: SELECT Employee_ID FROM evaluation WHERE Year_awarded <> "2018" AND "Bonus" != 2900.0 UNION SELECT Employee_ID FROM hiring WHERE "Shop_ID" >= 5 AND Start_from <> "2009"


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


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


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


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


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


Question: SELECT hse_feature_3, MAX(property_id), hse_feature_1, vendor_requested_price, shp_feature_2, MIN(date_on_market) FROM Properties WHERE shp_feature_3 != "None" OR date_on_market <> "1991-06-21 23:52:10" AND date_sold = "1979-05-13 16:58:06" OR shp_feature_2 <> "None" OR apt_feature_3 = "None" OR property_name = "parc coliseum" AND "property_id" = 14 AND other_property_details != "None" OR oth_feature_2 != "None" AND fld_feature_2 != "None" AND hse_feature_1 = "None" AND "vendor_requested_price" < 305.0 OR fld_feature_3 <> "None" AND fld_feature_1 <> "None" AND hse_feature_2 <> "None" OR apt_feature_1 = "qui" UNION ALL SELECT hse_feature_3, MAX(property_id), hse_feature_1, vendor_requested_price, shp_feature_2, MIN(date_on_market) FROM Properties WHERE fld_feature_1 <> "None" AND "agreed_selling_price" <= 0.0 OR "buyer_offered_price" != 296733.0


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 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 Document_ID, Other_Details, Paragraph_Text, Paragraph_ID FROM Paragraphs WHERE "Paragraph_ID" > 1104059 AND Other_Details <> "None" AND Paragraph_Text != "Korea" OR "Document_ID" = 16514113 EXCEPT SELECT Document_ID, Other_Details, Paragraph_Text, Paragraph_ID FROM Paragraphs WHERE Other_Details <> "None"


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 Player_ID FROM player WHERE Residence <> "Winnipeg" OR Occupation <> "Small Businessman" AND "Player_ID" >= 4 AND Sponsor_name <> "Churchill" AND "Votes" < 14355 OR Gender = "M" AND Rank = "3rd" EXCEPT SELECT Player_ID FROM player_coach WHERE "Player_ID" > 6 OR "Coach_ID" = 1 OR "Starting_year" <= 2012


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


Question: SELECT Zip_code, Population FROM county WHERE County_name = "Mansfield" AND "Population" != 79000.0 OR Zip_code <> "D02" AND "County_Id" <= 5 UNION ALL SELECT Zip_code, Population FROM county WHERE "Population" >= 87200.0 AND Zip_code = "D08"


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


Question: SELECT Issues FROM book WHERE "Issues" != 6.0 EXCEPT SELECT Issues FROM book WHERE Title != "Michael Moorcock's Multiverse" AND "Issues" > 4.0 AND "Book_ID" > 5


Question: SELECT AVG(T1.Employee_ID), T2.Employee_ID FROM employee as T1 JOIN evaluation as T2 ON T1.Employee_ID = T2.Employee_ID WHERE Bonus <> 3000.0


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


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


Question: SELECT document_type_code FROM Documents WHERE receipt_number != "37" OR document_status_code <> "working" AND document_type_code = "Paper" OR other_details <> "x" INTERSECT SELECT document_type_code FROM Ref_Document_Types WHERE document_type_code <> "CD" OR document_type_description = "f"


Question: SELECT Rank FROM match_result WHERE "Bronze" <= 8 UNION SELECT Rank FROM player WHERE Residence <> "Brandon" OR Rank <> "1st" AND Occupation = "Product Consultant - MLCC"


Question: SELECT Age, AVG(Home_city), MIN(Party), Name FROM driver WHERE "Age" = 36 AND Name = "Minnie Gonzalez" UNION ALL SELECT Age, AVG(Home_city), MIN(Party), Name FROM driver WHERE Name != "Tim Larson"


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


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


Question: SELECT MAX(id) FROM artists WHERE name = "Felix Schmidt, London Symphony Orchestra & Rafael Frühbeck de Burgos" UNION ALL SELECT MAX(id) FROM employees WHERE "reports_to" <> 6.0 OR country != "Canada" AND birth_date = "1970-05-29 00:00:00" OR title <> "IT Staff" AND fax != "+1 (403) 263-4289" AND phone != "+1 (403) 467-3351" OR last_name <> "Adams" AND first_name <> "Jane" AND state = "AB" AND address = "923 7 ST NW" AND "id" <> 8 AND postal_code != "T2P 2T3" OR city != "Lethbridge" OR email != "laura@chinookcorp.com" OR hire_date <> "2004-03-04 00:00:00"


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


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


Question: SELECT product_id FROM product WHERE "dpi" <> 600.0 OR product != "Xerox Travel Scanner 100" UNION SELECT product_id FROM product WHERE "product_id" >= 1 AND dimensions != "298 x 209 x 99" AND "dpi" > 600.0 AND max_page_size <> "216mm x 356mm" AND product <> "Fujitsu fi-6130 A4 Series Scanner" AND interface = "USB 2.0"


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


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


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


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


Question: SELECT draft_number FROM Document_Drafts WHERE "draft_number" = 0 OR draft_details <> "x" OR "document_id" != 2 UNION SELECT draft_number FROM Draft_Copies WHERE "draft_number" < 1 AND "copy_number" >= 10 AND "document_id" <= 20


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


Question: SELECT SUM(property_type_code) FROM Properties WHERE "vendor_requested_price" <> 78.7208 OR "buyer_offered_price" > 15.17 OR other_property_details = "None" OR oth_feature_2 = "None" OR shp_feature_1 = "None" AND apt_feature_3 = "None" OR apt_feature_1 = "aut" OR apt_feature_2 <> "et" AND fld_feature_3 = "None" OR date_on_market = "1981-08-23 05:40:38" OR shp_feature_3 != "None" OR property_address != "4745 Emerson Stravenue Suite 829 South Garret, IN 16772-5682" OR fld_feature_1 <> "None" AND shp_feature_2 <> "None" AND hse_feature_1 = "None" OR hse_feature_2 != "None" OR "property_id" <> 1 OR "agreed_selling_price" <= 4201.8 OR "room_count" = 7 OR hse_feature_3 = "None" AND property_name != "prism" OR fld_feature_2 = "None" AND property_type_code = "Other" UNION ALL SELECT SUM(property_type_code) FROM Ref_Property_Types WHERE property_type_description <> "Other, to be determined."


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


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


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


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


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 Position, ClubID, StuID FROM Member_of_club WHERE "ClubID" <> 1 AND Position <> "Teaching Coordinator" UNION SELECT Position, ClubID, StuID FROM Member_of_club WHERE Position <> "CTO" OR "ClubID" <> 1


Question: SELECT Age, AVG(Name), MAX(People_ID), Nationality FROM people WHERE Graduation_College = "Wisconsin–Stevens Point" UNION SELECT Age, AVG(Name), MAX(People_ID), Nationality FROM people WHERE "People_ID" < 2 OR Nationality != "United States"

Age AVG(Name) MAX(People_ID) Nationality


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 document_id FROM Document_Drafts WHERE "document_id" <> 10 OR "draft_number" = 4 AND draft_details = "k" INTERSECT SELECT document_id FROM Documents WHERE "document_id" < 15 AND receipt_date != "1983-09-26 09:32:56" AND document_status_code != "overdue" OR shipping_agent_code <> "UP" OR receipt_number != "93" AND other_details <> "b"


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


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


Question: SELECT Book_ID FROM book WHERE Title <> "Michael Moorcock's Multiverse" OR "Book_ID" < 1 AND Writer != "Garth Ennis" OR "Issues" >= 5.0 UNION SELECT Book_ID FROM publication WHERE Publisher = "Springer Nature"


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


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


Question: SELECT document_id FROM Circulation_History WHERE "draft_number" >= 17 OR "copy_number" <> 10 INTERSECT SELECT document_id FROM Documents WHERE document_status_code != "working" AND document_type_code <> "Paper" AND receipt_number = "93" AND "document_id" != 1 OR receipt_date != "1974-05-08 00:00:46"


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 SUM(document_id) FROM Document_Drafts WHERE "draft_number" = 14 AND draft_details != "r" OR "document_id" > 13 UNION SELECT SUM(document_id) FROM Document_Drafts WHERE "draft_number" <= 17 OR draft_details != "e" AND "document_id" > 12


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 Product_ID FROM store_product WHERE "Store_ID" > 3 AND "Product_ID" = 1 EXCEPT SELECT Product_ID FROM store_product WHERE "Product_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 = 1


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


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


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


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


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


Question: SELECT Company_ID FROM company WHERE Headquarters = "China" EXCEPT SELECT Company_ID FROM employment WHERE "Company_ID" < 13


Question: SELECT pages_per_minute_color, max_page_size, product, product_id, dpi FROM product WHERE dimensions <> "300 x 50 x 45" EXCEPT SELECT pages_per_minute_color, max_page_size, product, product_id, dpi FROM product WHERE dimensions <> "303 x 94 x 60" AND "product_id" > 2 AND max_page_size != "216mm x 355mm" OR interface != "USB 2.0"


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


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


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


Question: SELECT People_ID FROM people WHERE "Height" >= 187.0 EXCEPT SELECT People_ID FROM poker_player WHERE "Money_Rank" <= 166.0 OR "Final_Table_Made" <= 19.0 OR "Earnings" <> 189233.0


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


Question: SELECT id FROM artists WHERE name = "João Suplicy" UNION ALL SELECT id FROM employees WHERE city = "Calgary" AND birth_date != "1962-02-18 00:00:00" OR hire_date <> "2003-10-17 00:00:00" OR phone = "+1 (403) 263-4423" OR "id" != 2 AND last_name != "Callahan" AND title = "IT Staff" AND state != "AB" OR email <> "steve@chinookcorp.com"


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


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


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


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


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