CREATE TABLE "cast_members" (
  "character" text,
  "portrayed_by" text,
  "main_cast_seasons" text,
  "recurring_cast_seasons" text,
  "num_of_episodes" real
);

Question: Which main cast seasons were portrayed by Joe Jonas?
SQL: SELECT "main_cast_seasons" FROM "cast_members" WHERE "portrayed_by"='joe jonas';

Question: How many episodes were portrayed by Nick Jonas?
SQL: SELECT COUNT("num_of_episodes") FROM "cast_members" WHERE "portrayed_by"='nick jonas';

Question: How many episodes had the character of Nick Lucas?
SQL: SELECT SUM("num_of_episodes") FROM "cast_members" WHERE "character"='nick lucas';

Question: What character is portrayed by Joe Jonas?
SQL: SELECT "character" FROM "cast_members" WHERE "portrayed_by"='joe jonas';