query for service,media