Question: SELECT T1.amount_payment, T2.amount_outstanding FROM Customer_Payments as T1 JOIN Customers as T2 ON T1.customer_id == T2.customer_id 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 = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3


Question: SELECT MIN(Name) FROM branch WHERE Open_year = "2013" OR Address_road <> "Cecilia Avenue" AND membership_amount = "91" OR Name != "Zytogorski" AND "Branch_ID" <> 6 EXCEPT SELECT MIN(Name) FROM member WHERE "Level" >= 6 OR Hometown = "Simpsonville, South Carolina" AND "Member_ID" != 4


Question: SELECT MIN(oth_feature_3), AVG(hse_feature_3), date_on_market, AVG(apt_feature_1), MIN(property_address), MAX(shp_feature_1), COUNT(vendor_requested_price), MAX(buyer_offered_price), SUM(other_property_details), SUM(fld_feature_3), apt_feature_3, COUNT(apt_feature_2), agreed_selling_price, MIN(shp_feature_2), AVG(property_id), date_sold, MAX(hse_feature_2), SUM(oth_feature_2), fld_feature_1, property_name, fld_feature_2, MAX(shp_feature_3) FROM Properties WHERE "vendor_requested_price" = 305.0 AND property_name != "parc east" AND shp_feature_1 != "None" OR property_type_code != "House" AND "room_count" < 5 OR "property_id" = 13 OR shp_feature_3 != "None" OR date_on_market = "2016-05-24 09:57:45" OR fld_feature_1 = "None" AND "agreed_selling_price" >= 3344706.5755 AND other_property_details = "None" OR apt_feature_1 <> "quo" AND oth_feature_3 <> "None" UNION ALL SELECT MIN(oth_feature_3), AVG(hse_feature_3), date_on_market, AVG(apt_feature_1), MIN(property_address), MAX(shp_feature_1), COUNT(vendor_requested_price), MAX(buyer_offered_price), SUM(other_property_details), SUM(fld_feature_3), apt_feature_3, COUNT(apt_feature_2), agreed_selling_price, MIN(shp_feature_2), AVG(property_id), date_sold, MAX(hse_feature_2), SUM(oth_feature_2), fld_feature_1, property_name, fld_feature_2, MAX(shp_feature_3) FROM Properties WHERE fld_feature_3 <> "None" OR shp_feature_1 != "None" OR "vendor_requested_price" <= 661536468.4429 OR apt_feature_1 != "fuga" OR hse_feature_1 != "None" OR fld_feature_2 <> "None" OR "buyer_offered_price" > 13991131.434 OR "room_count" <> 3 OR "agreed_selling_price" = 2574.0 OR date_on_market = "1991-06-21 23:52:10" AND hse_feature_2 != "None" AND property_address <> "107 Roob Courts Erdmanburgh, IA 42926-0873" OR other_property_details = "None" OR hse_feature_3 = "None" AND property_type_code != "Apartment" AND date_sold != "1981-06-26 21:28:28"

2088 Bashirian Fork Suite 337
Faustinoport, MT 16771-9320

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


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


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


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


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


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


Question: SELECT city, line_1_number_building, country FROM Addresses WHERE line_1_number_building != "00704 Zoe Alley" UNION ALL SELECT city, line_1_number_building, country FROM Addresses WHERE country = "USA"

Elviebury
376 Kallie Tunnel Apt. 784
USA

Lockmanfurt
56461 Baumbach Well Suite 634
USA

Lake Rafaela
29085 Dejah Pine Suite 059
USA

South Eugene
37698 Hahn Curve Apt. 572
USA

New Bernieceburgh
7089 Mueller Forks
USA

Ericamouth
43235 Jazmin Mountain Suite 251
USA

Damianfort
4834 Schaefer Light Suite 947
USA

West Edmondview
9260 Streich Mountain
USA

Elviebury
376 Kallie Tunnel Apt. 784
USA

Lockmanfurt
56461 Baumbach Well Suite 634
USA

Lake Rafaela
29085 Dejah Pine Suite 059
USA

South Eugene
37698 Hahn Curve Apt. 572
USA

New Bernieceburgh
7089 Mueller Forks
USA

Ericamouth
43235 Jazmin Mountain Suite 251
USA

Damianfort
4834 Schaefer Light Suite 947
USA

West Edmondview
9260 Streich Mountain
USA


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


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


Question: SELECT COUNT(AllergyType), Allergy FROM Allergy_Type GROUP BY Allergy HAVING COUNT(AllergyType) = 1 EXCEPT SELECT COUNT(AllergyType), Allergy FROM Allergy_Type GROUP BY Allergy HAVING COUNT(AllergyType) <> 1


Question: SELECT Player_ID FROM player WHERE Residence != "Winnipeg" AND Rank <> "1st" OR "Player_ID" = 5 UNION ALL SELECT Player_ID FROM player_coach WHERE "Starting_year" >= 2010 OR "Coach_ID" < 3 AND "Player_ID" <> 2


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


Question: SELECT trust, SUM(source_u_id) FROM trust WHERE "target_u_id" = 5 OR "source_u_id" < 1 AND "trust" != 2 UNION SELECT trust, SUM(source_u_id) FROM trust WHERE "source_u_id" >= 2 OR "trust" >= 1 AND "target_u_id" < 3


Question: SELECT StuID FROM Member_of_club WHERE Position != "Teaching Coordinator" UNION SELECT StuID FROM Student WHERE "Major" = 600 OR "Age" != 18 OR "Advisor" <= 8772 AND "StuID" > 1035


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


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


Question: SELECT Nationality FROM people WHERE Nationality = "United States" OR Name != "Tim Naegeli" OR "Age" < 31 UNION SELECT Nationality FROM people WHERE Name != "Reggie Lewis" OR Graduation_College != "California"


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 Creation, Department_ID, Ranking FROM department WHERE Name != "Defense" AND "Budget_in_Billions" >= 59.7 AND "Num_Employees" <= 36000.0 INTERSECT SELECT Creation, Department_ID, Ranking FROM department WHERE "Ranking" > 2 OR Creation != "1965" OR Name != "State"


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


