A federal judge said Tuesday he intends to order Google Inc. to turn over some of its Internet records to the U.S. Justice Department, but expressed reservations about requiring the company to divulge some of its most sensitive data — the actual requests that people enter into its popular search engine.

U.S. District Judge James Ware told the Justice Department it can expect to get at least some of the information sought from Google as part of the Bush administration’s effort to revive a law meant to shield children from online pornography.