First draft of complete network query workflow