Question: SELECT AVG(Maker) FROM car_makers WHERE Maker != "honda" EXCEPT SELECT AVG(Maker) FROM model_list WHERE "ModelId" < 9 OR "Maker" != 19 OR Model = "pontiac"


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 id FROM albums WHERE title <> "Vault: Def Leppard's Greatest Hits" OR "id" >= 84 EXCEPT SELECT id FROM genres WHERE name = "Alternative"


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 MAX(Gender), Rank FROM coach WHERE "Coach_ID" != 4 OR Coach_name = "Smith Brown" AND "Club_ID" != 1 AND "Rank" = 1 EXCEPT SELECT MAX(Gender), Rank FROM player WHERE Occupation <> "Self Employed / Consultant" OR Rank = "4th" AND "Votes" > 5490 OR Player_name <> "Jim Maloway" OR "Player_ID" <> 4 OR Sponsor_name = "Churchill" AND Residence != "Oakbank" AND Gender <> "F"


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 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 AVG(School_ID) FROM school WHERE School != "St. Francis Assisi" AND Grade != "College" OR Location <> "Los Angeles, California" OR "School_ID" != 6 AND Type != "Private" UNION ALL SELECT AVG(School_ID) FROM school_bus WHERE "School_ID" = 3


Question: SELECT Coach_ID FROM player_coach WHERE "Starting_year" = 2011 INTERSECT SELECT Coach_ID FROM player_coach WHERE "Player_ID" > 2 OR "Coach_ID" <> 3 AND "Starting_year" = 2011


Question: SELECT amount_payment FROM Customer_Payments WHERE payment_method_code <> "Direct Debit" OR datetime_payment <> "2018-02-19 09:06:29" UNION ALL SELECT amount_payment FROM Customer_Payments WHERE "amount_payment" <> 6970.98 OR "customer_id" <> 11 AND datetime_payment != "2018-02-15 16:38:49"


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 Store_ID, SUM(District_ID) FROM store_district WHERE "District_ID" = 4 EXCEPT SELECT Store_ID, SUM(District_ID) FROM store_district WHERE "Store_ID" <> 4 OR "District_ID" = 11


Question: SELECT document_id FROM Document_Drafts WHERE "draft_number" < 0 UNION ALL SELECT document_id FROM Documents_Mailed WHERE mailing_date <> "1971-11-03 12:32:14" AND "document_id" <= 13 AND "mailed_to_address_id" = 4


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


Question: SELECT Player_ID FROM player WHERE "Player_ID" < 6 AND "Votes" <> 4914 AND Rank != "3rd" OR Sponsor_name = "Winnipeg South Centre" AND Residence <> "Brandon" UNION SELECT Player_ID FROM player_coach WHERE "Player_ID" <= 10


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


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


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


Question: SELECT roomName, RoomId, beds FROM Rooms WHERE "basePrice" <> 75 AND roomName = "Thrift and accolade" OR RoomId <> "CAS" OR "maxOccupancy" > 4 AND "beds" <> 1 AND decor <> "traditional" OR bedType = "Double" UNION SELECT roomName, RoomId, beds FROM Rooms WHERE "maxOccupancy" < 4 OR bedType <> "Queen"


Question: SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_code = "SH" OR shipping_agent_name != "Ship" EXCEPT SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_description = "g" AND shipping_agent_code = "US"


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


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


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


Question: SELECT name FROM aircraft WHERE "distance" <= 6900 OR "aid" < 11 UNION SELECT name FROM employee WHERE name != "Lisa Walker" AND "salary" != 43723


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


Question: SELECT SUM(head_ID) FROM head WHERE name <> "Franklin Langham" AND "age" <= 43.0 OR "head_ID" <> 10 EXCEPT SELECT SUM(head_ID) FROM management WHERE "head_ID" > 4 AND "department_ID" != 11


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


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


Question: SELECT MIN(Other_Details), Document_ID FROM Documents WHERE Document_Description != "y" OR Other_Details = "None" AND "Document_ID" <> 33930 AND "Template_ID" != 7 OR Document_Name <> "Robbin CV" UNION SELECT MIN(Other_Details), Document_ID FROM Paragraphs WHERE "Paragraph_ID" != 765713812 AND "Document_ID" > 80


Question: SELECT document_type_code FROM Ref_Document_Types WHERE document_type_code != "Paper" OR document_type_description != "f" UNION ALL SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description <> "u"


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


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


Question: SELECT Level, MIN(Name), SUM(Card_Number) FROM member WHERE "Level" < 6 OR Hometown = "Jacksonville, Florida" AND Card_Number <> "RE95" OR Name != "David Jones" EXCEPT SELECT Level, MIN(Name), SUM(Card_Number) FROM member WHERE "Member_ID" = 7 AND Hometown != "LaGrange, Georgia" OR Card_Number <> "OLB56"


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


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


Question: SELECT Store_ID FROM store WHERE "Ranking" = 10 AND "Area_size" < 179.84 UNION SELECT Store_ID FROM store_district WHERE "Store_ID" <> 1


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


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 shipping_agent_code FROM Documents WHERE receipt_date <> "1986-12-14 14:18:59" OR document_type_code != "CD" OR shipping_agent_code <> "FE" AND other_details != "x" INTERSECT SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_description <> "w" AND shipping_agent_name != "Ship"


Question: SELECT District_ID FROM store_district WHERE "Store_ID" > 3 INTERSECT SELECT District_ID FROM store_district WHERE "Store_ID" > 1


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


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


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


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


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


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


Question: SELECT MAX(T1.age), T2.head_ID FROM head as T1 JOIN management as T2 ON T1.head_ID = T2.head_ID WHERE born_state = "California" AND "age" = 68.0 AND "department_ID" > 2 OR name = "Nick Faldo" AND temporary_acting = "Yes"


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 Book_ID, Writer, Issues FROM book WHERE "Book_ID" = 1 OR Writer <> "Christopher Hinz" AND Title != "Sheva's War" INTERSECT SELECT Book_ID, Writer, Issues FROM book WHERE "Book_ID" != 6 OR Title <> "The Dome: Ground Zero" OR Writer <> "Howard Chaykin" AND "Issues" <> 12.0


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


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


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


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


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


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


Question: SELECT SUM(People_ID) FROM employment WHERE "Company_ID" <> 13 AND "People_ID" <= 1 UNION SELECT SUM(People_ID) FROM people WHERE "Age" < 37


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


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


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


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


