Question: SELECT Player_name, Sponsor_name, Occupation, Votes, Residence, Gender FROM player WHERE Residence = "Winnipeg" OR Rank <> "1st" AND Gender != "M" AND Player_name = "Ross C. Martin" AND "Votes" != 14355 AND Occupation != "Locomotive Engineer" AND "Player_ID" = 10 INTERSECT SELECT Player_name, Sponsor_name, Occupation, Votes, Residence, Gender FROM player WHERE Residence <> "Birtle" OR Sponsor_name != "Winnipeg North" AND "Player_ID" <= 11

Player_name Sponsor_name Occupation Votes Residence Gender

Fiona Shiells
Charleswood—St. James—Assiniboia
Ministerial Assistant
7190
Winnipeg
F

Jim Maloway
Elmwood—Transcona
Small Businessman
14355
Winnipeg
M

Judy Wasylycia-Leis
Winnipeg North
Parliamentarian
14097
Winnipeg
F

Matt Schaubroeck
Saint Boniface
Student
5502
Winnipeg
M

Mohamed Alli
Portage—Lisgar
Distribution Centre Associate
2353
Winnipeg
M

Pat Martin
Winnipeg Centre
Parliamentarian
12285
Winnipeg
M

Rachel Heinrichs
Winnipeg South Centre
Student
5490
Winnipeg
F

Ross Eadie
Kildonan—St. Paul
Self Employed / Consultant
12093
Winnipeg
M

Sean Robert
Winnipeg South
Product Consultant - MLCC
4673
Winnipeg
M


Question: SELECT apt_feature_1, fld_feature_2, agreed_selling_price, property_name, shp_feature_1, hse_feature_2, property_address, date_sold, shp_feature_3, apt_feature_2, property_id, hse_feature_1, fld_feature_3, other_property_details, fld_feature_1, apt_feature_3, oth_feature_2, shp_feature_2, date_on_market, vendor_requested_price FROM Properties WHERE fld_feature_1 != "None" AND hse_feature_1 != "None" AND fld_feature_2 != "None" AND oth_feature_3 != "None" OR "vendor_requested_price" >= 305.0 AND apt_feature_2 <> "et" AND property_type_code = "House" AND apt_feature_3 != "None" OR fld_feature_3 != "None" UNION SELECT apt_feature_1, fld_feature_2, agreed_selling_price, property_name, shp_feature_1, hse_feature_2, property_address, date_sold, shp_feature_3, apt_feature_2, property_id, hse_feature_1, fld_feature_3, other_property_details, fld_feature_1, apt_feature_3, oth_feature_2, shp_feature_2, date_on_market, vendor_requested_price FROM Properties WHERE hse_feature_1 = "None" OR date_sold = "1997-01-07 19:52:45" OR "agreed_selling_price" != 3344706.5755 AND apt_feature_2 = "est"

084 Lakin Vista Apt. 394
Fishertown, MA 16876

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

2088 Bashirian Fork Suite 337
Faustinoport, MT 16771-9320

092 Paucek Highway Apt. 772
East Erika, IA 61358


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


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


Question: SELECT Template_Type_Description, Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code != "BK" AND Template_Type_Description <> "Paper" EXCEPT SELECT Template_Type_Description, Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code = "PP"


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


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


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


Question: SELECT ClubID FROM Club WHERE "ClubID" = 2 UNION ALL SELECT ClubID FROM Member_of_club WHERE "ClubID" <> 1 OR "StuID" <= 1008 OR Position != "Teaching Coordinator"


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 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 MIN(ClubLocation) FROM Club WHERE ClubDesc != "Refurbish computers; teach kids and adults about computer basics." IN (SELECT MIN(ClubLocation) FROM Club WHERE ClubDesc != "Refurbish computers; teach kids and adults about computer basics." AND ClubName != "Hopkins Student Enterprises" AND "ClubID" >= 2 OR ClubLocation <> "AKW")


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


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


Question: SELECT Aircraft FROM aircraft WHERE Aircraft <> "Mil Mi-26" OR Max_Gross_Weight != "123,500 lb (56,000 kg)" OR "Aircraft_ID" = 3 NOT IN (SELECT Aircraft FROM aircraft WHERE Total_disk_area <> "4,900 ft² (460 m²)" AND Max_disk_Loading <> "8.8 lb/ft² (43 kg/m²)")


Question: SELECT document_status_code FROM Documents WHERE "document_id" >= 14 OR receipt_number != "19" AND document_status_code = "working" INTERSECT SELECT document_status_code FROM Ref_Document_Status WHERE document_status_code <> "overdue"


Question: SELECT AllergyType, Allergy FROM Allergy_Type WHERE Allergy != "Soy" AND AllergyType != "animal" INTERSECT SELECT AllergyType, Allergy FROM Allergy_Type WHERE Allergy = "Nuts" AND AllergyType <> "environmental"


Question: SELECT StuID FROM Has_Pet WHERE "PetID" <= 2001 UNION SELECT StuID FROM Student WHERE city_code != "PEK" OR "Advisor" != 8918 OR Sex = "M" AND "StuID" = 1002


Question: SELECT T1.Freight_Metric_Tonnes, T2.Aircraft_ID FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID


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


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


Question: SELECT MIN(T1.age), T2.head_ID FROM head as T1 JOIN management as T2 ON T1.head_ID = T2.head_ID WHERE MAX(department_ID) = 15


Question: SELECT COUNT(School_id) FROM budget WHERE "Invested" < 8335 OR "Budgeted" != 4979 AND "Year" <> 2006 AND "total_budget_percent_invested" >= 2.2 UNION SELECT COUNT(School_id) FROM endowment WHERE "School_id" != 1 OR "endowment_id" > 8 OR "amount" <> 9.51


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


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


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


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


Question: SELECT Coach_ID FROM coach WHERE Gender = "M" AND Coach_name = "Joe Fabbri" OR "Coach_ID" < 2 OR "Rank" > 3 OR "Club_ID" >= 1 EXCEPT SELECT Coach_ID FROM player_coach WHERE "Coach_ID" != 1 OR "Starting_year" <= 2010 AND "Player_ID" != 1


Question: SELECT AVG(T1.Aircraft_ID), 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 <> 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7


Question: SELECT role_description FROM Roles WHERE role_description != "Photo" OR role_code = "PT" INTERSECT SELECT role_description FROM Roles WHERE role_code != "MG"


Question: SELECT Player_ID FROM player WHERE Gender != "M" OR "Player_ID" <= 5 OR Player_name = "Sean Robert" OR Occupation != "Parliamentarian" AND Sponsor_name <> "Charleswood—St. James—Assiniboia" INTERSECT SELECT Player_ID FROM player WHERE "Votes" <= 4947 OR Rank = "1st" OR Gender != "M"


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


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


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


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


Question: SELECT ClubName FROM Club WHERE ClubName <> "Tennis Club" OR ClubLocation = "HHH" UNION ALL SELECT ClubName FROM Club WHERE "ClubID" != 1 OR ClubLocation = "AKW" OR ClubName != "Tennis Club"


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


