Is there a website which allows you to paste a DDL for your DB and two SQL statements, which can then recommend one (optionally including context such as; "if >10,000 rows use Query#2; else Query#1")?
I'm thinking similar to SQL Fiddle combined with an AI (heuristic based recommendations based on query plan data gathered by running SQLs over various auto-generated data sets) CodeFight.