Question: SELECT document_type_code FROM Documents WHERE receipt_date != "1999-04-17 14:19:32" AND other_details != "u" OR document_type_code != "Hard Drive" AND receipt_number = "114" OR shipping_agent_code != "UP" OR "document_id" < 24 EXCEPT SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description = "b"


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


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


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


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


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


Question: SELECT document_id FROM Document_Drafts WHERE "draft_number" <> 4 AND draft_details <> "r" OR "document_id" = 12 UNION ALL SELECT document_id FROM Documents WHERE receipt_date != "1973-11-05 21:48:53" OR other_details = "u"


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 staff_id FROM Lessons WHERE "customer_id" <> 10 OR "lesson_id" <= 6 AND "vehicle_id" != 2 AND lesson_time <> "9" OR "staff_id" <> 11 AND lesson_status_code != "Completed" AND lesson_date <> "2018-03-07 22:03:49" UNION SELECT staff_id FROM Staff WHERE nickname <> "ymiller" AND middle_name <> "Sherwood" OR first_name = "Jaleel" OR "staff_address_id" = 3 AND date_of_birth = "1998-04-27 12:55:05" OR date_joined_staff = "2017-12-22 03:06:32" AND date_left_staff = "2018-03-08 05:16:29" OR "staff_id" != 11 OR last_name <> "Weissnat"


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


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


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


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


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


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


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


Question: SELECT Allergy FROM Allergy_Type WHERE AllergyType <> "food" INTERSECT SELECT Allergy FROM Has_Allergy WHERE Allergy = "Grass Pollen"


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


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


Question: SELECT Aircraft_ID FROM aircraft WHERE Description != "Turboshaft utility helicopter" UNION ALL SELECT Aircraft_ID FROM airport_aircraft WHERE "Aircraft_ID" <= 1 OR "Airport_ID" = 1 OR "ID" = 2


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


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


Question: SELECT dpi, dimensions, max_page_size FROM product WHERE "product_id" < 5 OR "pages_per_minute_color" > 3.0 OR max_page_size != "216mm x 356mm" OR interface != "USB 2.0" OR product = "Plustek MobileOffice D28 Corporate" UNION SELECT dpi, dimensions, max_page_size FROM product WHERE max_page_size = "A4" AND product != "Canon imageFORMULA P-150"


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


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


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


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


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


Question: SELECT document_type_code FROM Documents WHERE receipt_number = "117" OR receipt_date <> "1983-09-26 09:32:56" OR "document_id" < 12 OR document_status_code <> "done" UNION SELECT document_type_code FROM Ref_Document_Types WHERE document_type_code != "Hard Drive" OR document_type_description <> "f"


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


Question: SELECT AVG(Coach_ID) FROM coach WHERE Coach_name != "Joe Fabbri" AND "Rank" = 5 AND "Club_ID" < 1 EXCEPT SELECT AVG(Coach_ID) FROM player_coach WHERE "Player_ID" <> 10 AND "Starting_year" > 2012


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


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


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


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


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


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


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


Question: SELECT 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 Register_Year FROM membership_register_branch WHERE Register_Year != "2016" OR Branch_ID != "1" INTERSECT SELECT Register_Year FROM membership_register_branch WHERE Branch_ID != "4" AND "Member_ID" < 1 OR Register_Year = "2016"


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


Question: SELECT ContId FROM continents WHERE Continent <> "asia" EXCEPT SELECT ContId FROM continents WHERE Continent = "america"


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


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


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


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


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


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


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


Question: SELECT COUNT(name), aid FROM aircraft WHERE "aid" > 12 UNION SELECT COUNT(name), aid FROM aircraft WHERE "aid" >= 11 AND name != "Boeing 747-400"


Question: SELECT Branch_ID FROM branch WHERE membership_amount = "11" OR Address_road <> "Valleys Place" AND Open_year = "2012" AND Name != "Zytogorski" AND "Branch_ID" != 4 OR City <> "London" UNION ALL SELECT Branch_ID FROM purchase WHERE Branch_ID = "3" AND "Member_ID" < 1 OR Year = "2018"


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


Question: SELECT AVG(datetime_payment), MAX(customer_id), MIN(amount_payment) FROM Customer_Payments WHERE payment_method_code = "Direct Debit" UNION SELECT AVG(datetime_payment), MAX(customer_id), MIN(amount_payment) FROM Customer_Payments WHERE "amount_payment" >= 5475.26


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


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


Question: SELECT Template_Type_Code, Date_Effective_To, Date_Effective_From FROM Templates WHERE Date_Effective_From = "1996-02-04 11:27:24" EXCEPT SELECT Template_Type_Code, Date_Effective_To, Date_Effective_From FROM Templates WHERE Template_Details != "" OR "Template_ID" = 22 AND Date_Effective_To = "2000-10-22 11:57:12"


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


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


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


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


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


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


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


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


Question: SELECT customer_id, payment_method_code FROM Customer_Payments WHERE "customer_id" != 2 OR "amount_payment" >= 787.12 OR payment_method_code != "Direct Debit" EXCEPT SELECT customer_id, payment_method_code FROM Customer_Payments WHERE payment_method_code <> "Direct Debit"


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


Question: SELECT MIN(customer_id), cell_mobile_phone_number, date_became_customer, customer_address_id, SUM(first_name), phone_number, SUM(amount_outstanding) FROM Customers WHERE "amount_outstanding" > 3751.0 UNION ALL SELECT MIN(customer_id), cell_mobile_phone_number, date_became_customer, customer_address_id, SUM(first_name), phone_number, SUM(amount_outstanding) FROM Customers WHERE first_name = "Dianna" OR "customer_id" > 14 AND last_name <> "Terry" OR "amount_outstanding" <> 2255.0 OR "customer_address_id" <> 13 OR cell_mobile_phone_number = "+45(6)4872981083" OR date_became_customer <> "2016-02-17 08:26:23" AND email_address <> "wehner.harold@example.com" AND phone_number <> "1-618-535-9750"


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


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


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


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


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


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


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


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


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


Question: SELECT Lieutenant_Governor FROM party WHERE "Party_ID" <> 7 AND US_Senate != "Hillary Rodham Clinton" OR Lieutenant_Governor <> "Jonathan Reiter" OR Comptroller = "Alan Hevesi" AND Governor <> "Carl McCall" OR "Year" <= 2002.0 OR Attorney_General = "Andrew Cuomo" EXCEPT SELECT Lieutenant_Governor FROM party WHERE "Year" != 2002.0 OR Party <> "Liberal" AND Comptroller != "Alan Hevesi" AND Governor = "Eliot Spitzer" AND "Party_ID" > 4 OR Lieutenant_Governor = "Jonathan Reiter" OR Attorney_General <> "Eliot Spitzer"


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


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


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


