Normal SQL skulle helt enkelt använda
SELECT COLUMN1, COLUMN2, COLUMN3, COLUMN4 from <TABLE>
så förmodligen något liknande
@Query("SELECT " + desiredSubcategory1 + " AS subcategoryValue1 + "," +
desiredSubcategory2 + " AS subcategoryValue2 + "," +
desiredSubcategory3 + " AS subcategoryValue3 + "," +
desiredSubcategory4 + " AS subcategoryValue4 + "," +
"FROM subcategory_table")
List<Subcategory> getSubcategory(String desiredSubcategory);