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


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


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


Question: SELECT Name FROM company WHERE "Sales_in_Billion" >= 145.9 AND "Company_ID" = 15.0 OR Industry != "Banking" UNION ALL SELECT Name FROM people WHERE Graduation_College <> "Northeastern" OR "People_ID" <> 6


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


Question: SELECT MAX(T1.Driver_ID), T2.Years_Working FROM driver as T1 JOIN school_bus as T2 ON T1.Driver_ID = T2.Driver_ID WHERE Home_city <> "Manchester" AND School_ID = 1 OR Age > 46 AND SUM(Years_Working) > 8 OR Party = "Dem" OR Name = "Douglas McCrory" AND If_full_time = "T"


Question: SELECT MIN(company_id), MAX(Velocity), MIN(Pilot), AVG(id) FROM flight WHERE Vehicle_Flight_number <> "M2-F1 #73" UNION ALL SELECT MIN(company_id), MAX(Velocity), MIN(Pilot), AVG(id) FROM flight WHERE "Altitude" != 3650.0 OR Vehicle_Flight_number <> "M2-F1 #70" OR "airport_id" < 4 OR Pilot != "Thompson" AND Date != "July 16, 1965" AND "id" <= 5 AND "Velocity" >= 240.0

MIN(company_id) MAX(Velocity) MIN(Pilot) AVG(id)


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


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


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


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


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


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


Question: SELECT AVG(feature_description) FROM Other_Available_Features WHERE "feature_id" > 2 UNION SELECT AVG(feature_description) FROM Other_Available_Features WHERE feature_type_code <> "Security" AND feature_description <> "Burglar Alarm" AND feature_name = "Pool" OR "feature_id" <= 4


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


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


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


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


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


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


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


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


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


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


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


Question: SELECT Member_ID FROM member WHERE Card_Number = "LE99" OR Name != "Myron Pryor" UNION ALL SELECT Member_ID FROM membership_register_branch WHERE Register_Year != "2016" AND Branch_ID = "4" OR "Member_ID" <= 3


Question: SELECT Hometown, Name, Card_Number, Member_ID, Level FROM member WHERE Name = "Micah Johnson" AND Hometown <> "LaGrange, Georgia" AND Card_Number <> "OLB56" OR "Member_ID" <= 10 INTERSECT SELECT Hometown, Name, Card_Number, Member_ID, Level FROM member WHERE "Member_ID" >= 8


Question: SELECT AVG(Rank), Residence, MIN(Votes), Sponsor_name FROM player WHERE Occupation <> "Locomotive Engineer" OR Rank = "1st" AND Sponsor_name <> "Winnipeg South" OR "Player_ID" = 3 OR Player_name = "Ross C. Martin" AND Residence <> "Winnipeg" UNION SELECT AVG(Rank), Residence, MIN(Votes), Sponsor_name FROM player WHERE "Votes" <= 9506 OR Rank = "3rd" AND Player_name = "Jim Maloway" OR Residence = "Birtle" AND "Player_ID" != 11 AND Sponsor_name <> "Selkirk—Interlake" AND Occupation = "Student" AND Gender = "M"

AVG(Rank) Residence MIN(Votes) Sponsor_name


Question: SELECT role_code FROM Employees WHERE other_details = "b" INTERSECT SELECT role_code FROM Roles WHERE role_code != "ED"


Question: SELECT COUNT(contestant_number) FROM CONTESTANTS WHERE "contestant_number" >= 9 AND contestant_name != "Tabatha Gehling" UNION SELECT COUNT(contestant_number) FROM CONTESTANTS WHERE "contestant_number" = 4 OR contestant_name <> "Jessie Alloway"


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 Shop_ID, SUM(Employee_ID), Is_full_time, Start_from FROM hiring WHERE "Employee_ID" <> 2 OR Is_full_time = "T" UNION ALL SELECT Shop_ID, SUM(Employee_ID), Is_full_time, Start_from FROM hiring WHERE Is_full_time = "F" OR Start_from <> "2010" AND "Shop_ID" <> 1 AND "Employee_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 = 4


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


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


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


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


Question: SELECT customer_id FROM Customer_Payments WHERE "amount_payment" < 9414.74 AND "customer_id" <= 4 OR payment_method_code != "Direct Debit" INTERSECT SELECT customer_id FROM Lessons WHERE lesson_date = "2018-03-05 18:05:31" OR "staff_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 > 10


Question: SELECT SUM(other_details) FROM Documents WHERE receipt_number = "189" AND "document_id" <= 17 INTERSECT SELECT SUM(other_details) FROM Employees WHERE employee_name = "Clemens" AND "employee_id" != 1 AND other_details != "u" AND role_code <> "PT"


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


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


Question: SELECT u_id FROM review WHERE "rating" <= 7 OR "u_id" >= 1 AND "rank" = 6 AND "i_id" = 7 OR "a_id" >= 3 UNION SELECT u_id FROM useracct WHERE name = "Helen"


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


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


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


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


Question: SELECT MIN(mailed_to_address_id), document_id FROM Documents_Mailed WHERE "document_id" >= 14 OR "mailed_to_address_id" = 4 UNION SELECT MIN(mailed_to_address_id), document_id FROM Documents_Mailed WHERE mailing_date = "1999-05-22 23:21:07"


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


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


Question: SELECT lesson_id, price, lesson_status_code, customer_id, staff_id, lesson_time FROM Lessons WHERE "vehicle_id" <= 2 OR lesson_status_code != "Completed" OR lesson_date != "2018-03-16 07:08:52" AND "price" < 456.0 AND "lesson_id" != 5 AND lesson_time <> "5" AND "customer_id" <> 2 INTERSECT SELECT lesson_id, price, lesson_status_code, customer_id, staff_id, lesson_time FROM Lessons WHERE "customer_id" = 10 AND lesson_date != "2018-03-17 19:02:07" AND lesson_time != "3" OR "lesson_id" >= 14 AND lesson_status_code = "Cancelled" OR "price" >= 184.0


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


Question: SELECT SUM(T1.Driver_ID), T2.School_ID FROM driver as T1 JOIN school_bus as T2 ON T1.Driver_ID = T2.Driver_ID WHERE Home_city = "Hartford" OR Name = "Edwin Vargas" OR "School_ID" < 5 AND If_full_time <> "T" OR "Age" < 42 OR "Years_Working" <> 6 GROUP BY School_ID HAVING Party <> "Dem" OR Years_Working = 8 OR If_full_time = "T"


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


Question: SELECT Party FROM election WHERE Delegate <> "Bates, Gail H. Gail H. Bates" AND "Party" > 4 OR "First_Elected" > 1994.0 OR "Election_ID" < 8 OR "District" != 1 UNION SELECT Party FROM party WHERE Party = "Liberal" AND Governor != "Tom Golisano" OR US_Senate = "Hillary Rodham Clinton" AND Attorney_General = "Eliot Spitzer" OR Lieutenant_Governor <> "Dennis Mehiel"


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


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


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


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


