select ?p ?s ?o from http://bla where (?s ?p ?o) (?o fun:bla zz:goo) (?o fun:whoops "gah") and ?s ~ "bla" using fun for genid:loveley