select * from qmd_territories where territoryid in ()