Question: SELECT date_sold, property_name, vendor_requested_price, fld_feature_1, apt_feature_3, oth_feature_3, agreed_selling_price, oth_feature_1, apt_feature_1, property_id, fld_feature_3, apt_feature_2, other_property_details, hse_feature_3 FROM Properties WHERE "agreed_selling_price" != 170766.472 AND hse_feature_2 = "None" OR date_on_market = "1981-08-23 05:40:38" AND shp_feature_2 != "None" AND "property_id" <= 6 AND property_name <> "riverside" UNION ALL SELECT date_sold, property_name, vendor_requested_price, fld_feature_1, apt_feature_3, oth_feature_3, agreed_selling_price, oth_feature_1, apt_feature_1, property_id, fld_feature_3, apt_feature_2, other_property_details, hse_feature_3 FROM Properties WHERE apt_feature_2 <> "adipisci" AND other_property_details != "None" OR date_on_market = "1978-05-15 10:53:37" OR oth_feature_2 != "None" AND apt_feature_3 != "None" AND apt_feature_1 = "enim" OR "property_id" <> 3 OR "buyer_offered_price" < 15.17 OR property_name <> "murray hill" OR property_address <> "60845 Else Highway Apt. 826 South Dougfort, CO 43200-4258" OR "room_count" < 9 OR oth_feature_1 != "None" AND fld_feature_1 <> "None" OR fld_feature_3 <> "None" AND shp_feature_2 <> "None" AND hse_feature_2 = "None" OR hse_feature_3 = "None" AND shp_feature_1 = "None" OR hse_feature_1 != "None" OR date_sold <> "1984-02-01 19:54:54" AND property_type_code != "Apartment" OR fld_feature_2 != "None" AND "vendor_requested_price" = 2573.0 OR "agreed_selling_price" > 4201.8


Question: SELECT Template_ID FROM Documents WHERE Document_Description <> "w" AND Other_Details <> "None" OR "Template_ID" > 4 UNION SELECT Template_ID FROM Templates WHERE Template_Details <> "" OR "Version_Number" <= 7 OR Template_Type_Code = "PP" AND "Template_ID" > 8 OR Date_Effective_To <> "1980-05-07 12:15:47"


Question: SELECT Name FROM branch WHERE Open_year <> "2009" OR Name != "Brooke Greville" OR Address_road = "Cecilia Avenue" UNION SELECT Name FROM member WHERE "Member_ID" != 5 AND Hometown != "Fort Campbell, Kentucky"


Question: SELECT Rank FROM match_result WHERE "Small_Silver" >= 6 AND "Club_ID" >= 4 UNION ALL SELECT Rank FROM player WHERE "Player_ID" <> 2 AND Gender = "F" AND Rank = "3rd" OR Sponsor_name <> "Charleswood—St. James—Assiniboia"


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


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


Question: SELECT AVG(District), AVG(Location), AVG(Shop_ID), COUNT(Number_products), Name, MIN(Manager_name) FROM shop WHERE Location != "Turku" OR District = "Tehtaan kenttä" AND "Shop_ID" >= 9 UNION ALL SELECT AVG(District), AVG(Location), AVG(Shop_ID), COUNT(Number_products), Name, MIN(Manager_name) FROM shop WHERE "Shop_ID" > 7 OR Name <> "FC KooTeePee"


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


Question: SELECT MIN(StuID) FROM Has_Pet WHERE "PetID" <> 2001 AND "StuID" != 1001 UNION ALL SELECT MIN(StuID) FROM Student WHERE "Major" < 520 AND "StuID" >= 1024 AND LName = "Kumar" OR Fname != "Jun" OR city_code != "BAL" AND Sex = "M" OR "Age" <> 20


Question: SELECT SUM(CountryId) FROM countries WHERE "CountryId" = 10 AND "Continent" <= 5 AND CountryName <> "sweden" EXCEPT SELECT SUM(CountryId) FROM countries WHERE "CountryId" <= 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 <> 7


Question: SELECT document_type_code FROM Documents WHERE receipt_date != "2017-07-02 17:39:09" AND receipt_number = "83" OR document_type_code != "CD" OR shipping_agent_code != "AL" OR "document_id" > 14 AND other_details != "u" INTERSECT SELECT document_type_code FROM Ref_Document_Types WHERE document_type_code = "CD" OR document_type_description != "b"


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


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


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


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


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


Question: SELECT StuID FROM Has_Pet WHERE "StuID" = 1002 AND "PetID" > 2002 UNION ALL SELECT StuID FROM Student WHERE "Major" < 520


Question: SELECT StuID FROM Has_Allergy WHERE Allergy != "Soy" UNION ALL SELECT StuID FROM Student WHERE "Major" <= 550 OR Fname <> "Sarah" AND "Advisor" <> 8722 AND "StuID" <= 1029 AND Sex = "M" AND LName = "Gompers" OR city_code != "NYC"


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


Question: SELECT aid FROM certificate WHERE "eid" > 573284895 AND "aid" != 4 UNION SELECT aid FROM flight WHERE "price" <> 220.98 OR "flno" != 2 OR origin = "Los Angeles" AND departure_date <> "04/12/2005 05:30" OR arrival_date != "04/12/2005 05:03" OR "aid" = 1 OR destination = "Washington D.C." OR "distance" <= 5478


Question: SELECT SUM(Document_ID), MIN(Other_Details), Document_Description FROM Documents WHERE Document_Description = "w" OR Other_Details = "None" EXCEPT SELECT SUM(Document_ID), MIN(Other_Details), Document_Description FROM Documents WHERE "Template_ID" <> 21 AND Document_Name <> "Understanding DB"


Question: SELECT Store_ID FROM store_district WHERE "District_ID" != 11 AND "Store_ID" != 2 UNION ALL SELECT Store_ID FROM store_district WHERE "Store_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 = 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 != 3


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


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


Question: SELECT Store_ID, Store_Name FROM store WHERE "Store_ID" <= 5 AND "Number_of_product_category" >= 17811.0 OR Store_Name <> "Neguac" UNION SELECT Store_ID, Store_Name FROM store WHERE "Number_of_product_category" <= 793.0 OR "Store_ID" = 2 AND "Area_size" >= 21.73 AND Type = "City Mall" AND "Ranking" >= 9


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


Question: SELECT County_name, Population, County_Id FROM county WHERE "County_Id" = 3 AND "Population" <> 87200.0 OR County_name != "Mansfield" UNION ALL SELECT County_name, Population, County_Id FROM county WHERE "County_Id" != 3 OR Zip_code != "D21"


Question: SELECT Gender, Rank FROM coach WHERE "Rank" = 3 AND Coach_name <> "James Wong" AND "Club_ID" = 3 OR "Coach_ID" != 4 EXCEPT SELECT Gender, Rank FROM player WHERE "Votes" != 14355 OR Residence = "Winnipeg"


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 document_id FROM Documents_Mailed WHERE mailing_date != "1971-11-03 12:32:14" AND "document_id" <= 24 INTERSECT SELECT document_id FROM Draft_Copies WHERE "copy_number" <= 10 AND "document_id" = 2


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


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


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


Question: SELECT beds, bedType, SUM(maxOccupancy) FROM Rooms WHERE decor = "modern" EXCEPT SELECT beds, bedType, SUM(maxOccupancy) FROM Rooms WHERE decor = "traditional" AND "beds" > 2 OR RoomId <> "RND" OR "maxOccupancy" >= 4


