Question: SELECT Birth_Date, MAX(Nationality), AVG(Height), Name FROM people WHERE Name <> "Roman Bragin" AND Nationality <> "Russia" AND Birth_Date = "August 8, 1986" AND "Height" >= 182.0 UNION ALL SELECT Birth_Date, MAX(Nationality), AVG(Height), Name FROM people WHERE "People_ID" > 5

Birth_Date MAX(Nationality) AVG(Height) Name


Question: SELECT AVG(Other_Details), MIN(Document_ID) FROM Documents WHERE Document_Description != "h" AND Other_Details != "None" AND "Document_ID" != 801801 EXCEPT SELECT AVG(Other_Details), MIN(Document_ID) FROM Paragraphs WHERE "Document_ID" >= 80


Question: SELECT AVG(Age) FROM employee WHERE City = "Wasps" OR Name = "Lee Mears" OR "Age" = 43 AND "Employee_ID" >= 8 EXCEPT SELECT AVG(Age) FROM employee WHERE City = "Bristol" OR "Age" <> 23 OR Name != "George Chuter" AND "Employee_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 < 9


Question: SELECT Market_Value_in_Billion FROM company WHERE "Sales_in_Billion" = 147.3 AND "Assets_in_Billion" <> 1313.9 OR Headquarters != "Netherlands" OR "Profits_in_Billion" < 10.3 AND "Market_Value_in_Billion" > 180.0 AND Industry != "Oil and gas" AND Name <> "PetroChina" OR "Company_ID" != 18.0 EXCEPT SELECT Market_Value_in_Billion FROM company WHERE "Profits_in_Billion" <= 31.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 MAX(document_id) FROM Document_Drafts WHERE "document_id" != 7 OR draft_details = "r" UNION SELECT MAX(document_id) FROM Documents_Mailed WHERE mailing_date != "1973-02-21 10:17:01" AND "document_id" < 4


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


Question: SELECT document_type_code FROM Documents WHERE document_type_code <> "CD" OR other_details != "w" OR receipt_number <> "79" OR shipping_agent_code = "AL" OR document_status_code != "working" AND receipt_date <> "1973-11-05 21:48:53" UNION SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description = "b"


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 Model, ModelId, Maker FROM model_list WHERE Model = "triumph" OR "Maker" <= 13 OR "ModelId" >= 27 EXCEPT SELECT Model, ModelId, Maker FROM model_list WHERE Model = "datsun" OR "Maker" >= 6 OR "ModelId" <> 19


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


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


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


Question: SELECT Book_ID FROM book WHERE Writer = "Garth Ennis" UNION SELECT Book_ID FROM publication WHERE "Publication_ID" != 7


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


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


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


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


Question: SELECT Coach_ID FROM coach WHERE Coach_name <> "Jameson Tomas" EXCEPT SELECT Coach_ID FROM player_coach WHERE "Starting_year" > 2012 AND "Coach_ID" < 1 AND "Player_ID" = 1


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


Question: SELECT AVG(Company_ID) FROM company WHERE "Sales_in_Billion" <= 470.2 AND "Company_ID" > 11.0 OR "Profits_in_Billion" <= 20.5 OR "Market_Value_in_Billion" != 294.7 OR Name != "HSBC" EXCEPT SELECT AVG(Company_ID) FROM employment WHERE "Company_ID" > 13 AND "People_ID" > 1


Question: SELECT document_status_code FROM Ref_Document_Status WHERE document_status_description <> "mailed" EXCEPT SELECT document_status_code FROM Ref_Document_Status WHERE document_status_code <> "overdue"


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


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


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


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


Question: SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Description != "Presentation" UNION SELECT Template_Type_Code FROM Templates WHERE "Version_Number" >= 5 OR Template_Details != "" AND Date_Effective_To != "1974-09-14 06:34:39" OR Template_Type_Code = "PP" OR Date_Effective_From != "2005-11-12 07:09:48"


Question: SELECT Aircraft_ID FROM aircraft WHERE Total_disk_area != "8,495 ft² (789 m²)" OR Max_disk_Loading != "2.6 lb/ft² (14 kg/m²)" OR Max_Gross_Weight = "123,500 lb (56,000 kg)" EXCEPT SELECT Aircraft_ID FROM airport_aircraft WHERE "Airport_ID" >= 9 OR "Aircraft_ID" >= 1


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


Question: SELECT draft_number FROM Circulation_History WHERE "copy_number" != 10 UNION SELECT draft_number FROM Circulation_History WHERE "draft_number" > 20 OR "copy_number" != 10 AND "employee_id" = 2


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


Question: SELECT contestant_number FROM CONTESTANTS WHERE contestant_name = "Jessie Alloway" EXCEPT SELECT contestant_number FROM VOTES WHERE state = "NY" AND created = "2018-03-09 19:03:36" OR "contestant_number" < 3 OR "vote_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 <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7


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


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


Question: SELECT Paragraph_Text, AVG(Paragraph_ID), Document_ID FROM Paragraphs WHERE Paragraph_Text = "Ireland" OR "Document_ID" >= 2394 OR "Paragraph_ID" <> 9 UNION ALL SELECT Paragraph_Text, AVG(Paragraph_ID), Document_ID FROM Paragraphs WHERE "Paragraph_ID" = 946335436


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


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


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


Question: SELECT id FROM airport WHERE Country = "Iceland" AND IATA != "AMS" AND name <> "Schiphol Airport" GROUP BY id HAVING id = 1 EXCEPT SELECT id FROM airport WHERE IATA <> "AMS" AND "id" >= 8 GROUP BY id HAVING 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 <> 9


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


Question: SELECT COUNT(Headquarters), Company_ID, COUNT(Industry), SUM(Market_Value_in_Billion), COUNT(Sales_in_Billion) FROM company GROUP BY Company_ID HAVING COUNT(Sales_in_Billion) <= 1 OR SUM(Market_Value_in_Billion) <= 407.4 UNION SELECT COUNT(Headquarters), Company_ID, COUNT(Industry), SUM(Market_Value_in_Billion), COUNT(Sales_in_Billion) FROM company GROUP BY Company_ID HAVING COUNT(Sales_in_Billion) < 1 OR COUNT(Headquarters) > 1 OR SUM(Market_Value_in_Billion) <= 227.6


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 feature_id, SUM(property_feature_description) FROM Other_Property_Features WHERE property_feature_description = "modi" OR "property_id" <= 3 EXCEPT SELECT feature_id, SUM(property_feature_description) FROM Other_Property_Features WHERE "feature_id" <> 4 AND property_feature_description <> "ad"


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


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


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


