added input and output SR to query