CREATE TABLE "managers" (
  "name" text,
  "tenure" text,
  "ties" real,
  "lost" real,
  "win_pct" real
);

Question: Tell me the total number of ties for name of totals and lost more than 30
SQL: SELECT COUNT("ties") FROM "managers" WHERE "name"='totals' AND "lost">30;

Question: I want the total number of ties for win % more than 0 and tenure of 2001-2011 with lost more than 16
SQL: SELECT COUNT("ties") FROM "managers" WHERE "win_pct">0 AND "tenure"='2001-2011' AND "lost">16;