Question: SELECT MIN(Title), Issues FROM book WHERE "Book_ID" >= 1 OR "Issues" <> 12.0 OR Writer <> "Christopher Hinz" AND Title <> "Bloody Mary" UNION SELECT MIN(Title), Issues FROM book WHERE Writer != "Garth Ennis" AND "Book_ID" >= 8


Question: SELECT District_ID FROM district WHERE "City_Area" <= 25.0 UNION ALL SELECT District_ID FROM store_district WHERE "Store_ID" <> 5


Question: SELECT document_id FROM Circulation_History WHERE "document_id" = 20 OR "employee_id" != 2 UNION SELECT document_id FROM Documents WHERE document_status_code = "working"


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


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


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


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


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


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


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


Question: SELECT document_id FROM Document_Drafts WHERE "document_id" > 2 AND "draft_number" < 19 OR draft_details != "l" UNION ALL SELECT document_id FROM Documents WHERE other_details = "q" OR "document_id" >= 7 OR document_type_code != "Hard Drive" OR document_status_code = "done"


Question: SELECT COUNT(T1.People_ID), T2.Poker_Player_ID FROM people as T1 JOIN poker_player as T2 ON T1.People_ID = T2.People_ID WHERE Nationality = "Bulgaria" AND Final_Table_Made <> 26.0 AND Best_Finish = 1.0 OR Money_Rank <> 68.0 OR Birth_Date <> "April 17, 1987" AND MAX(Poker_Player_ID) = 1 AND SUM(Height) < 196.0


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


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


Question: SELECT MIN(Employee_ID) FROM employee WHERE "Age" = 36 OR City <> "Bristol" AND Name = "Tim Payne" UNION ALL SELECT MIN(Employee_ID) FROM hiring WHERE "Shop_ID" > 5 OR Start_from != "2012"


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


Question: SELECT customer_id FROM Customer_Payments WHERE "amount_payment" = 4773.16 AND "customer_id" <> 10 UNION SELECT customer_id FROM Customers WHERE date_of_birth != "1998-09-18 04:45:01" OR customer_status_code != "Bad Customer" OR last_name = "Trantow" AND "customer_address_id" < 1 AND email_address = "mayert.judy@example.com" OR "customer_id" >= 2 OR phone_number != "417.136.2900x672" AND date_became_customer = "2016-03-18 06:14:18" OR first_name != "Dianna"


Question: SELECT created, contestant_number, state, phone_number, vote_id FROM VOTES WHERE created <> "2018-03-09 19:03:36" AND "contestant_number" >= 3 OR "vote_id" <= 3 OR state = "NY" OR "phone_number" >= 6209222712 EXCEPT SELECT created, contestant_number, state, phone_number, vote_id FROM VOTES WHERE created = "2018-03-09 19:03:21" AND "phone_number" > 5112677315


Question: SELECT MIN(Aircraft_ID), Description FROM aircraft WHERE Total_disk_area != "4,900 ft² (460 m²)" OR Max_Gross_Weight = "123,500 lb (56,000 kg)" OR Description = "Turboshaft utility helicopter" OR Max_disk_Loading != "8.8 lb/ft² (43 kg/m²)" GROUP BY Description HAVING MIN(Aircraft_ID) >= 4 UNION SELECT MIN(Aircraft_ID), Description FROM aircraft WHERE Total_disk_area <> "4,900 ft² (460 m²)" GROUP BY Description HAVING MIN(Aircraft_ID) <> 1


Question: SELECT City FROM branch WHERE Name != "Brooke Greville" AND Open_year != "2015" OR membership_amount <> "1418" INTERSECT SELECT City FROM branch WHERE "Branch_ID" = 1 OR membership_amount = "1418" OR Name = "Alexandre" OR Open_year <> "2014"


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


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


Question: SELECT Number_products, Shop_ID FROM shop WHERE Location != "Helsinki" OR "Shop_ID" > 7 OR District = "Lahden Stadion" OR "Number_products" != 15000 AND Name <> "FC Honka" AND Manager_name != "Tommi Kautonen" INTERSECT SELECT Number_products, Shop_ID FROM shop WHERE "Number_products" < 10000 AND Name <> "FC Inter" AND Location = "Valkeakoski" OR District <> "Magnum Areena" OR Manager_name <> "Antti Muurinen"


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 SUM(T1.Driver_ID), T2.School_ID FROM driver as T1 JOIN school_bus as T2 ON T1.Driver_ID = T2.Driver_ID WHERE Home_city = "Hartford" OR Name = "Edwin Vargas" OR "School_ID" < 5 AND If_full_time <> "T" OR "Age" < 42 OR "Years_Working" <> 6


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


Question: SELECT COUNT(Template_ID), Date_Effective_From, Template_Type_Code, AVG(Template_Details) FROM Templates WHERE "Version_Number" = 2 AND Date_Effective_To <> "1992-05-02 20:06:11" UNION SELECT COUNT(Template_ID), Date_Effective_From, Template_Type_Code, AVG(Template_Details) FROM Templates WHERE Template_Type_Code = "PP" AND "Template_ID" != 11 OR Date_Effective_To <> "1994-12-07 13:26:23" OR "Version_Number" != 5 AND Date_Effective_From = "2002-08-25 13:26:23" AND Template_Details = ""


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


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


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


Question: SELECT Party FROM election WHERE Delegate <> "Bates, Gail H. Gail H. Bates" OR "First_Elected" <= 2003.0 EXCEPT SELECT Party FROM party WHERE "Party_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 <> 10


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


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


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


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


Question: SELECT MIN(bedType) FROM Rooms WHERE "basePrice" >= 175 UNION ALL SELECT MIN(bedType) FROM Rooms WHERE "beds" < 2 OR roomName <> "Harbinger but bequest" AND decor <> "traditional" AND RoomId = "AOB" AND "basePrice" = 175 OR bedType = "Double"


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 MIN(datetime_payment), amount_payment, payment_method_code, AVG(customer_id) FROM Customer_Payments WHERE datetime_payment != "2018-02-24 10:07:05" UNION ALL SELECT MIN(datetime_payment), amount_payment, payment_method_code, AVG(customer_id) FROM Customer_Payments WHERE "amount_payment" <= 8180.26


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


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


Question: SELECT Big_Silver, Gold, Club_ID, Bronze, Rank, Small_Silver FROM match_result WHERE "Rank" != 1 OR "Small_Silver" = 16 OR "Gold" <> 20 OR "Big_Silver" <= 12 OR "Points" = 139 INTERSECT SELECT Big_Silver, Gold, Club_ID, Bronze, Rank, Small_Silver FROM match_result WHERE "Small_Silver" != 10 AND "Club_ID" > 4 OR "Big_Silver" > 11 AND "Gold" = 13


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


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


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


Question: SELECT contestant_name, contestant_number FROM CONTESTANTS WHERE "contestant_number" <> 6 EXCEPT SELECT contestant_name, contestant_number FROM CONTESTANTS WHERE "contestant_number" > 1 OR contestant_name = "Loraine NygrenTania Mattioli"


Question: SELECT SUM(Driver_ID) FROM driver WHERE "Age" < 42 OR Home_city = "Hartford" AND Name <> "Matthew Ritter" AND "Driver_ID" <> 11 EXCEPT SELECT SUM(Driver_ID) FROM school_bus WHERE "Years_Working" > 2 OR "Driver_ID" <> 9 OR "School_ID" <> 7


Question: SELECT SUM(T1.id), T2.company_id FROM airport as T1 JOIN flight as T2 ON T1.id = T2.id WHERE "Velocity" >= 240.0 GROUP BY Altitude HAVING Pilot <> "Thompson" AND company_id >= 5 AND City <> "Brussels" OR Date <> "August 4, 1966" AND ICAO <> "ENBR" OR Country = "Spain" AND Altitude = 3650.0 OR airport_id <= 2 AND Velocity < 240.0 OR IATA <> "AMS"


