CREATE TABLE "team_players_drafted_in_the_nba" (
  "year" real,
  "round" real,
  "pick" real,
  "player" text,
  "nba_team" text
);

Question: What was the average pick with Ed O'Bannon and a round smaller than 1?
SQL: SELECT AVG("pick") FROM "team_players_drafted_in_the_nba" WHERE "player"='ed o''bannon' AND "round"<1;

Question: What player was drafted for the Detroit Pistons?
SQL: SELECT "player" FROM "team_players_drafted_in_the_nba" WHERE "nba_team"='detroit pistons';