Haven't tried this, but there is a way to export objects like queries
from one database to another, and I'd expect this to work between the
two versions. I don't have both on one machine, so I can't try it.
An alternative is to copy the SQL code, of course.