Added #cargo_compound_query function