User:Ederporto/sandbox/3/governor1

{{{{{|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 p:P31 ?stat_inst. ?stat_inst ps:P31 wd:Q24097670. ?stat_inst pq:P1545 "1". 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 {?statement pq:P6149 ?vice.} 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 ?vice WHERE {
 * columns=label:Name, ?votos:Votes received,?validos:Percentage, ?result, ?partido, ?coligacao, ?vice, ?sigla,
 * section=?item_cargo
 * sort=
 * min_section=1
 * thumb=128
 * autolist=fallback
 * wdedit=yes
 * links=red
 * row_template=subst:User:Ederporto/sandbox/7
 * header_template=subst:User:Ederporto/sandbox/6

State elections in Acre in 2014 for Governor, first round
}} = }} }} {{
 * pattern=
 * replace=
 * pattern=
 * replace==
 * pattern===
 * replace====
 * pattern====
 * replace====

{{}}