Question: SELECT aid FROM aircraft WHERE "aid" < 13 UNION ALL SELECT aid FROM flight WHERE arrival_date = "04/12/2005 05:03" OR "distance" <= 2551 OR destination = "Honolulu" OR "aid" >= 7 OR departure_date <> "04/12/2005 08:45" AND "flno" = 68


Question: SELECT contestant_number FROM CONTESTANTS WHERE contestant_name = "Jessie Eichman" UNION SELECT contestant_number FROM CONTESTANTS WHERE "contestant_number" != 3 OR contestant_name = "Jessie Alloway"


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


Question: SELECT MIN(Paragraph_ID) FROM Paragraphs WHERE Other_Details = "None" EXCEPT SELECT MIN(Paragraph_ID) FROM Paragraphs WHERE Other_Details <> "None" OR Paragraph_Text != "Korea"


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


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


Question: SELECT Model FROM car_names WHERE "MakeId" < 366 OR Model != "datsun" UNION ALL SELECT Model FROM model_list WHERE Model <> "buick" OR "ModelId" != 23


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


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


Question: SELECT document_id FROM Documents_Mailed WHERE "document_id" <= 4 OR mailing_date != "1973-02-21 10:17:01" OR "mailed_to_address_id" >= 9 INTERSECT SELECT document_id FROM Draft_Copies WHERE "copy_number" = 4


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


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


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


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


Question: SELECT title, COUNT(i_id) FROM item WHERE "i_id" = 0 OR title = "orange" EXCEPT SELECT title, COUNT(i_id) FROM item WHERE "i_id" < 6 OR title != "orange"


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


Question: SELECT Shop_ID FROM hiring WHERE "Employee_ID" = 1 OR Is_full_time != "T" EXCEPT SELECT Shop_ID FROM shop WHERE Name <> "KuPS" AND District = "Tehtaan kenttä" AND Manager_name <> "Mika Laurikainen"


Question: SELECT document_id FROM Documents_Mailed WHERE "document_id" != 4 EXCEPT SELECT document_id FROM Draft_Copies WHERE "copy_number" = 10 AND "document_id" = 2


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 MAX(Club_ID) FROM coach WHERE "Coach_ID" < 2 AND Gender != "F" UNION ALL SELECT MAX(Club_ID) FROM match_result WHERE "Big_Silver" = 9 AND "Rank" = 5 OR "Gold" <= 13 AND "Small_Silver" = 10 OR "Club_ID" > 2 OR "Points" >= 139


Question: SELECT MAX(fld_feature_1), SUM(shp_feature_3), oth_feature_1, MIN(oth_feature_2), fld_feature_2, COUNT(property_name), shp_feature_1, hse_feature_2, MIN(vendor_requested_price), MAX(hse_feature_3), property_type_code, COUNT(fld_feature_3), date_on_market, agreed_selling_price, other_property_details, oth_feature_3, buyer_offered_price, AVG(date_sold), apt_feature_3, apt_feature_1, MAX(apt_feature_2) FROM Properties WHERE hse_feature_1 <> "None" OR property_address = "49578 Ayden Mountains New Russellhaven, UT 46626" AND oth_feature_3 <> "None" OR "property_id" <> 9 OR apt_feature_2 != "suscipit" OR property_name <> "wall street" OR apt_feature_1 = "quos" UNION SELECT MAX(fld_feature_1), SUM(shp_feature_3), oth_feature_1, MIN(oth_feature_2), fld_feature_2, COUNT(property_name), shp_feature_1, hse_feature_2, MIN(vendor_requested_price), MAX(hse_feature_3), property_type_code, COUNT(fld_feature_3), date_on_market, agreed_selling_price, other_property_details, oth_feature_3, buyer_offered_price, AVG(date_sold), apt_feature_3, apt_feature_1, MAX(apt_feature_2) FROM Properties WHERE date_on_market = "1976-06-10 20:25:38" OR oth_feature_3 != "None" OR hse_feature_2 <> "None" OR oth_feature_2 = "None" AND fld_feature_1 != "None" AND "vendor_requested_price" != 2198735.095 OR fld_feature_2 != "None" OR shp_feature_1 != "None" AND "room_count" = 8 OR shp_feature_2 <> "None" AND oth_feature_1 <> "None" AND "property_id" <= 15 AND property_address <> "49578 Ayden Mountains New Russellhaven, UT 46626"


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


Question: SELECT Region, Club_name FROM club WHERE Region <> "USA" AND "Club_ID" != 3 AND "Start_year" <> 1998 UNION ALL SELECT Region, Club_name FROM club WHERE Club_name != "Halmstads BK" AND "Club_ID" > 4


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


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


Question: SELECT MAX(Player_ID) FROM player WHERE Player_name <> "Matt Schaubroeck" AND Rank = "4th" UNION ALL SELECT MAX(Player_ID) FROM player_coach WHERE "Player_ID" >= 4


Question: SELECT Principal_activities, Incorporated_in, Group_Equity_Shareholding, Type FROM operate_company WHERE Type <> "Joint Venture" AND Incorporated_in = "Hong Kong" AND Principal_activities = "Cargo" UNION ALL SELECT Principal_activities, Incorporated_in, Group_Equity_Shareholding, Type FROM operate_company WHERE "id" <= 12 OR "Group_Equity_Shareholding" >= 100.0 OR name = "CLS Catering Services Limited"

Cargo airline
Hong Kong
60.0
Joint Venture

Cargo airline
Hong Kong
100.0
Subsidiary

Catering services
Hong Kong
100.0
Subsidiary

Travel agency
Hong Kong
100.0
Subsidiary

Travel agency
Hong Kong
100.0
Subsidiary

Ground handling
Hong Kong
100.0
Subsidiary

Catering services
Canada
30.0
Joint Venture


