ORDER BY LCASE(?surname) LCASE(?firstName) # Sorts results by surname, then first name (case-insensitive) }}