take account of mixed herbs
Finish sql logic