Question: SELECT Branch_ID FROM branch WHERE Open_year != "2012" OR City != "London" OR Name != "Cochrane" AND membership_amount <> "11" UNION SELECT Branch_ID FROM purchase WHERE "Member_ID" <> 3 OR Year = "2018"


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 AVG(Writer), Title FROM book WHERE "Issues" = 4.0 AND Title = "Michael Moorcock's Multiverse" OR Writer = "Christopher Hinz" AND "Book_ID" >= 6 UNION SELECT AVG(Writer), Title FROM book WHERE "Issues" < 6.0 AND Title = "The Black Lamb"


Question: SELECT Continent FROM continents WHERE Continent <> "america" INTERSECT SELECT Continent FROM continents WHERE Continent <> "australia" AND "ContId" != 5


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


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


Question: SELECT MAX(u_id) FROM review WHERE "rank" <> 1 OR "rating" < 7 OR "i_id" < 4 AND "u_id" > 2 EXCEPT SELECT MAX(u_id) FROM useracct WHERE name != "Helen"


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


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


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


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


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


Question: SELECT Industry, MAX(Market_Value_in_Billion), AVG(Assets_in_Billion), MAX(Sales_in_Billion), COUNT(Company_ID), COUNT(Headquarters), COUNT(Name), MIN(Profits_in_Billion) FROM company WHERE "Market_Value_in_Billion" <> 180.0 AND "Profits_in_Billion" <> 21.5 OR Industry = "Automotive" OR "Assets_in_Billion" < 340.5 AND "Company_ID" <> 4.0 AND "Sales_in_Billion" = 102.0 GROUP BY Industry HAVING MIN(Profits_in_Billion) <> 15.9 UNION SELECT Industry, MAX(Market_Value_in_Billion), AVG(Assets_in_Billion), MAX(Sales_in_Billion), COUNT(Company_ID), COUNT(Headquarters), COUNT(Name), MIN(Profits_in_Billion) FROM company WHERE "Profits_in_Billion" >= 10.3 AND "Market_Value_in_Billion" <= 218.0 AND Industry <> "Oil and gas" GROUP BY Industry HAVING AVG(Assets_in_Billion) <> 1867.5500000000002 OR MAX(Market_Value_in_Billion) > 213.7 AND COUNT(Company_ID) >= 1 AND COUNT(Name) < 6 OR COUNT(Headquarters) <> 1 OR MIN(Profits_in_Billion) <= 11.1


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


Question: SELECT Other_Details, COUNT(Template_ID), MAX(Document_ID), Document_Name FROM Documents WHERE "Template_ID" = 25 OR "Document_ID" > 801801 AND Document_Name <> "Learning French" AND Other_Details = "None" UNION SELECT Other_Details, COUNT(Template_ID), MAX(Document_ID), Document_Name FROM Documents WHERE Document_Name != "Palm reading" OR "Template_ID" >= 14


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 <= 12 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 >= 1


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


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


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


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


Question: SELECT Price, Book_ID, Publication_ID, Publication_Date, Publisher FROM publication WHERE "Price" < 3000000.0 AND Publisher != "Pearson" AND "Publication_ID" <> 1 AND "Book_ID" > 4 INTERSECT SELECT Price, Book_ID, Publication_ID, Publication_Date, Publisher FROM publication WHERE Publisher <> "Springer Nature" OR Publication_Date <> "March 2008"


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


Question: SELECT COUNT(role_description), MIN(role_code) FROM Roles WHERE role_code != "ED" AND role_description != "Proof Manager" UNION SELECT COUNT(role_description), MIN(role_code) FROM Roles WHERE role_code = "MG" OR role_description <> "Manager"


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


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


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


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


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


Question: SELECT School_id FROM School WHERE County != "75 Starke" AND "Enrollment" <= 379 AND IHSAA_Football_Class != "AAA" AND IHSAA_Class <> "A" UNION ALL SELECT School_id FROM endowment WHERE donator_name <> "Com. Dom. En Estados Unidos" AND "School_id" != 7 AND "amount" >= 9.83


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


Question: SELECT SUM(Advisor), city_code, SUM(StuID), MAX(Major), AVG(Age), LName, COUNT(Fname), Sex FROM Student WHERE "Major" = 600 OR city_code != "NYC" OR Fname = "George" OR "Advisor" < 8721 UNION ALL SELECT SUM(Advisor), city_code, SUM(StuID), MAX(Major), AVG(Age), LName, COUNT(Fname), Sex FROM Student WHERE "StuID" > 1015 OR "Age" >= 21

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


Question: SELECT Store_ID, District_ID FROM store_district WHERE "Store_ID" < 1 UNION SELECT Store_ID, District_ID FROM store_district WHERE "Store_ID" != 4


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


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


Question: SELECT PetID FROM Has_Pet WHERE "PetID" != 2002 EXCEPT SELECT PetID FROM Has_Pet WHERE "PetID" >= 2003 AND "StuID" > 1001


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 StuID FROM Has_Pet WHERE "StuID" > 1001 UNION SELECT StuID FROM Student WHERE "Major" <= 600 OR Sex != "M"


Question: SELECT T1.Aircraft_ID, T2.Aircraft_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID == T2.Aircraft_ID GROUP BY Max_Gross_Weight HAVING Description = "Tandem rotor helicopter" AND Aircraft <> "CH-47D Chinook" AND Max_disk_Loading <> "14.5 lb/ft² (71 kg/m²)" OR Airport_ID < 9


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


Question: SELECT line_1_number_building, address_id, country FROM Addresses WHERE state_province_county <> "WestVirginia" INTERSECT SELECT line_1_number_building, address_id, country FROM Addresses WHERE state_province_county <> "Washington" OR city = "Lake Rafaela" AND zip_postcode != "22194" AND "address_id" < 14 AND country != "USA"


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


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


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


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


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


Question: SELECT Gold FROM match_result WHERE "Small_Silver" <> 4 AND "Points" <> 89 AND "Big_Silver" > 7 AND "Gold" <= 5 OR "Rank" = 1 AND "Club_ID" >= 1 UNION SELECT Gold FROM match_result WHERE "Rank" <= 4 OR "Small_Silver" <> 10 AND "Big_Silver" > 9


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


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


Question: SELECT state FROM AREA_CODE_STATE WHERE "area_code" != 724 AND state <> "FL" UNION ALL SELECT state FROM VOTES WHERE state = "NY" AND "contestant_number" = 5 AND "phone_number" != 5112677315 OR created != "2018-03-09 19:03:21" OR "vote_id" <> 3


