applying 1 condition on results of another - Blockchain Data API