Allow Query to take input parameter in it constructor.