build 'all leaks' query on top of new dow api