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
Zache
.
Toggle Highlighting
SQL
select CONCAT('https://commons.wikimedia.org/entity/M', i1.page_id) as image1, CONCAT('https://commons.wikimedia.org/entity/M', i2.page_id) as image2, CONCAT('phash:', i1.phash) as phash_str, CONCAT('phash2:', i1.phash) as phash_str, CONCAT('dhash:', i1.dhash) as dhash_str, CONCAT('dhash2:', i1.dhash) as dhash_str from imagehash as i1, imagehash as i2 where i1.page_id<i2.page_id AND ( (i1.phash=i2.phash AND BIT_COUNT(i1.dhash ^ i2.dhash) < 2 AND i1.phash NOT IN (0, 9223372036854775808)) OR (i1.dhash=i2.dhash AND BIT_COUNT(i1.phash ^ i2.phash) < 2 AND i1.dhash NOT IN (0, 9223372036854775808)) ) AND i1.dhash NOT IN (0, 8210327038321553521,8213720191570214001,17361641481138401520,12864170263173305556,9525560381111808388,12742043109707535538,1184711619623546928,12864165865126794452,13455263317428714162,8141662597532286064,8200094715779402865,12302341812821867186,9525558182088552836,8718123349835709552,1184711619623547184,11719107999768421026,13455263317428583090,17357137881511031024,9828163574334645384,12742043109707535536,11719178368512598690,12302324220635822770,12302341812821736114,31790115016699936,3490554628837240880,8207976015127308401,3526552639528824880,13455254521335691954,13152400639325017300,9223372036854775808,9259542123273814144,11719125660943430322,128,3490554628837273648,11719125591954465442,4611686018427387904,13455245725242669746,11719195960698643106,11719196029687607986,1,3490523842509860912,13455263317428714170,9828163780224640136,15103271710349315276,13455245725242538674,72057594037927936,12714059124505672112,16204198715998662896,12302324220635691698,11719107999768421042) AND i1.dhash NOT IN (0, 8210327038321553521,8213720191570214001,17361641481138401520,12864170263173305556,9525560381111808388,12742043109707535538,1184711619623546928,12864165865126794452,13455263317428714162,8141662597532286064,8200094715779402865,12302341812821867186,9525558182088552836,8718123349835709552,1184711619623547184,11719107999768421026,13455263317428583090,17357137881511031024,9828163574334645384,12742043109707535536,11719178368512598690,12302324220635822770,12302341812821736114,31790115016699936,3490554628837240880,8207976015127308401,3526552639528824880,13455254521335691954,13152400639325017300,9223372036854775808,9259542123273814144,11719125660943430322,128,3490554628837273648,11719125591954465442,4611686018427387904,13455245725242669746,11719195960698643106,11719196029687607986,1,3490523842509860912,13455263317428714170,9828163780224640136,15103271710349315276,13455245725242538674,72057594037927936,12714059124505672112,16204198715998662896,12302324220635691698,11719107999768421042) 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...