Question: SELECT Model FROM model_list WHERE Model <> "volvo" AND "ModelId" <> 22 INTERSECT SELECT Model FROM model_list WHERE "ModelId" = 20 OR Model != "jeep" AND "Maker" >= 23


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


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


Question: SELECT MIN(StuID), AVG(PetID) FROM Has_Pet WHERE "PetID" >= 2002 OR "StuID" >= 1002 EXCEPT SELECT MIN(StuID), AVG(PetID) FROM Has_Pet WHERE "PetID" != 2002 AND "StuID" <= 1002


Question: SELECT document_id FROM Documents WHERE other_details <> "n" AND receipt_date != "1996-05-31 06:51:58" EXCEPT SELECT document_id FROM Documents_Mailed WHERE mailing_date != "1973-02-21 10:17:01" OR "document_id" = 7 OR "mailed_to_address_id" <> 2


Question: SELECT document_id FROM Circulation_History WHERE "document_id" <= 2 UNION ALL SELECT document_id FROM Documents WHERE other_details = "z" AND receipt_date <> "1976-09-15 19:24:17" OR shipping_agent_code = "AL" OR "document_id" = 14 OR receipt_number != "114"


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


Question: SELECT Location, School_id, County FROM School WHERE School_id = "6" OR IHSAA_Football_Class <> "AAA" AND Mascot = "Lions" AND School_name != "Triton" INTERSECT SELECT Location, School_id, County FROM School WHERE County <> "50 Marshall" AND School_id != "3" OR "Enrollment" >= 379 OR Mascot <> "Cavaliers" AND IHSAA_Football_Class = "A" AND Location != "Bourbon" AND IHSAA_Class != "AA"


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 MIN(title), id FROM albums WHERE title = "Santana Live" AND "id" = 199 UNION SELECT MIN(title), id FROM employees WHERE phone = "+1 (403) 456-9986" OR address != "11120 Jasper Ave NW" AND "reports_to" <> 1.0 AND state != "AB" OR "id" > 5 AND postal_code <> "T1K 5N8" OR birth_date != "1973-08-29 00:00:00" OR first_name != "Andrew" OR country <> "Canada" OR city <> "Calgary" OR title <> "Sales Support Agent" AND email <> "nancy@chinookcorp.com" AND last_name <> "Johnson" OR hire_date = "2002-08-14 00:00:00"


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


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


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


Question: SELECT document_id FROM Circulation_History WHERE "draft_number" <> 17 INTERSECT SELECT document_id FROM Documents WHERE document_type_code != "Hard Drive" OR receipt_number != "114" OR "document_id" > 23 OR document_status_code = "overdue" OR other_details != "y"


Question: SELECT contestant_number FROM CONTESTANTS WHERE contestant_name = "Nita Coster" UNION ALL SELECT contestant_number FROM VOTES WHERE state <> "NY" OR "contestant_number" = 3 OR created <> "2018-03-09 19:03:40" OR "phone_number" <= 6209222712


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


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


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


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 MAX(Other_Details) FROM Documents WHERE Other_Details <> "None" AND "Template_ID" >= 6 AND Document_Name <> "Learning French" AND Document_Description = "w" UNION SELECT MAX(Other_Details) FROM Paragraphs WHERE "Paragraph_ID" > 3708


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


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


Question: SELECT property_id FROM Other_Property_Features WHERE "feature_id" >= 4 EXCEPT SELECT property_id FROM Properties WHERE fld_feature_2 = "None" AND apt_feature_1 <> "ut" AND shp_feature_3 = "None" AND property_address = "2088 Bashirian Fork Suite 337 Faustinoport, MT 16771-9320" OR hse_feature_3 != "None" OR oth_feature_1 <> "None" OR date_sold = "1981-06-26 21:28:28" AND apt_feature_3 != "None" OR shp_feature_2 = "None" AND oth_feature_3 <> "None" OR fld_feature_3 = "None" AND "buyer_offered_price" <= 296733.0 OR "room_count" < 3 OR date_on_market = "1986-11-26 04:12:18" AND "agreed_selling_price" != 4201.8 AND oth_feature_2 <> "None" OR apt_feature_2 <> "adipisci" AND property_type_code = "Field" AND property_name != "longacre" AND "vendor_requested_price" > 2573.0 AND shp_feature_1 <> "None" AND other_property_details <> "None" OR hse_feature_1 <> "None" OR hse_feature_2 = "None" AND fld_feature_1 = "None"


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


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


Question: SELECT document_status_code, receipt_date, COUNT(shipping_agent_code), AVG(document_id), document_type_code, AVG(receipt_number) FROM Documents WHERE shipping_agent_code <> "SH" OR receipt_number <> "114" AND document_type_code <> "Hard Drive" OR document_status_code != "overdue" OR receipt_date != "2008-04-21 20:42:25" AND "document_id" > 17 UNION SELECT document_status_code, receipt_date, COUNT(shipping_agent_code), AVG(document_id), document_type_code, AVG(receipt_number) FROM Documents WHERE document_status_code = "working" AND shipping_agent_code <> "UP" OR other_details = "y" AND receipt_date <> "2015-04-03 09:36:19" AND document_type_code = "Paper"


Question: SELECT name FROM employee WHERE "salary" != 23980 OR name != "Mark Young" UNION SELECT name FROM employee WHERE "eid" <= 248965255


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


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


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


Question: SELECT Age, city_code, Sex, Major, Fname FROM Student WHERE Fname <> "Steven" AND Sex != "F" AND "Age" != 22 OR city_code != "WAS" OR "StuID" = 1035 AND "Major" > 550 AND "Advisor" = 1148 INTERSECT SELECT Age, city_code, Sex, Major, Fname FROM Student WHERE city_code = "WAS" OR "Age" < 19 AND "Major" >= 550 OR LName = "Tai" OR Fname != "Dinesh"


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


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


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


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


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


Question: SELECT MAX(Continent) FROM countries WHERE CountryName = "russia" UNION SELECT MAX(Continent) FROM countries WHERE CountryName <> "nigeria" AND "CountryId" > 12 OR "Continent" > 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 <> 5


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


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


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


Question: SELECT airport_id, id, Date FROM flight WHERE "id" <= 11 AND Vehicle_Flight_number != "M2-F1 #21" AND Pilot <> "Thompson" OR "Altitude" >= 3650.0 UNION ALL SELECT airport_id, id, Date FROM flight WHERE Vehicle_Flight_number <> "M2-F1 #1" OR Pilot <> "Thompson" AND Date <> "March 1, 1963" AND "company_id" > 7 OR "id" <> 9 OR "Altitude" = 3650.0 OR "Velocity" <> 135.0 OR "airport_id" <= 5


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


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


Question: SELECT draft_number, document_id FROM Circulation_History WHERE "copy_number" > 10 OR "employee_id" <> 8 INTERSECT SELECT draft_number, document_id FROM Document_Drafts WHERE "draft_number" <> 14 AND "document_id" <= 12 AND draft_details <> "m"


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


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


