2008年以降に発売されたゲームのうち、データ数が10件以上、シナリオがいいゲームの評価A数 / データ数が5%以上のゲーム
select '<A HREF="http://erogamescape.dyndns.org/~ap2/ero/toukei_kaiseki/game.php?game=' || a.id || '" TARGET="_BLANK">' || gamename || '</A>' タイトル, count "評価A数", count2 データ数, count * 100 / count2 || '%' "評価A数 / データ数", sellday "発売日", CASE WHEN kind = 'CIRCLE' THEN '同人' ELSE '' END kind from ( select c.gamename, c.id, count(c.*), c.sellday, c.count2, c.brandname FROM povgroups a inner join povlist b on a.pov = b.id inner join gamelist c on a.game = c.id WHERE b.system_title = 'シナリオがいい' and a.rank = 'A' group by c.gamename, c.id, c.sellday, c.count2, c.brandname having count(c.*) >= 1 ) a inner join brandlist b on a.brandname = b.id where a.sellday >= '2008-01-01' and count2 > 10 and count * 100 / count2 >= 5 order by count * 100 / count2 desc