Q&A about the site for people interested in improving and participating in the patent system
select distinct owneruserid from posts p join users u on p.owneruserid=u.id where lower(location) like '%russia%' group by owneruserid having count(case when tags like '%sql%' and year(p.creationdate)<2015 and month(p.creationdate)<10 then 1 end)=0 and count(case when tags like '%sql%' and year(p.creationdate)=2015 and month(p.creationdate)=10 then 1 end)>0