Question: SELECT origin, arrival_date, flno FROM flight WHERE arrival_date <> "04/12/2005 05:03" UNION ALL SELECT origin, arrival_date, flno FROM flight WHERE arrival_date = "04/12/2005 05:03"


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


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


Question: SELECT Company_ID FROM company WHERE "Profits_in_Billion" != 11.1 OR "Market_Value_in_Billion" != 294.7 OR Industry = "Banking" INTERSECT SELECT Company_ID FROM employment WHERE "People_ID" >= 2


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


Question: SELECT County_name FROM county WHERE Zip_code <> "D09" EXCEPT SELECT County_name FROM county WHERE "County_Id" < 1 AND Zip_code != "D02" AND "Population" <= 21000.0 OR County_name <> "Manning"


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


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


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


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


Question: SELECT MAX(other_details), receipt_date FROM Documents WHERE document_status_code <> "working" AND receipt_number <> "79" OR receipt_date <> "2005-09-30 00:10:02" UNION ALL SELECT MAX(other_details), receipt_date FROM Documents WHERE receipt_number <> "189" OR document_status_code != "done" AND "document_id" < 23 AND other_details != "w" AND document_type_code != "Hard Drive"


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


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


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


Question: SELECT Lieutenant_Governor, Attorney_General FROM party WHERE Party != "Democratic" OR US_Senate <> "Hillary Rodham Clinton" UNION SELECT Lieutenant_Governor, Attorney_General FROM party WHERE Party != "Democratic" OR "Year" <> 2002.0


Question: SELECT Sales_in_Billion, Headquarters, Profits_in_Billion FROM company WHERE "Sales_in_Billion" != 470.2 AND Industry != "Conglomerate" OR Headquarters != "Germany" AND Name = "Petrobras" OR "Company_ID" <> 5.0 OR "Market_Value_in_Billion" <> 107.5 AND "Profits_in_Billion" >= 16.2 UNION SELECT Sales_in_Billion, Headquarters, Profits_in_Billion FROM company WHERE Headquarters = "USA" OR Industry = "Banking" OR Name = "Royal Dutch Shell" AND "Sales_in_Billion" <> 221.9 AND "Company_ID" <= 4.0 OR "Profits_in_Billion" <= 20.5


Question: SELECT COUNT(Years_Working), If_full_time FROM school_bus WHERE "Years_Working" > 8 OR "Driver_ID" <= 4 EXCEPT SELECT COUNT(Years_Working), If_full_time FROM school_bus WHERE If_full_time != "T"


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


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


Question: SELECT AVG(city_code), Age, LName, Major, COUNT(Fname), SUM(Advisor), Sex FROM Student WHERE "Age" > 18 OR Fname = "Ian" AND "StuID" > 1035 OR "Advisor" <= 1148 EXCEPT SELECT AVG(city_code), Age, LName, Major, COUNT(Fname), SUM(Advisor), Sex FROM Student WHERE "Age" = 17 AND Fname = "Michael" AND Sex != "M" OR "Major" = 550 AND LName != "Andreou"

AVG(city_code) Age LName Major COUNT(Fname) SUM(Advisor) Sex


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


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


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


Question: SELECT id FROM airport WHERE City != "Brussels" AND "id" <= 6 AND ICAO != "EHAM" AND Country = "Norway" UNION ALL SELECT id FROM flight WHERE Date <> "January 29, 1964"


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


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


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


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


Question: SELECT District_ID FROM district WHERE Headquartered_City = "Bhakkar City" AND "District_ID" > 9 OR "City_Population" <> 464742.0 UNION SELECT District_ID FROM store_district WHERE "Store_ID" <> 3 OR "District_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 >= 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 > 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 <= 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 <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10


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


Question: SELECT country, line_1_number_building, zip_postcode FROM Addresses WHERE line_1_number_building != "37698 Hahn Curve Apt. 572" AND zip_postcode != "14445" INTERSECT SELECT country, line_1_number_building, zip_postcode FROM Addresses WHERE city <> "New Bernieceburgh" OR state_province_county != "Georgia" AND zip_postcode <> "75074" AND line_1_number_building <> "535 Ariel Brook" AND country != "USA" AND "address_id" >= 5

USA
43235 Jazmin Mountain Suite 251
75074


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


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


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


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


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


Question: SELECT People_ID FROM employment WHERE "Year_working" <> 2 OR "Company_ID" >= 11 OR "People_ID" != 4 UNION ALL SELECT People_ID FROM people WHERE Nationality <> "United Kindom" AND Name = "Tom Sheehey" OR "Age" >= 27 OR Graduation_College <> "California"


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 T1.Airport_Name, T2.Airport_ID FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID


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


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


Question: SELECT MIN(Headquarters), Market_Value_in_Billion FROM company WHERE Industry != "Oil and gas" OR Headquarters = "Brazil" AND "Sales_in_Billion" <> 110.8 UNION SELECT MIN(Headquarters), Market_Value_in_Billion FROM company WHERE "Sales_in_Billion" = 110.8 AND Headquarters = "China" OR Name = "Royal Dutch Shell" OR "Profits_in_Billion" = 16.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 < 3


Question: SELECT MIN(City_Population) FROM district WHERE Headquartered_City = "Gujrat City" AND "City_Area" = 10.0 EXCEPT SELECT MIN(City_Population) FROM district WHERE "City_Area" <> 12.0 OR District_name != "Bahawalnagar District" AND "District_ID" != 1 OR "City_Population" <= 219254.0


Question: SELECT People_ID FROM people WHERE "People_ID" = 7 UNION ALL SELECT People_ID FROM poker_player WHERE "Money_Rank" <= 58.0 OR "Earnings" > 189233.0 AND "People_ID" = 7 OR "Best_Finish" <= 2.0 OR "Poker_Player_ID" > 3


Question: SELECT customer_id FROM Customer_Payments WHERE datetime_payment != "2018-02-27 20:08:53" OR "customer_id" != 3 OR "amount_payment" < 6970.98 EXCEPT SELECT customer_id FROM Lessons WHERE lesson_date <> "2018-03-04 06:55:46" OR lesson_status_code = "Cancelled" OR "vehicle_id" = 2


Question: SELECT First_Elected, District, Delegate, Party, Counties_Represented FROM election WHERE "Election_ID" >= 1 AND Committee != "Environmental Matters (Vice-Chair)" OR "Party" < 1 UNION SELECT First_Elected, District, Delegate, Party, Counties_Represented FROM election WHERE "District" = 3 AND Committee != "Economic Matters" OR Counties_Represented = "13" AND Delegate = "Turner, Frank S. Frank S. Turner" OR "Party" = 3

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

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


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


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


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


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


