what campaign is for 2008 democratic primary, california’s 12th congressional district of the party democrats?
Entity Entity Entity Entity
m.03yx583 m.03yx5c5 m.03yx702 m.03yx7d6
McMurry for Congress 2008 Barrows for Congress 2008 Wade for Congress 2008 Speier for Congress 2008
class entity entity
government.election_campaign m.0d075m m.03yxd4k
government.election_campaign government.political_party government.election
Election campaign democrats 2008 Democratic Primary, California’s 12th Congressional District
none none none
government.election_campaign.party government.election_campaign.election
Party (if partisan) Election
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_campaign . 
VALUES ?x1 { :m.0d075m } 
VALUES ?x2 { :m.03yxd4k } 
?x0 :government.election_campaign.party ?x1 . 
?x0 :government.election_campaign.election ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND government.election_campaign (AND (JOIN government.election_campaign.party m.0d075m) (JOIN government.election_campaign.election m.03yxd4k)))