Question: SELECT MAX(customer_id) FROM Customer_Payments WHERE "customer_id" > 12 AND payment_method_code <> "Credit Card" UNION ALL SELECT MAX(customer_id) FROM Customers WHERE "amount_outstanding" <> 9443.0 AND "customer_id" <> 3 AND customer_status_code <> "Bad Customer" OR first_name <> "Carole" AND date_became_customer = "2016-05-13 07:38:23" OR cell_mobile_phone_number = "1-387-258-1016x96963" AND email_address <> "mariela28@example.org" OR "customer_address_id" >= 1 AND last_name != "Kohler" OR phone_number != "(729)396-4354x3576" OR date_of_birth = "1993-03-08 08:48:42"


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


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


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


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


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


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


Question: SELECT 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 COUNT(PetID) FROM Has_Pet WHERE "PetID" <> 2001 UNION ALL SELECT COUNT(PetID) FROM Pets WHERE "weight" >= 12.0


Question: SELECT id FROM albums WHERE "id" != 249 INTERSECT SELECT id FROM employees WHERE country = "Canada" OR first_name <> "Laura" AND birth_date != "1973-07-01 00:00:00" AND state <> "AB" AND hire_date = "2004-01-02 00:00:00" OR email <> "jane@chinookcorp.com" AND "reports_to" != 2.0 OR postal_code != "T2P 5M5" OR phone <> "+1 (403) 467-3351" AND fax <> "+1 (780) 428-3457" AND "id" <= 1 AND title != "General Manager"


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


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


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


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


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


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


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


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


Question: SELECT AVG(School_name), Location, MIN(Mascot), County, MIN(Enrollment), COUNT(IHSAA_Football_Class), MAX(IHSAA_Class) FROM School WHERE School_id <> "2" AND "Enrollment" >= 605 UNION SELECT AVG(School_name), Location, MIN(Mascot), County, MIN(Enrollment), COUNT(IHSAA_Football_Class), MAX(IHSAA_Class) FROM School WHERE Location <> "Bremen"


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


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 u_id, MAX(name) FROM useracct WHERE name != "Mark" AND "u_id" != 6 UNION ALL SELECT u_id, MAX(name) FROM useracct WHERE name != "Rosie"


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


Question: SELECT document_id FROM Documents WHERE document_type_code <> "Hard Drive" AND other_details <> "x" AND document_status_code != "working" UNION SELECT document_id FROM Draft_Copies WHERE "copy_number" <= 10 OR "document_id" != 10 AND "draft_number" != 1


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


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


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


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


Question: SELECT name, aid, distance FROM aircraft WHERE name != "Airbus A340-300" INTERSECT SELECT name, aid, distance FROM aircraft WHERE name != "Boeing 737-800"


Question: SELECT ModelId, Maker FROM model_list WHERE "ModelId" < 4 OR Model = "mazda" OR "Maker" > 4 INTERSECT SELECT ModelId, Maker FROM model_list WHERE "Maker" != 3


Question: SELECT document_type_code FROM Documents WHERE "document_id" >= 17 AND shipping_agent_code != "US" AND receipt_number <> "8" AND other_details <> "h" UNION SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description != "f" OR document_type_code != "Hard Drive"


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


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


Question: SELECT document_id FROM Documents WHERE receipt_date <> "2005-09-30 00:10:02" AND document_status_code <> "working" OR receipt_number <> "34" OR "document_id" < 10 OR shipping_agent_code <> "FE" EXCEPT SELECT document_id FROM Documents_Mailed WHERE "mailed_to_address_id" <> 0 OR "document_id" <> 12


Question: SELECT AVG(Name) FROM employee WHERE "Age" > 29 INTERSECT SELECT AVG(Name) FROM shop WHERE "Number_products" >= 10000 OR "Shop_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 = 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 Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10


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


Question: SELECT name FROM aircraft WHERE name != "Piper Archer III" OR "distance" != 7120 AND "aid" <> 7 UNION ALL SELECT name FROM employee WHERE "eid" < 248965255 OR name != "Haywood Kelly"


Question: SELECT COUNT(Template_Type_Code) FROM Ref_Template_Types WHERE Template_Type_Description = "Paper" UNION ALL SELECT COUNT(Template_Type_Code) FROM Templates WHERE "Template_ID" <= 23 AND "Version_Number" <= 0 OR Date_Effective_To = "1979-11-04 08:58:39"


Question: SELECT Employee_ID FROM employee WHERE City <> "Wasps" UNION SELECT Employee_ID FROM evaluation WHERE Year_awarded != "2011" OR "Bonus" <= 2900.0 AND Employee_ID = "1"


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 MIN(other_details), shipping_agent_code, AVG(receipt_number), SUM(document_type_code), receipt_date FROM Documents WHERE document_status_code <> "working" OR document_type_code <> "CD" EXCEPT SELECT MIN(other_details), shipping_agent_code, AVG(receipt_number), SUM(document_type_code), receipt_date FROM Documents WHERE document_status_code != "done" OR other_details != "y" AND receipt_date <> "1973-11-05 21:48:53" AND shipping_agent_code <> "UP" AND receipt_number <> "114" AND "document_id" >= 23


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


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


Question: SELECT id FROM airport WHERE Country != "Norway" OR name = "National Airport" INTERSECT SELECT id FROM operate_company WHERE Incorporated_in <> "Hong Kong" OR Type = "Subsidiary" AND Principal_activities <> "Catering services"


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 MAX(document_id) FROM Circulation_History WHERE "copy_number" <= 4 AND "employee_id" > 1 AND "draft_number" < 17 UNION SELECT MAX(document_id) FROM Circulation_History WHERE "document_id" != 2 AND "draft_number" <> 20 AND "employee_id" <> 2 AND "copy_number" = 15


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


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


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


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


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


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


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


Question: SELECT SUM(T1.area_code), T2.phone_number FROM AREA_CODE_STATE as T1 JOIN VOTES as T2 ON T1.state = T2.state WHERE created <> "2018-03-09 19:03:21" GROUP BY created HAVING vote_id <= 5 AND contestant_number >= 3


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


Question: SELECT 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 T1.Sales_in_Billion, T2.People_ID FROM company as T1 JOIN employment as T2 ON T1.Company_ID == T2.Company_ID GROUP BY Assets_in_Billion HAVING Assets_in_Billion <= 2039.1 OR Headquarters = "USA" OR Profits_in_Billion > 11.1 OR Year_working < 1 OR Name = "Wells Fargo" AND Industry = "Banking" OR Market_Value_in_Billion = 107.5 AND Sales_in_Billion <= 143.7


Question: SELECT 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 Employee_ID FROM employee WHERE Name = "George Chuter" OR "Age" < 30 OR "Employee_ID" = 5 UNION ALL SELECT Employee_ID FROM hiring WHERE "Employee_ID" <> 6


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


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


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


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


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


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