Question: SELECT id FROM albums WHERE "id" <= 136 UNION ALL SELECT id FROM genres WHERE "id" = 11 AND name = "Metal"


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


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


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


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


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


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


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


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


Question: SELECT Branch_ID FROM branch WHERE membership_amount = "7" OR Open_year <> "2009" AND "Branch_ID" > 6 OR Name <> "Alexandre" AND City != "London" UNION ALL SELECT Branch_ID FROM membership_register_branch WHERE Branch_ID <> "1"


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


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


Question: SELECT Name, Employee_ID, Age, City FROM employee WHERE Name <> "Tim Payne" AND "Age" >= 30 EXCEPT SELECT Name, Employee_ID, Age, City FROM employee WHERE Name = "Steve Borthwick" AND "Age" <= 40 AND "Employee_ID" < 3 AND City <> "Wasps"


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


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


Question: SELECT Template_ID, Version_Number FROM Templates WHERE Date_Effective_From != "2003-06-05 04:03:45" OR "Version_Number" = 7 AND "Template_ID" = 15 UNION ALL SELECT Template_ID, Version_Number FROM Templates WHERE Template_Type_Code != "BK" OR Template_Details = ""


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 document_status_code FROM Documents WHERE shipping_agent_code <> "FE" AND other_details = "y" OR document_type_code = "Paper" AND document_status_code != "done" UNION ALL SELECT document_status_code FROM Ref_Document_Status WHERE document_status_code = "done"


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


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


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


Question: SELECT lesson_status_code, lesson_id, customer_id, price, lesson_time, staff_id, vehicle_id, lesson_date FROM Lessons WHERE lesson_status_code = "Cancelled" AND lesson_time != "2" OR "staff_id" > 8 OR "lesson_id" <> 2 UNION SELECT lesson_status_code, lesson_id, customer_id, price, lesson_time, staff_id, vehicle_id, lesson_date FROM Lessons WHERE "staff_id" >= 15 OR lesson_time = "9" AND "lesson_id" >= 11 OR lesson_status_code != "Completed" OR lesson_date = "2018-03-04 06:55:46" OR "vehicle_id" >= 3 OR "price" < 184.0 AND "customer_id" > 9


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


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


Question: SELECT AVG(Rank), Club_ID FROM coach WHERE "Rank" = 5 OR "Club_ID" <= 1 OR Coach_name <> "Smith Brown" UNION SELECT AVG(Rank), Club_ID FROM match_result WHERE "Big_Silver" <= 11 AND "Bronze" <> 8


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 SUM(T1.Id), T2.Horsepower FROM car_makers as T1 JOIN cars_data as T2 ON T1.Id = T2.Id WHERE "Cylinders" > 4 AND Horsepower <> "105" OR "Accelerate" >= 18.0 GROUP BY FullName HAVING Cylinders < 6 AND Year > 1970 OR Country <> "1" OR MPG <> "16" AND Edispl > 140.0 OR Maker <> "opel" AND Weight = 2904


Question: SELECT Branch_ID FROM branch WHERE "Branch_ID" >= 7 OR Name = "Taverner" OR Open_year <> "2014" AND Address_road != "Abbey Rise" UNION SELECT Branch_ID FROM purchase WHERE Branch_ID = "6"


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


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


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


Question: SELECT School_id FROM School WHERE School_id = "1" EXCEPT SELECT School_id FROM endowment WHERE "endowment_id" != 1 OR "School_id" >= 8 AND donator_name = "Com. Dom. En Estados Unidos" AND "amount" > 8.43


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


Question: SELECT AVG(name) FROM airport WHERE name = "Bergen Airport" AND City = "Brussels" OR ICAO != "KBOS" AND IATA = "BGO" OR Country = "United States" AND "id" <> 4 INTERSECT SELECT AVG(name) FROM operate_company WHERE name != "Cathay Pacific Cargo"


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


Question: SELECT SUM(document_id) FROM Document_Drafts WHERE "document_id" >= 20 AND draft_details != "m" UNION SELECT SUM(document_id) FROM Documents WHERE other_details <> "w" AND document_status_code != "done" OR receipt_date <> "2015-04-03 09:36:19" AND shipping_agent_code = "FE"


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


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


Question: SELECT MIN(Store_ID) FROM store WHERE "Area_size" <= 7.23 OR "Ranking" <= 9 AND "Store_ID" > 1 OR "Number_of_product_category" <> 793.0 INTERSECT SELECT MIN(Store_ID) FROM store_product WHERE "Product_ID" != 1 AND "Store_ID" != 5


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


Question: SELECT draft_number FROM Circulation_History WHERE "draft_number" >= 17 OR "employee_id" <> 2 AND "document_id" = 20 OR "copy_number" != 10 EXCEPT SELECT draft_number FROM Document_Drafts WHERE draft_details = "e" OR "draft_number" = 14


Question: SELECT Name FROM branch WHERE membership_amount <> "11" AND City != "London" OR Name != "Taverner" OR "Branch_ID" >= 8 OR Address_road <> "Oaks Crescent" UNION SELECT Name FROM member WHERE Name = "David Jones" OR Hometown <> "Columbia, South Carolina" AND Card_Number <> "MLB4" OR "Member_ID" != 10


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


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


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


Question: SELECT CountryId FROM countries WHERE "Continent" <> 1 OR "CountryId" != 5 AND CountryName <> "italy" UNION ALL SELECT CountryId FROM countries WHERE "Continent" = 1 AND "CountryId" <> 14


Question: SELECT airport_id, Pilot, id FROM flight WHERE "company_id" <= 9 OR "airport_id" < 9 OR Vehicle_Flight_number = "M2-F1 #64" AND Pilot = "Thompson" OR "id" < 12 AND Date = "March 1, 1963" AND "Velocity" < 240.0 UNION ALL SELECT airport_id, Pilot, id FROM flight WHERE "Altitude" <= 3650.0 AND Date = "July 16, 1965" OR "id" != 10 AND "company_id" <> 7 OR "airport_id" >= 4


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


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


Question: SELECT address_details, address_id FROM Addresses WHERE address_details <> "US" AND "address_id" <= 6 INTERSECT SELECT address_details, address_id FROM Addresses WHERE address_details <> "IT" AND "address_id" != 8


