Retrieve specific columns showing java path using sql query

I’m attempting to retrieve critical / high fixes related to Java. I’m new to sql query export. here is the information looking to extract. #3 is not available in the “export” canned reports.

  1. Server name
  2. Vulnerability name
  3. “Path to java” that is exploited

Hope that makes sense.