SQL
AخA
SELECT pp_value pl_title rd_title
FROM pagelinks, page, redirect, page_props
WHERE
pl_from = 14498881 # fr
# pl_from = 8612053 # sv
and pl_namespace = 0
and pl_title = page_title and page_namespace = 0
and rd_from = page_id
and pp_page = page_id and pp_propname = "wikibase_item"
# and pp_propname = "staticredirect"
LIMIT 1
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.