Question: SELECT SUM(City_Area), COUNT(Headquartered_City), MIN(City_Population), AVG(District_name) FROM district WHERE Headquartered_City != "Hafizabad City" AND "District_ID" = 8 OR "City_Area" >= 22.0 AND District_name != "Faisalabad District" UNION ALL SELECT SUM(City_Area), COUNT(Headquartered_City), MIN(City_Population), AVG(District_name) FROM district WHERE "City_Population" <> 94620.0


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


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


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


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


Question: SELECT SUM(document_id) FROM Circulation_History WHERE "employee_id" != 1 UNION SELECT SUM(document_id) FROM Documents_Mailed WHERE "document_id" < 20


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


Question: SELECT vendor_requested_price, MAX(property_address), MAX(oth_feature_3) FROM Properties WHERE shp_feature_1 != "None" EXCEPT SELECT vendor_requested_price, MAX(property_address), MAX(oth_feature_3) FROM Properties WHERE "property_id" = 13 AND oth_feature_3 = "None" AND shp_feature_1 = "None" OR hse_feature_3 <> "None" OR apt_feature_1 <> "aut" AND property_name = "park" AND apt_feature_3 = "None" AND property_address = "2088 Bashirian Fork Suite 337 Faustinoport, MT 16771-9320" OR fld_feature_1 = "None" OR apt_feature_2 != "sit" OR "room_count" > 9 AND shp_feature_3 != "None" OR shp_feature_2 = "None" OR other_property_details <> "None" OR date_sold <> "2012-08-19 07:36:57" AND date_on_market = "1990-05-25 23:01:51" AND hse_feature_1 = "None"


Question: SELECT staff_id FROM Lessons WHERE lesson_time != "3" UNION SELECT staff_id FROM Staff WHERE nickname <> "sbrown" AND date_joined_staff != "2017-10-21 17:20:57"


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


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


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


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


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


Question: SELECT School_id FROM budget WHERE "total_budget_percent_budgeted" > 2.4 AND "total_budget_percent_invested" >= 2.7 OR "Budgeted" <= 3666 OR Budget_invested_percent = "127.6" UNION ALL SELECT School_id FROM endowment WHERE donator_name != "Duarte" AND "School_id" > 8 OR "endowment_id" != 6 AND "amount" = 9.83


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


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


Question: SELECT id FROM airport WHERE IATA <> "BOS" OR name != "Ted Stevens Airport" UNION SELECT id FROM operate_company WHERE Incorporated_in <> "Vietnam" OR "id" >= 13 OR "Group_Equity_Shareholding" = 18.77 AND Principal_activities != "Catering services" AND name = "Cathay Pacific Holidays" AND Type <> "Subsidiary"


Question: SELECT StuID FROM Has_Allergy WHERE "StuID" != 1007 EXCEPT SELECT StuID FROM Student WHERE LName != "Epp" OR Fname = "David" AND Sex <> "M" AND "Advisor" = 8918 AND "Age" >= 20 AND city_code <> "SFO"


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


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


Question: SELECT MAX(customer_id) FROM Customer_Payments WHERE datetime_payment <> "2018-03-20 21:38:41" OR "customer_id" <= 13 UNION SELECT MAX(customer_id) FROM Customers WHERE cell_mobile_phone_number <> "1-387-258-1016x96963" AND "amount_outstanding" = 255.0


Question: SELECT School_id FROM School WHERE School_name = "Jimtown" OR Mascot <> "Lancers" AND IHSAA_Class = "AA" AND Location != "Walkerton" OR School_id <> "4" AND County <> "75 Starke" OR "Enrollment" = 620 UNION ALL SELECT School_id FROM budget WHERE "Invested" <= 8335 AND Budget_invested_percent <> "42.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 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 age FROM head WHERE "age" > 68.0 AND born_state = "Florida" OR name <> "Franklin Langham" OR "head_ID" != 5 UNION ALL SELECT age FROM head WHERE born_state != "California" OR "age" = 43.0


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


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


Question: SELECT School_id, amount, donator_name FROM endowment WHERE "School_id" > 7 AND donator_name <> "Com. Dom. En Estados Unidos" OR "endowment_id" = 9 AND "amount" <= 9.73 UNION ALL SELECT School_id, amount, donator_name FROM endowment WHERE "amount" != 9.05 AND "School_id" = 1 AND "endowment_id" > 9 OR donator_name = "Santo Domingo Este"


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 contestant_number FROM CONTESTANTS WHERE contestant_name <> "Jessie Alloway" OR "contestant_number" >= 8 INTERSECT SELECT contestant_number FROM VOTES WHERE state <> "NY" OR "phone_number" != 7148407040 OR "contestant_number" >= 5 AND created = "2018-03-09 19:03:40"


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


Question: SELECT other_details FROM Documents WHERE receipt_number != "124" AND document_status_code != "working" AND receipt_date <> "2008-04-21 20:42:25" AND other_details != "m" OR shipping_agent_code != "US" AND document_type_code != "Paper" AND "document_id" < 15 EXCEPT SELECT other_details FROM Employees WHERE employee_name = "Koby" AND other_details = "u" OR "employee_id" < 3


Question: SELECT Store_Name, MIN(Area_size), MAX(Type) FROM store WHERE Store_Name != "Rogersville" OR "Number_of_product_category" = 1678.0 OR "Ranking" <> 9 AND "Area_size" < 28.74 OR "Store_ID" <= 3 UNION SELECT Store_Name, MIN(Area_size), MAX(Type) FROM store WHERE "Number_of_product_category" = 793.0 AND "Ranking" <= 3 AND "Area_size" >= 179.84 OR Store_Name <> "Blackville"


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


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


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


Question: SELECT aid FROM aircraft WHERE "distance" <= 7120 OR "aid" <= 13 UNION SELECT aid FROM certificate WHERE "eid" = 142519864 OR "aid" > 11


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 T1.People_ID, T2.Poker_Player_ID FROM people as T1 JOIN poker_player as T2 ON T1.People_ID == T2.People_ID GROUP BY Best_Finish HAVING Earnings = 104871.0 OR Height < 196.0 AND Best_Finish < 3.0 OR Nationality <> "Russia" AND Birth_Date <> "April 17, 1987" AND Name <> "Maksim Botin" OR Final_Table_Made <> 42.0 AND Poker_Player_ID >= 1


Question: SELECT SUM(PetID) FROM Has_Pet WHERE "StuID" <> 1002 UNION ALL SELECT SUM(PetID) FROM Pets WHERE "pet_age" > 1 OR "weight" = 12.0 OR PetType != "dog"


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


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


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


Question: SELECT mailed_to_address_id FROM Documents_Mailed WHERE mailing_date != "2010-11-04 04:00:16" OR "mailed_to_address_id" >= 0 UNION ALL SELECT mailed_to_address_id FROM Documents_Mailed WHERE mailing_date <> "1977-04-01 17:03:50" AND "mailed_to_address_id" <> 7 OR "document_id" = 12


Question: SELECT customer_id FROM Customer_Payments WHERE datetime_payment <> "2018-02-03 15:04:36" OR "amount_payment" <> 4032.33 AND payment_method_code = "Direct Debit" OR "customer_id" > 1 INTERSECT SELECT customer_id FROM Lessons WHERE "price" >= 352.0 AND lesson_date != "2018-03-03 15:10:16" AND "lesson_id" != 8 AND "customer_id" <> 6 AND lesson_time <> "5" OR lesson_status_code = "Cancelled" AND "staff_id" < 11


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


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


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


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


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


