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 p1.page_title, p2.page_title#LOCATE (p1.page_title, p2.page_title)#, p1.page_title, p2.page_title FROM page as p1 join page as p2 on p1.page_namespace = p2.page_namespace WHERE p1.page_title="Edgars2007/AWB" and p2.page_title="Edgars2007/AWBs" #and #p1.page_title like "p1.page_title" and #LOCATE (p2.page_title, p1.page_title) ISNULL( LOCATE (p1.page_title, p2.page_title)) = 1 #p2.page_title LIKE CONCAT(p1.page_title,"s") #exists (p2.page_title from page as p2 where p2.page_title=CONCAT(p1.page_title,"s") and ) and p1.page_namespace=2 and p1.page_is_redirect=0 AND p2.page_namespace=2 and p2.page_is_redirect=0 USE lvwiki_p; SELECT REPLACE(p.page_title, '_', ' '), iw.iwl_title from iwlinks iw join wbc_entity_usage wb on wb.eu_entity_id=iw.iwl_title join page p on wb.eu_page_id=p.page_id where iwl_from=58532 group by iw.iwl_title; use lvwiki_p; SELECT enp.page_title, pp_value FROM page enp, page_props, wikidatawiki_p.page wdp #where el_to like "" LEFT JOIN wikidatawiki_p.pagelinks wdpl ON wdpl.pl_from = wdp.page_id AND wdpl.pl_title = 'P2593' AND wdpl.pl_namespace = 120 JOIN wikidatawiki_p.pagelinks wdpl2 ON wdpl2.pl_from = wdp.page_id AND wdpl2.pl_title = 'Q5' AND wdpl2.pl_namespace = 0 WHERE enp.page_namespace = 0 AND pp_page = enp.page_id AND pp_propname = 'wikibase_item' AND wdp.page_title = pp_value AND wdp.page_namespace = 0 and enp.page_title in (select pl.pl_title from pagelinks pl where pl.pl_from in (145537, 219142, 138309, 219143, 138310, 138308, 179247, 274068, 178128, 178127, 178118, 246917, 178116, 168157, 246918, 168156, 246919, 168155, 246921, 168152, 246922, 168150, 168149, 168148, 168146, 147271, 219155, 138260, 137351, 125346, 124988, 193018, 241362,) and pl.pl_namespace=0) AND wdpl.pl_from IS NULL use enwiki_p; SELECT enp.page_title, pp_value FROM page enp, page_props, wikidatawiki_p.page wdp #where el_to like "" LEFT JOIN wikidatawiki_p.pagelinks wdpl ON wdpl.pl_from = wdp.page_id AND wdpl.pl_title = 'P2593' AND wdpl.pl_namespace = 120 JOIN wikidatawiki_p.pagelinks wdpl2 ON wdpl2.pl_from = wdp.page_id AND wdpl2.pl_title = 'Q5' AND wdpl2.pl_namespace = 0 WHERE enp.page_namespace = 0 AND pp_page = enp.page_id AND pp_propname = 'wikibase_item' AND wdp.page_title = pp_value AND wdp.page_namespace = 0 and pp_value in ("Q1026752", "Q1121195", "Q126439", "Q132212", "Q1342339", "Q1364686", "Q1365101", "Q15634125", "Q16006838", "Q16011323", "Q16068013", "Q16072020", "Q16072783", "Q16073478", "Q16206502", "Q16211844", "Q16215496", "Q16223827", "Q1659439", "Q16929681", "Q17180828", "Q17180845", "Q1759840", "Q18922568", "Q18927054", "Q194027", "Q2095662", "Q245755", "Q2490368", "Q2631724", "Q3079062", "Q3334027", "Q36841", "Q3758852", "Q3917232", "Q397173", "Q4015788", "Q404217", "Q449582", "Q456754", "Q4992321", "Q503178", "Q5208605", "Q5246367", "Q5319934", "Q5349835", "Q6001706", "Q600854", "Q6031742", "Q6322314", "Q6415289", "Q6429968", "Q6711686", "Q718593", "Q722074", "Q7310397", "Q7359941", "Q739767", "Q758275", "Q7605148", "Q770168", "Q7905423", "Q946328") AND wdpl.pl_from IS NULL */ use lvwiki_p; SELECT enp.page_title, pp_value FROM page enp, page_props, wikidatawiki_p.page wdp #where el_to like "" LEFT JOIN wikidatawiki_p.pagelinks wdpl ON wdpl.pl_from = wdp.page_id AND wdpl.pl_title = 'P2593' AND wdpl.pl_namespace = 120 JOIN wikidatawiki_p.pagelinks wdpl2 ON wdpl2.pl_from = wdp.page_id AND wdpl2.pl_title = 'Q5' AND wdpl2.pl_namespace = 0 WHERE enp.page_namespace = 0 AND pp_page = enp.page_id AND pp_propname = 'wikibase_item' AND wdp.page_title = pp_value AND wdp.page_namespace = 0 and enp.page_title in (select pl.pl_title from pagelinks pl where pl.pl_from in (145537, 219142, 138309, 219143, 138310, 138308, 179247, 274068, 178128, 178127, 178118, 246917, 178116, 168157, 246918, 168156, 246919, 168155, 246921, 168152, 246922, 168150, 168149, 168148, 168146, 147271, 219155, 138260, 137351, 125346, 124988, 193018, 241362) and pl.pl_namespace=0) AND wdpl.pl_from IS NULL
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...