Question: SELECT SUM(employee_id) FROM Circulation_History WHERE "copy_number" >= 10 AND "document_id" <> 10 AND "draft_number" = 2 UNION ALL SELECT SUM(employee_id) FROM Employees WHERE role_code = "MG" AND other_details != "v" OR employee_name = "Haley" OR "employee_id" > 5


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 MAX(Max_disk_Loading), COUNT(Max_Gross_Weight), MIN(Aircraft_ID) FROM aircraft WHERE Max_disk_Loading <> "15 lb/ft² (72 kg/m²)" OR Max_Gross_Weight = "1,370 lb (635 kg)" AND "Aircraft_ID" > 5 UNION SELECT MAX(Max_disk_Loading), COUNT(Max_Gross_Weight), MIN(Aircraft_ID) FROM aircraft WHERE "Aircraft_ID" <= 2 OR Aircraft = "Robinson R-22" OR Max_Gross_Weight = "73,500 lb (33,300 kg)" AND Total_disk_area = "497 ft² (46.2 m²)"


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


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


Question: SELECT Vehicle_Flight_number, company_id, airport_id, Date, id, Velocity, Pilot FROM flight WHERE Date <> "October 25, 1963" AND "Altitude" = 3650.0 OR "id" <= 5 AND "Velocity" <= 240.0 OR Vehicle_Flight_number = "M2-F1 #1" AND "company_id" >= 5 UNION SELECT Vehicle_Flight_number, company_id, airport_id, Date, id, Velocity, Pilot FROM flight WHERE "Altitude" <= 3650.0 OR "airport_id" = 9 OR Vehicle_Flight_number != "M2-F1 #0" AND "Velocity" >= 240.0 OR "id" = 12 AND Pilot <> "Thompson" OR "company_id" != 6 OR Date != "March 30, 1964"


Question: SELECT COUNT(id) FROM flight WHERE Date = "May 19, 1964" AND Vehicle_Flight_number = "M2-F1 #33" OR "airport_id" > 6 OR "id" != 1 OR "Altitude" < 3650.0 AND "company_id" < 4 AND "Velocity" <> 240.0 AND Pilot != "Thompson" UNION ALL SELECT COUNT(id) FROM operate_company WHERE "id" = 6 AND "Group_Equity_Shareholding" = 60.0 OR Principal_activities = "Laundry" OR Incorporated_in != "Taiwan"


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


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


Question: SELECT u_id, a_id, rank, i_id FROM review WHERE "i_id" = 1 UNION SELECT u_id, a_id, rank, i_id FROM review WHERE "i_id" <> 1 OR "rank" != 1 AND "u_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 <= 5


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


Question: SELECT 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 PetID, StuID FROM Has_Pet WHERE "StuID" <= 1002 OR "PetID" = 2003 UNION ALL SELECT PetID, StuID FROM Has_Pet WHERE "StuID" != 1001 OR "PetID" != 2003


Question: SELECT contestant_number FROM CONTESTANTS WHERE "contestant_number" < 3 INTERSECT SELECT contestant_number FROM VOTES WHERE "contestant_number" < 3 AND created != "2018-03-09 19:03:36" AND state = "NY"


Question: SELECT document_id FROM Circulation_History WHERE "draft_number" >= 17 OR "copy_number" = 5 AND "document_id" != 2 OR "employee_id" <= 8 UNION ALL SELECT document_id FROM Documents_Mailed WHERE "mailed_to_address_id" != 3 AND "document_id" = 7 AND mailing_date = "1982-01-14 05:50:54"


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


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


Question: SELECT document_id FROM Documents_Mailed WHERE "document_id" <= 10 EXCEPT SELECT document_id FROM Draft_Copies WHERE "draft_number" < 8


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


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


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


Question: SELECT Other_Details, Document_ID FROM Paragraphs WHERE "Paragraph_ID" <= 7 UNION ALL SELECT Other_Details, Document_ID FROM Paragraphs WHERE "Document_ID" != 16514113 AND "Paragraph_ID" != 608931827


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


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


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


Question: SELECT MAX(Gender) FROM coach WHERE Gender <> "M" AND "Coach_ID" = 4 AND "Club_ID" = 1 OR Coach_name = "James Wong" AND "Rank" < 4 UNION ALL SELECT MAX(Gender) FROM player WHERE "Player_ID" > 13 OR "Votes" >= 12285 AND Player_name != "Judy Wasylycia-Leis" AND Occupation = "Parliamentarian"


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


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


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


Question: SELECT Driver_ID FROM driver WHERE "Age" <= 35 OR "Driver_ID" != 1 INTERSECT SELECT Driver_ID FROM school_bus WHERE "School_ID" = 1


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


Question: SELECT Name FROM branch WHERE Name = "Alexandre" UNION ALL SELECT Name FROM member WHERE Card_Number <> "SLB51"


Question: SELECT T1.Aircraft, T2.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 != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2


Question: SELECT state FROM AREA_CODE_STATE WHERE state != "IL" AND "area_code" <> 563 UNION ALL SELECT state FROM VOTES WHERE created != "2018-03-09 19:03:36" OR "vote_id" <> 1 AND "phone_number" = 6209222712 OR "contestant_number" < 3 OR state != "NY"


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


Question: SELECT COUNT(T1.Market_Value_in_Billion), T2.People_ID FROM company as T1 JOIN employment as T2 ON T1.Company_ID = T2.Company_ID WHERE Market_Value_in_Billion <= 213.7 OR Name = "Industrial and Commercial Bank of China" OR Profits_in_Billion <> 20.1 OR Industry <> "Conglomerate" AND Assets_in_Billion = 1563.9 AND AVG(Year_working) <= 1 OR People_ID > 3 OR COUNT(Sales_in_Billion) = 447.0 OR Headquarters <> "China"


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


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


Question: SELECT employee_id FROM Employees WHERE employee_name <> "Erling" INTERSECT SELECT employee_id FROM Employees WHERE role_code <> "PR"


Question: SELECT COUNT(Employee_ID) FROM employee WHERE Name <> "Steve Borthwick" OR City != "Bristol" OR "Employee_ID" >= 1 UNION ALL SELECT COUNT(Employee_ID) FROM evaluation WHERE "Bonus" <= 3200.0 AND Employee_ID != "1" OR Year_awarded != "2016"


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


