Fixed compound_list query