Question: SELECT SUM(Maker) FROM car_makers WHERE "Id" <> 12 OR Country <> "1" AND Maker != "kia" OR FullName = "General Motors" UNION SELECT SUM(Maker) FROM model_list WHERE "Maker" < 6


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 department_ID, temporary_acting, head_ID FROM management WHERE "head_ID" < 10 OR "department_ID" < 2 AND temporary_acting = "Yes" INTERSECT SELECT department_ID, temporary_acting, head_ID FROM management WHERE "head_ID" <= 3 OR "department_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 > 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 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 AVG(Country) FROM car_makers WHERE Country != "6" AND Maker <> "amc" UNION SELECT AVG(Country) FROM car_makers WHERE FullName <> "Honda"


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


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


Question: SELECT customer_id FROM Customer_Payments WHERE datetime_payment = "2018-03-12 13:31:36" AND payment_method_code = "Direct Debit" UNION SELECT customer_id FROM Customers WHERE first_name = "Jordy" AND phone_number != "417.136.2900x672"


Question: SELECT Template_ID FROM Documents WHERE Document_Description <> "y" OR "Template_ID" = 6 OR Document_Name != "Learning French" INTERSECT SELECT Template_ID FROM Templates WHERE Template_Details <> "" OR Template_Type_Code != "BK"


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 MAX(T1.Enrollment), T2.Invested FROM School as T1 JOIN budget as T2 ON T1.School_id = T2.School_id WHERE "Year" <= 2005 OR "Invested" < 5840 AND IHSAA_Class = "AAA" AND IHSAA_Football_Class <> "A" AND "total_budget_percent_budgeted" < 2.0 OR "Enrollment" <= 620 OR Location <> "Culver"


Question: SELECT Area_size, Type FROM store WHERE "Number_of_product_category" >= 1678.0 OR Type = "Village Store" UNION SELECT Area_size, Type FROM store WHERE "Area_size" <> 28.74 OR "Number_of_product_category" <= 17811.0 OR Store_Name != "Neguac" AND "Store_ID" = 3 AND "Ranking" >= 2


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


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


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


Question: SELECT COUNT(Employee_ID) FROM evaluation WHERE Year_awarded = "2016" UNION SELECT COUNT(Employee_ID) FROM evaluation WHERE Year_awarded <> "2011" AND "Bonus" > 3200.0 AND Employee_ID != "7"


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


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


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


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


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


Question: SELECT property_type_code FROM Ref_Property_Types WHERE property_type_description != "House, Bungalow, etc." AND property_type_code != "House" UNION SELECT property_type_code FROM Ref_Property_Types WHERE property_type_code != "Shop" OR property_type_description <> "House, Bungalow, etc."


Question: SELECT receipt_number, shipping_agent_code, receipt_date, document_status_code, document_type_code, document_id FROM Documents WHERE document_status_code <> "overdue" OR document_type_code <> "Paper" AND receipt_number <> "189" INTERSECT SELECT receipt_number, shipping_agent_code, receipt_date, document_status_code, document_type_code, document_id FROM Documents WHERE shipping_agent_code <> "UP" AND receipt_date != "1983-09-26 09:32:56" OR document_status_code = "overdue" OR document_type_code = "CD"


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 Aircraft_ID FROM aircraft WHERE Aircraft != "CH-47D Chinook" OR Max_Gross_Weight = "50,000 lb (22,680 kg)" OR Max_disk_Loading = "14.5 lb/ft² (71 kg/m²)" AND Total_disk_area <> "8,495 ft² (789 m²)" OR "Aircraft_ID" != 5 UNION ALL SELECT Aircraft_ID FROM airport_aircraft WHERE "Airport_ID" <> 1


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


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


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


Question: SELECT AVG(CountryId), SUM(Continent), AVG(CountryName) FROM countries WHERE CountryName = "japan" EXCEPT SELECT AVG(CountryId), SUM(Continent), AVG(CountryName) FROM countries WHERE "Continent" <= 2 AND CountryName = "nigeria"


Question: SELECT MIN(document_status_description), document_status_code FROM Ref_Document_Status WHERE document_status_description = "currently working on" UNION SELECT MIN(document_status_description), document_status_code FROM Ref_Document_Status WHERE document_status_description <> "mailed late"


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


Question: SELECT u_id FROM review WHERE "u_id" > 2 OR "i_id" < 5 AND "rating" <> 6 OR "a_id" <= 3 AND "rank" != 7 INTERSECT SELECT u_id FROM useracct WHERE "u_id" <= 3 AND name = "Helen"


Question: SELECT eid FROM certificate WHERE "eid" = 355548984 AND "aid" = 8 INTERSECT SELECT eid FROM employee WHERE "salary" = 289950 OR name <> "Jennifer Thomas" OR "eid" <= 489456522


Question: SELECT id FROM airport WHERE Country != "Belgium" EXCEPT SELECT id FROM operate_company WHERE Type = "Subsidiary" AND name <> "Cathay Pacific Catering Services (HK) Limited" AND Incorporated_in = "Hong Kong" OR "Group_Equity_Shareholding" > 49.0 AND Principal_activities <> "Cargo airline"


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


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


Question: SELECT T1.Id, T2.Year FROM car_makers as T1 JOIN cars_data as T2 ON T1.Id == T2.Id 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 Rank FROM match_result WHERE "Small_Silver" > 10 AND "Points" > 66 AND "Bronze" > 9 AND "Big_Silver" = 7 AND "Gold" = 12 UNION ALL SELECT Rank FROM player WHERE Occupation != "Self Employed / Consultant" AND Player_name <> "Ron Strynadka" OR "Player_ID" > 1 AND Residence <> "Birtle" OR "Votes" <> 14097


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 School_id FROM budget WHERE "total_budget_percent_budgeted" > 2.0 UNION SELECT School_id FROM endowment WHERE donator_name <> "San José de Ocoa"


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


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


Question: SELECT vehicle_id FROM Lessons WHERE "customer_id" <= 11 AND lesson_time <> "4" AND "price" <= 495.0 UNION ALL SELECT vehicle_id FROM Vehicles WHERE vehicle_details = "Truck" AND "vehicle_id" <= 2


Question: SELECT District_name, City_Area, City_Population, District_ID FROM district WHERE "District_ID" < 7 AND "City_Population" < 314617.0 AND Headquartered_City = "Bahawalnagar City" AND District_name != "Hafizabad District" EXCEPT SELECT District_name, City_Area, City_Population, District_ID FROM district WHERE Headquartered_City = "Bahawalpur City" OR "City_Area" = 147.0


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


Question: SELECT District, Name, Location, Manager_name, Shop_ID FROM shop WHERE "Shop_ID" != 7 AND Name != "FC Lahti" OR District = "Arto Tolsa Areena" AND Location = "Jakobstad" EXCEPT SELECT District, Name, Location, Manager_name, Shop_ID FROM shop WHERE Manager_name = "Job Dragtsma" OR Name != "FC Inter" AND Location <> "Jakobstad" AND "Number_products" < 3500