Question: SELECT contestant_number FROM CONTESTANTS WHERE contestant_name != "Tabatha Gehling" OR "contestant_number" < 11 UNION ALL SELECT contestant_number FROM VOTES WHERE "contestant_number" >= 3 AND created != "2018-03-09 19:03:40" OR "phone_number" < 6209222712 OR state <> "CA"


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 School_ID FROM school WHERE Location <> "Los Angeles, California" AND "School_ID" <> 6 UNION ALL SELECT School_ID FROM school_bus WHERE "Years_Working" >= 3 OR "School_ID" > 7


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


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


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


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


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


Question: SELECT AVG(T1.District), T2.Comptroller FROM election as T1 JOIN party as T2 ON T1.Party = T2.Party WHERE Lieutenant_Governor <> "Jonathan Reiter" OR COUNT(Year) <= 2006.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 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 document_status_description, document_status_code FROM Ref_Document_Status WHERE document_status_description != "mailed" OR document_status_code <> "overdue" UNION ALL SELECT document_status_description, document_status_code FROM Ref_Document_Status WHERE document_status_description != "currently working on" AND document_status_code = "done"


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


Question: SELECT role_code, role_description FROM Roles WHERE role_code <> "MG" OR role_description != "Manager" UNION SELECT role_code, role_description FROM Roles WHERE role_description != "Manager" OR role_code != "ED"


Question: SELECT Years_Working, School_ID FROM school_bus WHERE If_full_time = "T" EXCEPT SELECT Years_Working, School_ID FROM school_bus WHERE If_full_time != "T" AND "Driver_ID" != 3 OR "Years_Working" >= 8


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


Question: SELECT COUNT(Club_ID), Club_name, COUNT(Region), MAX(Start_year) FROM club WHERE Region = "Russia" GROUP BY Club_name HAVING COUNT(Club_ID) = 1 EXCEPT SELECT COUNT(Club_ID), Club_name, COUNT(Region), MAX(Start_year) FROM club WHERE Region != "Russia" AND Club_name = "Helsingborgs IF" GROUP BY Club_name HAVING MAX(Start_year) > 2011 AND COUNT(Club_ID) != 1


Question: SELECT Aircraft_ID FROM aircraft WHERE Total_disk_area <> "497 ft² (46.2 m²)" OR Max_disk_Loading <> "2.6 lb/ft² (14 kg/m²)" OR "Aircraft_ID" >= 5 AND Aircraft != "Mil Mi-26" AND Description = "Tandem rotor helicopter" AND Max_Gross_Weight = "1,370 lb (635 kg)" INTERSECT SELECT Aircraft_ID FROM airport_aircraft WHERE "ID" <> 1


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


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


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


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


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


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


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


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


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


Question: SELECT contestant_number, phone_number, created, state, vote_id FROM VOTES WHERE state = "NY" OR "vote_id" <= 2 OR created <> "2018-03-09 19:03:39" UNION ALL SELECT contestant_number, phone_number, created, state, vote_id FROM VOTES WHERE "phone_number" >= 7148407040


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


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


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


Question: SELECT School_id FROM School WHERE School_name != "Glenn" UNION SELECT School_id FROM endowment WHERE donator_name = "Monte Plata"


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


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


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


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


Question: SELECT Age, Name, Nationality, Graduation_College, People_ID FROM people WHERE Nationality != "United States" OR Graduation_College != "Oklahoma" UNION SELECT Age, Name, Nationality, Graduation_College, People_ID FROM people WHERE "People_ID" = 5 OR "Age" < 30 AND Nationality = "United States" OR Name = "Darryl Kennedy"


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 Name FROM branch WHERE Name = "Popert" OR Open_year != "2009" OR City <> "London" EXCEPT SELECT Name FROM member WHERE "Member_ID" >= 8 OR "Level" <= 6 OR Hometown <> "LaGrange, Georgia" AND Name = "Myron Pryor" AND Card_Number = "SLB51"


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


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


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 OR Age <> 36 OR Party <> "Dem" AND If_full_time <> "T" AND Name = "Tim Larson" AND School_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 != 3


Question: SELECT city_code, StuID FROM Student WHERE city_code != "NYC" OR "Major" = 600 UNION SELECT city_code, StuID FROM Student WHERE "Age" >= 18 AND "Advisor" < 2311 OR "StuID" != 1006


Question: SELECT contestant_number, MAX(contestant_name) FROM CONTESTANTS WHERE contestant_name != "Jessie Eichman" UNION SELECT contestant_number, MAX(contestant_name) FROM CONTESTANTS WHERE "contestant_number" <> 8


Question: SELECT School_id FROM budget WHERE "Year" <= 2001 AND "Invested" <= 95542 AND Budget_invested_percent <> "228.8" AND "Budgeted" <> 119527 EXCEPT SELECT School_id FROM endowment WHERE "endowment_id" >= 5 AND "School_id" <> 4


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


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


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


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


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


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


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


Question: SELECT aid FROM aircraft WHERE "distance" >= 520 UNION ALL SELECT aid FROM certificate WHERE "eid" >= 269734834 OR "aid" <= 3


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


Question: SELECT Name FROM company WHERE "Profits_in_Billion" < 10.3 OR Name = "Chevron" OR "Assets_in_Billion" <= 213.0 AND "Sales_in_Billion" < 447.0 AND "Market_Value_in_Billion" <= 294.7 OR Headquarters != "USA" UNION SELECT Name FROM people WHERE "People_ID" > 2 AND "Age" > 37 AND Graduation_College <> "Northeastern" AND Nationality <> "United Kindom" OR Name != "David Butler"


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 Name FROM employee WHERE Name != "Jason Hobson" OR "Age" != 30 EXCEPT SELECT Name FROM shop WHERE Name = "FC Inter" OR "Shop_ID" >= 2 OR Manager_name = "Mika Lehkosuo" AND District <> "Tehtaan kenttä"


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


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


Question: SELECT Name, Level, Hometown FROM member WHERE Hometown = "Jacksonville, Florida" UNION SELECT Name, Level, Hometown FROM member WHERE Hometown = "Columbia, South Carolina"

Ventrell Jenkins
6
Columbia, South Carolina


Question: SELECT line_1_number_building, MIN(state_province_county), MAX(city), SUM(country), zip_postcode, address_id FROM Addresses WHERE line_1_number_building != "053 Quigley Island" OR city = "Buckridgehaven" OR state_province_county != "Louisiana" AND "address_id" <= 5 AND zip_postcode <> "00005" UNION ALL SELECT line_1_number_building, MIN(state_province_county), MAX(city), SUM(country), zip_postcode, address_id FROM Addresses WHERE state_province_county <> "Georgia" AND city = "Ericamouth" OR country <> "USA" OR zip_postcode != "99903" AND line_1_number_building != "484 O'Hara Drive" OR "address_id" != 13


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


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


Question: SELECT document_id FROM Circulation_History WHERE "employee_id" >= 2 OR "copy_number" < 4 AND "draft_number" > 20 OR "document_id" <> 10 INTERSECT SELECT document_id FROM Draft_Copies WHERE "copy_number" > 4 OR "draft_number" < 2 AND "document_id" >= 2


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


