More description on how to generate query