def release_in_episode(episode_id, release_id):
 with Session() as session:
  release = session.query(Release).filter((Release.id == release_id)).one()
  return (release.episode_id == episode_id)

def release_in_episode ( episode_id , release_id ) : with Session ( ) as session : release = session . query ( Release ) . filter ( ( Release . id == release_id ) ) . one ( ) return ( release . episode_id == episode_id )
return true if release_id is part of episode with episode_id .