Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
Bulgu
.
Toggle Highlighting
SQL
USE trwiki_p; SET @N = 30; -- kaç günden itibaren bakılacağı SET @M = round(1.05 * @N,2); -- top/ec için konulan alt sınırı -- sc: ilk bekleyen değişikliğin kaç gündür beklediği -- ec: maddede, N gün ya da daha uzun süre bekleyen değişiklik sayısı (tüm değişiklikler için yukarıda N sıfır yapılabilir) -- top: maddedeki N gün ve sonrası için toplam yük (bekledikleri gün sayılarının toplamı) -- ort: top/ec; N gün ve sonrası için ortalama bekleme günü sayısı -- ort2: top/ec yerine (top*kök(kök(sc)))/kök(ec) falan SELECT *, round(top/ec,2) as ort, round(top/sqrt(ec)*sqrt(sqrt(sc)),2) as ort2 from ( SELECT concat("https://tr.wikipedia.org/wiki?curid=",fpp_page_id) as url, concat("[[:",page_title,"|",replace(page_title,"_"," "),"]]") as madde , datediff(now(),fpp_pending_since) as sc, sum(round(timediff(now(),rev_timestamp)/240000,3)) as top, count(*) as ec from flaggedpage_pending join revision_userindex on rev_page = fpp_page_id join page on page_id = fpp_page_id where fpp_page_id <> 26386 and rev_timestamp>=fpp_pending_since and timediff(now(),rev_timestamp)/240000 >= @N and page_namespace = 0 group by fpp_page_id ) as groo where top/ec >= @M order by ort2 desc limit 500 ; /* SELECT concat("tr.wikipedia.org/wiki/Dosya:",replace(p.page_title," ","_")), c.cl_to, p.page_is_redirect from page p left join categorylinks c on c.cl_from = p.page_id where p.page_namespace = 6 and p.page_id NOT IN (select pp.page_id from page pp left JOIN categorylinks cc ON cc.cl_from = pp.page_id where cc.cl_to IN ("Tüm_adil_kullanım_dosyaları", "Adil_kullanım_sembolleri")) and c.cl_to is NULL and p.page_is_redirect = 0 limit 10; -- */ /* SELECT * from page p join iwlinks iwl on iwl.iwl_from = p.page_id where p.page_namespace = 6 and iwl.iwl_prefix like "c%" and iwl.iwl_title rlike "Image:" limit 10; */
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...