CREATE TABLE "types_of_convictions" (
  "year" real,
  "total_convictions" real,
  "homicide_art_111_112_113_116_st_gb" real,
  "serious_bodily_injury_art_122_st_gb" real,
  "minor_bodily_injury_art_123_st_gb" real,
  "sexual_contact_with_children_art_187_st_gb" real,
  "rape_art_190_st_gb" real,
  "theft_art_139_st_gb" real,
  "robbery_art_140_st_gb" real,
  "receiving_stolen_goods_art_160_st_gb" real,
  "embezzlement_art_138_st_gb" real,
  "fraud_art_146_st_gb" real,
  "narcotics_possession" real,
  "major_violation_of_traffic_laws_art_90_svg" real,
  "drunk_driving_art_91_abs_1_satz_2_svg" real
);

Question: What is the total number of Serious Bodily Injuries, that has Homicides less than 84?
SQL: SELECT COUNT("serious_bodily_injury_art_122_st_gb") FROM "types_of_convictions" WHERE "homicide_art_111_112_113_116_st_gb"<84;

Question: What is the total number of Rapes that have Embezzlements a figure of 820 and total number of convictions less than 94,574?
SQL: SELECT COUNT("rape_art_190_st_gb") FROM "types_of_convictions" WHERE "embezzlement_art_138_st_gb"=820 AND "total_convictions"<'94,574';

Question: What is the lowest example of Embezzlements that have Total Convictions greater than 84,665, Fraud a figure of 1,521, and a Major Violation of Traffic Laws higher than 21,599?
SQL: SELECT MIN("embezzlement_art_138_st_gb") FROM "types_of_convictions" WHERE "total_convictions">'84,665' AND "fraud_art_146_st_gb"='1,521' AND "major_violation_of_traffic_laws_art_90_svg">'21,599';

Question: Which year earlier than 2006 has the average Total Convictions of Fraud at 1,521?
SQL: SELECT AVG("total_convictions") FROM "types_of_convictions" WHERE "fraud_art_146_st_gb"='1,521' AND "year"<2006;