Question: SELECT School_id FROM School WHERE County != "46 LaPorte 71 St. Joseph" OR IHSAA_Class = "AA" OR IHSAA_Football_Class <> "AAA" OR Location != "Bourbon" AND School_name != "Glenn" AND School_id = "1" AND "Enrollment" <> 605 EXCEPT SELECT School_id FROM endowment WHERE "School_id" <= 3 OR "endowment_id" > 6


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 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 COUNT(Template_ID) FROM Documents WHERE Document_Description != "y" OR "Document_ID" > 16514113 OR Document_Name != "How Google people work" AND Other_Details = "None" EXCEPT SELECT COUNT(Template_ID) FROM Templates WHERE Date_Effective_From <> "1979-10-20 21:23:20" OR "Version_Number" > 0 AND Template_Details <> "" OR Date_Effective_To != "1973-01-12 14:13:34"


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


Question: SELECT lesson_status_code, lesson_date, staff_id FROM Lessons WHERE "vehicle_id" != 3 AND "staff_id" > 11 AND "price" <= 277.0 OR lesson_date <> "2018-03-08 16:05:05" OR lesson_status_code <> "Cancelled" AND "customer_id" = 8 UNION SELECT lesson_status_code, lesson_date, staff_id FROM Lessons WHERE lesson_date != "2018-03-08 16:05:05" AND "lesson_id" <> 9 OR lesson_status_code != "Cancelled"


Question: SELECT id FROM albums WHERE "artist_id" != 262 UNION SELECT id FROM media_types WHERE name != "Protected AAC audio file"


Question: SELECT document_type_description FROM Ref_Document_Types WHERE document_type_code != "CD" INTERSECT SELECT document_type_description FROM Ref_Document_Types WHERE document_type_code <> "CD"


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 Branch_ID, Member_ID FROM membership_register_branch WHERE "Member_ID" >= 6 AND Branch_ID != "8" EXCEPT SELECT Branch_ID, Member_ID FROM purchase WHERE Branch_ID != "6" OR "Member_ID" < 3


Question: SELECT city_code, Fname, LName, Sex, Advisor, StuID, Major, Age FROM Student WHERE "StuID" = 1014 OR "Age" <> 18 OR Fname != "Mark" OR LName != "Apap" INTERSECT SELECT city_code, Fname, LName, Sex, Advisor, StuID, Major, Age FROM Student WHERE "Major" <= 100 AND Fname <> "Eric" AND city_code != "SFO" OR Sex != "M" AND LName != "Simms" OR "Age" > 22 OR "Advisor" >= 1148 OR "StuID" >= 1003

city_code Fname LName Sex Advisor StuID Major Age


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


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


Question: SELECT Date, SUM(Velocity), MIN(airport_id), MAX(company_id), Pilot, SUM(Altitude), AVG(Vehicle_Flight_number), MIN(id) FROM flight WHERE Pilot <> "Thompson" OR Vehicle_Flight_number != "M2-F1 #6" AND "airport_id" < 9 EXCEPT SELECT Date, SUM(Velocity), MIN(airport_id), MAX(company_id), Pilot, SUM(Altitude), AVG(Vehicle_Flight_number), MIN(id) FROM flight WHERE Pilot != "Peterson" AND Vehicle_Flight_number != "M2-F1 #61" AND "id" >= 10 OR "Velocity" >= 240.0 AND Date != "October 25, 1963" OR "airport_id" = 9


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


Question: SELECT email_address, customer_id, amount_outstanding, date_of_birth, SUM(cell_mobile_phone_number) FROM Customers WHERE cell_mobile_phone_number <> "1-197-686-2849x8761" OR date_of_birth <> "1998-12-15 13:24:40" AND "customer_address_id" > 13 OR customer_status_code = "Good Customer" AND "amount_outstanding" < 5494.0 OR first_name <> "Estelle" OR "customer_id" < 4 UNION ALL SELECT email_address, customer_id, amount_outstanding, date_of_birth, SUM(cell_mobile_phone_number) FROM Customers WHERE date_became_customer <> "2017-11-25 01:42:26" AND customer_status_code <> "Bad Customer" OR first_name != "Ray" OR email_address <> "asha.kilback@example.org" AND phone_number != "753.921.0871" OR "customer_id" <> 12 AND "customer_address_id" > 8 AND date_of_birth != "1993-03-08 08:48:42" AND last_name != "Tromp" OR "amount_outstanding" <> 9500.0 OR cell_mobile_phone_number = "861-638-9797"


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 Employee_ID FROM evaluation WHERE Year_awarded != "2018" EXCEPT SELECT Employee_ID FROM hiring WHERE Start_from != "2011"


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 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 Position, StuID, ClubID FROM Member_of_club WHERE "ClubID" = 2 AND Position <> "Vice-President" UNION SELECT Position, StuID, ClubID FROM Member_of_club WHERE "StuID" = 1001 OR Position <> "President" OR "ClubID" >= 1


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


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


Question: SELECT Club_ID FROM club WHERE Club_name = "Helsingborgs IF" OR Region = "USA" UNION SELECT Club_ID FROM match_result WHERE "Gold" <> 6 OR "Bronze" >= 10 AND "Big_Silver" <= 9 AND "Small_Silver" <> 16 AND "Club_ID" != 3 AND "Points" = 102 OR "Rank" >= 1


Question: SELECT Coach_ID FROM coach WHERE "Rank" != 4 AND "Coach_ID" <> 1 AND Coach_name = "James Wong" OR "Club_ID" <> 1 UNION ALL SELECT Coach_ID FROM player_coach WHERE "Player_ID" < 2 OR "Coach_ID" = 5 AND "Starting_year" >= 2012


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


Question: SELECT County_Id FROM county WHERE "Population" != 79000.0 OR Zip_code = "D09" AND "County_Id" <> 4 EXCEPT SELECT County_Id FROM county WHERE "County_Id" > 1 OR Zip_code = "D09" AND County_name = "Colony"


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


Question: SELECT Population FROM county WHERE "Population" >= 90000.0 UNION SELECT Population FROM county WHERE "Population" > 21000.0 AND "County_Id" < 5


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


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


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


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


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


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


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


Question: SELECT PetID FROM Has_Pet WHERE "StuID" = 1002 UNION ALL SELECT PetID FROM Pets WHERE "pet_age" <= 2


Question: SELECT People_ID FROM people WHERE Graduation_College = "Iowa" AND Name <> "David Butler" OR "People_ID" <= 2 OR "Age" >= 27 EXCEPT SELECT People_ID FROM people WHERE "People_ID" <> 4 AND Graduation_College <> "Virginia" OR Name != "Darryl Kennedy"


Question: SELECT SUM(School_id), School_name, SUM(County), IHSAA_Football_Class, Enrollment, IHSAA_Class, SUM(Location) FROM School WHERE Mascot <> "Lancers" AND School_id = "5" OR IHSAA_Class <> "A" AND Location = "Bourbon" EXCEPT SELECT SUM(School_id), School_name, SUM(County), IHSAA_Football_Class, Enrollment, IHSAA_Class, SUM(Location) FROM School WHERE Location <> "Walkerton"


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


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


