Update queries_with_joins