RawQuery Works

Need to implement Algorithm