CREATE TABLE "winners" (
  "year" real,
  "top_fuel" text,
  "funny_car" text,
  "pro_stock" text,
  "pro_stock_motorcycle" text
);

Question: Who won Pro Stock Motorcycle the year Tom Martino won Pro Stock?
SQL: SELECT "pro_stock_motorcycle" FROM "winners" WHERE "pro_stock"='tom martino';

Question: Who won Funny Car in 2012?
SQL: SELECT "funny_car" FROM "winners" WHERE "year"=2012;

Question: Who won Funny Car when Jim Yates won Pro Stock, in years after 1996?
SQL: SELECT "funny_car" FROM "winners" WHERE "pro_stock"='jim yates' AND "year">1996;

Question: Who won Pro Stock the year Tony Schumacher won Top Fuel and Tony Pedregon won Funny Car?
SQL: SELECT "pro_stock" FROM "winners" WHERE "top_fuel"='tony schumacher' AND "funny_car"='tony pedregon';

Question: In which year did John Force win Funny Car and Mike Dunn win in Top Fuel?
SQL: SELECT "year" FROM "winners" WHERE "funny_car"='john force' AND "top_fuel"='mike dunn';