Question: SELECT Employee_ID FROM employee WHERE City != "Bristol" UNION ALL SELECT Employee_ID FROM evaluation WHERE Year_awarded != "2016"


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


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


Question: SELECT MAX(Club_ID) FROM club WHERE Region != "France" UNION SELECT MAX(Club_ID) FROM match_result WHERE "Big_Silver" > 7 OR "Small_Silver" <> 6 AND "Gold" < 12 OR "Bronze" < 8 AND "Points" >= 66 OR "Rank" > 6 OR "Club_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 >= 3


Question: SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code != "PPT" OR Template_Type_Description != "CV" UNION ALL SELECT Template_Type_Code FROM Templates WHERE Date_Effective_To <> "1975-07-16 04:52:10" OR Date_Effective_From != "1996-02-04 11:27:24"


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


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


Question: SELECT MAX(T1.Driver_ID), T2.Years_Working FROM driver as T1 JOIN school_bus as T2 ON T1.Driver_ID = T2.Driver_ID WHERE Home_city <> "Manchester" OR "School_ID" = 1 OR "Age" > 46 AND "Years_Working" > 8 OR Party = "Dem" AND Name = "Douglas McCrory" OR If_full_time = "T" GROUP BY Home_city HAVING Home_city <> "Bethel" AND Years_Working > 6 AND COUNT(Age) <> 36 OR Party <> "Dem" OR If_full_time <> "T" OR Name = "Tim Larson" AND School_ID >= 1


Question: SELECT ClubID FROM Club WHERE "ClubID" >= 2 OR ClubDesc <> "Venture capital fund for student business." UNION ALL SELECT ClubID FROM Member_of_club WHERE "ClubID" > 4 OR Position <> "CTO"


Question: SELECT Player_ID, Starting_year FROM player_coach WHERE "Starting_year" > 2013 OR "Coach_ID" < 3 AND "Player_ID" < 6 INTERSECT SELECT Player_ID, Starting_year FROM player_coach WHERE "Player_ID" > 3 AND "Starting_year" > 2012 OR "Coach_ID" <> 1


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


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


Question: SELECT SUM(T1.Employee_ID), T2.Bonus FROM employee as T1 JOIN evaluation as T2 ON T1.Employee_ID = T2.Employee_ID WHERE MAX(Age) <> 28


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


Question: SELECT i_id FROM item WHERE "i_id" = 3 UNION ALL SELECT i_id FROM review WHERE "rating" > 7 OR "u_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 > 3


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


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


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


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


Question: SELECT SUM(Advisor), COUNT(Fname), Age, Major, LName, SUM(StuID) FROM Student WHERE LName = "Jones" AND "Advisor" > 7792 AND Fname <> "Lisa" AND "Age" >= 20 OR Sex != "M" OR "StuID" < 1029 EXCEPT SELECT SUM(Advisor), COUNT(Fname), Age, Major, LName, SUM(StuID) FROM Student WHERE Fname = "Mark" AND city_code != "PIT" AND "Advisor" = 7723 AND "Age" = 19 OR "StuID" < 1025 OR Sex = "F"

SUM(Advisor) COUNT(Fname) Age Major LName SUM(StuID)


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


Question: SELECT Book_ID, Title, Issues FROM book WHERE Writer = "Elaine Lee" OR "Issues" != 1.0 UNION ALL SELECT Book_ID, Title, Issues FROM book WHERE "Book_ID" <= 9 AND Title <> "BrainBanx" AND Writer <> "Howard Chaykin" AND "Issues" > 6.0


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


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


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


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


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 date_sold, fld_feature_1, buyer_offered_price, property_type_code, oth_feature_2, property_id, other_property_details, fld_feature_3, shp_feature_2, property_address, hse_feature_2, vendor_requested_price, shp_feature_3, oth_feature_1, apt_feature_1, apt_feature_2, agreed_selling_price, shp_feature_1, date_on_market, room_count, property_name, apt_feature_3, oth_feature_3, hse_feature_3, hse_feature_1, fld_feature_2 FROM Properties WHERE date_sold != "1973-02-24 02:56:06" AND oth_feature_3 <> "None" OR shp_feature_2 != "None" OR hse_feature_1 != "None" OR date_on_market = "2016-05-24 09:57:45" OR apt_feature_1 != "enim" AND hse_feature_3 <> "None" OR "vendor_requested_price" != 983.8596 AND shp_feature_3 <> "None" AND property_name <> "longacre" AND apt_feature_2 <> "et" OR other_property_details != "None" OR oth_feature_1 != "None" AND apt_feature_3 <> "None" AND fld_feature_2 = "None" OR "room_count" <> 2 OR "buyer_offered_price" = 8.7122 AND hse_feature_2 != "None" OR property_address <> "6837 Darien Views Apt. 475 South Maraview, KS 77770" AND fld_feature_1 = "None" OR shp_feature_1 = "None" AND "property_id" = 8 OR "agreed_selling_price" <= 4514.807 OR property_type_code != "Apartment" OR oth_feature_2 <> "None" OR fld_feature_3 != "None" INTERSECT SELECT date_sold, fld_feature_1, buyer_offered_price, property_type_code, oth_feature_2, property_id, other_property_details, fld_feature_3, shp_feature_2, property_address, hse_feature_2, vendor_requested_price, shp_feature_3, oth_feature_1, apt_feature_1, apt_feature_2, agreed_selling_price, shp_feature_1, date_on_market, room_count, property_name, apt_feature_3, oth_feature_3, hse_feature_3, hse_feature_1, fld_feature_2 FROM Properties WHERE apt_feature_2 != "eos"

107 Roob Courts
Erdmanburgh, IA 42926-0873

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

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

743 Ephraim Greens
Anniemouth, HI 47084-3853

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

986 Hagenes Drives
Draketon, UT 83411-3393

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

6837 Darien Views Apt. 475
South Maraview, KS 77770

084 Lakin Vista Apt. 394
Fishertown, MA 16876

2088 Bashirian Fork Suite 337
Faustinoport, MT 16771-9320

092 Paucek Highway Apt. 772
East Erika, IA 61358

24365 Ulices Run
Homenicktown, MD 88485-6198

49578 Ayden Mountains
New Russellhaven, UT 46626

2765 Schulist Stream
Lindmouth, UT 03391-3817


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


Question: SELECT Store_ID FROM store WHERE "Number_of_product_category" > 793.0 AND "Ranking" <> 3 UNION ALL SELECT Store_ID FROM store_product WHERE "Product_ID" >= 2 OR "Store_ID" = 1


