With BP posting a $6.3 billion loss in the second quarter, we decided to check TheStreet Quant Ratings to see if there are any stocks in the 'integrated oil and gas' sub-sector, that would be good investments. BP's second quarterly hit is largely due to a huge settlement payment from the Gulf of Mexico oil spill, and low oil prices. The company paid nearly $19 billion in the settlement. TheStreet Quant Ratings rates BP as a 'hold,' with a 'C' letter grade. With low oil prices, and BP's grim quarter, are there any stocks in the 'integrated oil and gas' sub-industry worth buying? There are, and here are some of the best companies in that sub-sector our algorithm says you should consider looking at. Number 4 is YPF Sociedad Anonima. With a 'B-' rating, the company's strengths can be seen in its revenue growth and expanding profit margins.3rd is, China Petroleum & Chemical Corporation. This rating is also a 'B-.' China Petroleum & Chemical thrives in its largely solid financial position, with reasonable debt levels by most measures and reasonable valuation levels. 2nd is Royal Dutch Shell. This too has a 'B-' rating. The company flourishes in its attractive valuation levels and notable return on equity. Number 1 is Petrobras Argentina S.A. With a ‘B’ rating, the company's strengths can be seen in its revenue growth and increase in net income. TheStreet Ratings are algorithmic stock picks based on 32 major data points. S&P 500 stocks rated 'buy' yielded a 16-and-a-half-percent return in 2014, beating the S&P 500 Total Return Index by more than 300 basis points. For the full reports on these stocks, you can check out TheStreet.com/QuantRatings.