CREATE TABLE "relegation" (
  "team" text,
  "2004_05_pts" text,
  "2005_06_pts" text,
  "2006_07_pts" real,
  "total_pts" real,
  "total_pld" real
);

Question: What is the total number of PLD for Team Arsenal?
SQL: SELECT COUNT("total_pld") FROM "relegation" WHERE "team"='arsenal';

Question: What is the total pld with 158 points in 2006-07, and less than 52 points in 2006-07?
SQL: SELECT SUM("total_pld") FROM "relegation" WHERE "total_pts"=158 AND "2006_07_pts"<52;

Question: What is the average total pld with 45 points in 2005-06, and more than 52 points in 2006-07?
SQL: SELECT AVG("total_pld") FROM "relegation" WHERE "2005_06_pts"='45' AND "2006_07_pts">52;

Question: What is the total number of points for a total pld less than 38?
SQL: SELECT COUNT("total_pts") FROM "relegation" WHERE "total_pld"<38;