PREFIX geoSoft: <http://www.ncbi.nlm.nih.gov/geo/info/soft2.html#>
PREFIX cells: <http://encodewiki.ucsc.edu/EncodeDCC/index.php/Cell_lines#>
-select distinct ?name ?filename ?relative_path ?file_format ?output_type ?dataset_id ?replicate ?enriched_in ?ucsc_db
+select distinct ?name ?filename ?relative_path ?file_format ?output_type ?dataset_id ?replicate ?enriched_in ?ucsc_db ?replaces_accession ?replace_reason
WHERE {
<{{submission}}> a submissionOntology:submission ;
submissionOntology:name ?name ;
htswlib:library ?library ;
a ?fileClass .
+ OPTIONAL { ?file encode3:replaces ?replaces_accession ;
+ encode3:replace_reason ?replace_reason .
+ }
+
?fileClass geoSoft:fileTypeLabel ?file_format ;
ucscDaf:output_type ?output_type .