Question: SELECT COUNT(address_details), AVG(address_id) FROM Addresses WHERE "address_id" <= 0 UNION SELECT COUNT(address_details), AVG(address_id) FROM Addresses WHERE "address_id" < 1


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


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


Question: SELECT 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 School_id FROM School WHERE "Enrollment" != 379 OR IHSAA_Football_Class != "AA" OR Mascot != "Redskins" OR County <> "71 St. Joseph" EXCEPT SELECT School_id FROM endowment WHERE "School_id" >= 3 OR "endowment_id" >= 11


Question: SELECT id FROM airport WHERE Country != "Denmark" EXCEPT SELECT id FROM flight WHERE "id" <> 10 AND Pilot = "Thompson" AND "Altitude" > 3650.0 AND Vehicle_Flight_number <> "M2-F1 #13"


Question: SELECT COUNT(staff_id) FROM Lessons WHERE "staff_id" <= 1 AND "price" <> 277.0 OR "customer_id" < 6 OR lesson_status_code = "Cancelled" AND lesson_date = "2018-02-26 02:36:35" OR "vehicle_id" != 1 AND lesson_time != "9" UNION ALL SELECT COUNT(staff_id) FROM Staff WHERE middle_name <> "Caesar" OR last_name = "Weissnat" OR first_name = "Ernestina" OR "staff_address_id" != 12 OR date_of_birth != "2000-06-13 18:09:11" OR nickname != "ynader" AND date_joined_staff != "2017-06-04 14:30:41" OR "staff_id" < 13


Question: SELECT MAX(People_ID) FROM employment WHERE "Year_working" <> 4 EXCEPT SELECT MAX(People_ID) FROM people WHERE Graduation_College = "Wisconsin–Stevens Point" OR Name != "Tim Naegeli" AND "People_ID" >= 5


Question: SELECT MAX(Club_ID) FROM club WHERE Region != "UK" OR "Club_ID" <= 1 AND Club_name != "Djurgårdens IF" UNION SELECT MAX(Club_ID) FROM match_result WHERE "Club_ID" >= 2 OR "Rank" != 6 AND "Small_Silver" <> 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 <= 5


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


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


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


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


Question: SELECT Name FROM company WHERE Headquarters != "China" AND "Assets_in_Billion" != 292.5 OR "Sales_in_Billion" >= 117.6 OR Industry = "Banking" OR "Profits_in_Billion" = 26.9 OR Name = "General Electric" OR "Company_ID" = 5.0 OR "Market_Value_in_Billion" <> 294.7 UNION SELECT Name FROM people WHERE Nationality = "United States" AND Name <> "Brad Lohaus" AND "Age" <= 31


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


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


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


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


Question: SELECT feature_type_code FROM Other_Available_Features WHERE "feature_id" <> 4 AND feature_name != "BurglarAlarm" OR feature_description = "Air Conditioning." OR feature_type_code = "Security" INTERSECT SELECT feature_type_code FROM Ref_Feature_Types WHERE feature_type_code = "Security" AND feature_type_name != "Amenity, eg Pool."


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 MAX(Maker) FROM car_makers WHERE Maker = "nissan" AND "Id" < 15 EXCEPT SELECT MAX(Maker) FROM model_list WHERE "Maker" < 5 AND Model != "mercedes-benz" OR "ModelId" <= 36


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


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


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


Question: SELECT T1.District_ID, T2.District_ID FROM district as T1 JOIN store_district as T2 ON T1.District_ID == T2.District_ID GROUP BY Headquartered_City HAVING Headquartered_City <> "Bahawalnagar City" AND Store_ID >= 1 AND City_Population > 314617.0


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 Player_ID FROM player WHERE Rank = "2nd" OR Sponsor_name <> "Winnipeg South" AND Gender = "M" OR "Votes" > 14355 OR "Player_ID" <= 14 OR Player_name <> "Matt Schaubroeck" INTERSECT SELECT Player_ID FROM player_coach WHERE "Coach_ID" >= 5


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


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


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


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


Question: SELECT MAX(aid) FROM aircraft WHERE "distance" < 1502 AND name <> "Airbus A320" AND "aid" <> 6 UNION ALL SELECT MAX(aid) FROM certificate WHERE "aid" != 8


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


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


Question: SELECT MIN(maxOccupancy), AVG(RoomId), MIN(basePrice) FROM Rooms WHERE decor = "modern" AND RoomId = "IBS" AND "beds" <= 2 AND "maxOccupancy" = 2 AND roomName <> "Mendicant with cryptic" AND "basePrice" >= 100 AND bedType = "King" EXCEPT SELECT MIN(maxOccupancy), AVG(RoomId), MIN(basePrice) FROM Rooms WHERE RoomId = "AOB" OR bedType = "King" AND decor = "modern" OR roomName != "Harbinger but bequest" AND "basePrice" != 150


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


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


Question: SELECT AVG(Sales_in_Billion), COUNT(Industry), SUM(Headquarters), Company_ID FROM company WHERE Headquarters <> "UK" OR "Assets_in_Billion" > 717.2 AND "Profits_in_Billion" <> 21.5 OR Industry <> "Oil and gas" UNION ALL SELECT AVG(Sales_in_Billion), COUNT(Industry), SUM(Headquarters), Company_ID FROM company WHERE Headquarters <> "USA"


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


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 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 MIN(Club_ID) FROM club WHERE Region = "USA" OR "Start_year" < 2011 OR Club_name != "Gefle IF" AND "Club_ID" > 5 UNION ALL SELECT MIN(Club_ID) FROM coach WHERE Gender = "M" AND "Rank" >= 1 AND "Club_ID" > 3 AND "Coach_ID" >= 1 OR Coach_name = "Joe Fabbri"


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


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


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


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


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


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


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


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


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


Question: SELECT u_id, MIN(rank) FROM review WHERE "i_id" <= 7 AND "u_id" > 2 AND "a_id" >= 3 OR "rank" <= 7 OR "rating" = 5 UNION ALL SELECT u_id, MIN(rank) FROM review WHERE "a_id" = 6 AND "u_id" <= 2


Question: SELECT id FROM albums WHERE "artist_id" >= 147 AND title = "Holst: The Planets, Op. 32 & Vaughan Williams: Fantasies" OR "id" <> 269 UNION SELECT id FROM playlists WHERE "id" > 18


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


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


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


Question: SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code <> "BK" INTERSECT SELECT Template_Type_Code FROM Templates WHERE Date_Effective_To <> "1974-09-14 06:34:39" AND "Version_Number" < 2 AND Template_Type_Code != "PP" OR "Template_ID" >= 20 OR Template_Details <> "" AND Date_Effective_From != "2002-08-25 13:26:23"


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


Question: SELECT COUNT(property_feature_description) FROM Other_Property_Features WHERE property_feature_description = "corrupti" OR "feature_id" < 4 OR "property_id" >= 4 UNION ALL SELECT COUNT(property_feature_description) FROM Other_Property_Features WHERE "property_id" > 14 OR "feature_id" >= 3


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


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


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