Question: SELECT Birth_Date FROM people WHERE "People_ID" > 3 AND Name != "Roman Bragin" INTERSECT SELECT Birth_Date FROM people WHERE "Height" != 196.0 OR Name = "Semen Poltavskiy" AND "People_ID" >= 6 OR Nationality != "Russia" OR Birth_Date = "August 8, 1986"


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


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


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


Question: SELECT COUNT(T1.aid), T2.eid FROM aircraft as T1 JOIN certificate as T2 ON T1.aid = T2.aid WHERE "distance" > 4103 AND "eid" = 90873519 AND name = "Boeing 767-400ER"


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


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


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


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


Question: SELECT Aircraft_ID FROM aircraft WHERE "Aircraft_ID" < 5 AND Description = "Heavy-lift helicopter" AND Total_disk_area != "5,655 ft² (526 m²)" OR Max_disk_Loading != "8.8 lb/ft² (43 kg/m²)" OR Aircraft != "Robinson R-22" OR Max_Gross_Weight <> "73,500 lb (33,300 kg)" INTERSECT SELECT Aircraft_ID FROM airport_aircraft WHERE "Airport_ID" <> 6 AND "ID" >= 3 OR "Aircraft_ID" < 1


Question: SELECT ModelId FROM model_list WHERE "ModelId" < 13 UNION ALL SELECT ModelId FROM model_list WHERE "Maker" > 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 = 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 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 departure_date, aid, SUM(distance), destination FROM flight WHERE "aid" >= 10 OR departure_date <> "04/12/2005 05:30" AND "flno" = 346 AND origin = "Chicago" AND arrival_date <> "04/12/2005 03:18" AND destination = "Boston" EXCEPT SELECT departure_date, aid, SUM(distance), destination FROM flight WHERE "distance" >= 5478 AND origin <> "Los Angeles" AND "aid" >= 3 OR departure_date != "04/12/2005 11:50" AND arrival_date = "04/12/2005 09:40" AND destination <> "Dallas" AND "price" > 425.98

departure_date aid SUM(distance) destination


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


Question: SELECT property_id FROM Other_Property_Features WHERE "property_id" <> 7 AND "feature_id" > 3 AND property_feature_description <> "vitae" UNION ALL SELECT property_id FROM Properties WHERE date_sold != "1997-11-07 20:22:05" AND "vendor_requested_price" > 372652.2909 OR "buyer_offered_price" <> 1.68 AND apt_feature_2 = "est" AND fld_feature_2 <> "None" AND hse_feature_1 = "None" OR property_name = "riverside" OR apt_feature_3 <> "None" OR other_property_details <> "None" OR shp_feature_3 <> "None" OR "agreed_selling_price" > 244353758.1824 OR hse_feature_2 != "None" OR "room_count" > 9 AND "property_id" <> 4 OR shp_feature_1 != "None" AND hse_feature_3 <> "None" OR fld_feature_1 <> "None" OR fld_feature_3 != "None"


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


Question: SELECT address_details, address_id FROM Addresses WHERE address_details = "IE" UNION SELECT address_details, address_id FROM Addresses WHERE address_details <> "DE"


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 role_code FROM Employees WHERE other_details != "f" OR "employee_id" < 3 AND employee_name = "Jordyn" EXCEPT SELECT role_code FROM Roles WHERE role_description = "Proof Manager"


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


Question: SELECT document_id FROM Circulation_History WHERE "draft_number" >= 2 AND "document_id" > 20 OR "employee_id" != 8 OR "copy_number" = 4 UNION SELECT document_id FROM Documents WHERE document_status_code = "overdue" AND receipt_date = "1976-09-15 19:24:17" OR other_details = "r" AND receipt_number <> "8" AND shipping_agent_code = "UP" AND document_type_code != "Paper" OR "document_id" < 23


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


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


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


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


Question: SELECT Occupation, Residence, Player_ID, Rank, Gender FROM player WHERE Residence = "Thompson" OR Rank != "3rd" AND "Player_ID" != 12 AND Sponsor_name <> "Saint Boniface" OR Player_name != "Ross C. Martin" INTERSECT SELECT Occupation, Residence, Player_ID, Rank, Gender FROM player WHERE "Player_ID" > 2

Occupation Residence Player_ID Rank Gender


Question: SELECT SUM(T1.PetID), T2.PetType FROM Has_Pet as T1 JOIN Pets as T2 ON T1.PetID = T2.PetID WHERE "StuID" <= 1001 OR "pet_age" = 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 MIN(People_ID) FROM employment WHERE "Company_ID" != 15 OR "Year_working" >= 2 UNION SELECT MIN(People_ID) FROM people WHERE Name != "Tom Sheehey" AND "People_ID" < 4 OR "Age" < 37


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


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


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


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


Question: SELECT draft_number FROM Draft_Copies WHERE "document_id" > 23 OR "draft_number" > 2 OR "copy_number" <= 15 UNION ALL SELECT draft_number FROM Draft_Copies WHERE "document_id" <> 2 OR "copy_number" >= 6


Question: SELECT COUNT(customer_id) FROM Customer_Payments WHERE "amount_payment" != 7440.34 AND payment_method_code != "Credit Card" AND "customer_id" <> 7 UNION SELECT COUNT(customer_id) FROM Lessons WHERE "staff_id" <> 11 AND "vehicle_id" <> 2 AND lesson_date != "2018-03-06 21:48:51" AND "lesson_id" > 13 OR lesson_time = "9"


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


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


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


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


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


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


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


Question: SELECT ClubID FROM Club WHERE "ClubID" > 4 AND ClubLocation <> "AKW" AND ClubName = "Pen and Paper Gaming" OR ClubDesc != "Refurbish computers; teach kids and adults about computer basics." EXCEPT SELECT ClubID FROM Member_of_club WHERE Position <> "Vice-President"


Question: SELECT employee_id FROM Circulation_History WHERE "document_id" > 1 AND "copy_number" >= 4 UNION SELECT employee_id FROM Employees WHERE other_details = "v" OR role_code = "PR"


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


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


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


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


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


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


Question: SELECT Book_ID FROM book WHERE "Issues" > 4.0 AND "Book_ID" >= 1 EXCEPT SELECT Book_ID FROM publication WHERE "Publication_ID" >= 6


Question: SELECT aid, name, MIN(distance) FROM aircraft WHERE name <> "Boeing 757-300" AND "aid" <= 7 OR "distance" != 2605 INTERSECT SELECT aid, name, MIN(distance) FROM aircraft WHERE name != "Boeing 737-800" OR "aid" >= 13


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


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


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


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


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