Arto Tolsa Areena
FC KooTeePee
Kotka
Tommi Kautonen
6

Finnair Stadium
HJK
Helsinki
Antti Muurinen
2

Jakobstads Centralplan
FF Jaro
Jakobstad
Mika Laurikainen
5

Tapiolan Urheilupuisto
FC Honka
Espoo
Mika Lehkosuo
3

Tehtaan kenttä
FC Haka
Valkeakoski
Olli Huttunen
1


Question: SELECT document_id FROM Documents WHERE "document_id" != 17 OR document_type_code = "CD" AND receipt_date <> "2008-04-21 20:42:25" OR document_status_code != "done" OR other_details = "q" OR receipt_number <> "19" EXCEPT SELECT document_id FROM Draft_Copies WHERE "document_id" < 2 AND "copy_number" >= 15 OR "draft_number" <= 9


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


Question: SELECT SUM(Years_Working), Driver_ID FROM school_bus WHERE "Driver_ID" > 4 AND "Years_Working" >= 2 OR "School_ID" < 4 OR If_full_time = "T" UNION SELECT SUM(Years_Working), Driver_ID FROM school_bus WHERE If_full_time = "T" OR "Years_Working" >= 8 OR "Driver_ID" < 4 OR "School_ID" <= 7


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


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


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


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


Question: SELECT Rank FROM coach WHERE "Coach_ID" <= 3 OR "Club_ID" < 1 AND Gender != "M" UNION ALL SELECT Rank FROM match_result WHERE "Points" != 84 AND "Rank" != 6 OR "Club_ID" <= 4


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


Question: SELECT dpi, pages_per_minute_color, interface, max_page_size, product_id FROM product WHERE max_page_size <> "216mm x 356mm" OR "pages_per_minute_color" = 3.0 OR "dpi" != 600.0 OR product != "Canon DR-2080C" OR "product_id" != 6 OR dimensions != "301 x 160 x 158" OR interface != "USB 2.0" UNION SELECT dpi, pages_per_minute_color, interface, max_page_size, product_id FROM product WHERE dimensions <> "289 x 51 x 38" OR "product_id" <= 4 AND product = "Xerox Travel Scanner 100" OR interface = "USB 2.0" OR "dpi" <> 600.0 OR max_page_size = "216mm x 355mm" AND "pages_per_minute_color" <> 30.0


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


Question: SELECT Template_ID FROM Documents WHERE Document_Name = "About Korea" INTERSECT SELECT Template_ID FROM Templates WHERE "Version_Number" = 2 AND "Template_ID" <= 14 AND Date_Effective_To != "1976-10-28 10:08:50" OR Template_Details <> "" OR Template_Type_Code = "BK" OR Date_Effective_From != "1983-07-16 21:16:16"


Question: SELECT Branch_ID FROM branch WHERE Open_year = "2012" AND Name != "Zytogorski" OR Address_road != "Valleys Place" AND "Branch_ID" > 6 OR City != "Oxford" OR membership_amount = "31" EXCEPT SELECT Branch_ID FROM membership_register_branch WHERE Register_Year = "2016" AND "Member_ID" <> 8 AND Branch_ID = "2"


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


Question: SELECT customer_id FROM Customers WHERE email_address != "myrl.lind@example.net" AND last_name <> "Grant" AND cell_mobile_phone_number <> "00659133944" AND date_of_birth = "1996-08-29 00:03:08" AND "customer_address_id" >= 1 EXCEPT SELECT customer_id FROM Lessons WHERE lesson_date = "2018-03-17 19:02:07"


Question: SELECT Name FROM employee WHERE Name != "Jason Hobson" OR "Employee_ID" > 4 UNION SELECT Name FROM shop WHERE Location != "Kotka" AND District != "Tapiolan Urheilupuisto"


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


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


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


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


Question: SELECT Coach_ID, Starting_year FROM player_coach WHERE "Player_ID" > 3 OR "Starting_year" != 2013 UNION ALL SELECT Coach_ID, Starting_year FROM player_coach WHERE "Coach_ID" <> 1 AND "Starting_year" <> 2011


Question: SELECT AVG(Player_ID), SUM(Starting_year), Coach_ID FROM player_coach WHERE "Coach_ID" != 5 OR "Starting_year" <= 2013 OR "Player_ID" != 1 EXCEPT SELECT AVG(Player_ID), SUM(Starting_year), Coach_ID FROM player_coach WHERE "Starting_year" >= 2013 AND "Coach_ID" <= 1


Question: SELECT Num_Employees, COUNT(Creation) FROM department WHERE "Ranking" <> 13 OR "Budget_in_Billions" = 59.7 OR "Num_Employees" < 71436.0 GROUP BY Num_Employees HAVING COUNT(Creation) != 1 UNION SELECT Num_Employees, COUNT(Creation) FROM department WHERE "Num_Employees" <> 36000.0 OR "Department_ID" <= 9 OR Name != "Agriculture" AND "Ranking" > 5 AND Creation <> "1966" GROUP BY Num_Employees HAVING COUNT(Creation) >= 1


Question: SELECT T1.Driver_ID, T2.Driver_ID FROM driver as T1 JOIN school_bus as T2 ON T1.Driver_ID == T2.Driver_ID GROUP BY School_ID HAVING Party <> "Dem" OR Years_Working = 8 OR If_full_time = "T"


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


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


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


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


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


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


Question: SELECT Maker FROM car_makers WHERE Maker != "hyundai" AND "Id" <> 6 OR Country != "1" AND FullName = "Citroen" UNION SELECT Maker FROM model_list WHERE Model = "capri"


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


Question: SELECT Template_ID FROM Documents WHERE Document_Name = "How to read a book" AND Other_Details != "None" AND Document_Description = "y" OR "Document_ID" > 0 EXCEPT SELECT Template_ID FROM Templates WHERE "Version_Number" < 9 AND Date_Effective_To <> "1998-05-12 12:51:29" AND Template_Details != "" AND Template_Type_Code <> "BK"


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


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


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


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


Question: SELECT SUM(Template_Type_Code) FROM Ref_Template_Types WHERE Template_Type_Code = "PP" OR Template_Type_Description != "Presentation" UNION ALL SELECT SUM(Template_Type_Code) FROM Ref_Template_Types WHERE Template_Type_Description = "CV"


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


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


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


Question: SELECT AVG(Sex), MIN(LName), Advisor, Fname, StuID FROM Student WHERE "Advisor" = 8723 OR "Major" != 600 OR "Age" > 18 AND Sex <> "F" AND city_code <> "BOS" OR "StuID" >= 1021 AND LName != "Pang" AND Fname <> "William" INTERSECT SELECT AVG(Sex), MIN(LName), Advisor, Fname, StuID FROM Student WHERE "StuID" < 1023 OR Fname <> "Mark"


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


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


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


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


Question: SELECT document_id FROM Document_Drafts WHERE "draft_number" <= 17 OR "document_id" = 10 OR draft_details != "w" EXCEPT SELECT document_id FROM Document_Drafts WHERE "draft_number" < 20 AND "document_id" <> 1


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