Question: SELECT Counties_Represented, First_Elected, MAX(Party) FROM election WHERE "Party" > 1 EXCEPT SELECT Counties_Represented, First_Elected, MAX(Party) FROM election WHERE Delegate <> "Bobo, Elizabeth Elizabeth Bobo" AND Counties_Represented != "12.2 12B" AND "First_Elected" != 1994.0 AND Committee <> "Economic Matters"


Question: SELECT id FROM albums WHERE title <> "UB40 The Best Of - Volume Two UK" AND "id" >= 140 AND "artist_id" > 115 UNION ALL SELECT id FROM playlists WHERE name != "Audiobooks" AND "id" != 10


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


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


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


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


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


Question: SELECT Is_full_time, Shop_ID, Employee_ID, Start_from FROM hiring WHERE "Shop_ID" >= 2 OR Is_full_time != "T" EXCEPT SELECT Is_full_time, Shop_ID, Employee_ID, Start_from FROM hiring WHERE "Employee_ID" = 1 AND "Shop_ID" = 5


Question: SELECT COUNT(ICAO), COUNT(name), id, MIN(IATA) FROM airport WHERE ICAO = "EHAM" OR City <> "Billund" OR Country = "Belgium" OR IATA <> "BWI" AND name <> "Bergen Airport" UNION SELECT COUNT(ICAO), COUNT(name), id, MIN(IATA) FROM airport WHERE ICAO = "EBBR" AND name != "Ted Stevens Airport" OR "id" <= 3 OR Country != "Netherlands" AND IATA = "BWI" OR City != "Bergen"


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


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


Question: SELECT Club_ID FROM club WHERE "Club_ID" >= 1 OR "Start_year" > 2001 UNION ALL SELECT Club_ID FROM match_result WHERE "Small_Silver" > 10 AND "Points" <> 139 OR "Gold" != 13


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 MAX(Allergy) FROM Allergy_Type WHERE AllergyType != "environmental" OR Allergy <> "Soy" UNION ALL SELECT MAX(Allergy) FROM Has_Allergy WHERE Allergy <> "Dog" AND "StuID" != 1003


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 Comptroller, Governor, Party_ID FROM party WHERE US_Senate <> "Hillary Rodham Clinton" OR "Year" < 2006.0 OR Lieutenant_Governor = "David Paterson" AND Party = "Liberal" OR Governor <> "Peter Vallone" UNION SELECT Comptroller, Governor, Party_ID FROM party WHERE "Year" > 2006.0 OR US_Senate = "Hillary Rodham Clinton" AND Comptroller = "Carl McCall" OR Governor != "Tom Golisano" AND "Party_ID" != 7 OR Lieutenant_Governor != "Jonathan Reiter"


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


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


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


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


Question: SELECT Is_full_time, Start_from FROM hiring WHERE Start_from != "2012" AND "Shop_ID" >= 8 OR Is_full_time != "T" OR "Employee_ID" > 1 UNION ALL SELECT Is_full_time, Start_from FROM hiring WHERE Start_from != "2009" AND "Employee_ID" > 2 OR "Shop_ID" >= 2


Question: SELECT document_id FROM Documents WHERE other_details = "m" OR shipping_agent_code != "UP" OR receipt_date <> "1976-09-15 19:24:17" AND "document_id" <> 14 UNION ALL SELECT document_id FROM Draft_Copies WHERE "copy_number" <> 10 OR "document_id" < 4 OR "draft_number" <> 17


Question: SELECT ClubDesc FROM Club WHERE ClubLocation <> "AKW" OR ClubDesc = "A competitive tennis club." AND "ClubID" <> 4 EXCEPT SELECT ClubDesc FROM Club WHERE ClubDesc != "Venture capital fund for student business." AND ClubName <> "Pen and Paper Gaming" AND "ClubID" > 2 AND ClubLocation = "AKW"


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


Question: SELECT customer_id FROM Customer_Payments WHERE datetime_payment != "2018-02-06 13:35:58" EXCEPT SELECT customer_id FROM Customers WHERE "customer_address_id" <> 13 AND "amount_outstanding" <= 5494.0 AND email_address = "kroberts@example.org" AND cell_mobile_phone_number = "+57(9)4602098297"


Question: SELECT Document_Description, SUM(Document_Name), AVG(Other_Details), MAX(Document_ID), MAX(Template_ID) FROM Documents WHERE Document_Description <> "k" OR "Document_ID" <= 2394 OR Other_Details <> "None" OR Document_Name != "Robbin CV" INTERSECT SELECT Document_Description, SUM(Document_Name), AVG(Other_Details), MAX(Document_ID), MAX(Template_ID) FROM Documents WHERE Document_Description != "z" AND Other_Details = "None" OR Document_Name <> "A history of Arts"


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


Question: SELECT MIN(eid) FROM certificate WHERE "aid" >= 11 AND "eid" <= 556784565 EXCEPT SELECT MIN(eid) FROM employee WHERE "salary" < 256481 AND name <> "Lawrence Sperry" OR "eid" < 11564812


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


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


Question: SELECT id, title FROM albums WHERE "id" <> 208 AND "artist_id" = 58 UNION ALL SELECT id, title FROM employees WHERE city <> "Calgary" OR birth_date != "1958-12-08 00:00:00" OR fax = "+1 (403) 456-8485" OR state = "AB" AND email = "robert@chinookcorp.com" AND address = "7727B 41 Ave" AND hire_date != "2002-05-01 00:00:00" AND "reports_to" >= 6.0 OR first_name != "Laura" AND "id" >= 3 OR phone != "+1 (403) 263-4423" OR postal_code = "T5K 2N1" AND last_name != "Mitchell" AND title = "IT Staff"

Knocking at Your Back Door: The Best Of Deep Purple in the 80's


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


Question: SELECT SUM(T1.Id), T2.Weight FROM car_makers as T1 JOIN cars_data as T2 ON T1.Id = T2.Id WHERE FullName = "American Motor Company" OR COUNT(Cylinders) < 4 OR Horsepower <> "75" AND Year <= 1982 AND COUNT(Accelerate) <= 16.5 AND MIN(Weight) <> 2472 AND Country <> "8" OR Maker <> "toyota"


Question: SELECT AVG(rank), AVG(rating), MIN(u_id), MIN(i_id) FROM review WHERE "i_id" <> 3 AND "rank" < 3 AND "a_id" < 4 AND "rating" < 7 OR "u_id" <> 2 UNION SELECT AVG(rank), AVG(rating), MIN(u_id), MIN(i_id) FROM review WHERE "rating" != 7 AND "rank" > 6 AND "i_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 <> 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 != 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1


