Added sequences to query related tables