Question: SELECT Continent FROM continents WHERE Continent <> "africa" INTERSECT SELECT Continent FROM continents WHERE "ContId" >= 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 > 9


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


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


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


Question: SELECT SUM(Nationality), Birth_Date, MIN(Name) FROM people WHERE "People_ID" != 2 AND Birth_Date <> "May 26, 1986" AND Nationality != "Russia" OR Name = "Yevgeni Sivozhelez" OR "Height" <= 205.0 EXCEPT SELECT SUM(Nationality), Birth_Date, MIN(Name) FROM people WHERE Nationality != "Russia" AND Name = "Semen Poltavskiy" AND "Height" < 194.0 AND "People_ID" > 2


Question: SELECT ICAO, id FROM airport WHERE City = "Baltimore" OR "id" >= 6 OR Country = "United States" AND name = "El Prat Airport" OR ICAO <> "PANC" EXCEPT SELECT ICAO, id FROM airport WHERE ICAO = "EBBR"


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


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


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


Question: SELECT AVG(Profits_in_Billion), Assets_in_Billion, Sales_in_Billion, Company_ID FROM company WHERE "Market_Value_in_Billion" = 202.2 OR Industry = "Oil and gas" OR Name = "HSBC" AND "Profits_in_Billion" = 41.1 AND "Sales_in_Billion" > 102.6 EXCEPT SELECT AVG(Profits_in_Billion), Assets_in_Billion, Sales_in_Billion, Company_ID FROM company WHERE "Profits_in_Billion" <> 14.4 AND Name = "JPMorgan Chase"


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 Grade, School, AVG(Location), Type, School_ID FROM school WHERE Type <> "Private" AND School != "St. Francis Assisi" OR Location = "Honolulu, Hawaii" EXCEPT SELECT Grade, School, AVG(Location), Type, School_ID FROM school WHERE Location = "Los Angeles, California" OR Grade = "5th-12th grade" AND School <> "Columbia University"

Grade School AVG(Location) Type School_ID


Question: SELECT Club_ID FROM club WHERE "Start_year" > 2011 AND "Club_ID" < 5 OR Club_name != "AIK" AND Region = "UK" EXCEPT SELECT Club_ID FROM coach WHERE "Rank" < 2 OR Gender <> "M"


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


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


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


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


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


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


Question: SELECT Player_ID FROM player WHERE Player_name <> "Jim Maloway" INTERSECT SELECT Player_ID FROM player_coach WHERE "Player_ID" > 1 OR "Starting_year" > 2012 OR "Coach_ID" >= 5


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


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


Question: SELECT MIN(contestant_name), COUNT(contestant_number) FROM CONTESTANTS WHERE "contestant_number" <> 8 UNION ALL SELECT MIN(contestant_name), COUNT(contestant_number) FROM CONTESTANTS WHERE contestant_name = "Jessie Eichman" AND "contestant_number" != 11


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


Question: SELECT id FROM airport WHERE Country = "Iceland" OR ICAO != "LEBL" AND name != "El Prat Airport" OR "id" = 9 AND IATA != "BRU" OR City <> "Boston" EXCEPT SELECT id FROM operate_company WHERE name = "Air China"


Question: SELECT Continent FROM continents WHERE Continent <> "asia" AND "ContId" > 4 EXCEPT SELECT Continent FROM countries WHERE "CountryId" <> 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 >= 10


Question: SELECT Template_Type_Code, COUNT(Template_Type_Description) FROM Ref_Template_Types WHERE Template_Type_Code = "AD" OR Template_Type_Description <> "Advertisement" UNION ALL SELECT Template_Type_Code, COUNT(Template_Type_Description) FROM Ref_Template_Types WHERE Template_Type_Code = "PPT"


Question: SELECT School, Location, Grade, School_ID FROM school WHERE Type != "Private" OR Grade <> "Kindergarten" AND School != "Noelani Elementary School" AND Location = "Jakarta, Indonesia" UNION SELECT School, Location, Grade, School_ID FROM school WHERE Location <> "Jakarta, Indonesia" AND School != "St. Francis Assisi" AND Type != "Public"

Columbia University
New York City
Junior–Senior year
6

Harvard Law School
Cambridge, Massachusetts
College
7

Noelani Elementary School
Honolulu, Hawaii
Kindergarten
1

Occidental College
Los Angeles, California
Freshman–Sophomore year
5

Punahou School
Honolulu, Hawaii
5th-12th grade
4

St. Francis Assisi
Jakarta, Indonesia
1st-3rd grade
2

State Elementary School Menteng 01
Jakarta, Indonesia
4th grade
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 < 3


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


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


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


Question: SELECT Model FROM model_list WHERE "ModelId" > 12 OR Model != "buick" OR "Maker" < 5 EXCEPT SELECT Model FROM model_list WHERE "Maker" = 19 AND Model <> "honda"


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


Question: SELECT Store_ID FROM store_district WHERE "Store_ID" < 3 OR "District_ID" = 15 INTERSECT SELECT Store_ID FROM store_district WHERE "District_ID" > 11 OR "Store_ID" < 1


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


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


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


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 ClubID, Position, StuID FROM Member_of_club WHERE Position != "CTO" EXCEPT SELECT ClubID, Position, StuID FROM Member_of_club WHERE "ClubID" = 1 AND Position = "President"


Question: SELECT Ranking, Store_Name FROM store WHERE Type <> "City Mall" OR "Area_size" != 21.73 UNION ALL SELECT Ranking, Store_Name FROM store WHERE "Area_size" >= 26.69 AND "Number_of_product_category" < 17811.0 OR "Store_ID" > 2 OR Type <> "City Mall" AND "Ranking" < 10 AND Store_Name != "Neguac"


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 id FROM airport WHERE IATA != "ANC" AND City != "Boston" AND Country != "Belgium" OR name = "Ted Stevens Airport" AND ICAO != "BIAR" OR "id" >= 1 UNION SELECT id FROM operate_company WHERE "id" < 11


Question: SELECT amount FROM endowment WHERE "endowment_id" <> 8 AND donator_name = "Santiago" OR "School_id" <> 3 OR "amount" = 8.85 UNION SELECT amount FROM endowment WHERE "School_id" <= 3 OR "endowment_id" <> 3


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


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


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


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


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


Question: SELECT id FROM albums WHERE "id" = 121 AND title != "Powerslave" OR "artist_id" != 223 UNION ALL SELECT id FROM media_types WHERE "id" > 1 AND name <> "Purchased AAC audio file"


Question: SELECT contestant_number FROM CONTESTANTS WHERE contestant_name != "Jessie Alloway" AND "contestant_number" != 7 UNION SELECT contestant_number FROM VOTES WHERE created <> "2018-03-09 19:03:40" OR "contestant_number" < 3 OR "vote_id" <= 2


Question: SELECT Club_ID, Start_year FROM club WHERE "Club_ID" <= 1 OR Region = "Korea" OR "Start_year" > 2011 AND Club_name = "Halmstads BK" UNION ALL SELECT Club_ID, Start_year FROM club WHERE "Start_year" <> 2011


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


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


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