Question: SELECT Player_ID FROM player_coach WHERE "Starting_year" != 2010 UNION ALL SELECT Player_ID FROM player_coach WHERE "Player_ID" <> 14


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 document_status_code FROM Ref_Document_Status WHERE document_status_description = "mailed" OR document_status_code <> "done" EXCEPT SELECT document_status_code FROM Ref_Document_Status WHERE document_status_description <> "currently working on" OR document_status_code <> "working"


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


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


Question: SELECT feature_id FROM Other_Available_Features WHERE "feature_id" < 4 OR feature_description != "Swimming Pool." OR feature_name = "BurglarAlarm" EXCEPT SELECT feature_id FROM Other_Property_Features WHERE "property_id" = 3 OR "feature_id" <= 2 AND property_feature_description != "quo"


Question: SELECT People_ID FROM employment WHERE "Company_ID" >= 7 OR "People_ID" <> 3 AND "Year_working" > 3 UNION ALL SELECT People_ID FROM people WHERE Name != "Brad Lohaus" AND "Age" = 37 OR "People_ID" = 3


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


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


Question: SELECT Id FROM car_makers WHERE FullName != "Renault" INTERSECT SELECT Id FROM cars_data WHERE MPG <> "38.1" OR "Edispl" <= 98.0 OR "Weight" <> 2914 AND "Cylinders" = 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 customer_id FROM Customer_Payments WHERE payment_method_code != "Direct Debit" OR "customer_id" != 10 EXCEPT SELECT customer_id FROM Lessons WHERE "lesson_id" >= 4 OR "staff_id" > 11 AND lesson_status_code = "Completed" OR lesson_time <> "9" OR "customer_id" >= 2 AND lesson_date != "2018-02-28 10:55:36"


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


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


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


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


Question: SELECT Ranking FROM department WHERE "Ranking" <> 5 INTERSECT SELECT Ranking FROM department WHERE "Ranking" != 13 AND "Num_Employees" != 30266.0


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


Question: SELECT document_status_code FROM Ref_Document_Status WHERE document_status_code <> "done" OR document_status_description != "mailed" UNION SELECT document_status_code FROM Ref_Document_Status WHERE document_status_code <> "working" AND document_status_description <> "mailed late"


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 feature_id FROM Other_Available_Features WHERE feature_name = "AirCon" UNION ALL SELECT feature_id FROM Other_Property_Features WHERE "feature_id" != 4 OR property_feature_description <> "quo" OR "property_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 < 4


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


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


Question: SELECT MAX(T1.Id), T2.MPG FROM car_makers as T1 JOIN cars_data as T2 ON T1.Id = T2.Id WHERE "Year" >= 1974 AND Horsepower = "150" AND MPG <> "38" OR "Edispl" > 140.0 OR "Accelerate" = 16.0 OR FullName <> "Citroen" OR Maker = "citroen" GROUP BY Cylinders HAVING FullName <> "Subaru" AND Maker <> "renault" AND Weight >= 3459 OR Accelerate <> 12.2 OR Cylinders = 8 AND Edispl <> 351.0 OR Horsepower <> "180" AND MPG = "13" AND Year >= 1974 AND Country <> "3"


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


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


Question: SELECT COUNT(T1.amount_payment), T2.cell_mobile_phone_number FROM Customer_Payments as T1 JOIN Customers as T2 ON T1.customer_id = T2.customer_id WHERE payment_method_code <> "Direct Debit" AND datetime_payment = "2018-02-06 13:35:58" AND customer_status_code = "Good Customer" AND phone_number <> "(662)490-3108" OR "amount_payment" = 1708.18 AND date_became_customer = "2017-10-05 14:15:46" AND date_of_birth = "1998-09-18 04:45:01" OR "amount_outstanding" >= 9332.0 OR email_address = "kroberts@example.org" GROUP BY cell_mobile_phone_number HAVING date_of_birth <> "1996-08-29 00:03:08" AND datetime_payment <> "2018-02-06 13:35:58" AND cell_mobile_phone_number <> "1-387-258-1016x96963" OR amount_outstanding = 2255.0


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 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 School_id FROM budget WHERE "total_budget_percent_invested" >= 2.0 OR "total_budget_percent_budgeted" >= 1.3 OR Budget_invested_percent != "228.8" AND "Year" < 2006 AND "Budgeted" <= 6803 OR "Invested" < 95542 UNION ALL SELECT School_id FROM endowment WHERE donator_name <> "La Vega"


Question: SELECT COUNT(City) FROM employee WHERE "Age" <= 32 IN (SELECT COUNT(City) FROM employee WHERE Name = "Phil Vickery" AND City <> "Bath" AND "Employee_ID" <> 8)


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


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


Question: SELECT receipt_number, MIN(receipt_date), document_status_code, document_id, SUM(other_details) FROM Documents WHERE document_status_code <> "overdue" AND document_type_code <> "Hard Drive" OR shipping_agent_code <> "UP" AND other_details = "u" OR "document_id" >= 15 AND receipt_date = "2014-12-25 17:22:44" UNION SELECT receipt_number, MIN(receipt_date), document_status_code, document_id, SUM(other_details) FROM Documents WHERE shipping_agent_code = "SH"


Question: SELECT Document_ID, MAX(Paragraph_Text), Paragraph_ID, MIN(Other_Details) FROM Paragraphs WHERE "Document_ID" < 651512 OR Other_Details != "None" AND Paragraph_Text = "Palestinian Territory" UNION ALL SELECT Document_ID, MAX(Paragraph_Text), Paragraph_ID, MIN(Other_Details) FROM Paragraphs WHERE Other_Details != "None" AND "Paragraph_ID" < 243399026


Question: SELECT Major, StuID, Sex, LName, Fname, city_code FROM Student WHERE Sex != "M" AND city_code <> "HOU" OR "Advisor" > 8722 AND LName = "Pang" AND "StuID" < 1014 AND Fname = "Eric" AND "Age" = 18 UNION ALL SELECT Major, StuID, Sex, LName, Fname, city_code FROM Student WHERE "StuID" >= 1014


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 School_id FROM budget WHERE "total_budget_percent_invested" <= 2.0 AND "Invested" <= 8335 OR "total_budget_percent_budgeted" > 2.0 OR "Year" != 2002 AND Budget_invested_percent = "146.9" AND "School_id" != 5 AND "Budgeted" = 74849 UNION ALL SELECT School_id FROM endowment WHERE "amount" > 9.73 AND donator_name <> "Santiago" OR "endowment_id" > 8


Question: SELECT department_ID, head_ID, temporary_acting FROM management WHERE "head_ID" < 10 UNION ALL SELECT department_ID, head_ID, temporary_acting FROM management WHERE "department_ID" <> 7 AND temporary_acting != "No" OR "head_ID" >= 10


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


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


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


