def episode_in_show(series_id, episode_id):
 with Session() as session:
  episode = session.query(Episode).filter((Episode.id == episode_id)).one()
  return (episode.series_id == series_id)

def episode_in_show ( series_id , episode_id ) : with Session ( ) as session : episode = session . query ( Episode ) . filter ( ( Episode . id == episode_id ) ) . one ( ) return ( episode . series_id == series_id )
return true if episode_id is part of show with series_id .