query: SELECT ?isbn10 ?statement WHERE{
   ?statement prov:wasDerivedFrom ?ref .
   ?ref pr:P957 ?isbn10 .
   BIND(lcase(?isbn10)AS?l)BIND(lcase("MAGICNUMBER")AS?i)BIND(SUBSTR(?i,1,1)AS?i11)
   BIND(SUBSTR(?i,1,2)AS?i12)BIND(SUBSTR(?i,1,3)AS?i13)BIND(SUBSTR(?i,1,4)AS?i14)BIND(SUBSTR(?i,1,5)AS?i15)
   BIND(SUBSTR(?i,4,6)AS?i46)BIND(SUBSTR(?i,5,5)AS?i55)BIND(SUBSTR(?i,6,4)AS?i64)BIND(SUBSTR(?i,7,3)AS?i73)
   BIND(SUBSTR(?i,8,2)AS?i82)BIND(SUBSTR(?i,9,1)AS?i91)BIND("-"AS?h)BIND(CONCAT(?h,SUBSTR(?i,10,1))AS?x)
   FILTER(CONTAINS(?l, ?i)||CONTAINS(?l,CONCAT(?i11,?h,SUBSTR(?i,2,1),?h,SUBSTR(?i,3,7),?x))||
    CONTAINS(?l,CONCAT(?i11,?h,SUBSTR(?i,2,2),?h,?i46,?x))||CONTAINS(?l,CONCAT(?i11,?h,SUBSTR(?i,2,3),?h,?i55,?x))||
    CONTAINS(?l,CONCAT(?i11,?h,SUBSTR(?i,2,4),?h,?i64,?x))||CONTAINS(?l,CONCAT(?i11,?h,SUBSTR(?i,2,5),?h,?i73,?x))||
    CONTAINS(?l,CONCAT(?i11,?h,SUBSTR(?i,2,6),?h,?i82,?x))||CONTAINS(?l,CONCAT(?i11,?h,SUBSTR(?i,2,7),?h,?i91,?x))||
    CONTAINS(?l,CONCAT(?i12,?h,SUBSTR(?i,3,1),?h,?i46,?x))||CONTAINS(?l,CONCAT(?i12,?h,SUBSTR(?i,3,2),?h,?i55,?x))||
    CONTAINS(?l,CONCAT(?i12,?h,SUBSTR(?i,3,3),?h,?i64,?x))||CONTAINS(?l,CONCAT(?i12,?h,SUBSTR(?i,3,4),?h,?i73,?x))||
    CONTAINS(?l,CONCAT(?i12,?h,SUBSTR(?i,3,5),?h,?i82,?x))||CONTAINS(?l,CONCAT(?i12,?h,SUBSTR(?i,3,6),?h,?i91,?x))||
    CONTAINS(?l,CONCAT(?i13,?h,SUBSTR(?i,4,1),?h,?i55,?x))||CONTAINS(?l,CONCAT(?i13,?h,SUBSTR(?i,4,2),?h,?i64,?x))||
    CONTAINS(?l,CONCAT(?i13,?h,SUBSTR(?i,4,3),?h,?i73,?x))||CONTAINS(?l,CONCAT(?i13,?h,SUBSTR(?i,4,4),?h,?i82,?x))||
    CONTAINS(?l,CONCAT(?i13,?h,SUBSTR(?i,4,5),?h,?i91,?x))||CONTAINS(?l,CONCAT(?i14,?h,SUBSTR(?i,5,1),?h,?i64,?x))||
    CONTAINS(?l,CONCAT(?i14,?h,SUBSTR(?i,5,2),?h,?i73,?x))||CONTAINS(?l,CONCAT(?i14,?h,SUBSTR(?i,5,3),?h,?i82,?x))||
    CONTAINS(?l,CONCAT(?i14,?h,SUBSTR(?i,5,4),?h,?i91,?x))||CONTAINS(?l,CONCAT(?i15,?h,SUBSTR(?i,6,1),?h,?i73,?x))||
    CONTAINS(?l,CONCAT(?i15,?h,SUBSTR(?i,6,2),?h,?i82,?x))||CONTAINS(?l,CONCAT(?i15,?h,SUBSTR(?i,6,3),?h,?i91,?x)))}