Optimal approach to fire a second query that depends on the result of a first query? - Wasp