CREATE TABLE "result_summary" (
  "opposition" text,
  "span" text,
  "lost" real,
  "tied" real,
  "success_rate" text
);

Question: What is the total number of losses against the Rajasthan Royals with more than 0 ties?
SQL: SELECT COUNT("lost") FROM "result_summary" WHERE "opposition"='rajasthan royals' AND "tied">0;

Question: What is the average number of losses when there are more than 0 ties?
SQL: SELECT AVG("lost") FROM "result_summary" WHERE "tied">0;