Question: SELECT SUM(StuID) FROM Member_of_club WHERE Position != "President" OR "StuID" >= 1007 UNION ALL SELECT SUM(StuID) FROM Student WHERE "Major" != 600 AND Fname != "Paul" OR "Advisor" <= 1148 AND Sex != "M" OR city_code != "PIT"


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


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


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


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


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


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 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 customer_id FROM Customer_Payments WHERE datetime_payment != "2018-03-12 13:31:36" OR "customer_id" != 7 OR payment_method_code != "Direct Debit" OR "amount_payment" > 6782.84 EXCEPT SELECT customer_id FROM Customers WHERE date_of_birth <> "1996-08-30 06:17:50" AND last_name = "Koelpin" AND customer_status_code != "Bad Customer" AND first_name <> "Estelle" AND phone_number != "(662)490-3108" AND "amount_outstanding" <> 9443.0 AND cell_mobile_phone_number = "+45(6)4872981083" OR "customer_id" = 5 OR email_address <> "wehner.harold@example.com"


Question: SELECT MAX(address_details), address_id FROM Addresses WHERE "address_id" >= 9 EXCEPT SELECT MAX(address_details), address_id FROM Addresses WHERE address_details != "MX"


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


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


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


Question: SELECT Party_ID, Party, Comptroller, Lieutenant_Governor, US_Senate FROM party WHERE "Party_ID" > 2 AND Party <> "Democratic" AND "Year" != 2006.0 OR Governor = "Tom Golisano" OR Comptroller <> "Alan Hevesi" AND Attorney_General = "Eliot Spitzer" UNION SELECT Party_ID, Party, Comptroller, Lieutenant_Governor, US_Senate FROM party WHERE Lieutenant_Governor != "David Paterson" OR US_Senate = "Hillary Rodham Clinton" AND Attorney_General <> "Eliot Spitzer" OR Governor <> "Eliot Spitzer" OR Comptroller = "Alan Hevesi" AND Party = "Independence" AND "Party_ID" <> 3

1
Democratic
Carl McCall
Sandra Frankel
Charles Schumer

2
Liberal
Carl McCall
Jonathan Reiter
Charles Schumer

3
Democratic
Alan Hevesi
Dennis Mehiel
(no election)

4
Independence
John Faso
Mary Donohue
(no election)

5
Democratic
Alan Hevesi
David Paterson
Hillary Rodham Clinton

6
Independence
Alan Hevesi
David Paterson
Hillary Rodham Clinton

7
Working Families
Alan Hevesi
David Paterson
Hillary Rodham Clinton


Question: SELECT Model FROM car_names WHERE Make != "fiat x1.9" AND Model <> "plymouth" INTERSECT SELECT Model FROM model_list WHERE "Maker" <> 19 OR Model != "bmw"


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 department_ID, head_ID FROM management WHERE temporary_acting = "Yes" AND "head_ID" > 5 EXCEPT SELECT department_ID, head_ID FROM management WHERE temporary_acting <> "No" AND "head_ID" = 4


Question: SELECT vehicle_details FROM Vehicles WHERE vehicle_details = "Truck" OR "vehicle_id" >= 2 INTERSECT SELECT vehicle_details FROM Vehicles WHERE "vehicle_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 = 9


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


Question: SELECT AVG(PetType), SUM(PetID), AVG(weight) FROM Pets WHERE "PetID" <= 2002 UNION ALL SELECT AVG(PetType), SUM(PetID), AVG(weight) FROM Pets WHERE PetType <> "dog" AND "weight" < 9.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 > 2


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


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


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


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


