Finding the links where you can pay to download an Album or a Track

1       PREFIX mo: &lt;http://purl.org/ontology/mo/&gt; 2       SELECT ?download_link_album ?download_link_track 3       WHERE 4       { 5            {  6                &lt;http://mm.musicbrainz.org/record/a89e1d92-5381-4dab-ba51-733137d0e431&gt; a mo:Record. 7               {  8                    &lt;http://mm.musicbrainz.org/record/a89e1d92-5381-4dab-ba51-733137d0e431&gt; mo:mailorder ?download_link_album 9               } 10               UNION 11              {  12                   &lt;http://mm.musicbrainz.org/record/a89e1d92-5381-4dab-ba51-733137d0e431&gt; mo:paiddownload ?download_link_album 13              } 14           } 15           UNION 16          { 17               &lt;http://mm.musicbrainz.org/record/a89e1d92-5381-4dab-ba51-733137d0e431&gt; mo:has_track ?track. 18              ?track a mo:Track. 19              {  20                   ?track mo:mailorder ?download_link_track 21              } 22               UNION 23              { 24                   ?track mo:paiddownload ?download_link_track 25              } 26           } 27    }