adapt select query for actors