Question: SELECT Location, MIN(School), Grade, MIN(Type) FROM school WHERE School = "Occidental College" OR "School_ID" > 5 AND Location != "New York City" UNION SELECT Location, MIN(School), Grade, MIN(Type) FROM school WHERE Grade != "5th-12th grade" OR "School_ID" <> 1

Honolulu, Hawaii
Columbia University
5th-12th grade
Private

Los Angeles, California
Harvard Law School
Freshman–Sophomore year
Private


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


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


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


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


Question: SELECT MIN(Club_ID) FROM club WHERE "Club_ID" <> 3 INTERSECT SELECT MIN(Club_ID) FROM coach WHERE Gender <> "F" OR "Rank" <= 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 = 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 > 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 > 9


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


Question: SELECT feature_id, feature_description, feature_type_code, feature_name FROM Other_Available_Features WHERE feature_description != "Swimming Pool." AND feature_name = "AirCon" INTERSECT SELECT feature_id, feature_description, feature_type_code, feature_name FROM Other_Available_Features WHERE feature_type_code <> "Security" OR feature_description = "Swimming Pool."


Question: SELECT SUM(City), Name, Open_year FROM branch WHERE City = "Oxford" OR Name <> "Cochrane" INTERSECT SELECT SUM(City), Name, Open_year FROM branch WHERE Address_road <> "Concord Road" AND Open_year != "2009" OR City = "London" OR Name <> "Alexandre"


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


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


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


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


Question: SELECT Start_year FROM club WHERE "Start_year" = 2001 OR "Club_ID" < 5 OR Club_name != "Djurgårdens IF" AND Region != "USA" EXCEPT SELECT Start_year FROM club WHERE "Start_year" = 2000


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


Question: SELECT MIN(Allergy) FROM Allergy_Type WHERE AllergyType <> "food" OR Allergy <> "Rodent" UNION SELECT MIN(Allergy) FROM Has_Allergy WHERE "StuID" >= 1027


Question: SELECT MAX(AllergyType), Allergy FROM Allergy_Type WHERE AllergyType != "animal" UNION SELECT MAX(AllergyType), Allergy FROM Allergy_Type WHERE Allergy <> "Ragweed"


Question: SELECT employee_id, employee_name, other_details FROM Employees WHERE other_details = "b" AND employee_name != "Haley" INTERSECT SELECT employee_id, employee_name, other_details FROM Employees WHERE other_details <> "f" OR role_code != "ED" AND employee_name != "Haley"


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


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


Question: SELECT last_name, date_of_birth FROM Customers WHERE "customer_address_id" > 1 UNION SELECT last_name, date_of_birth FROM Staff WHERE nickname != "norma73" AND middle_name <> "Mayra" AND date_joined_staff != "2017-04-27 03:21:26" OR "staff_address_id" = 1 OR date_of_birth = "2015-08-10 11:37:39" OR first_name = "Simeon"


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 Maker, MIN(Model) FROM model_list WHERE Model <> "bmw" AND "Maker" <> 22 OR "ModelId" > 20 UNION ALL SELECT Maker, MIN(Model) FROM model_list WHERE "Maker" = 16 OR Model != "peugeot"


Question: SELECT Employee_ID FROM employee WHERE Name = "Andrew Sheridan" AND City != "Bath" UNION SELECT Employee_ID FROM hiring WHERE "Shop_ID" = 1 OR Start_from != "2003"


Question: SELECT Id, Country, COUNT(FullName), COUNT(Maker) FROM car_makers WHERE "Id" <> 23 AND Country <> "6" UNION ALL SELECT Id, Country, COUNT(FullName), COUNT(Maker) FROM car_makers WHERE Maker != "triumph" AND "Id" <= 5


Question: SELECT document_id FROM Circulation_History WHERE "copy_number" <= 4 OR "document_id" >= 2 UNION SELECT document_id FROM Documents_Mailed WHERE mailing_date != "1977-04-01 17:03:50"


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


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


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


Question: SELECT COUNT(name) FROM aircraft WHERE "aid" < 1 AND "distance" >= 2128 IN (SELECT COUNT(name) FROM aircraft WHERE "distance" <= 4103 AND "aid" >= 14)


Question: SELECT property_type_code FROM Ref_Property_Types WHERE property_type_code = "Field" OR property_type_description != "Field, Meadow." EXCEPT SELECT property_type_code FROM Ref_Property_Types WHERE property_type_description = "Shop, Retail Outlet."


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


Question: SELECT Branch_ID FROM branch WHERE Address_road <> "Glebe Street" AND City = "London" OR Name != "Brooke Greville" OR membership_amount = "31" OR Open_year = "2001" UNION ALL SELECT Branch_ID FROM purchase WHERE "Total_pounds" > 321.13 AND "Member_ID" != 4 OR Branch_ID = "3" OR Year = "2018"


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 Maker FROM car_makers WHERE "Id" <= 12 OR FullName != "Chrysler" UNION SELECT Maker FROM model_list WHERE Model <> "triumph" AND "ModelId" > 24 OR "Maker" = 13


Question: SELECT StuID, COUNT(Sex), AVG(Fname), LName, Age, city_code FROM Student WHERE Fname = "Michael" OR Sex <> "M" AND "Age" >= 19 OR LName != "Schmidt" UNION ALL SELECT StuID, COUNT(Sex), AVG(Fname), LName, Age, city_code FROM Student WHERE "StuID" = 1008 OR LName != "Prater" OR "Age" < 17 AND "Advisor" > 2192 OR Sex = "M" AND "Major" > 50

StuID COUNT(Sex) AVG(Fname) LName Age city_code


Question: SELECT title, id FROM albums WHERE "id" <= 25 EXCEPT SELECT title, id FROM employees WHERE "reports_to" <> 2.0 AND "id" >= 7 AND city != "Lethbridge" AND phone != "+1 (780) 428-9482" OR birth_date = "1958-12-08 00:00:00" OR postal_code = "T1H 1Y8" AND address <> "11120 Jasper Ave NW"

Alcohol Fueled Brewtality Live! [Disc 1]

Alcohol Fueled Brewtality Live! [Disc 2]

The Best Of Buddy Guy - The Millenium Collection


Question: SELECT employee_id FROM Circulation_History WHERE "draft_number" != 20 AND "copy_number" < 5 OR "document_id" > 20 UNION SELECT employee_id FROM Employees WHERE other_details <> "b" AND employee_name = "Kenyon"


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


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


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


Question: SELECT aid FROM aircraft WHERE "distance" != 1502 UNION ALL SELECT aid FROM certificate WHERE "eid" < 269734834 OR "aid" > 2


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


Question: SELECT SUM(eid) FROM employee WHERE "eid" < 248965255 EXCEPT SELECT SUM(eid) FROM employee WHERE "eid" > 619023588


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


Question: SELECT Address_road, City FROM branch WHERE Open_year != "2001" OR "Branch_ID" = 2 OR membership_amount = "7" AND City = "London" AND Name <> "Cochrane" OR Address_road <> "Glebe Street" UNION SELECT Address_road, City FROM branch WHERE membership_amount != "31"


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


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