Question: SELECT Other_Details, Document_Description FROM Documents WHERE Document_Name = "A history of Arts" AND Document_Description != "b" AND "Document_ID" < 3830 UNION SELECT Other_Details, Document_Description FROM Documents WHERE "Document_ID" > 50123 OR Document_Description = "b" AND "Template_ID" >= 25


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


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


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


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


Question: SELECT MAX(Shop_ID) FROM hiring WHERE Is_full_time = "F" OR Start_from != "2003" UNION SELECT MAX(Shop_ID) FROM shop WHERE Manager_name != "Job Dragtsma"


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


Question: SELECT 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 MAX(Rank), Club_ID FROM coach WHERE Gender != "M" OR Coach_name = "Robert Chen" AND "Rank" > 2 OR "Coach_ID" >= 2 EXCEPT SELECT MAX(Rank), Club_ID FROM match_result WHERE "Small_Silver" < 9 OR "Bronze" != 8 AND "Big_Silver" != 6 OR "Points" < 102 OR "Rank" > 3 OR "Club_ID" < 6 AND "Gold" < 6


Question: SELECT SUM(T1.Enrollment), T2.Budget_invested_percent FROM School as T1 JOIN budget as T2 ON T1.School_id = T2.School_id WHERE Budget_invested_percent = "122.5" OR total_budget_percent_budgeted > 2.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 != 3


Question: SELECT name, u_id FROM useracct WHERE "u_id" < 6 AND name != "Helen" UNION SELECT name, u_id FROM useracct WHERE "u_id" != 6


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


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


Question: SELECT Store_ID FROM store WHERE "Area_size" <= 179.84 OR "Ranking" >= 1 AND "Store_ID" <> 3 AND Type <> "City Mall" AND Store_Name != "Blackville" UNION ALL SELECT Store_ID FROM store_district WHERE "Store_ID" >= 2


Question: SELECT document_id FROM Document_Drafts WHERE draft_details <> "p" UNION ALL SELECT document_id FROM Documents WHERE other_details <> "q" AND receipt_number != "55" AND document_type_code != "CD"


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


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


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


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


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 SUM(Creation) FROM department WHERE Creation = "1977" OR "Ranking" <> 10 UNION SELECT SUM(Creation) FROM department WHERE Name = "Labor" OR "Ranking" = 3 OR Creation <> "2002" AND "Budget_in_Billions" = 6.2 AND "Department_ID" <= 11 OR "Num_Employees" <= 10600.0


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


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


Question: SELECT 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 Club_ID FROM club WHERE "Start_year" <= 2011 OR "Club_ID" > 4 AND Club_name = "Halmstads BK" OR Region = "USA" UNION SELECT Club_ID FROM coach WHERE Gender = "M" AND "Rank" >= 1 AND "Club_ID" = 3


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


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


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


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


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


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


Question: SELECT SUM(id) FROM albums WHERE title <> "Grieg: Peer Gynt Suites & Sibelius: Pelléas et Mélisande" OR "id" != 136 OR "artist_id" < 110 UNION ALL SELECT SUM(id) FROM media_types WHERE "id" != 4 AND name = "AAC audio file"


Question: SELECT state FROM AREA_CODE_STATE WHERE "area_code" = 757 OR state <> "CA" EXCEPT SELECT state FROM VOTES WHERE "phone_number" >= 5112677315 OR created != "2018-03-09 19:03:36" OR "contestant_number" >= 3 OR state = "NY" AND "vote_id" > 2


Question: SELECT MAX(country) FROM Addresses WHERE line_1_number_building <> "00704 Zoe Alley" AND state_province_county = "WestVirginia" UNION ALL SELECT MAX(country) FROM Addresses WHERE city <> "Port Jackelinemouth" AND state_province_county = "Georgia" OR "address_id" < 15 AND country != "USA"


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


Question: SELECT MAX(Paragraph_Text), COUNT(Document_ID) FROM Paragraphs WHERE Paragraph_Text != "Papua New Guinea" OR "Document_ID" > 3830 UNION ALL SELECT MAX(Paragraph_Text), COUNT(Document_ID) FROM Paragraphs WHERE Paragraph_Text != "Korea" OR Other_Details != "None" OR "Document_ID" = 50123


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 Club_ID FROM club WHERE Club_name <> "Gefle IF" INTERSECT SELECT Club_ID FROM match_result WHERE "Big_Silver" >= 12 AND "Points" <= 89 OR "Rank" != 4 OR "Club_ID" > 1


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


Question: SELECT Rank, Gold, MIN(Big_Silver), Small_Silver, COUNT(Club_ID), MIN(Bronze), AVG(Points) FROM match_result WHERE "Small_Silver" != 16 AND "Points" >= 168 AND "Club_ID" = 2 UNION SELECT Rank, Gold, MIN(Big_Silver), Small_Silver, COUNT(Club_ID), MIN(Bronze), AVG(Points) FROM match_result WHERE "Rank" > 3 AND "Small_Silver" <= 6 OR "Club_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 = 3


Question: SELECT feature_type_code FROM Other_Available_Features WHERE "feature_id" <> 2 OR feature_type_code != "Security" AND feature_name = "AirCon" INTERSECT SELECT feature_type_code FROM Ref_Feature_Types WHERE feature_type_name <> "Securiyt, eg Burglar Alarm."


Question: SELECT aid FROM aircraft WHERE "distance" >= 6475 EXCEPT SELECT aid FROM certificate WHERE "aid" <= 11


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


Question: SELECT head_ID FROM head WHERE "age" <= 69.0 EXCEPT SELECT head_ID FROM management WHERE "department_ID" > 11 AND temporary_acting = "No" OR "head_ID" <= 10


Question: SELECT Id FROM car_makers WHERE "Id" >= 13 UNION ALL SELECT Id FROM car_makers WHERE Country != "2" OR Maker <> "ford"


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 Employee_ID FROM hiring WHERE "Shop_ID" <> 6 AND Start_from = "2009" UNION SELECT Employee_ID FROM hiring WHERE Is_full_time != "T" AND Start_from != "2010"


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


Question: SELECT name, u_id FROM useracct WHERE name != "Roxi" INTERSECT SELECT name, u_id FROM useracct WHERE "u_id" > 3 OR name = "Mark"


Question: SELECT StuID FROM Has_Pet WHERE "StuID" != 1002 UNION ALL SELECT StuID FROM Student WHERE "Age" <= 16


Question: SELECT COUNT(name), COUNT(IATA), COUNT(City), MIN(id), Country FROM airport WHERE "id" > 6 OR IATA != "AEY" AND ICAO <> "BIAR" OR Country <> "Netherlands" GROUP BY Country HAVING MIN(id) < 1 AND COUNT(IATA) > 1 OR COUNT(name) != 1 UNION SELECT COUNT(name), COUNT(IATA), COUNT(City), MIN(id), Country FROM airport WHERE name != "El Prat Airport" AND City = "Bergen" AND IATA != "BOS" GROUP BY Country HAVING COUNT(name) != 1 OR COUNT(IATA) != 1 AND COUNT(City) > 1

