User:Ederporto/sandbox/3/senator

{{{{{|safesubst:}}}#invoke:String|replace SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } ?item_cargo wdt:P361* wd:Q17813784. ?item_cargo wdt:P1697 ?validos. ?item_cargo wdt:P31 wd:Q40231. ?item_cargo (wdt:P541/wdt:P279*) wd:Q18964326. OPTIONAL {?item_cargo p:P726 ?statement.} OPTIONAL {?item_cargo p:P991 ?statement.} OPTIONAL {?statement ps:P726 ?item.} OPTIONAL {?statement ps:P991 ?item.} OPTIONAL {?statement pq:P1111 ?votos.} OPTIONAL {?statement pq:P102 ?partido.} OPTIONAL {?statement pq:P5832 ?coligacao.} OPTIONAL {?partido wdt:P1813 ?sigla.} BIND(IF (EXISTS {?item_cargo wdt:P991 ?item}, "9aed9e","f8f9fa") as ?result) }ORDER BY DESC(?votos) }}
 * source={{{{{|safesubst:}}}#invoke:String|replace
 * source={{{{{|safesubst:}}}#invoke:String|replace
 * source={{{{{|safesubst:}}}#invoke:String|replace
 * source={{Wikidata list
 * sparql=SELECT ?item ?partido ?sigla ?coligacao ?item_cargo ?votos ?validos ?result WHERE {
 * columns=label:Name, ?votos:Votes received,?validos:Percentage, ?result, ?partido, ?coligacao
 * section=?item_cargo
 * sort=
 * min_section=1
 * thumb=128
 * autolist=fallback
 * wdedit=yes
 * links=red
 * header_template=subst:User:Ederporto/sandbox/4
 * row_template=subst:User:Ederporto/sandbox/5

State elections in Acre in 2014 for Senate
}} = }} }} {{
 * pattern=
 * replace=
 * pattern=
 * replace==
 * pattern===
 * replace====
 * pattern====
 * replace====

{{}}