Question: SELECT AVG(T1.i_id), T2.rank FROM item as T1 JOIN review as T2 ON T1.i_id = T2.i_id WHERE COUNT(u_id) > 2 OR rank < 3 OR SUM(a_id) > 1 OR title = "comb" AND COUNT(rating) <= 6


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


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


Question: SELECT Player_ID, Residence, Sponsor_name, Player_name FROM player WHERE "Votes" = 12285 OR "Player_ID" >= 4 OR Gender <> "M" EXCEPT SELECT Player_ID, Residence, Sponsor_name, Player_name FROM player WHERE Sponsor_name = "Kildonan—St. Paul" AND "Player_ID" = 4 OR "Votes" >= 5490 AND Residence = "Winnipeg"

4
Birtle
Dauphin—Swan River—Marquette
Ron Strynadka

10
Selkirk
Selkirk—Interlake
Patricia Cordner


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


Question: SELECT document_status_code FROM Documents WHERE "document_id" = 7 AND shipping_agent_code <> "FE" OR document_type_code != "Paper" UNION SELECT document_status_code FROM Ref_Document_Status WHERE document_status_description = "mailed" AND document_status_code = "working"


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


Question: SELECT property_id FROM Other_Property_Features WHERE "property_id" >= 6 OR "feature_id" <> 3 AND property_feature_description <> "cumque" UNION ALL SELECT property_id FROM Properties WHERE property_type_code = "House" AND "property_id" >= 1 AND shp_feature_1 <> "None" OR oth_feature_3 = "None" AND date_on_market <> "2017-09-14 15:49:23" OR oth_feature_2 <> "None" AND fld_feature_2 <> "None" AND date_sold != "1984-02-01 19:54:54" OR property_name <> "wall street" OR hse_feature_3 <> "None" OR hse_feature_2 != "None" OR property_address = "092 Paucek Highway Apt. 772 East Erika, IA 61358" OR fld_feature_1 = "None"


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


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


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


Question: SELECT MIN(employee_id) FROM Circulation_History WHERE "document_id" <> 1 UNION SELECT MIN(employee_id) FROM Employees WHERE "employee_id" <= 7 OR role_code <> "ED" OR employee_name = "Erling" OR other_details = "u"


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 MAX(T1.Enrollment), T2.Invested FROM School as T1 JOIN budget as T2 ON T1.School_id = T2.School_id WHERE "Year" <= 2005 OR "Invested" < 5840 AND IHSAA_Class = "AAA" AND IHSAA_Football_Class <> "A" AND "total_budget_percent_budgeted" < 2.0 OR "Enrollment" <= 620 OR Location <> "Culver" GROUP BY IHSAA_Class HAVING Enrollment < 495 AND School_name = "Glenn" OR Budget_invested_percent <> "42.9" OR County = "71 St. Joseph"


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 PetID FROM Has_Pet WHERE "StuID" = 1002 OR "PetID" != 2001 UNION SELECT PetID FROM Has_Pet WHERE "PetID" <> 2001


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


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


Question: SELECT Club_ID FROM club WHERE "Start_year" < 2000 AND Club_name <> "AIK" OR "Club_ID" <> 5 OR Region != "USA" INTERSECT SELECT Club_ID FROM match_result WHERE "Big_Silver" <= 7 OR "Bronze" <> 10 AND "Club_ID" != 4 AND "Points" >= 66 AND "Rank" >= 2


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 i_id FROM item WHERE "i_id" >= 3 EXCEPT SELECT i_id FROM item WHERE "i_id" = 4 AND title = "orange"


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


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


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


Question: SELECT SUM(T1.Sales_in_Billion), T2.Year_working FROM company as T1 JOIN employment as T2 ON T1.Company_ID = T2.Company_ID WHERE Headquarters <> "USA" OR "Sales_in_Billion" <= 447.0 AND "People_ID" > 7 OR "Profits_in_Billion" <> 25.7 AND "Year_working" > 1 OR "Market_Value_in_Billion" > 237.4 OR Name = "ExxonMobil" OR "Assets_in_Billion" <= 1873.9


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


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


Question: SELECT head_ID FROM head WHERE born_state = "Connecticut" AND "head_ID" <= 6 AND "age" > 68.0 OR name = "Jeff Maggert" UNION SELECT head_ID FROM management WHERE "department_ID" <> 11 OR temporary_acting != "Yes"


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


Question: SELECT SUM(Publisher), Publication_ID, Price, AVG(Book_ID) FROM publication WHERE "Book_ID" != 9 OR "Price" < 3000000.0 OR Publisher != "Bertelsmann" OR "Publication_ID" < 6 OR Publication_Date = "October 2005" UNION ALL SELECT SUM(Publisher), Publication_ID, Price, AVG(Book_ID) FROM publication WHERE "Book_ID" <> 5 AND "Publication_ID" >= 6 AND Publication_Date != "October 2005" AND "Price" >= 6000000.0


Question: SELECT Coach_ID FROM coach WHERE "Rank" != 4 AND Gender = "F" AND "Club_ID" = 1 OR "Coach_ID" >= 1 AND Coach_name <> "James Wong" UNION SELECT Coach_ID FROM player_coach WHERE "Coach_ID" > 3


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


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


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


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


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


Question: SELECT T1.Height, T2.Poker_Player_ID FROM people as T1 JOIN poker_player as T2 ON T1.People_ID == T2.People_ID GROUP BY Birth_Date HAVING Final_Table_Made > 10.0 AND Nationality = "Bulgaria" AND Best_Finish >= 2.0 AND Money_Rank >= 154.0 OR Birth_Date = "August 16, 1982" OR Name = "Sergey Grankin"


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


Question: SELECT T1.Club_ID, T2.Club_ID FROM club as T1 JOIN coach as T2 ON T1.Club_ID == T2.Club_ID GROUP BY Start_year HAVING Club_name <> "Halmstads BK" OR Coach_name = "Joe Fabbri" AND Start_year < 2009 OR Region = "USA" OR Rank < 3 OR Coach_ID <= 2 OR Gender = "M"


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


Question: SELECT Date_Effective_To FROM Templates WHERE "Version_Number" != 5 OR Template_Details = "" AND Date_Effective_To = "1999-07-08 03:31:04" UNION ALL SELECT Date_Effective_To FROM Templates WHERE Date_Effective_From = "1983-07-16 21:16:16" OR Date_Effective_To != "1979-11-04 08:58:39" AND Template_Details != "" AND Template_Type_Code <> "PPT" AND "Version_Number" = 0 OR "Template_ID" <= 8


Question: SELECT amount_outstanding, customer_address_id, customer_id, cell_mobile_phone_number, phone_number, customer_status_code, date_became_customer, date_of_birth, email_address FROM Customers WHERE "amount_outstanding" <= 8144.0 AND "customer_id" >= 5 OR phone_number = "206-054-0689x05861" AND customer_status_code != "Good Customer" OR date_of_birth != "1991-12-05 02:50:15" OR cell_mobile_phone_number = "200.830.8723" OR date_became_customer != "2015-11-16 22:52:14" UNION SELECT amount_outstanding, customer_address_id, customer_id, cell_mobile_phone_number, phone_number, customer_status_code, date_became_customer, date_of_birth, email_address FROM Customers WHERE email_address != "myrl.lind@example.net" OR customer_status_code = "Bad Customer" AND "customer_address_id" != 1 OR date_of_birth = "1996-05-23 01:21:54"