COUNT(name) COUNT(IATA) COUNT(City) MIN(id) Country


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


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


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


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


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


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


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


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


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


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


Question: SELECT T1.Enrollment, T2.total_budget_percent_budgeted FROM School as T1 JOIN budget as T2 ON T1.School_id == T2.School_id GROUP BY Enrollment HAVING total_budget_percent_invested < 2.7 OR total_budget_percent_budgeted >= 1.3 AND County = "46 LaPorte 71 St. Joseph" OR Enrollment <> 601 OR Mascot <> "Lancers" OR Location <> "Bourbon" OR IHSAA_Class <> "A" OR School_name <> "Culver Community" OR Budgeted < 74849


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 AVG(T1.Driver_ID), T2.Driver_ID FROM driver as T1 JOIN school_bus as T2 ON T1.Driver_ID = T2.Driver_ID WHERE "Age" < 52 GROUP BY Years_Working HAVING School_ID > 7 AND If_full_time = "T" OR Party = "Rep" OR Age <> 40 OR Years_Working < 6 AND Home_city = "Hartford"


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


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


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


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


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


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


Question: SELECT Name, Height FROM people WHERE Birth_Date <> "August 16, 1982" AND "Height" != 193.0 OR Nationality = "Russia" INTERSECT SELECT Name, Height FROM people WHERE "People_ID" > 1


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


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


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


Question: SELECT T1.age, T2.department_ID FROM head as T1 JOIN management as T2 ON T1.head_ID == T2.head_ID GROUP BY department_ID HAVING temporary_acting <> "Yes" OR born_state = "Delaware" OR age = 69.0 OR name <> "Dudley Hart" OR department_ID = 7


Question: SELECT MAX(document_id) FROM Circulation_History WHERE "document_id" != 2 OR "copy_number" >= 15 AND "employee_id" < 1 UNION ALL SELECT MAX(document_id) FROM Documents_Mailed WHERE mailing_date <> "1992-11-07 15:03:41" OR "document_id" >= 23


Question: SELECT distance FROM aircraft WHERE name = "SAAB 340" AND "aid" <= 15 EXCEPT SELECT distance FROM flight WHERE destination = "Los Angeles" OR arrival_date = "04/12/2005 09:40" OR origin != "Los Angeles" OR "price" != 220.98 OR departure_date <> "04/12/2005 08:32" AND "distance" > 802


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


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


Question: SELECT Book_ID FROM book WHERE Writer = "Dave Gibbons" AND "Issues" != 4.0 INTERSECT SELECT Book_ID FROM publication WHERE Publisher = "Springer Nature" OR "Book_ID" != 5 OR "Price" = 2000000.0


Question: SELECT Year_awarded, Bonus, Employee_ID FROM evaluation WHERE Year_awarded <> "2018" UNION SELECT Year_awarded, Bonus, Employee_ID FROM evaluation WHERE "Bonus" < 3200.0 AND Employee_ID != "1"


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


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


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


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


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


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


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


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


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


Question: SELECT IHSAA_Class, School_id, School_name FROM School WHERE IHSAA_Class <> "AAA" AND School_name <> "LaVille" OR Location <> "New Carlisle" OR Mascot = "Lions" AND County <> "75 Starke" OR School_id <> "4" INTERSECT SELECT IHSAA_Class, School_id, School_name FROM School WHERE School_id != "7" OR School_name != "Knox Community" AND "Enrollment" != 605 OR County != "50 Marshall" OR Location <> "Elkhart" AND Mascot = "Jimmies" AND IHSAA_Football_Class <> "A" AND IHSAA_Class != "AAA"


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 country, MIN(city), SUM(line_1_number_building) FROM Addresses WHERE city = "Lake Elaina" OR state_province_county <> "Idaho" OR line_1_number_building = "9260 Streich Mountain" AND zip_postcode = "63768" OR "address_id" < 5 UNION ALL SELECT country, MIN(city), SUM(line_1_number_building) FROM Addresses WHERE city = "West Edmondview" AND "address_id" > 3


Question: SELECT shipping_agent_code, shipping_agent_name FROM Ref_Shipping_Agents WHERE shipping_agent_code != "AL" OR shipping_agent_description != "t" UNION ALL SELECT shipping_agent_code, shipping_agent_name FROM Ref_Shipping_Agents WHERE shipping_agent_code = "FE" AND shipping_agent_name <> "UPS"


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


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


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


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


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


Question: SELECT StuID FROM Member_of_club WHERE "ClubID" > 4 AND "StuID" >= 1010 OR Position != "Teaching Coordinator" UNION ALL SELECT StuID FROM Student WHERE city_code <> "WAS" OR "Advisor" < 5718 OR LName <> "Smith" OR "Major" < 520 AND "Age" <= 21


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


Question: SELECT MAX(document_id) FROM Circulation_History WHERE "employee_id" <= 1 AND "draft_number" = 1 AND "copy_number" = 15 UNION SELECT MAX(document_id) FROM Documents_Mailed WHERE mailing_date = "1999-05-22 23:21:07" OR "document_id" >= 12 AND "mailed_to_address_id" < 5


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


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


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


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


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


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


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


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


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


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


Question: SELECT feature_id, property_id FROM Other_Property_Features WHERE "property_id" > 14 OR property_feature_description = "autem" AND "feature_id" < 4 UNION SELECT feature_id, property_id FROM Other_Property_Features WHERE "property_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 <> 4


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


Question: SELECT Mascot FROM School WHERE School_name = "Knox Community" OR County != "50 Marshall" OR "Enrollment" != 316 UNION ALL SELECT Mascot FROM School WHERE Mascot != "Trojans" AND "Enrollment" = 605 OR IHSAA_Class != "AAA" OR School_name <> "LaVille" AND School_id != "1" OR Location <> "Knox" OR County = "50 Marshall" AND IHSAA_Football_Class != "AAA"


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


Question: SELECT receipt_number, other_details, receipt_date, document_status_code, shipping_agent_code, document_id, document_type_code FROM Documents WHERE receipt_number = "37" OR shipping_agent_code = "UP" AND document_status_code = "overdue" UNION SELECT receipt_number, other_details, receipt_date, document_status_code, shipping_agent_code, document_id, document_type_code FROM Documents WHERE other_details = "w" AND receipt_date = "1976-09-15 19:24:17"


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


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


Question: SELECT Type, School, Grade, School_ID FROM school WHERE Grade = "1st-3rd grade" INTERSECT SELECT Type, School, Grade, School_ID FROM school WHERE Grade <> "4th grade"

