1.20.1 storage item id list

i have a problem execute as @a[nbt={Inventory:[{id:"minecraft:netherite_sword"}]}] i want to replace bold part to checking object in storage, i hear we can go through the list but how idk (in storage i have many IDs, and i dont want do commands for each item)

Continue to help post