>_
recyclable_and_low_fat_products.sql
MariaDB 11.4
Not run yet

+ 5 hidden

Input
shelf_item
item_id  item_name         low_fat  recyclable
11       greek yogurt      y        y
12       butter croissant  n        y
13       rice crackers     y        n
14       oat milk          y        y
15       salted peanuts    n        n
Expected
[{"item_id": 11}, {"item_id": 14}]

Items 11 and 14 have y in both flags. Item 12 is recyclable but not low fat, item 13 is low fat but not recyclable, and item 15 is neither.