Question: SELECT MIN(customer_id) FROM Customers WHERE date_of_birth = "1998-09-18 04:45:01" OR cell_mobile_phone_number = "+45(6)4872981083" OR date_became_customer != "2016-03-18 06:14:18" OR customer_status_code <> "Good Customer" OR "customer_address_id" != 1 AND last_name = "Bruen" OR phone_number != "1-875-045-0806" OR first_name = "Estelle" OR "customer_id" <= 13 AND email_address != "wehner.harold@example.com" OR "amount_outstanding" <= 7256.0 UNION ALL SELECT MIN(customer_id) FROM Lessons WHERE lesson_time != "2" OR lesson_status_code != "Cancelled" OR lesson_date <> "2018-03-07 22:03:49" AND "price" > 456.0 OR "customer_id" = 11 OR "vehicle_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 <= 4


Question: SELECT IHSAA_Football_Class FROM School WHERE County = "50 Marshall" AND "Enrollment" < 316 OR School_name != "LaVille" AND IHSAA_Class = "A" OR Mascot = "Redskins" OR School_id <> "8" INTERSECT SELECT IHSAA_Football_Class FROM School WHERE Mascot = "Trojans" AND County != "50 Marshall" OR School_id = "3" AND "Enrollment" = 495 OR IHSAA_Class <> "AA" OR IHSAA_Football_Class <> "A" AND School_name <> "Bremen"


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


Question: SELECT 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 T1.Age, T2.Bonus FROM employee as T1 JOIN evaluation as T2 ON T1.Employee_ID == T2.Employee_ID GROUP BY City HAVING Name <> "Matt Stevens"


Question: SELECT Population, COUNT(Zip_code), COUNT(County_name), MAX(County_Id) FROM county WHERE "County_Id" <= 5 AND "Population" <> 21000.0 OR County_name <> "Baltimore County" AND Zip_code <> "D09" GROUP BY Population HAVING COUNT(Zip_code) < 1 OR COUNT(County_name) <= 1 AND MAX(County_Id) > 4 UNION SELECT Population, COUNT(Zip_code), COUNT(County_name), MAX(County_Id) FROM county WHERE "County_Id" != 1 GROUP BY Population HAVING COUNT(County_name) > 1


Question: SELECT City_Population, District_ID, MAX(Headquartered_City), AVG(District_name), AVG(City_Area) FROM district WHERE "District_ID" <> 11 OR Headquartered_City != "Chakwal City" AND "City_Area" <> 12.0 AND "City_Population" <= 314617.0 INTERSECT SELECT City_Population, District_ID, MAX(Headquartered_City), AVG(District_name), AVG(City_Area) FROM district WHERE District_name != "Bhakkar District" OR "District_ID" <> 5 OR Headquartered_City != "Dera Ghazi Khan City" AND "City_Population" <= 219254.0


Question: SELECT Shop_ID FROM hiring WHERE Start_from = "2012" UNION ALL SELECT Shop_ID FROM shop WHERE Location = "Helsinki" OR "Shop_ID" > 4


Question: SELECT COUNT(eid) FROM certificate WHERE "eid" <> 567354612 EXCEPT SELECT COUNT(eid) FROM employee WHERE "eid" > 552455348


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


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


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


Question: SELECT destination, flno, aid, departure_date, MIN(distance) FROM flight WHERE "price" < 278.56 OR arrival_date = "04/12/2005 05:03" OR origin != "Los Angeles" OR "distance" <> 1749 UNION SELECT destination, flno, aid, departure_date, MIN(distance) FROM flight WHERE origin = "Chicago" OR "distance" >= 2606 AND "flno" <> 76 AND departure_date != "04/12/2005 07:03" AND destination != "Los Angeles" OR "aid" > 3

destination flno aid departure_date MIN(distance)


Question: SELECT AVG(Store_ID) FROM store_district WHERE "Store_ID" >= 1 OR "District_ID" < 15 EXCEPT SELECT AVG(Store_ID) FROM store_product WHERE "Product_ID" < 3 AND "Store_ID" < 1


Question: SELECT Max_disk_Loading, MAX(Total_disk_area), Max_Gross_Weight, Aircraft FROM aircraft WHERE "Aircraft_ID" = 3 AND Max_Gross_Weight = "123,500 lb (56,000 kg)" OR Max_disk_Loading != "15 lb/ft² (72 kg/m²)" AND Total_disk_area = "8,495 ft² (789 m²)" OR Aircraft != "Robinson R-22" AND Description <> "Heavy-lift helicopter" UNION SELECT Max_disk_Loading, MAX(Total_disk_area), Max_Gross_Weight, Aircraft FROM aircraft WHERE Aircraft != "CH-47D Chinook" OR Total_disk_area != "5,655 ft² (526 m²)"


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


Question: SELECT Final_Table_Made, Money_Rank, Best_Finish FROM poker_player WHERE "Final_Table_Made" != 42.0 OR "Best_Finish" >= 1.0 AND "People_ID" < 6 AND "Earnings" > 189233.0 AND "Poker_Player_ID" = 5 OR "Money_Rank" != 154.0 UNION SELECT Final_Table_Made, Money_Rank, Best_Finish FROM poker_player WHERE "Poker_Player_ID" != 1 OR "Final_Table_Made" <= 19.0 OR "Earnings" != 189233.0 AND "People_ID" != 1


Question: SELECT max_page_size, MAX(dpi) FROM product WHERE product = "Xerox Travel Scanner 100" UNION ALL SELECT max_page_size, MAX(dpi) FROM product WHERE product <> "Xerox Travel Scanner 100" OR "dpi" = 600.0 OR max_page_size != "216mm x 355mm" OR dimensions <> "300 x 50 x 45" AND interface != "USB 2.0" OR "pages_per_minute_color" <> 30.0 OR "product_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 != 5


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


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


Question: SELECT AVG(role_description) FROM Roles WHERE role_description != "Editor" UNION ALL SELECT AVG(role_description) FROM Roles WHERE role_code <> "PR"


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


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


Question: SELECT SUM(People_ID) FROM employment WHERE "Year_working" < 3 EXCEPT SELECT SUM(People_ID) FROM people WHERE Name <> "Tom Sheehey" OR Graduation_College <> "Wisconsin–Stevens Point" AND "Age" > 37 AND "People_ID" >= 4 AND Nationality = "United States"


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


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


Question: SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 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 = 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 total_budget_percent_invested, Year, Budget_invested_percent, Budgeted, School_id, total_budget_percent_budgeted FROM budget WHERE "total_budget_percent_invested" < 2.7 AND "Year" < 2006 AND "total_budget_percent_budgeted" != 2.4 AND Budget_invested_percent != "42.9" OR "School_id" >= 2 INTERSECT SELECT total_budget_percent_invested, Year, Budget_invested_percent, Budgeted, School_id, total_budget_percent_budgeted FROM budget WHERE "total_budget_percent_invested" = 2.0 AND Budget_invested_percent != "42.9" OR "Budgeted" != 3666 AND "Invested" = 95542


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 Coach_ID FROM coach WHERE Gender <> "M" AND Coach_name <> "Joe Fabbri" UNION ALL SELECT Coach_ID FROM player_coach WHERE "Starting_year" != 2010 OR "Player_ID" != 3 OR "Coach_ID" > 1


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