Private Catholic
St. Francis Assisi
1st-3rd grade
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 = 1


Question: SELECT staff_id FROM Lessons WHERE lesson_time = "2" OR lesson_date <> "2018-03-21 06:48:45" AND "staff_id" >= 4 OR lesson_status_code <> "Cancelled" INTERSECT SELECT staff_id FROM Staff WHERE first_name <> "Rebekah" AND "staff_address_id" != 7 OR date_of_birth = "2015-08-10 11:37:39" OR nickname = "bogisich.geovany" AND date_left_staff != "2018-03-09 05:08:35" OR date_joined_staff != "2017-04-27 03:21:26" AND middle_name <> "Liam" AND "staff_id" > 6


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


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


Question: SELECT MIN(id) FROM albums WHERE "id" >= 188 UNION SELECT MIN(id) FROM playlists WHERE name <> "Audiobooks" AND "id" > 6


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 Employee_ID, Bonus, Year_awarded FROM evaluation WHERE Year_awarded != "2016" AND "Bonus" = 4000.0 OR Employee_ID = "10" UNION SELECT Employee_ID, Bonus, Year_awarded FROM evaluation WHERE Employee_ID <> "7" OR Year_awarded = "2011"


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 Branch_ID FROM branch WHERE City != "Oxford" UNION ALL SELECT Branch_ID FROM purchase WHERE Branch_ID != "2" AND Year != "2018"


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


Question: SELECT 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 StuID FROM Has_Pet WHERE "PetID" < 2002 OR "StuID" <= 1002 UNION SELECT StuID FROM Student WHERE "Advisor" > 2192 AND Sex <> "M" AND LName != "Epp" AND Fname != "Sarah" OR "StuID" != 1027


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


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


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


Question: SELECT document_id, draft_number FROM Draft_Copies WHERE "document_id" > 10 OR "copy_number" < 5 INTERSECT SELECT document_id, draft_number FROM Draft_Copies WHERE "document_id" < 4 AND "copy_number" <= 10 OR "draft_number" = 8


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


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


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


Question: SELECT Store_ID FROM store WHERE "Number_of_product_category" = 1170.0 AND Store_Name != "Miramichi" AND "Store_ID" > 2 OR "Ranking" <> 9 OR "Area_size" >= 28.74 OR Type = "Village Store" INTERSECT SELECT Store_ID FROM store_district WHERE "Store_ID" != 2


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


Question: SELECT 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 property_type_code FROM Properties WHERE other_property_details != "None" AND "agreed_selling_price" > 4514.807 AND hse_feature_3 = "None" AND "room_count" != 7 AND fld_feature_1 != "None" AND oth_feature_1 != "None" OR property_type_code <> "Shop" AND property_address != "2088 Bashirian Fork Suite 337 Faustinoport, MT 16771-9320" OR date_on_market <> "1990-05-25 23:01:51" AND apt_feature_1 <> "aut" OR apt_feature_3 != "None" OR oth_feature_3 != "None" AND hse_feature_1 != "None" OR shp_feature_1 = "None" OR shp_feature_3 = "None" EXCEPT SELECT property_type_code FROM Ref_Property_Types WHERE property_type_code <> "Shop"


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


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


Question: SELECT Major, LName, Fname, StuID, Age, city_code, Sex, Advisor FROM Student WHERE "Major" >= 600 AND "Advisor" <> 7792 OR LName = "Schwartz" OR Sex <> "M" OR city_code <> "BAL" AND Fname = "Sarah" AND "Age" = 17 INTERSECT SELECT Major, LName, Fname, StuID, Age, city_code, Sex, Advisor FROM Student WHERE "Advisor" < 2311 AND city_code <> "WAS"

Major LName Fname StuID Age city_code Sex Advisor


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


Question: SELECT aid, name FROM aircraft WHERE name != "British Aerospace Jetstream 41" UNION SELECT aid, name FROM aircraft WHERE "aid" > 4 OR name <> "British Aerospace Jetstream 41"


Question: SELECT aid FROM certificate WHERE "aid" = 4 UNION SELECT aid FROM flight WHERE origin <> "Los Angeles" AND destination = "Honolulu" OR departure_date = "04/12/2005 07:03" OR "distance" <> 2551 AND "price" = 780.99 AND "flno" >= 2 AND arrival_date != "04/12/2005 08:45"


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 property_type_description, property_type_code FROM Ref_Property_Types WHERE property_type_description = "Field, Meadow." OR property_type_code <> "Apartment" INTERSECT SELECT property_type_description, property_type_code FROM Ref_Property_Types WHERE property_type_description <> "Other, to be determined."


Question: SELECT vehicle_id FROM Vehicles WHERE "vehicle_id" != 2 OR vehicle_details = "Truck" EXCEPT SELECT vehicle_id FROM Vehicles WHERE vehicle_details <> "Truck"


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


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


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


Question: SELECT StuID FROM Has_Pet WHERE "PetID" >= 2001 OR "StuID" <= 1001 EXCEPT SELECT StuID FROM Student WHERE "Major" = 100 AND Sex <> "F" AND LName = "Lee" OR "StuID" != 1003 AND city_code = "NYC"


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


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


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


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


Question: SELECT vehicle_id FROM Lessons WHERE lesson_status_code != "Cancelled" AND "staff_id" > 11 OR lesson_date <> "2018-02-26 02:36:35" AND "lesson_id" >= 3 EXCEPT SELECT vehicle_id FROM Vehicles WHERE vehicle_details <> "Van" AND "vehicle_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 = 5


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


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


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


Question: SELECT shipping_agent_code, shipping_agent_name FROM Ref_Shipping_Agents WHERE shipping_agent_description = "g" OR shipping_agent_name = "Ship" OR shipping_agent_code <> "AL" UNION SELECT shipping_agent_code, shipping_agent_name FROM Ref_Shipping_Agents WHERE shipping_agent_code <> "AL" OR shipping_agent_name = "USPS"


Question: SELECT School_ID FROM school WHERE Location <> "Los Angeles, California" OR Grade <> "1st-3rd grade" OR "School_ID" > 6 AND Type <> "Private" INTERSECT SELECT School_ID FROM school_bus WHERE "Driver_ID" <> 3 OR If_full_time = "T" OR "School_ID" <= 3


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


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


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


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


Question: SELECT AVG(People_ID) FROM people WHERE "Height" = 196.0 OR Nationality != "Russia" OR "People_ID" >= 4 UNION ALL SELECT AVG(People_ID) FROM poker_player WHERE "Best_Finish" > 3.0 AND "People_ID" != 7 OR "Earnings" < 476090.0 AND "Poker_Player_ID" < 1 AND "Money_Rank" = 141.0


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


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