Question: SELECT MIN(District), Election_ID, Party, Committee, AVG(Counties_Represented) FROM election WHERE "District" <> 1 OR Committee != "Ways and Means" AND "First_Elected" != 2002.0 AND Counties_Represented != "12.1 12A" AND "Election_ID" <= 2 OR "Party" = 1 OR Delegate <> "Bobo, Elizabeth Elizabeth Bobo" INTERSECT SELECT MIN(District), Election_ID, Party, Committee, AVG(Counties_Represented) FROM election WHERE "District" <> 2 OR Counties_Represented != "12.1 12A" OR "Party" > 2 AND Delegate = "Pendergrass, Shane E. Shane Pendergrass" OR Committee = "Appropriations"


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 Address_road FROM branch WHERE Open_year = "2014" OR "Branch_ID" != 7 AND City <> "London" UNION ALL SELECT Address_road FROM branch WHERE Address_road = "Brampton Road"


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


Question: SELECT 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 People_ID FROM employment WHERE "People_ID" != 3 UNION ALL SELECT People_ID FROM people WHERE "People_ID" > 2 AND Nationality = "United States" OR Name <> "Reggie Lewis"


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


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


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


Question: SELECT Coach_ID FROM coach WHERE Gender <> "M" OR Coach_name = "Joe Fabbri" UNION ALL SELECT Coach_ID FROM player_coach WHERE "Coach_ID" <= 3


Question: SELECT AVG(District_ID) FROM district WHERE "City_Area" = 75.0 AND District_name != "Bhakkar District" OR Headquartered_City <> "Bahawalnagar City" UNION SELECT AVG(District_ID) FROM store_district WHERE "District_ID" >= 3


Question: SELECT ICAO FROM airport WHERE City <> "Baltimore" AND "id" <= 6 AND Country != "Spain" OR ICAO != "LEBL" OR IATA <> "BCN" UNION SELECT ICAO FROM airport WHERE Country = "Netherlands" OR IATA = "BLL" OR name != "Schiphol Airport" OR "id" >= 9 OR ICAO != "KBWI"


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


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


Question: SELECT Age, Home_city, Name FROM driver WHERE "Driver_ID" < 2 AND Party = "Dem" OR "Age" = 30 OR Name <> "Henry Genga" AND Home_city <> "Hartford" INTERSECT SELECT Age, Home_city, Name FROM driver WHERE "Age" != 46 AND Home_city = "Bethel" AND Party <> "Dem" AND Name <> "Timothy Ackert"


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


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


Question: SELECT Sponsor_name, Player_ID, Residence, Occupation, Votes, Gender FROM player WHERE "Player_ID" > 7 AND Rank != "2nd" AND Gender != "M" AND Player_name != "Jean Luc Bouché" UNION SELECT Sponsor_name, Player_ID, Residence, Occupation, Votes, Gender FROM player WHERE Rank = "2nd" AND Player_name <> "Pat Martin"

Sponsor_name Player_ID Residence Occupation Votes Gender

Brandon—Souris
1
Brandon
Locomotive Engineer
6055
M

Dauphin—Swan River—Marquette
4
Birtle
Retired
4914
M

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

Provencher
8
Oakbank
Design Coordinator
4947
M

Selkirk—Interlake 10 Selkirk Retired 9506 F

Winnipeg North
12
Winnipeg
Parliamentarian
14097
F

Winnipeg South Centre
14
Winnipeg
Student
5490
F


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 Allergy FROM Allergy_Type WHERE AllergyType <> "environmental" INTERSECT SELECT Allergy FROM Has_Allergy WHERE Allergy != "Nuts" OR "StuID" <= 1030


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


Question: SELECT Store_ID FROM store_district WHERE "District_ID" = 11 UNION SELECT Store_ID FROM store_product WHERE "Product_ID" <> 6 OR "Store_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 >= 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 <> 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 >= 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 Member_ID FROM member WHERE Hometown <> "Jacksonville, Florida" AND "Level" > 4 UNION SELECT Member_ID FROM purchase WHERE Year = "2018" OR "Member_ID" != 3


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


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


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


Question: SELECT Store_ID FROM store WHERE Store_Name <> "Miramichi" OR "Area_size" > 179.84 OR "Store_ID" < 4 OR "Number_of_product_category" <> 990.0 EXCEPT SELECT Store_ID FROM store_district WHERE "Store_ID" > 2 OR "District_ID" <> 15


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


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


Question: SELECT Name, MAX(City) FROM employee WHERE "Employee_ID" >= 6 AND City <> "Bath" AND Name <> "George Chuter" UNION SELECT Name, MAX(City) FROM employee WHERE City != "Bath"


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


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


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


Question: SELECT SUM(document_id) FROM Circulation_History WHERE "draft_number" <> 20 AND "employee_id" <> 8 OR "document_id" <> 1 OR "copy_number" < 10 EXCEPT SELECT SUM(document_id) FROM Documents WHERE document_type_code = "Paper"


Question: SELECT Home_city, Driver_ID, Party, Age FROM driver WHERE "Driver_ID" >= 10 UNION ALL SELECT Home_city, Driver_ID, Party, Age FROM driver WHERE Party <> "Dem" AND Home_city = "Manchester" OR Name <> "Matthew Ritter" AND "Age" != 38


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 endowment_id FROM endowment WHERE donator_name != "San Cristóbal" AND "endowment_id" != 1 UNION SELECT endowment_id FROM endowment WHERE donator_name = "Valverde" OR "School_id" > 8 AND "endowment_id" <= 3 AND "amount" <= 8.53


Question: SELECT COUNT(customer_id) FROM Customer_Payments WHERE payment_method_code != "Direct Debit" OR "amount_payment" != 9414.74 OR "customer_id" = 14 UNION ALL SELECT COUNT(customer_id) FROM Customers WHERE date_became_customer <> "2017-11-12 04:34:44"


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 Paragraph_ID, Document_ID FROM Paragraphs WHERE "Document_ID" <= 80 AND "Paragraph_ID" <= 510442723 OR Other_Details = "None" UNION ALL SELECT Paragraph_ID, Document_ID FROM Paragraphs WHERE Other_Details = "None" AND "Document_ID" <> 80 OR Paragraph_Text = "Senegal"


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


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