Nested Queries using meta_query

Your inner query is overwriting the outer, you’ve assigned both to $the_query.