How Can I Extract the 5th Line from a Query to Match a Company String?

Posted thread to Discourse: How to fetch the 5th line from a query to match a company string?