CREATE TABLE "references" (
  "s_no" real,
  "name_of_janapada" text,
  "name_of_king" text,
  "no_of_villages" real,
  "capital" text
);

Question: What capital has an S.Number under 7, and a Name of janapada of Punia?
SQL: SELECT "capital" FROM "references" WHERE "s_no"<7 AND "name_of_janapada"='punia';

Question: What king has an S. number over 1 and a number of villages of 600?
SQL: SELECT "name_of_king" FROM "references" WHERE "s_no">1 AND "no_of_villages"=600;

Question: What is the average number of villages with a name of janapada of Punia?
SQL: SELECT AVG("no_of_villages") FROM "references" WHERE "name_of_janapada"='punia';

Question: What is the highest S number with a capital of Shekhsar?
SQL: SELECT MAX("s_no") FROM "references" WHERE "capital"='shekhsar';