CREATE TABLE "villages" (
  "name" text,
  "faith" text,
  "type" text,
  "intake" real,
  "dcsf_number" real,
  "ofsted_number" real
);

Question: Who has a DCSF number of 3373?
SQL: SELECT "name" FROM "villages" WHERE "dcsf_number"=3373;

Question: What is the average primary intake with an Ofsted number of 117433 and a DCSF number greater than 3335?
SQL: SELECT AVG("intake") FROM "villages" WHERE "type"='primary' AND "ofsted_number"=117433 AND "dcsf_number">3335;

Question: What is the lowest Ofsted number for a primary with a CE faith, intake of 30 and a DCSF number lower than 3349?
SQL: SELECT MIN("ofsted_number") FROM "villages" WHERE "type"='primary' AND "faith"='ce' AND "intake"=30 AND "dcsf_number"<3349;