Question: SELECT Company_ID FROM company WHERE "Assets_in_Billion" < 328.7 OR Headquarters != "USA" AND Industry <> "Banking" UNION ALL SELECT Company_ID FROM employment WHERE "People_ID" <= 4 AND "Company_ID" >= 17


Question: SELECT property_feature_description, property_id, feature_id FROM Other_Property_Features WHERE property_feature_description != "corrupti" AND "feature_id" >= 2 AND "property_id" >= 13 UNION SELECT property_feature_description, property_id, feature_id FROM Other_Property_Features WHERE property_feature_description <> "illo" OR "property_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 < 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 != 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 != 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 != 4


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


Question: SELECT Party FROM election WHERE "Party" <> 7 AND Delegate != "Guzzone, Guy Guy Guzzone" OR "Election_ID" <> 7 AND "District" < 2 OR "First_Elected" < 1994.0 AND Counties_Represented <> "12.1 12A" AND Committee != "Appropriations" UNION ALL SELECT Party FROM party WHERE "Party_ID" < 1 AND US_Senate != "Hillary Rodham Clinton" AND Lieutenant_Governor != "David Paterson" AND Comptroller = "Alan Hevesi"


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


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


Question: SELECT Bonus FROM evaluation WHERE "Bonus" >= 2900.0 INTERSECT SELECT Bonus FROM evaluation WHERE Year_awarded <> "2011" OR Employee_ID = "2" AND "Bonus" <> 3200.0


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 Rank FROM coach WHERE Coach_name <> "James Wong" OR "Club_ID" <> 3 EXCEPT SELECT Rank FROM player WHERE "Votes" > 6055


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 AVG(Fname), MAX(Advisor), MAX(Sex), MAX(Major), StuID, AVG(Age), COUNT(LName) FROM Student WHERE Sex = "M" OR Fname <> "Eric" AND "Major" != 600 OR "Advisor" >= 7712 OR city_code = "NYC" UNION ALL SELECT AVG(Fname), MAX(Advisor), MAX(Sex), MAX(Major), StuID, AVG(Age), COUNT(LName) FROM Student WHERE Fname <> "Lisa" OR "Major" > 600 OR city_code != "WAS" AND "StuID" >= 1029 AND Sex <> "F" OR "Advisor" <= 1121 AND LName = "Adams" AND "Age" = 26

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


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


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


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


Question: SELECT COUNT(ClubLocation), ClubName, SUM(ClubID), COUNT(ClubDesc) FROM Club WHERE ClubDesc != "A competitive tennis club." AND ClubName <> "Pen and Paper Gaming" OR ClubLocation <> "HHH" GROUP BY ClubName HAVING COUNT(ClubLocation) > 1 AND SUM(ClubID) <= 2 UNION SELECT COUNT(ClubLocation), ClubName, SUM(ClubID), COUNT(ClubDesc) FROM Club WHERE ClubDesc != "Venture capital fund for student business." AND ClubName != "Bootup Baltimore" AND ClubLocation != "AKW" GROUP BY ClubName HAVING COUNT(ClubLocation) < 1 OR COUNT(ClubDesc) >= 1

COUNT(ClubLocation) ClubName SUM(ClubID) COUNT(ClubDesc)


Question: SELECT document_id FROM Documents_Mailed WHERE "mailed_to_address_id" >= 7 UNION ALL SELECT document_id FROM Draft_Copies WHERE "copy_number" >= 5 AND "document_id" >= 1 OR "draft_number" != 2


Question: SELECT MIN(Company_ID) FROM company WHERE "Assets_in_Billion" <> 213.0 UNION SELECT MIN(Company_ID) FROM employment WHERE "Company_ID" = 13


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


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


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


Question: SELECT MIN(T1.id), T2.company_id FROM airport as T1 JOIN flight as T2 ON T1.id = T2.id WHERE IATA <> "BLL" OR Date = "January 29, 1964" OR "Altitude" <= 3650.0 AND ICAO <> "EBBR" AND "airport_id" > 2 AND name = "Billund Airport" GROUP BY ICAO HAVING City = "Akureyri" AND company_id < 2 AND name <> "Ted Stevens Airport" AND IATA = "BCN" AND Vehicle_Flight_number = "M2-F1 #61" OR Velocity >= 240.0 AND airport_id <> 3 OR Pilot = "Thompson" AND Altitude <= 3650.0 OR Country = "Netherlands" AND ICAO = "LEBL"


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


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


Question: SELECT Hometown FROM member WHERE Card_Number = "SLB51" AND "Member_ID" > 8 AND Name != "Matt Lentz" UNION SELECT Hometown FROM member WHERE Hometown <> "Simpsonville, South Carolina"


Question: SELECT vehicle_details FROM Vehicles WHERE vehicle_details <> "Van" UNION SELECT vehicle_details FROM Vehicles WHERE "vehicle_id" > 2


Question: SELECT Continent, ContId FROM continents WHERE Continent != "america" UNION ALL SELECT Continent, ContId FROM continents WHERE "ContId" > 2 AND Continent = "europe"


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


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


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


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


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


Question: SELECT SUM(T1.feature_id), T2.feature_id FROM Other_Available_Features as T1 JOIN Other_Property_Features as T2 ON T1.feature_id = T2.feature_id WHERE feature_type_code <> "Amenity" AND feature_description = "Burglar Alarm"


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


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


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


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


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


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


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


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


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


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


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


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


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


Question: SELECT Model FROM car_names WHERE Model != "chevrolet" OR "MakeId" = 44 UNION ALL SELECT Model FROM model_list WHERE "Maker" = 5 AND Model = "renault"


Question: SELECT id FROM airport WHERE IATA = "BOS" OR ICAO <> "KBOS" AND name = "Ted Stevens Airport" UNION SELECT id FROM flight WHERE "Altitude" = 3650.0


Question: SELECT MAX(other_details) FROM Documents WHERE document_type_code = "Hard Drive" AND other_details <> "n" AND document_status_code <> "working" OR receipt_number = "61" OR shipping_agent_code = "UP" AND "document_id" <= 2 EXCEPT SELECT MAX(other_details) FROM Employees WHERE role_code <> "PT" AND "employee_id" > 3 AND employee_name <> "Erling" OR other_details != "b"


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


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


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


Question: SELECT shipping_agent_description FROM Ref_Shipping_Agents WHERE shipping_agent_name <> "UPS" UNION SELECT shipping_agent_description FROM Ref_Shipping_Agents WHERE shipping_agent_code <> "UP"


