Man kann auch Tableexpression nehmen:

with
mytable as (
:
:
)
select * from mytable
where SQLArtikel = : Hostvar