Finished gen query inp test