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
.
SELECT REPLACE(tl_title, "_", " ") As tmpl, COUNT(*) As cnt, "" as QID FROM lvwiki_p.templatelinks, lvwiki_p.page_props As wpage_props WHERE tl_from = wpage_props.pp_page AND wpage_props.pp_propname = "wikibase_item" AND wpage_props.pp_page = tl_from AND wpage_props.pp_value IN ( SELECT page_title FROM page, page_props, wb_entity_per_page, wb_items_per_site WHERE ips_site_id = "' + sit + '" AND pp_page = epp_page_id AND pp_propname = "wb-claims" AND pp_sortkey = '+str(numberofclaims)+' AND epp_entity_id = ips_item_id AND epp_entity_type = "item" AND page_id = pp_page) GROUP BY tl_title HAVING COUNT(tl_title)>10 ORDER BY COUNT(tl_title) DESC
Toggle Highlighting
SQL
use wikidatawiki_p; SELECT pl_title,count(*) FROM pagelinks WHERE pl_from_namespace=0 and pl_namespace=120 and pl_title in ("P221", "P502", "P653", "P663", "P700", "P733", "P760", "P773", "P818", "P819", "P849", "P860", "P862", "P863", "P864", "P874", "P875", "P876", "P889", "P907", "P918", "P920", "P980", "P1007", "P1010", "P1022", "P1023", "P1024", "P1043", "P1052", "P1054", "P1069", "P1084", "P1143", "P1154", "P1155", "P1161", "P1162", "P1167", "P1172", "P1187", "P1188", "P1189", "P1203", "P1208", "P1222", "P1224", "P1225", "P1226", "P1230", "P1231", "P1234", "P1262", "P1270", "P1271", "P1275", "P1277", "P1294", "P1300", "P1341", "P1377", "P1378", "P1380", "P1381", "P1386", "P1400", "P1428", "P1453", "P1466", "P1467", "P1468", "P1474", "P1544", "P1564", "P1573", "P1575", "P1578", "P1580", "P1583", "P1602", "P1608", "P1609", "P1610", "P1624", "P1668", "P1690", "P1691", "P1702", "P1708", "P1715", "P1736", "P1738", "P1739", "P1743", "P1744", "P1751", "P1760", "P1763", "P1790", "P1803", "P1806", "P1821", "P1822", "P1823", "P1829", "P1837", "P1849", "P1870", "P1893", "P1901", "P1905", "P1908", "P1925", "P1928", "P1929", "P1930", "P1937", "P1947", "P1948", "P1961", "P1966", "P1977", "P1979", "P2017", "P2027", "P2028", "P2062", "P2064", "P2065", "P2071", "P2072", "P2081", "P2083", "P2084", "P2085", "P2086", "P2106", "P2153", "P2158", "P2164", "P2165", "P2166", "P2173", "P2179", "P2185", "P2186", "P2189", "P2192", "P2242", "P2249", "P2255", "P2278", "P2282", "P2326", "P2336", "P2337", "P2345", "P2347", "P2373", "P2391", "P2394", "P2399", "P2400", "P2401", "P2411", "P2426", "P2434", "P2450", "P2451", "P2455", "P2456", "P2457", "P2463", "P2464", "P2465", "P2467", "P2476", "P2478", "P2480", "P2482", "P2483", "P2484", "P2485", "P2487", "P2489", "P2490", "P2503", "P2508", "P2509", "P2510", "P2511", "P2514", "P2516", "P2524") 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...