add join condition to sql_to_aql