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 capital has an S.Number under 7, and a Name of janapada of Punia?
gpt
SELECT Capital FROM table WHERE S.No. < 7 AND Name of janapada = punia