fixing qry2 - not fully functional yet.
Simple (hardcoded) query works now, but might need a more elegant
solution.