Question: SELECT T1.Aircraft_ID, MIN(T2.Aircraft_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 <> 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2


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


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


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


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


Question: SELECT distance FROM aircraft WHERE "aid" != 7 OR "distance" != 2128 OR name != "British Aerospace Jetstream 41" NOT IN (SELECT distance FROM aircraft WHERE "aid" < 10 AND "distance" > 1530)


Question: SELECT Year, Invested, Budgeted, total_budget_percent_invested FROM budget WHERE Budget_invested_percent != "71.3" AND "School_id" > 2 AND "total_budget_percent_invested" != 2.2 OR "Budgeted" < 4979 OR "total_budget_percent_budgeted" <= 2.0 INTERSECT SELECT Year, Invested, Budgeted, total_budget_percent_invested FROM budget WHERE "total_budget_percent_invested" > 2.0 AND "total_budget_percent_budgeted" <> 2.4 AND "School_id" >= 2 AND "Invested" <= 8335 OR "Budgeted" != 3666 OR Budget_invested_percent != "127.6" AND "Year" != 2005

Year Invested Budgeted total_budget_percent_invested


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


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


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


Question: SELECT amount_outstanding, email_address, date_became_customer, customer_address_id FROM Customers WHERE last_name != "Ortiz" AND cell_mobile_phone_number != "739-333-6966x187" OR first_name = "Ray" AND phone_number != "+14(5)2351480248" OR date_of_birth != "1993-07-09 11:11:36" AND date_became_customer = "2016-05-11 17:03:48" OR "customer_address_id" != 10 OR "customer_id" < 4 OR customer_status_code = "Bad Customer" INTERSECT SELECT amount_outstanding, email_address, date_became_customer, customer_address_id FROM Customers WHERE date_became_customer = "2016-02-17 08:26:23" AND phone_number != "(297)122-0086" AND "customer_address_id" != 2 OR "amount_outstanding" < 2099.0 AND date_of_birth = "1998-12-15 13:24:40"


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 aid FROM aircraft WHERE "aid" = 10 OR "distance" > 30 INTERSECT SELECT aid FROM certificate WHERE "aid" > 6


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


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


Question: SELECT contestant_number, contestant_name FROM CONTESTANTS WHERE "contestant_number" != 6 UNION ALL SELECT contestant_number, contestant_name FROM CONTESTANTS WHERE "contestant_number" != 4


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


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


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


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


Question: SELECT MIN(Earnings), AVG(Best_Finish), Money_Rank, Poker_Player_ID, MIN(Final_Table_Made) FROM poker_player WHERE "Final_Table_Made" <= 19.0 OR "Earnings" <= 596462.0 OR "Poker_Player_ID" < 4 UNION SELECT MIN(Earnings), AVG(Best_Finish), Money_Rank, Poker_Player_ID, MIN(Final_Table_Made) FROM poker_player WHERE "Final_Table_Made" != 19.0 AND "Earnings" >= 104871.0 AND "People_ID" = 7 AND "Poker_Player_ID" <= 2 OR "Money_Rank" = 166.0 AND "Best_Finish" = 2.0


Question: SELECT Name, Party FROM driver WHERE Party != "Dem" OR Home_city <> "Hartford" INTERSECT SELECT Name, Party FROM driver WHERE Party = "Dem"


Question: SELECT MIN(StuID) FROM Member_of_club WHERE "StuID" <= 1001 OR "ClubID" <= 1 AND Position = "Teaching Coordinator" INTERSECT SELECT MIN(StuID) FROM Student WHERE "Advisor" <> 7792


Question: SELECT id FROM albums WHERE "id" >= 196 AND title <> "Great Opera Choruses" OR "artist_id" >= 148 UNION ALL SELECT id FROM employees WHERE title != "IT Staff" OR last_name = "Adams" OR country != "Canada"


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 PetID FROM Has_Pet WHERE "PetID" != 2003 OR "StuID" <> 1002 IN (SELECT PetID FROM Has_Pet WHERE "StuID" <= 1001 AND "PetID" >= 2001)


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


Question: SELECT Location, School_name, IHSAA_Class FROM School WHERE Location != "Bremen" OR IHSAA_Class <> "A" OR "Enrollment" = 316 OR County = "20 Elkhart" AND School_id != "8" OR IHSAA_Football_Class = "AAA" INTERSECT SELECT Location, School_name, IHSAA_Class FROM School WHERE IHSAA_Class <> "AAA" OR "Enrollment" <= 605 AND School_name != "LaVille"


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


Question: SELECT Max_disk_Loading, MAX(Aircraft_ID), Total_disk_area, Description, COUNT(Max_Gross_Weight) FROM aircraft WHERE Max_disk_Loading <> "14.5 lb/ft² (71 kg/m²)" AND Max_Gross_Weight <> "1,370 lb (635 kg)" AND "Aircraft_ID" <= 2 UNION ALL SELECT Max_disk_Loading, MAX(Aircraft_ID), Total_disk_area, Description, COUNT(Max_Gross_Weight) FROM aircraft WHERE Total_disk_area = "8,495 ft² (789 m²)" AND Max_Gross_Weight = "1,370 lb (635 kg)" AND "Aircraft_ID" <> 3 AND Aircraft = "CH-47D Chinook"


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


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


Question: SELECT COUNT(Birth_Date), COUNT(Nationality), AVG(People_ID), Name FROM people WHERE Birth_Date = "January 22, 1987" GROUP BY Name HAVING AVG(People_ID) = 4.0 UNION SELECT COUNT(Birth_Date), COUNT(Nationality), AVG(People_ID), Name FROM people WHERE Name != "Yevgeni Sivozhelez" AND "Height" >= 207.0 GROUP BY Name HAVING COUNT(Nationality) != 1


Question: SELECT SUM(Allergy) FROM Allergy_Type WHERE Allergy != "Ragweed" UNION SELECT SUM(Allergy) FROM Has_Allergy WHERE Allergy <> "Tree Pollen" OR "StuID" = 1010


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


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


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


Question: SELECT customer_id FROM Customer_Payments WHERE datetime_payment != "2018-02-01 06:15:31" OR "amount_payment" != 1708.18 AND "customer_id" <> 2 UNION ALL SELECT customer_id FROM Customers WHERE cell_mobile_phone_number = "081-097-3684" AND first_name <> "Rylan"


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


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


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


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


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


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


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


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


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


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


Question: SELECT City FROM employee WHERE "Employee_ID" <= 4 OR "Age" <= 43 AND Name = "Tim Payne" UNION ALL SELECT City FROM employee WHERE Name != "Andrew Sheridan"


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 AVG(ModelId), Model FROM model_list WHERE "ModelId" > 12 UNION SELECT AVG(ModelId), Model FROM model_list WHERE Model != "audi" OR "ModelId" >= 35 AND "Maker" >= 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 < 9


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


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


Question: SELECT MAX(AllergyType), Allergy FROM Allergy_Type WHERE AllergyType != "food" OR Allergy <> "Milk" UNION ALL SELECT MAX(AllergyType), Allergy FROM Allergy_Type WHERE AllergyType != "food" AND Allergy = "Grass Pollen"


Question: SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Description <> "Presentation" OR Template_Type_Code != "PP" UNION ALL SELECT Template_Type_Code FROM Templates WHERE Date_Effective_To != "2006-02-06 23:52:04" OR Template_Details <> "" OR Date_Effective_From <> "1975-10-20 02:28:58" AND Template_Type_Code = "BK"


Question: SELECT MAX(feature_id), MAX(property_feature_description), property_id FROM Other_Property_Features WHERE "property_id" != 7 OR property_feature_description = "quo" AND "feature_id" = 3 INTERSECT SELECT MAX(feature_id), MAX(property_feature_description), property_id FROM Other_Property_Features WHERE "property_id" <= 12


Question: SELECT SUM(T1.Employee_ID), T2.Bonus FROM employee as T1 JOIN evaluation as T2 ON T1.Employee_ID = T2.Employee_ID WHERE "Age" <> 28 GROUP BY Name HAVING Year_awarded = "2016" OR Age < 30 OR City <> "Bristol"


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


Question: SELECT Name, AVG(Sales_in_Billion) FROM company WHERE "Profits_in_Billion" != 26.9 OR Industry = "Oil and gas" AND "Company_ID" < 9.0 GROUP BY Name HAVING AVG(Sales_in_Billion) = 82.6 UNION SELECT Name, AVG(Sales_in_Billion) FROM company WHERE "Company_ID" = 6.0 OR Industry != "Automotive" OR "Assets_in_Billion" = 1873.9 OR "Profits_in_Billion" <> 21.5 OR "Sales_in_Billion" >= 82.6 GROUP BY Name HAVING AVG(Sales_in_Billion) < 375.5


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


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


Question: SELECT other_details FROM Documents WHERE shipping_agent_code = "FE" AND document_type_code <> "CD" AND "document_id" > 15 OR document_status_code != "done" AND other_details != "n" AND receipt_date != "2008-04-21 20:42:25" INTERSECT SELECT other_details FROM Employees WHERE role_code != "MG" AND employee_name = "Koby" OR "employee_id" > 1 OR other_details <> "h"


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


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


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


Question: SELECT SUM(role_description) FROM Roles WHERE role_code <> "ED" UNION ALL SELECT SUM(role_description) FROM Roles WHERE role_description <> "Photo"


Question: SELECT phone_number, MAX(contestant_number), created, MIN(state) FROM VOTES WHERE "contestant_number" > 5 OR "vote_id" <> 1 OR state = "NJ " AND "phone_number" < 5112677315 OR created != "2018-03-09 19:03:21" UNION SELECT phone_number, MAX(contestant_number), created, MIN(state) FROM VOTES WHERE "vote_id" >= 3 OR "phone_number" < 7148407040 OR state != "NY"


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


Question: SELECT ClubID, ClubLocation, ClubName FROM Club WHERE ClubLocation <> "AKW" OR ClubName = "Bootup Baltimore" AND "ClubID" != 2 AND ClubDesc = "Refurbish computers; teach kids and adults about computer basics." UNION ALL SELECT ClubID, ClubLocation, ClubName FROM Club WHERE ClubLocation = "HHH"


Question: SELECT MIN(ContId), SUM(Continent) FROM continents WHERE "ContId" < 4 UNION SELECT MIN(ContId), SUM(Continent) FROM continents WHERE "ContId" >= 5 OR Continent <> "asia"


Question: SELECT COUNT(document_id) FROM Document_Drafts WHERE draft_details <> "l" UNION SELECT COUNT(document_id) FROM Documents WHERE document_type_code = "Paper" OR document_status_code <> "working" AND receipt_number <> "83" AND shipping_agent_code <> "US"


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 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 contestant_number, contestant_name FROM CONTESTANTS WHERE "contestant_number" <> 3 AND contestant_name <> "Edwina Burnam" EXCEPT SELECT contestant_number, contestant_name FROM CONTESTANTS WHERE contestant_name <> "Ericka Dieter"


Question: SELECT Member_ID FROM member WHERE "Level" >= 6 AND "Member_ID" <> 7 UNION ALL SELECT Member_ID FROM purchase WHERE "Member_ID" <> 2


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


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


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


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


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


Question: SELECT Id FROM car_makers WHERE FullName = "Volkswagen" AND "Id" = 16 UNION SELECT Id FROM cars_data WHERE "Id" = 46 AND Horsepower <> "180"


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


Question: SELECT SUM(city_code), MIN(Sex), Age, AVG(StuID) FROM Student WHERE "Advisor" >= 1121 OR Sex <> "M" OR Fname != "Linda" OR "Major" = 520 AND LName != "Brown" AND city_code <> "CHI" OR "StuID" > 1006 UNION SELECT SUM(city_code), MIN(Sex), Age, AVG(StuID) FROM Student WHERE "Major" = 600 AND city_code != "PHL" AND LName = "Epp" AND "Advisor" <= 1148 AND "Age" <> 20


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


Question: SELECT Club_ID, Rank, Gold, Small_Silver, Big_Silver FROM match_result WHERE "Small_Silver" > 10 INTERSECT SELECT Club_ID, Rank, Gold, Small_Silver, Big_Silver FROM match_result WHERE "Bronze" = 6 AND "Points" >= 89 AND "Rank" = 1 AND "Club_ID" >= 1 AND "Gold" <> 13 OR "Small_Silver" <> 4


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


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


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


Question: SELECT Branch_ID FROM branch WHERE membership_amount <> "56" OR Open_year = "2009" OR "Branch_ID" = 1 UNION SELECT Branch_ID FROM membership_register_branch WHERE "Member_ID" = 4 OR Branch_ID = "5" AND Register_Year <> "2016"


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 Club_ID, Small_Silver, Gold, Big_Silver, Bronze, Rank, Points FROM match_result WHERE "Big_Silver" <= 12 AND "Club_ID" >= 1 AND "Points" != 66 AND "Bronze" >= 8 AND "Small_Silver" <> 9 UNION SELECT Club_ID, Small_Silver, Gold, Big_Silver, Bronze, Rank, Points FROM match_result WHERE "Small_Silver" <> 6 OR "Bronze" <= 6 AND "Club_ID" > 1 OR "Rank" != 5 AND "Big_Silver" <= 9 OR "Gold" = 5 OR "Points" = 168


Question: SELECT COUNT(Continent) FROM continents WHERE "ContId" != 1 OR Continent <> "america" UNION SELECT COUNT(Continent) FROM countries WHERE CountryName <> "italy" AND "Continent" = 1


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 Player_ID FROM player WHERE "Player_ID" <> 11 AND Player_name = "Ron Strynadka" OR Occupation != "Retired" OR Residence != "Winnipeg" AND "Votes" != 5490 EXCEPT SELECT Player_ID FROM player_coach WHERE "Coach_ID" < 1 AND "Starting_year" > 2012


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


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 AVG(id) FROM albums WHERE "artist_id" > 22 UNION ALL SELECT AVG(id) FROM genres WHERE "id" < 11


Question: SELECT vote_id, phone_number, MIN(state) FROM VOTES WHERE "contestant_number" <= 5 OR "vote_id" >= 5 AND state != "CA" AND "phone_number" != 7148407040 OR created = "2018-03-09 19:03:40" EXCEPT SELECT vote_id, phone_number, MIN(state) FROM VOTES WHERE "phone_number" <= 6209222712 AND state != "CA" OR "vote_id" > 5


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


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


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


Question: SELECT SUM(Maker), Id, Country FROM car_makers WHERE Country = "1" AND "Id" <= 1 AND FullName = "American Motor Company" UNION SELECT SUM(Maker), Id, Country FROM car_makers WHERE FullName <> "Triumph" OR Country != "4"


Question: SELECT MAX(Maker), SUM(FullName), COUNT(Country), Id FROM car_makers WHERE "Id" >= 3 AND Country != "3" AND Maker = "chrysler" AND FullName != "Volkswagen" EXCEPT SELECT MAX(Maker), SUM(FullName), COUNT(Country), Id FROM car_makers WHERE Maker = "renault" OR "Id" = 13

MAX(Maker) SUM(FullName) COUNT(Country) Id


Question: SELECT id FROM airport WHERE IATA = "ANC" OR Country = "Spain" OR name != "Akureyri Airport" OR ICAO = "ENBR" OR "id" <> 3 UNION SELECT id FROM flight WHERE Vehicle_Flight_number = "M2-F1 #64" OR "Velocity" >= 240.0 OR Pilot <> "Peterson" AND "company_id" < 5 OR "Altitude" >= 3650.0


Question: SELECT Incorporated_in, id, Type, Principal_activities, Group_Equity_Shareholding, name FROM operate_company WHERE Incorporated_in <> "Hong Kong" AND Principal_activities != "Cargo airline" OR "id" <> 11 AND "Group_Equity_Shareholding" < 49.0 AND Type <> "Subsidiary" INTERSECT SELECT Incorporated_in, id, Type, Principal_activities, Group_Equity_Shareholding, name FROM operate_company WHERE Incorporated_in <> "Hong Kong" AND name != "Vogue Laundry Service Limited"

Canada
14
Joint Venture
Catering services
30.0
CLS Catering Services Limited

China
1
Corporate
Airline
18.77
Air China

Taiwan
12
Joint Venture
Laundry
45.0
China Pacific Laundry Services

Vietnam
13
Joint Venture
Catering services
40.0
VN/CX Catering Services Limited


Question: SELECT Member_ID FROM member WHERE "Level" != 6 OR "Member_ID" != 4 UNION SELECT Member_ID FROM purchase WHERE Branch_ID = "1" OR "Total_pounds" != 343.76 AND "Member_ID" != 6


Question: SELECT District_ID FROM district WHERE District_name != "Chakwal District" AND Headquartered_City != "Kasur City" OR "District_ID" < 14 AND "City_Population" <= 113524.0 INTERSECT SELECT District_ID FROM store_district WHERE "District_ID" <> 11 AND "Store_ID" > 2


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


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


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


Question: SELECT name, Group_Equity_Shareholding, Type, Incorporated_in, Principal_activities FROM operate_company WHERE name = "Cathay Pacific Catering Services (HK) Limited" AND Type = "Subsidiary" OR Incorporated_in <> "China" OR Principal_activities != "Cargo" AND "id" < 7 AND "Group_Equity_Shareholding" <> 40.0 EXCEPT SELECT name, Group_Equity_Shareholding, Type, Incorporated_in, Principal_activities FROM operate_company WHERE name = "Air Hong Kong" AND "id" != 4 AND "Group_Equity_Shareholding" = 45.0

Air China Cargo
49.0
Joint Venture
China
Cargo airline

Air Hong Kong
60.0
Joint Venture
Hong Kong
Cargo airline

CLS Catering Services Limited
30.0
Joint Venture
Canada
Catering services

Cathay Pacific Cargo
100.0
Subsidiary
Hong Kong
Cargo airline

Cathay Pacific Catering Services (HK) Limited

Cathay Pacific Holidays
100.0
Subsidiary
Hong Kong
Travel agency

Cathay Pacific Services Limited
100.0
Subsidiary
Hong Kong
Cargo

China Pacific Laundry Services
45.0
Joint Venture
Taiwan
Laundry

Dragonair
100.0
Subsidiary
Hong Kong
Airline

Dragonair Holidays
100.0
Subsidiary
Hong Kong
Travel agency

Hong Kong Airport Services
100.0
Subsidiary
Hong Kong
Ground handling

VN/CX Catering Services Limited
40.0
Joint Venture
Vietnam
Catering services

Vogue Laundry Service Limited
100.0
Subsidiary
Hong Kong
Laundry


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 document_id FROM Documents WHERE document_type_code <> "CD" AND shipping_agent_code != "UP" AND receipt_number = "189" OR other_details != "h" UNION SELECT document_id FROM Documents_Mailed WHERE mailing_date <> "1973-02-21 10:17:01" AND "document_id" = 12 OR "mailed_to_address_id" > 0


Question: SELECT Budget_invested_percent, Year, School_id, Invested, total_budget_percent_budgeted, Budgeted, total_budget_percent_invested FROM budget WHERE "Budgeted" > 3666 AND "total_budget_percent_budgeted" != 2.0 OR Budget_invested_percent != "228.6" AND "total_budget_percent_invested" >= 2.0 UNION ALL SELECT Budget_invested_percent, Year, School_id, Invested, total_budget_percent_budgeted, Budgeted, total_budget_percent_invested FROM budget WHERE "Year" <> 1999 OR "Invested" <= 5840 OR Budget_invested_percent <> "42.9" OR "total_budget_percent_budgeted" < 1.3


Question: SELECT pages_per_minute_color, AVG(interface), product FROM product WHERE max_page_size = "A4" OR product != "ScanShell 3000DN" AND "dpi" != 600.0 OR "product_id" <> 4 AND dimensions = "300 x 50 x 45" OR interface <> "USB 2.0" AND "pages_per_minute_color" != 28.0 UNION ALL SELECT pages_per_minute_color, AVG(interface), product FROM product WHERE product != "Xerox Travel Scanner 100" AND "pages_per_minute_color" > 3.0 OR interface = "USB 2.0" AND max_page_size = "216mm x 355mm" OR dimensions = "303 x 94 x 60" AND "product_id" <= 4 AND "dpi" >= 600.0


Question: SELECT Party FROM election WHERE Delegate != "Miller, Warren E. Warren E. Miller" AND "First_Elected" >= 1994.0 AND "Party" <= 1 OR Counties_Represented = "12.2 12B" OR Committee = "Appropriations" UNION ALL SELECT Party FROM party WHERE Party <> "Independence" AND "Year" <= 1998.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 > 4


Question: SELECT Member_ID, Card_Number, Level FROM member WHERE Hometown = "Simpsonville, South Carolina" AND "Member_ID" < 1 OR "Level" != 6 OR Card_Number <> "RT91" UNION SELECT Member_ID, Card_Number, Level FROM member WHERE Name = "Micah Johnson" AND Card_Number = "LT98"


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


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


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


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


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


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


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


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


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


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


Question: SELECT fld_feature_1, MIN(apt_feature_2), property_address, property_name, shp_feature_3, COUNT(hse_feature_3), SUM(agreed_selling_price), SUM(date_sold), oth_feature_3, other_property_details, oth_feature_1, hse_feature_1, MIN(shp_feature_2), AVG(date_on_market), COUNT(buyer_offered_price), AVG(shp_feature_1), MIN(vendor_requested_price), fld_feature_3 FROM Properties WHERE "agreed_selling_price" <> 2794972.2495 OR "vendor_requested_price" != 2573.0 OR fld_feature_2 != "None" AND fld_feature_3 != "None" OR shp_feature_1 = "None" UNION ALL SELECT fld_feature_1, MIN(apt_feature_2), property_address, property_name, shp_feature_3, COUNT(hse_feature_3), SUM(agreed_selling_price), SUM(date_sold), oth_feature_3, other_property_details, oth_feature_1, hse_feature_1, MIN(shp_feature_2), AVG(date_on_market), COUNT(buyer_offered_price), AVG(shp_feature_1), MIN(vendor_requested_price), fld_feature_3 FROM Properties WHERE oth_feature_2 != "None" AND oth_feature_3 != "None" OR apt_feature_3 = "None" AND property_name != "high line" OR shp_feature_3 = "None" OR apt_feature_1 = "fuga" OR oth_feature_1 = "None"

24365 Ulices Run
Homenicktown, MD 88485-6198

24365 Ulices Run
Homenicktown, MD 88485-6198


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


Question: SELECT MIN(School_ID), Years_Working, COUNT(If_full_time), Driver_ID FROM school_bus WHERE "Years_Working" > 6 AND "Driver_ID" <= 7 EXCEPT SELECT MIN(School_ID), Years_Working, COUNT(If_full_time), Driver_ID FROM school_bus WHERE "School_ID" < 1 OR "Driver_ID" <> 10 AND If_full_time <> "F" OR "Years_Working" >= 8


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


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


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


Question: SELECT Allergy FROM Allergy_Type WHERE AllergyType <> "animal" OR Allergy = "Rodent" UNION ALL SELECT Allergy FROM Has_Allergy WHERE Allergy = "Cat"


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


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


Question: SELECT StuID FROM Has_Pet WHERE "StuID" < 1002 INTERSECT SELECT StuID FROM Student WHERE city_code <> "HKG"


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


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


Question: SELECT Player_ID FROM player WHERE Gender = "F" AND "Player_ID" = 14 AND Player_name != "Fiona Shiells" UNION SELECT Player_ID FROM player_coach WHERE "Player_ID" = 2 AND "Starting_year" <> 2010


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


Question: SELECT Book_ID, Issues, Title, Writer FROM book WHERE "Book_ID" <> 6 OR Title <> "Michael Moorcock's Multiverse" AND Writer <> "Timothy Truman" OR "Issues" >= 9.0 EXCEPT SELECT Book_ID, Issues, Title, Writer FROM book WHERE Title = "Sheva's War" AND "Issues" > 4.0 OR Writer != "Dave Gibbons"


Question: SELECT Name FROM company WHERE "Company_ID" > 18.0 OR Headquarters <> "UK" AND "Profits_in_Billion" > 21.5 AND "Market_Value_in_Billion" <= 227.6 AND Industry <> "Banking" AND Name = "Berkshire Hathaway" AND "Sales_in_Billion" = 110.8 OR "Assets_in_Billion" >= 213.0 UNION ALL SELECT Name FROM people WHERE "People_ID" >= 1 AND Graduation_College != "Iowa" AND Nationality != "United States"


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


Question: SELECT Election_ID FROM election WHERE "Election_ID" = 8 OR Counties_Represented <> "12.1 12A" UNION ALL SELECT Election_ID FROM election WHERE "District" != 2 OR "First_Elected" > 2003.0 AND Counties_Represented = "09.1 9A" OR "Party" < 1


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 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 AVG(Total_pounds), Member_ID FROM purchase WHERE Year <> "2017" AND Branch_ID = "1" AND "Member_ID" > 2 AND "Total_pounds" = 232.09 UNION SELECT AVG(Total_pounds), Member_ID FROM purchase WHERE "Total_pounds" != 20.99 OR "Member_ID" = 2


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


Question: SELECT Member_ID FROM member WHERE "Level" > 6 OR "Member_ID" <= 7 AND Name != "Micah Johnson" AND Card_Number <> "MLB4" OR Hometown <> "Fort Campbell, Kentucky" UNION ALL SELECT Member_ID FROM membership_register_branch WHERE "Member_ID" = 3


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


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


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


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


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


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


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


Question: SELECT amount_payment, datetime_payment, payment_method_code FROM Customer_Payments WHERE datetime_payment <> "2018-03-20 21:38:41" OR "customer_id" = 3 EXCEPT SELECT amount_payment, datetime_payment, payment_method_code FROM Customer_Payments WHERE payment_method_code != "Direct Debit" OR "customer_id" <> 14


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


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


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


Question: SELECT MAX(T1.Branch_ID), T2.Level FROM branch as T1 JOIN member as T2 ON T1.Name = T2.Name WHERE Open_year <> "2009" AND Address_road = "Glebe Street"


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


Question: SELECT Other_Details, Document_ID FROM Documents WHERE Document_Description != "u" OR Other_Details != "None" UNION SELECT Other_Details, Document_ID FROM Paragraphs WHERE "Document_ID" < 2394 OR Paragraph_Text != "Jersey"


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


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


Question: SELECT document_id FROM Document_Drafts WHERE "document_id" <= 2 UNION SELECT document_id FROM Document_Drafts WHERE "document_id" > 13


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


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


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


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


Question: SELECT country, zip_postcode, city, state_province_county, MAX(address_id), line_1_number_building FROM Addresses WHERE country = "USA" INTERSECT SELECT country, zip_postcode, city, state_province_county, MAX(address_id), line_1_number_building FROM Addresses WHERE country = "USA" OR line_1_number_building = "535 Ariel Brook"

USA
43988
West Edmondview
Kentucky
15
9260 Streich Mountain


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


Question: SELECT aid FROM certificate WHERE "aid" <= 5 AND "eid" <> 142519864 UNION SELECT aid FROM flight WHERE arrival_date != "04/12/2005 09:40"


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 MAX(T1.customer_id), T2.customer_status_code FROM Customer_Payments as T1 JOIN Customers as T2 ON T1.customer_id = T2.customer_id WHERE payment_method_code = "Direct Debit" AND datetime_payment = "2018-02-15 16:38:49" OR phone_number = "1-875-045-0806" AND email_address = "myrl.lind@example.net" OR date_became_customer = "2015-06-24 03:50:04" AND amount_payment <= 1708.18 OR first_name = "Estelle" AND cell_mobile_phone_number = "(630)964-2426" AND customer_address_id <> 13 OR date_of_birth = "1996-11-07 05:30:55"


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 other_details, employee_name, employee_id FROM Employees WHERE role_code <> "MG" OR employee_name = "Erling" AND other_details != "b" OR "employee_id" <= 8 EXCEPT SELECT other_details, employee_name, employee_id FROM Employees WHERE role_code <> "PT" OR other_details = "b"


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


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


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


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


Question: SELECT Club_ID FROM club WHERE Club_name = "Gefle IF" EXCEPT SELECT Club_ID FROM coach WHERE Coach_name != "Robert Chen" OR "Rank" <= 3


Question: SELECT Employee_ID FROM employee WHERE "Employee_ID" != 9 OR City <> "Sale" EXCEPT SELECT Employee_ID FROM hiring WHERE "Employee_ID" = 4 OR Start_from != "2008" AND Is_full_time != "T"


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


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


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


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


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


Question: SELECT vehicle_id FROM Lessons WHERE "price" != 495.0 AND "vehicle_id" < 1 AND lesson_time <> "5" AND lesson_status_code = "Cancelled" AND "staff_id" <> 1 OR "customer_id" != 2 AND "lesson_id" > 3 UNION ALL SELECT vehicle_id FROM Vehicles WHERE "vehicle_id" >= 3 AND vehicle_details != "Truck"


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 Paragraph_Text, Document_ID, Paragraph_ID, Other_Details FROM Paragraphs WHERE Paragraph_Text <> "Fiji" AND "Document_ID" <= 651512 OR "Paragraph_ID" >= 16615 OR Other_Details <> "None" INTERSECT SELECT Paragraph_Text, Document_ID, Paragraph_ID, Other_Details FROM Paragraphs WHERE "Paragraph_ID" > 9946


Question: SELECT MAX(Company_ID), AVG(Industry), COUNT(Sales_in_Billion), COUNT(Name), MIN(Headquarters), Profits_in_Billion, AVG(Assets_in_Billion), COUNT(Market_Value_in_Billion) FROM company WHERE "Profits_in_Billion" >= 15.9 AND "Company_ID" >= 15.0 AND Industry != "Banking" OR Headquarters = "USA" AND Name <> "Petrobras" AND "Sales_in_Billion" <= 87.6 OR "Market_Value_in_Billion" <= 178.7 OR "Assets_in_Billion" = 2039.1 EXCEPT SELECT MAX(Company_ID), AVG(Industry), COUNT(Sales_in_Billion), COUNT(Name), MIN(Headquarters), Profits_in_Billion, AVG(Assets_in_Billion), COUNT(Market_Value_in_Billion) FROM company WHERE Industry = "Conglomerate" AND "Assets_in_Billion" < 292.5 AND "Sales_in_Billion" != 102.0 OR Headquarters <> "UK" OR "Company_ID" > 19.0 OR "Profits_in_Billion" < 19.0


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


Question: SELECT AVG(decor), MIN(bedType), basePrice FROM Rooms WHERE "beds" < 1 AND decor <> "modern" OR bedType = "Queen" OR roomName = "Mendicant with cryptic" OR "basePrice" != 175 UNION SELECT AVG(decor), MIN(bedType), basePrice FROM Rooms WHERE RoomId <> "AOB" OR decor <> "rustic" AND "maxOccupancy" != 2 OR roomName = "Abscond or bolster" AND bedType != "King"


Question: SELECT Club_ID, MIN(Gold), Small_Silver FROM match_result WHERE "Points" <= 139 OR "Rank" <= 1 OR "Big_Silver" != 6 EXCEPT SELECT Club_ID, MIN(Gold), Small_Silver FROM match_result WHERE "Club_ID" <= 5 AND "Big_Silver" <> 12 AND "Bronze" <= 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 <> 7


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


Question: SELECT eid FROM employee WHERE name != "Dorthy Lewis" OR "eid" = 390487451 UNION SELECT eid FROM employee WHERE "eid" <= 356187925 OR name = "Robert Brown"


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


Question: SELECT SUM(customer_id) FROM Customer_Payments WHERE payment_method_code <> "Direct Debit" OR "customer_id" = 14 AND "amount_payment" <> 1708.18 OR datetime_payment <> "2018-02-19 09:06:29" UNION SELECT SUM(customer_id) FROM Customers WHERE "customer_address_id" < 10 OR "amount_outstanding" >= 255.0 OR date_of_birth = "1996-11-07 05:30:55" AND date_became_customer <> "2016-05-11 17:03:48" OR "customer_id" < 9 AND last_name != "Bernhard" AND cell_mobile_phone_number = "1-197-686-2849x8761" AND customer_status_code = "Bad Customer" OR phone_number <> "1-673-962-8158x7646" AND first_name = "Rylan" AND email_address != "karina.carroll@example.net"


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 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 ClubID FROM Club WHERE ClubLocation <> "AKW" OR ClubDesc <> "Play pen and paper games on campus." OR ClubName = "Bootup Baltimore" AND "ClubID" >= 3 EXCEPT SELECT ClubID FROM Member_of_club WHERE Position = "CTO" OR "ClubID" != 2 AND "StuID" <= 1007


Question: SELECT School_id FROM budget WHERE "Year" < 2002 AND Budget_invested_percent = "127.6" OR "Budgeted" > 6803 INTERSECT SELECT School_id FROM budget WHERE "School_id" != 2 OR "total_budget_percent_budgeted" >= 2.0 AND Budget_invested_percent <> "71.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 >= 2


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


Question: SELECT 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 document_type_code FROM Documents WHERE "document_id" >= 13 OR shipping_agent_code != "US" AND document_type_code <> "Paper" AND receipt_date <> "1983-09-26 09:32:56" OR other_details <> "u" UNION SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description != "u" AND document_type_code != "CD"


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


Question: SELECT Price, Publication_Date, Publisher, Book_ID, Publication_ID FROM publication WHERE Publication_Date <> "June 2006" AND "Price" = 6000000.0 AND "Book_ID" <= 4 AND Publisher <> "Springer Nature" UNION ALL SELECT Price, Publication_Date, Publisher, Book_ID, Publication_ID FROM publication WHERE "Price" > 3000000.0 OR "Book_ID" <= 7 OR Publication_Date != "April 2007" OR Publisher != "Bertelsmann"


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


Question: SELECT MIN(Rank), Club_ID FROM coach WHERE "Club_ID" >= 1 OR "Coach_ID" <> 1 OR Gender != "M" AND Coach_name != "Smith Brown" AND "Rank" > 1 UNION SELECT MIN(Rank), Club_ID FROM match_result WHERE "Rank" <> 1 OR "Small_Silver" = 6 OR "Club_ID" = 5 AND "Gold" != 6


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