human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: S.No., Name of janapada, Name of King, No. of villages, Capital
###Question: What is the highest S number with a capital of Shekhsar?
gpt
SELECT MAX S.No. FROM table WHERE Capital = shekhsar