Question: SELECT cell_mobile_phone_number, date_of_birth, date_became_customer, customer_address_id, first_name FROM Customers WHERE "customer_id" = 15 OR cell_mobile_phone_number != "1-197-686-2849x8761" UNION ALL SELECT cell_mobile_phone_number, date_of_birth, date_became_customer, customer_address_id, first_name FROM Customers WHERE "customer_address_id" >= 13 OR customer_status_code <> "Bad Customer" AND date_of_birth = "1998-09-18 04:45:01" AND phone_number = "1-875-045-0806" AND "amount_outstanding" = 9443.0 OR email_address <> "asha.kilback@example.org" OR first_name != "Genevieve" AND cell_mobile_phone_number != "848-099-2095x785" OR last_name != "Tromp"


Question: SELECT other_details, AVG(employee_id) FROM Employees WHERE employee_name != "Jordyn" OR role_code = "PT" OR "employee_id" < 3 OR other_details != "b" UNION ALL SELECT other_details, AVG(employee_id) FROM Employees WHERE other_details = "h"


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


Question: SELECT Store_ID FROM store_district WHERE "Store_ID" != 1 UNION ALL SELECT Store_ID FROM store_product WHERE "Store_ID" >= 5


Question: SELECT feature_description, AVG(feature_id), COUNT(feature_type_code) FROM Other_Available_Features GROUP BY feature_description HAVING COUNT(feature_type_code) >= 1 UNION ALL SELECT feature_description, AVG(feature_id), COUNT(feature_type_code) FROM Other_Available_Features GROUP BY feature_description HAVING AVG(feature_id) >= 3.0 OR COUNT(feature_type_code) > 1


Question: SELECT Advisor, StuID FROM Student WHERE "StuID" <= 1023 OR "Advisor" < 1148 AND city_code != "NYC" UNION SELECT Advisor, StuID FROM Student WHERE city_code <> "HKG" AND "Age" = 18 OR "Advisor" > 8741 AND Sex != "M" OR "Major" = 600 OR "StuID" != 1014 OR LName <> "Smith"


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 Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code != "PPT" AND Template_Type_Description != "CV" UNION SELECT Template_Type_Code FROM Templates WHERE "Template_ID" >= 14 AND Template_Type_Code = "PPT"


Question: SELECT Name, Branch_ID, Open_year, Address_road, membership_amount FROM branch WHERE Name = "Cochrane" AND Open_year <> "2009" UNION ALL SELECT Name, Branch_ID, Open_year, Address_road, membership_amount FROM branch WHERE Name = "Alexandre" AND Address_road != "Concord Road" AND "Branch_ID" != 8 OR membership_amount != "91"


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


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


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


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


Question: SELECT id FROM airport WHERE City <> "Baltimore" OR ICAO != "EKBI" INTERSECT SELECT id FROM flight WHERE "company_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 Model FROM car_names WHERE Make != "plymouth satellite sebring" AND Model = "volkswagen" OR "MakeId" <> 235 INTERSECT SELECT Model FROM model_list WHERE Model = "peugeot"


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


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


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


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


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


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


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


Question: SELECT employee_id, copy_number, document_id, draft_number FROM Circulation_History WHERE "document_id" < 20 OR "employee_id" != 2 INTERSECT SELECT employee_id, copy_number, document_id, draft_number FROM Circulation_History WHERE "employee_id" <> 8


Question: SELECT SUM(role_code), employee_id FROM Employees WHERE other_details != "b" OR employee_name = "Koby" OR "employee_id" = 7 UNION SELECT SUM(role_code), employee_id FROM Employees WHERE employee_name <> "Haley" AND "employee_id" = 8 AND role_code <> "ED" AND other_details != "u"


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 MIN(Branch_ID) FROM purchase WHERE "Total_pounds" > 321.13 AND Branch_ID = "6" OR "Member_ID" != 4 OR Year = "2018" UNION ALL SELECT MIN(Branch_ID) FROM purchase WHERE Year = "2018" OR "Member_ID" < 1 OR Branch_ID != "2" OR "Total_pounds" != 430.29


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


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


Question: SELECT MAX(Store_ID) FROM store WHERE "Store_ID" = 1 AND "Number_of_product_category" <> 793.0 UNION SELECT MAX(Store_ID) FROM store_product WHERE "Store_ID" <> 3


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


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


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


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


Question: SELECT id, title FROM albums WHERE title <> "Let There Be Rock" AND "artist_id" < 127 AND "id" <= 326 UNION SELECT id, title FROM employees WHERE city != "Calgary" OR postal_code != "T2P 5M5" AND phone <> "+1 (403) 262-3443" OR country = "Canada" AND last_name <> "Johnson" AND state = "AB" OR hire_date <> "2002-08-14 00:00:00" OR first_name = "Nancy" AND address <> "683 10 Street SW" AND birth_date <> "1965-03-03 00:00:00" AND "reports_to" != 2.0 OR fax != "+1 (403) 263-4289" AND "id" = 6 OR title = "Sales Support Agent"

Alcohol Fueled Brewtality Live! [Disc 1]

Alcohol Fueled Brewtality Live! [Disc 2]

The Best Of Buddy Guy - The Millenium Collection

Cássia Eller - Coleção Sem Limite [Disc 2]

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

My Way: The Best Of Frank Sinatra [Disc 1]

Quanta Gente Veio ver--Bônus De Carnaval

A TempestadeTempestade Ou O Livro Dos Dias

Lulu Santos - RCA 100 Anos De Música - Álbum 01

Lulu Santos - RCA 100 Anos De Música - Álbum 02

Seek And Shall Find: More Of The Best (1963-1981)

From The Muddy Banks Of The Wishkah live

Radio Brasil (O Som da Jovem Vanguarda) - Seleccao de Henrique Amaro


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


Question: SELECT Company_ID FROM company WHERE Industry = "Banking" AND "Company_ID" < 15.0 OR "Assets_in_Billion" > 193.4 UNION SELECT Company_ID FROM employment WHERE "Year_working" != 2


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


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


Question: SELECT role_code FROM Employees WHERE role_code <> "PT" AND employee_name != "Haley" UNION SELECT role_code FROM Roles WHERE role_code = "MG" OR role_description != "Editor"


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 SUM(role_code) FROM Employees WHERE other_details = "u" OR role_code = "ED" AND "employee_id" > 5 UNION ALL SELECT SUM(role_code) FROM Roles WHERE role_description = "Photo" AND role_code <> "ED"


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


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


Question: SELECT property_id FROM Other_Property_Features WHERE "property_id" = 6 AND property_feature_description <> "cumque" UNION ALL SELECT property_id FROM Properties WHERE hse_feature_3 <> "None" OR apt_feature_2 != "iusto" OR oth_feature_1 != "None" OR "room_count" != 5 OR "agreed_selling_price" = 456840888.16 OR date_sold != "2012-08-19 07:36:57" AND "buyer_offered_price" > 2.0 AND apt_feature_3 <> "None" OR oth_feature_2 = "None" OR hse_feature_2 = "None"


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 contestant_name FROM CONTESTANTS WHERE "contestant_number" >= 2 AND contestant_name <> "Kelly Clauss" UNION SELECT contestant_name FROM CONTESTANTS WHERE "contestant_number" < 5 AND contestant_name <> "Kurt Walser"


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


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


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