in which election contest does the 2008 libertarian primary, california’s 39th senate district have primaries?
Entity
m.03yxf45
California’s 39th State Senate district election, 2008
class entity
government.election m.03yxdc3
government.election government.primary_election
Election contest 2008 Libertarian Primary, California’s 39th Senate District
none none
government.election.primaries
Primaries
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :government.election . 
VALUES ?x1 { :m.03yxdc3 } 
?x0 :government.election.primaries ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND government.election (JOIN government.election.primaries m.03yxdc3))