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
Edgars2007
.
Toggle Highlighting
SQL
/*USE lvwiki_p; SELECT p.page_title#, COUNT(pl.pl_from) #SELECT p.page_title FROM page p left JOIN pagelinks pl ON p.page_title = pl.pl_title AND p.page_namespace = pl.pl_namespace left JOIN page p2 ON p2.page_id = pl.pl_from AND pl.pl_from_namespace = 0 and p2.page_is_redirect=0 and p.page_id not in (select c.cl_from from categorylinks c where c.cl_to = "Izolētie_raksti") and pl.pl_from is null GROUP BY p.page_title #having COUNT(pl.pl_from)<1 ORDER BY COUNT(pl.pl_from) DESC */ select now(); use wikidatawiki_p; SELECT concat('* {{Property talk|',pl_title,'}}'), count(*) FROM pagelinks WHERE pl_from_namespace=0 and pl_namespace=120 and pl_title in ("P536","P597","P599","P858","P861","P1146","P1238","P1241","P1285","P1364","P1409", "P1447", "P1469","P1541","P1663","P1664","P1825","P1826","P1967","P2020","P2090","P2091","P2162", "P2193","P2195","P2276","P2323","P2327","P2328","P2330","P2331","P2350","P2369","P2398","2423","2446","2447","2448","2449","2458","2459") GROUP BY pl_title ORDER BY count(*) DESC;
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...