which election campaign is for the election of new hampshire democratic senate primary, 2008 and is of the party democrats?
Entity Entity
m.04j92fw m.04j92g5
Shaheen for Senate 2008 Stebbins for Senate 2008
class entity entity
government.election_campaign m.0d075m m.04j92d5
government.election_campaign government.political_party government.election
Election campaign democrats New Hampshire Democratic Senate primary, 2008
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.04j92d5 } 
?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.04j92d5)))