Code examples: curl
SELECT ?variant ?variantLabel ?sequence ?sequenceLabel ?taxon ?taxonLabel WHERE {
?variant wdt:P3433 ?sequence .
?sequence wdt:P703 / wdt:P171* wd:Q82069695 .
?variant wdt:P703 ?taxon .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
curl -s https://raw.githubusercontent.com/egonw/SARS-CoV-2-Queries/master/sparql/sequenceVariants.rq | sed 's+<lang/>+en+' > sequenceVariants.rq
curl -H "Accept: text/tab-separated-values" -G https://query.wikidata.org/bigdata/namespace/wdq/sparql --data-urlencode query@sequenceVariants.rq
This SPARQL query is available under CCZero.