Query..generate(): implement + test, pass