CREATE TABLE "public_companies" (
  "state_rank_by_revenue" real,
  "company_name" text,
  "national_rank" real,
  "revenue_billions_2012_estimate" text,
  "headquarters_city" text,
  "known_for" text
);

Question: What is the rank of the company known for retailing?
SQL: SELECT COUNT("state_rank_by_revenue") FROM "public_companies" WHERE "known_for"='Retailing';

Question: What is the rank for Murphy Oil?
SQL: SELECT "state_rank_by_revenue" FROM "public_companies" WHERE "company_name"='Murphy Oil';

Question: Where is the company with estimated revenue of 33.3 billion headquartered?
SQL: SELECT "headquarters_city" FROM "public_companies" WHERE "revenue_billions_2012_estimate"='33.3';

Question: What is the national rank of Windstream?
SQL: SELECT MIN("national_rank") FROM "public_companies" WHERE "company_name"='Windstream';

Question: What is the state rank of the company with 6.8 billion in revenue?
SQL: SELECT "state_rank_by_revenue" FROM "public_companies" WHERE "revenue_billions_2012_estimate"='6.8';