PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.0rlz)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0rlz ns:government.politician.party ?y .
?y ns:government.political_party_tenure.party ?x .
?x ns:organization.organization.child ?c .
?c ns:organization.organization_relationship.child ns:m.01bqhj .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:people.person.education ?k .
?k ns:education.education.institution ns:m.0280qps .
?c ns:government.politician.party ?y .
?y ns:government.political_party_tenure.party ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.09c7w0)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.09c7w0 ns:location.statistical_region.religions ?y .
?y ns:location.religion_percentage.religion ?x .
?x ns:religion.religion.organizations ns:m.010ffmhn .
}

Islam
religion.religion.organizations
Tamil Nadu Thowheed Jamath


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.currency_used ns:m.019vxc .
?c ns:location.statistical_region.religions ?y .
?y ns:location.religion_percentage.religion ?x .
}

Afghanistan
location.country.currency_used
Afghan afghani


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.0pz91)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0pz91 ns:film.producer.film ?x .
?x ns:film.film.starring ?c .
?c ns:film.performance.character ns:m.010p2j4m .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.09b69)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.09b69 ns:location.location.contains ?x .
?x ns:common.topic.notable_types ns:m.01mp .
?x ns:government.governmental_jurisdiction.governing_officials ?c .
?c ns:government.government_position_held.appointed_by ns:m.0cc883w .
}

Eastern Europe
location.location.contains
Bulgaria


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.03ryn)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.03ryn ns:location.statistical_region.religions ?y .
?y ns:location.religion_percentage.religion ?x .
?x ns:religion.religion.organizations ns:m.010gnbvm .
}

Heritage Netherlands Reformed Congregations


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:religion.religion.texts ns:m.0164zy .
?c ns:religion.religion.texts ?x .
}

Taoism
religion.religion.texts
Zhuang Zhou

Taoism
religion.religion.texts
Tao Te Ching


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.024v2j)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.024v2j ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:common.topic.notable_types ns:m.01y2hnl .
?x ns:education.educational_institution.sports_teams ns:m.026vmv0 .
}

Miami University
common.topic.notable_types
College/University


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.02wmy)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.02wmy ns:location.location.containedby ?x .
?x ns:common.topic.notable_types ns:m.01mh .
?x ns:location.location.time_zones ns:m.02fqwt .
}

Falkland Islands
location.location.containedby
Americas

Americas
location.location.time_zones
Central Time Zone


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:government.governmental_jurisdiction.governing_officials ?k .
?k ns:government.government_position_held.appointed_by ns:m.08193 .
?c ns:location.country.national_anthem ?y .
?y ns:government.national_anthem_of_a_country.anthem ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.0f8l9c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0f8l9c ns:location.location.adjoin_s ?y .
?y ns:location.adjoining_relationship.adjoins ?x .
?x ns:common.topic.notable_types ns:m.01mp .
?x ns:location.country.administrative_divisions ns:m.013v_g .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.capital ns:m.0fthl .
?c ns:location.country.languages_spoken ?x .
}

Dominican Republic
location.country.capital
Santo Domingo

Dominican Republic
location.country.languages_spoken
Spanish Language

Dominican Republic
location.country.languages_spoken
Haitian Creole

Dominican Republic
location.country.languages_spoken
Samaná English


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:film.film.starring ?k .
?k ns:film.performance.character ns:m.09r8m02 .
?c ns:film.film.starring ?y .
?y ns:film.performance.character ?x .
?y ns:film.performance.actor ns:m.03y9941 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.02114t)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.02114t ns:base.popstra.celebrity.dated ?y .
?y ns:base.popstra.dated.participant ?x .
?x ns:medicine.notable_person_with_medical_condition.condition ns:m.0h99n .
}

Attention deficit hyperactivity disorder


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:music.artist.concert_tours ns:m.010qhfmm .
?c ns:people.person.place_of_birth ?x .
}

Brad Paisley
music.artist.concert_tours
Country Nation World Tour

Brad Paisley
people.person.place_of_birth
Glen Dale


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:education.educational_institution.students_graduates ?k .
?k ns:education.education.student ns:m.02rj8wf .
?c ns:education.educational_institution.mascot ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.05nrg)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05nrg ns:location.location.contains ?x .
?x ns:common.topic.notable_types ns:m.01mp .
?x ns:location.country.administrative_divisions ns:m.0101msg_ .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.0dpd2h)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0dpd2h ns:music.group_member.membership ?y .
?y ns:music.group_membership.group ?x .
?x ns:music.artist.concert_tours ns:m.04133t0 .
}

Danity Kane
music.artist.concert_tours
Making the Band 4 – The Tour


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?sk0,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:sports.professional_sports_team.owner_s ns:m.0417nf3 .
?c ns:sports.sports_team.arena_stadium ?x .
?x ns:architecture.structure.opened ?sk0 .
}
ORDER BY DESC(xsd:datetime(?sk0))
LIMIT 1

St. Louis Cardinals
sports.professional_sports_team.owner_s
Fred Hanser

St. Louis Cardinals
sports.sports_team.arena_stadium
Busch Stadium


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?sk0,?k,?x,?c,?y
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.national_anthem ?k .
?k ns:government.national_anthem_of_a_country.anthem ns:m.019_d2 .
?c ns:location.statistical_region.religions ?y .
?y ns:location.religion_percentage.religion ?x .
?y ns:location.religion_percentage.percentage ?sk0 .
}
ORDER BY DESC(xsd:float(?sk0))
LIMIT 1


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:film.film.starring ?k .
?k ns:film.performance.character ns:m.0z4nb1p .
?c ns:film.film.starring ?y .
?y ns:film.performance.actor ?x .
?y ns:film.performance.character ns:m.03ttl .
}

Indiana Jones and the Raiders of the Lost Ark


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.currency_used ns:m.01rn1k .
?c ns:location.country.capital ?x .
}

South Korea
location.country.currency_used
South Korean won

South Korea
location.country.capital
Seoul


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:sports.sports_team.championships ns:m.0_gtz8t .
?c ns:sports.sports_team.championships ?x .
?x ns:common.topic.notable_types ns:m.01xljv1 .
}

Baltimore Ravens
sports.sports_team.championships
2013 AFC Championship Game

Baltimore Ravens
sports.sports_team.championships
Super Bowl XXXV

Super Bowl XXXV
common.topic.notable_types
Super bowl


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:film.film.starring ?k .
?k ns:film.performance.character ns:m.0p0slms .
?c ns:film.film.starring ?y .
?y ns:film.performance.actor ?x .
?y ns:film.performance.character ns:m.0cb2r .
}

Harry Potter and the Philosopher's Stone


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.administrative_divisions ns:m.02dw2c .
?c ns:location.country.national_anthem ?y .
?y ns:government.national_anthem_of_a_country.anthem ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.03ryn)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.03ryn ns:location.statistical_region.religions ?y .
?y ns:location.religion_percentage.religion ?x .
?x ns:religion.religion.texts ns:m.015j7 .
}

Protestantism
religion.religion.texts
The Bible

Catholicism
religion.religion.texts
The Bible


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:sports.professional_sports_team.owner_s ns:m.02qpcbt .
?c ns:sports.sports_team.arena_stadium ?x .
}

Houston Rockets
sports.professional_sports_team.owner_s
Leslie Alexander

Houston Rockets
sports.sports_team.arena_stadium
Toyota Center

Houston Rockets
sports.sports_team.arena_stadium
Lakewood Church Central Campus


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:olympics.olympic_host_city.olympics_hosted ns:m.0jhn7 .
?c ns:olympics.olympic_host_city.olympics_hosted ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:religion.religious_leadership_jurisdiction.leader ?k .
?k ns:religion.religious_organization_leadership.organization ns:m.02cd38 .
?c ns:location.country.languages_spoken ?x .
}

Ukraine
location.country.languages_spoken
Romanian Language

Ukraine
location.country.languages_spoken
Hungarian language

Ukraine
location.country.languages_spoken
Russian Language

Ukraine
location.country.languages_spoken
Ukrainian Language

Ukraine
location.country.languages_spoken
Albanian language

Ukraine
location.country.languages_spoken
Moldovan language

Ukraine
location.country.languages_spoken
Tatar Language


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.0pz91)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0pz91 ns:film.producer.film ?x .
?x ns:film.film.starring ?c .
?c ns:film.performance.character ns:m.010x46_5 .
}

Adam Sandler
film.producer.film
Paul Blart: Mall Cop 2


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:religion.religion.sacred_sites ns:m.027n2wt .
?c ns:religion.religion.texts ?x .
}

Taoism
religion.religion.texts
Zhuang Zhou

Taoism
religion.religion.texts
Tao Te Ching


#MANUAL SPARQL
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x,?z
WHERE {
ns:m.027jv8 ns:people.person.parents ?y .
?y ns:people.person.gender ns:m.05zppz . #Male
?y ns:sports.pro_athlete.teams ?z .
?z ns:sports.sports_team_roster.team ?x .?x ns:sports.sports_team.fight_song ns:m.03w9vh6 .
}

Peyton Manning
people.person.parents
Archie Manning

Archie Manning
people.person.gender
Male

Ole Miss Rebels football
sports.sports_team.fight_song
Forward Rebels


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?c,?x
WHERE {
FILTER (?x != ns:m.0bwfn)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0bwfn ns:organization.organization.founders ?x .
?x ns:government.politician.government_positions_held ?c .
?c ns:government.government_position_held.from ?num .
FILTER (?num < "1795-03-04"^^xsd:dateTime) .
}

New York University
organization.organization.founders
Albert Gallatin


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:architecture.architect.structures_designed ns:m.013v2f .
?c ns:people.person.place_of_birth ?x .
}

George Washington
people.person.place_of_birth
Westmoreland County


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:sports.professional_sports_team.owner_s ns:m.06x8mf .
?c ns:sports.sports_team.championships ?x .
?x ns:common.topic.notable_types ns:m.01xljv1 .
}

Baltimore Ravens
sports.professional_sports_team.owner_s
Steve Bisciotti

Baltimore Ravens
sports.sports_team.championships
Super Bowl XXXV

Super Bowl XXXV
common.topic.notable_types
Super bowl


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:sports.sports_team.championships ns:m.02qjps3 .
?c ns:sports.sports_team.previously_known_as ?x .
}

Manchester United F.C.
sports.sports_team.championships
2007–08 Premier League

Manchester United F.C.
sports.sports_team.previously_known_as
Newton Heath L&YR F.C.


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:film.film.starring ?k .
?k ns:film.performance.character ns:m.0h0z9l9 .
?c ns:film.film.starring ?y .
?y ns:film.performance.actor ?x .
?y ns:film.performance.character ns:m.0gyp72m .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.03ryn)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.03ryn ns:location.statistical_region.religions ?y .
?y ns:location.religion_percentage.religion ?x .
?x ns:religion.religion.types_of_places_of_worship ns:m.01wb7 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.041h0)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.041h0 ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:location.location.time_zones ns:m.03bdv .
}

University of Oxford
location.location.time_zones
Greenwich Mean Time Zone


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:government.governmental_jurisdiction.governing_officials ?k .
?k ns:government.government_position_held.appointed_by ns:m.08wdkk .
?c ns:location.country.national_anthem ?y .
?y ns:government.national_anthem_of_a_country.anthem ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?x
WHERE {
FILTER (?x != ns:m.0fhp9)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0fhp9 ns:travel.travel_destination.tourist_attractions ?x .
?x ns:architecture.museum.established ?num .
}
ORDER BY DESC(?num) LIMIT 1


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.national_anthem ?k .
?k ns:government.national_anthem_of_a_country.anthem ns:m.01nrft .
?c ns:location.country.form_of_government ?x .
}

Soviet Union
location.country.form_of_government
Communist state

Soviet Union
location.country.form_of_government
Parliamentary republic

Soviet Union
location.country.form_of_government
Socialist state

Soviet Union
location.country.form_of_government
Soviet democracy


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.03_3d)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.03_3d ns:location.statistical_region.places_exported_to ?y .
?y ns:location.imports_and_exports.exported_to ?x .
?x ns:location.country.currency_used ns:m.0kz1h .
}

Tuvalu
location.country.currency_used
Australian dollar

Kiribati
location.country.currency_used
Australian dollar


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:medicine.notable_person_with_medical_condition.condition ns:m.01xtf2 .
?c ns:people.person.place_of_birth ?x .
}

John F. Kennedy
people.person.place_of_birth
Brookline


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.04306rv)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.04306rv ns:language.human_language.countries_spoken_in ?x .
?x ns:location.country.official_language ns:m.04306rv .
?x ns:location.country.capital ns:m.0177z .
}

Belgium
location.country.official_language
German Language


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:organization.organization.child ?k .
?k ns:organization.organization_relationship.child ns:m.0hz5x4b .
?c ns:organization.organization.founders ?x .
}

New York University
organization.organization.founders
Mordecai Manuel Noah


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.statistical_region.places_imported_from ?k .
?k ns:location.imports_and_exports.imported_from ns:m.05sb1 .
?c ns:location.statistical_region.religions ?y .
?y ns:location.religion_percentage.religion ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.0f8l9c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0f8l9c ns:location.location.adjoin_s ?y .
?y ns:location.adjoining_relationship.adjoins ?x .
?x ns:common.topic.notable_types ns:m.01mp .
?x ns:location.country.capital ns:m.02rnbv .
}

Belgium
location.country.capital
City of Brussels


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.0gzh)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0gzh ns:government.politician.government_positions_held ?y .
?y ns:government.government_position_held.office_position_or_title ?x .
?x ns:government.government_office_or_title.office_holders ?c .
?c ns:government.government_position_held.from "1790-03-19"^^xsd:dateTime .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:people.person.education ?k .
?k ns:education.education.institution ns:m.0265r_n .
?c ns:government.politician.party ?y .
?y ns:government.political_party_tenure.party ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.currency_used ns:m.0b423v .
?c ns:location.country.currency_used ?x .
}

Peru
location.country.currency_used
Peruvian nuevo sol


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:government.governmental_jurisdiction.governing_officials ?k .
?k ns:government.government_position_held.appointed_by ns:m.0w5nf92 .
?c ns:location.country.currency_used ?x .
}

Egypt
location.country.currency_used
Egyptian pound


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.03l26m)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.03l26m ns:people.person.places_lived ?y .
?y ns:people.place_lived.location ?x .
FILTER(NOT EXISTS {?y ns:people.place_lived.end_date ?sk0} ||
EXISTS {?y ns:people.place_lived.end_date ?sk1 .
FILTER(xsd:datetime(?sk1) >= "2015-08-10"^^xsd:dateTime) })
FILTER(NOT EXISTS {?y ns:people.place_lived.start_date ?sk2} ||
EXISTS {?y ns:people.place_lived.start_date ?sk3 .
FILTER(xsd:datetime(?sk3) <= "2015-08-10"^^xsd:dateTime) })
?x ns:tv.tv_location.tv_shows_filmed_here ns:m.0gxwb1 .
}

Baltimore
tv.tv_location.tv_shows_filmed_here
Ace of Cakes


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.national_anthem ?k .
?k ns:government.national_anthem_of_a_country.anthem ns:m.0d9nj_ .
?c ns:location.country.currency_used ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.0bdxs5)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0bdxs5 ns:film.actor.film ?y .
?y ns:film.performance.film ?x .
?x ns:film.film.starring ?c .
?c ns:film.performance.character ns:g.121cr_v1 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:organization.organization.child ?k .
?k ns:organization.organization_relationship.child ns:m.038ssj .
?c ns:education.educational_institution.colors ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.03ryn)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.03ryn ns:location.statistical_region.religions ?y .
?y ns:location.religion_percentage.religion ?x .
?x ns:religion.religion.organizations ns:m.010ffmhn .
}

Islam
religion.religion.organizations
Tamil Nadu Thowheed Jamath


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:government.governmental_jurisdiction.governing_officials ?k .
?k ns:government.government_position_held.appointed_by ns:m.02ps9k .
?c ns:location.country.form_of_government ?x .
}

France
location.country.form_of_government
Unitary state

France
location.country.form_of_government
Semi-presidential system

France
location.country.form_of_government
Constitutional republic


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:people.person.places_lived ?k .
?k ns:people.place_lived.location ns:m.03sd00 .
?c ns:influence.influence_node.influenced_by ?x .
}

Claude Monet
influence.influence_node.influenced_by
Eugène Delacroix

Claude Monet
influence.influence_node.influenced_by
Eugène Boudin

Claude Monet
influence.influence_node.influenced_by
Camille Pissarro

Claude Monet
influence.influence_node.influenced_by
Pierre-Auguste Renoir

Claude Monet
influence.influence_node.influenced_by
Gustave Courbet

Claude Monet
influence.influence_node.influenced_by
Charles-François Daubigny

Claude Monet
influence.influence_node.influenced_by
Stéphane Mallarmé


#MANUAL SPARQL
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
	FILTER (?x != ns:m.0d05w3)
	{
	  ns:m.0d05w3 ns:location.statistical_region.places_exported_to ?y .
	  ?y ns:location.imports_and_exports.exported_to ?x .
	}
	UNION
	{
	  ns:m.0d05w3 ns:location.statistical_region.places_imported_from ?y .
	  ?y ns:location.imports_and_exports.imported_from ?x .
	}?x ns:location.country.capital ns:m.04cx5 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.capital ns:m.0d34_ .
?c ns:location.location.containedby ?x .
}

Holy Roman Empire
location.country.capital
Regensburg

Holy Roman Empire
location.location.containedby
Europe


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.administrative_divisions ns:m.01ct02 .
?c ns:location.country.form_of_government ?x .
}

Iran
location.country.form_of_government
Presidential system

Iran
location.country.form_of_government
Parliamentary system

Iran
location.country.form_of_government
Unitary state

Iran
location.country.form_of_government
Islamic republic


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.09c7w0)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.09c7w0 ns:location.statistical_region.religions ?y .
?y ns:location.religion_percentage.religion ?x .
?x ns:religion.religion.notable_figures ns:m.01br4j .
}

Christianity
religion.religion.notable_figures
Marcion of Sinope


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.national_anthem ?k .
?k ns:government.national_anthem_of_a_country.anthem ns:m.01nrft .
?c ns:government.governmental_jurisdiction.governing_officials ?y .
?y ns:government.government_position_held.office_holder ?x .
?y ns:government.government_position_held.basic_title ns:m.0fkx3 .
FILTER(NOT EXISTS {?y ns:government.government_position_held.from ?sk0} ||
EXISTS {?y ns:government.government_position_held.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "1948-12-31"^^xsd:dateTime) })
FILTER(NOT EXISTS {?y ns:government.government_position_held.to ?sk2} ||
EXISTS {?y ns:government.government_position_held.to ?sk3 .
FILTER(xsd:datetime(?sk3) >= "1948-01-01"^^xsd:dateTime) })
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.07ssc)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.07ssc ns:base.aareas.schema.administrative_area.administrative_children ?x .
?x ns:religion.religious_leadership_jurisdiction.leader ?c .
?c ns:religion.religious_organization_leadership.organization ns:m.0_gw15p .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.07bcn)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.07bcn ns:travel.travel_destination.tourist_attractions ?x .
?x ns:location.location.time_zones ns:m.02lcqs .
}

Folsom Lake
location.location.time_zones
Pacific Time Zone

Raging Waters Sacramento
location.location.time_zones
Pacific Time Zone


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:religion.religion.places_of_worship ns:m.06_bn_0 .
?c ns:religion.religion.is_part_of ?x .
}

United Church of Christ
religion.religion.places_of_worship
First Church of Lombard

United Church of Christ
religion.religion.is_part_of
Christianity


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:music.artist.concert_tours ns:m.0wfrv9g .
?c ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:common.topic.notable_types ns:m.01y2hnl .
?y ns:education.education.degree ns:m.019v9k .
}

Brad Paisley
music.artist.concert_tours
Beat This Summer Tour

Belmont University
common.topic.notable_types
College/University


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?sk0,?x
WHERE {
FILTER (?x != ns:m.05nrg)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05nrg ns:location.location.contains ?x .
?x ns:base.biblioness.bibs_location.loc_type ?sk0 .
FILTER (str(?sk0) = "Country")
?x ns:location.location.time_zones ns:m.027wjl3 .
}

Guam
location.location.time_zones
Chamorro Time Zone

Oceania
location.location.contains
Northern Mariana Islands

Northern Mariana Islands
base.biblioness.bibs_location.loc_type
Country

Northern Mariana Islands
location.location.time_zones
Chamorro Time Zone


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.0c4y8)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0c4y8 ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:common.topic.notable_types ns:m.01y2hnl .
?x ns:education.educational_institution.sports_teams ns:m.03ttn0 .
}

University of Iowa
common.topic.notable_types
College/University


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.0345h)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0345h ns:location.location.adjoin_s ?y .
?y ns:location.adjoining_relationship.adjoins ?x .
?x ns:common.topic.notable_types ns:m.01mp .
?x ns:government.governmental_jurisdiction.governing_officials ?c .
?c ns:government.government_position_held.appointed_by ns:m.01lbpj .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.09c7w0)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.09c7w0 ns:location.statistical_region.religions ?y .
?y ns:location.religion_percentage.religion ?x .
?x ns:religion.religion.types_of_places_of_worship ns:m.01q4wd .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:organization.organization.child ?k .
?k ns:organization.organization_relationship.child ns:m.0403pvq .
?c ns:organization.organization.headquarters ?y .
?y ns:location.mailing_address.citytown ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:government.governmental_jurisdiction.governing_officials ?k .
?k ns:government.government_position_held.appointed_by ns:m.01dsxn .
?c ns:military.military_combatant.casualties ?y .
?y ns:military.casualties.military_conflict ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.030bdd)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.030bdd ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:common.topic.notable_types ns:m.01y2hnl .
?x ns:education.educational_institution.sports_teams ns:m.0ftccy .
}

Purdue University
common.topic.notable_types
College/University


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.04306rv)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.04306rv ns:language.human_language.countries_spoken_in ?x .
?x ns:location.country.official_language ns:m.04306rv .
?x ns:location.country.administrative_divisions ns:m.0133jj .
}

Austria
location.country.official_language
German Language


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.018t67)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.018t67 ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:common.topic.notable_types ns:m.01y2hnl .
?x ns:education.educational_institution.sports_teams ns:m.04n29j7 .
}

McGill University
common.topic.notable_types
College/University


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:government.governmental_jurisdiction.governing_officials ?k .
?k ns:government.government_position_held.appointed_by ns:m.0fm2h .
?c ns:location.country.form_of_government ?x .
}

Israel
location.country.form_of_government
Parliamentary system


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.location.partiallycontains ?k .
?k ns:location.partial_containment_relationship.partially_contains ns:m.026cy73 .
?c ns:location.country.official_language ?x .
}

Egypt
location.country.official_language
Modern Standard Arabic


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.03_3d)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.03_3d ns:location.statistical_region.places_exported_to ?y .
?y ns:location.imports_and_exports.exported_to ?x .
?x ns:location.country.administrative_divisions ns:m.0101cq2g .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.currency_used ns:m.0200cp .
?c ns:government.governmental_jurisdiction.governing_officials ?y .
?y ns:government.government_position_held.office_holder ?x .
?y ns:government.government_position_held.office_position_or_title ns:m.0m57hp6 .
FILTER(NOT EXISTS {?y ns:government.government_position_held.from ?sk0} ||
EXISTS {?y ns:government.government_position_held.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "2015-08-10"^^xsd:dateTime) })
FILTER(NOT EXISTS {?y ns:government.government_position_held.to ?sk2} ||
EXISTS {?y ns:government.government_position_held.to ?sk3 .
FILTER(xsd:datetime(?sk3) >= "2015-08-10"^^xsd:dateTime) })
}

Panama
location.country.currency_used
Panamanian balboa


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:people.person.places_lived ?k .
?k ns:people.place_lived.location ns:m.0xst7 .
?c ns:celebrities.celebrity.sexual_relationships ?y .
?y ns:celebrities.romantic_relationship.celebrity ?x .
?y ns:celebrities.romantic_relationship.relationship_type ns:m.02_7k44 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?sk0,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:sports.sports_team.championships ns:m.09gnk2r .
?c ns:sports.sports_team.championships ?x .
?x ns:time.event.start_date ?sk0 .
}
ORDER BY DESC(xsd:datetime(?sk0))
LIMIT 1

San Francisco Giants
sports.sports_team.championships
2010 World Series

San Francisco Giants
sports.sports_team.championships
2014 World Series


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:sports.professional_sports_team.owner_s ns:m.03_cr7 .
?c ns:sports.sports_team.team_mascot ?x .
}

Milwaukee Brewers
sports.professional_sports_team.owner_s
Mark Attanasio

Milwaukee Brewers
sports.sports_team.team_mascot
Bernie Brewer

Milwaukee Brewers
sports.sports_team.team_mascot
Hank

Milwaukee Brewers
sports.sports_team.team_mascot
Bonnie Brewer


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.administrative_divisions ns:m.01rjn3 .
?c ns:location.country.languages_spoken ?x .
}

Magallanes y la Antártica Chilena Region

Chile
location.country.languages_spoken
Spanish Language

Chile
location.country.languages_spoken
Mapudungun Language

Chile
location.country.languages_spoken
Aymara language

Chile
location.country.languages_spoken
Rapa Nui Language

Chile
location.country.languages_spoken
Puquina Language


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:sports.professional_sports_team.owner_s ns:m.04jf15w .
?c ns:sports.sports_team.arena_stadium ?x .
}

Chicago Cubs
sports.professional_sports_team.owner_s
Thomas S. Ricketts

Chicago Cubs
sports.sports_team.arena_stadium
Wrigley Field

Chicago Cubs
sports.sports_team.arena_stadium
Hohokam Stadium

Chicago Cubs
sports.sports_team.arena_stadium
Sloan Park


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.05zjd)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05zjd ns:language.human_language.countries_spoken_in ?x .
?x ns:location.location.time_zones ns:m.02fqwt .
}

Canada
location.location.time_zones
Central Time Zone


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:people.person.education ?k .
?k ns:education.education.institution ns:m.02w1qmc .
?c ns:music.artist.track_contributions ?y .
?y ns:music.track_contribution.role ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:sports.sports_team.team_mascot ns:m.0_yll7n .
?c ns:sports.sports_team.arena_stadium ?x .
}

Chicago Cubs
sports.sports_team.team_mascot
Clark


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.03ryn)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.03ryn ns:location.statistical_region.religions ?y .
?y ns:location.religion_percentage.religion ?x .
?x ns:religion.religion.places_of_worship ns:m.0100k8_q .
}

Catholicism
religion.religion.places_of_worship
St. Mary's Cathedral, Batticaloa


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.05nrg)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05nrg ns:location.location.contains ?x .
?x ns:common.topic.notable_types ns:m.01mp .
?x ns:location.location.time_zones ns:m.027wjl3 .
}

Guam
location.location.time_zones
Chamorro Time Zone

Oceania
location.location.contains
Northern Mariana Islands

Northern Mariana Islands
common.topic.notable_types
Country

Northern Mariana Islands
location.location.time_zones
Chamorro Time Zone


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.05nrg)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05nrg ns:location.location.contains ?x .
?x ns:common.topic.notable_types ns:m.01mp .
?x ns:location.location.time_zones ns:m.027wj2_ .
}

Oceania
location.location.contains
American Samoa

American Samoa
common.topic.notable_types
Country

American Samoa
location.location.time_zones
Samoa Time Zone


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:film.film.starring ?k .
?k ns:film.performance.character ns:m.07hrghn .
?c ns:film.film.starring ?y .
?y ns:film.performance.actor ?x .
?y ns:film.performance.character ns:m.02qd_td .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.administrative_divisions ns:m.0355qf .
?c ns:location.country.currency_used ?x .
}

Peru
location.country.currency_used
Peruvian nuevo sol


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:film.film.starring ?k .
?k ns:film.performance.character ns:g.120w8g7k .
?c ns:film.film.starring ?y .
?y ns:film.performance.actor ?x .
?y ns:film.performance.character ns:m.0cb2r .
}

Harry Potter and the Philosopher's Stone


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.capital ns:m.01hy_ .
?c ns:location.country.form_of_government ?x .
}

Brazil
location.country.form_of_government
Presidential system

Brazil
location.country.form_of_government
Federal republic

Brazil
location.country.form_of_government
Constitutional republic


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.administrative_divisions ns:m.02d5r_ .
?c ns:location.country.official_language ?x .
}

Egypt
location.country.official_language
Modern Standard Arabic


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.01yqrk)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.01yqrk ns:people.person.nationality ?x .
?x ns:location.location.time_zones ns:m.02fqwt .
}

Steve Nash
people.person.nationality
Canada

Canada
location.location.time_zones
Central Time Zone


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.07ldhs)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.07ldhs ns:film.actor.film ?y .
?y ns:film.performance.film ?x .
?x ns:film.film.starring ?c .
?c ns:film.performance.character ns:g.120n34qq .
}

The Twilight Saga: Breaking Dawn - Part 1

The Twilight Saga: Breaking Dawn - Part 2


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.09b69)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.09b69 ns:location.location.contains ?x .
?x ns:common.topic.notable_types ns:m.01mp .
?x ns:location.country.capital ns:m.019tn5 .
}

Eastern Europe
location.location.contains
Grand Duchy of Lithuania

Grand Duchy of Lithuania
common.topic.notable_types
Country

Grand Duchy of Lithuania
location.country.capital
Kernavė


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:sports.sports_team.team_mascot ns:m.049kl_ .
?c ns:sports.sports_team.team_mascot ?x .
}

Milwaukee Brewers
sports.sports_team.team_mascot
Bernie Brewer

Milwaukee Brewers
sports.sports_team.team_mascot
Hank

Milwaukee Brewers
sports.sports_team.team_mascot
Bonnie Brewer


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.capital ns:m.0fr_b .
?c ns:government.governmental_jurisdiction.governing_officials ?y .
?y ns:government.government_position_held.office_holder ?x .
?y ns:government.government_position_held.office_position_or_title ns:m.0m57hp6 .
FILTER(NOT EXISTS {?y ns:government.government_position_held.from ?sk0} ||
EXISTS {?y ns:government.government_position_held.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "2015-08-10"^^xsd:dateTime) })
FILTER(NOT EXISTS {?y ns:government.government_position_held.to ?sk2} ||
EXISTS {?y ns:government.government_position_held.to ?sk3 .
FILTER(xsd:datetime(?sk3) >= "2015-08-10"^^xsd:dateTime) })
}

Panama
location.country.capital
Panama City


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.national_anthem ?k .
?k ns:government.national_anthem_of_a_country.anthem ns:m.01p52 .
?c ns:location.country.languages_spoken ?x .
}

Chile
location.country.languages_spoken
Spanish Language

Chile
location.country.languages_spoken
Mapudungun Language

Chile
location.country.languages_spoken
Aymara language

Chile
location.country.languages_spoken
Rapa Nui Language

Chile
location.country.languages_spoken
Puquina Language


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:sports.sports_team.fight_song ns:m.01fy1j .
?c ns:sports.sports_team.arena_stadium ?x .
}

Ireland national rugby union team
sports.sports_team.fight_song
Ireland's Call

Ireland national rugby union team
sports.sports_team.arena_stadium
Aviva Stadium


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?sk0,?x
WHERE {
FILTER (?x != ns:m.018qjq)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.018qjq ns:location.location.partially_containedby ?x .
?x ns:base.biblioness.bibs_location.loc_type ?sk0 .
FILTER (str(?sk0) = "State")
?x ns:location.us_state.capital ns:m.0235l .
}

Colorado River
location.location.partially_containedby
Nevada

Nevada
location.us_state.capital
Carson City


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.currency_used ns:m.024xpm .
?c ns:government.governmental_jurisdiction.governing_officials ?y .
?y ns:government.government_position_held.office_holder ?x .
?y ns:government.government_position_held.office_position_or_title ns:m.0j5wjnc .
FILTER(NOT EXISTS {?y ns:government.government_position_held.from ?sk0} ||
EXISTS {?y ns:government.government_position_held.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "2015-08-10"^^xsd:dateTime) })
FILTER(NOT EXISTS {?y ns:government.government_position_held.to ?sk2} ||
EXISTS {?y ns:government.government_position_held.to ?sk3 .
FILTER(xsd:datetime(?sk3) >= "2015-08-10"^^xsd:dateTime) })
}

Libya
location.country.currency_used
Libyan dinar


#MANUAL SPARQL
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?to,?start,?from,?end,?x,?c,?y
WHERE {
  ns:m.081pw ns:time.event.start_date ?start ;
             ns:time.event.end_date ?end .
  ?x ns:government.politician.government_positions_held  ?y .
  ?y ns:government.government_position_held.office_position_or_title ns:m.060d2 ; # President of the United States
     ns:government.government_position_held.from  ?from ;
     ns:government.government_position_held.to  ?to .
  FILTER (?from < ?end)
  FILTER (?to > ?start)?x ns:government.politician.government_positions_held ?c .
?c ns:government.government_position_held.from "1911-01-01"^^xsd:dateTime .
}


#MANUAL SPARQL
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
	FILTER (?x != ns:m.01znc_)
	{
	  ns:m.01znc_ ns:location.statistical_region.places_exported_to ?y .
	  ?y ns:location.imports_and_exports.exported_to ?x .
	}
	UNION
	{
	  ns:m.01znc_ ns:location.statistical_region.places_imported_from ?y .
	  ?y ns:location.imports_and_exports.imported_from ?x .
	}?x ns:location.country.administrative_divisions ns:m.0169hv .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.09b69)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.09b69 ns:location.location.contains ?x .
?x ns:common.topic.notable_types ns:m.01mp .
?x ns:location.country.currency_used ns:m.07qnpx .
}

Socialist Federal Republic of Yugoslavia


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.0cns5)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0cns5 ns:travel.tourist_attraction.near_travel_destination ?x .
?x ns:location.location.people_born_here ?c .
?c ns:sports.pro_athlete.career_start "2002"^^xsd:dateTime .
}

Phoenix
location.location.people_born_here
Shaun McDonald


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.05c10yf)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05c10yf ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:common.topic.notable_types ns:m.01y2hnl .
?x ns:education.educational_institution.sports_teams ns:m.0263cyj .
}

North Carolina State University
common.topic.notable_types
College/University


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.09b69)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.09b69 ns:location.location.contains ?x .
?x ns:common.topic.notable_types ns:m.01mp .
?x ns:location.country.capital ns:m.0159ff .
}

Eastern Europe
location.location.contains
Belarusian People's Republic

Belarusian People's Republic
common.topic.notable_types
Country

Belarusian People's Republic
location.country.capital
Grodno


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:people.person.education ?k .
?k ns:education.education.institution ns:m.01064kcx .
?c ns:people.deceased_person.cause_of_death ?x .
}

Adolf Hitler
people.deceased_person.cause_of_death
Ballistic trauma

Adolf Hitler
people.deceased_person.cause_of_death
Suicide


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:religion.religion.places_of_worship ns:m.0c01j8_ .
?c ns:religion.religion.is_part_of ?x .
}

United Church of Christ
religion.religion.places_of_worship
Bethany Congregational Church

United Church of Christ
religion.religion.is_part_of
Christianity


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.0c4y8)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0c4y8 ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:common.topic.notable_types ns:m.01y2hnl .
?x ns:education.educational_institution.sports_teams ns:m.02qn723 .
}

University of Iowa
common.topic.notable_types
College/University


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:people.person.education ?k .
?k ns:education.education.institution ns:m.04d1v_7 .
?c ns:people.person.children ?x .
}

Beyoncé Knowles
people.person.children
Blue Ivy


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.0gzh)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0gzh ns:government.politician.government_positions_held ?y .
?y ns:government.government_position_held.office_position_or_title ?x .
?x ns:government.government_office_or_title.office_holders ?c .
?c ns:government.government_position_held.from "1789-04-30"^^xsd:dateTime .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.0c6qh)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0c6qh ns:celebrities.celebrity.sexual_relationships ?y .
?y ns:celebrities.romantic_relationship.celebrity ?x .
?y ns:celebrities.romantic_relationship.relationship_type ns:m.02_7k44 .
?x ns:medicine.notable_person_with_medical_condition.condition ns:m.016khw .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.national_anthem ?k .
?k ns:government.national_anthem_of_a_country.anthem ns:m.01ptxd .
?c ns:location.country.currency_used ?x .
}

Russia
location.country.currency_used
Russian ruble


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:religion.religious_leadership_jurisdiction.leader ?k .
?k ns:religion.religious_organization_leadership.organization ns:m.04399 .
?c ns:location.country.currency_used ?x .
}

Argentina
location.country.currency_used
Argentine peso


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.05nrg)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05nrg ns:location.location.contains ?x .
?x ns:common.topic.notable_types ns:m.01mp .
?x ns:location.country.capital ns:m.01cfm5 .
}

Oceania
location.location.contains
Northern Mariana Islands

Northern Mariana Islands
common.topic.notable_types
Country

Northern Mariana Islands
location.country.capital
Saipan


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.05c10yf)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05c10yf ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:common.topic.notable_types ns:m.01y2hnl .
?x ns:education.educational_institution.newspaper ns:m.06tmz1 .
}

University of Wisconsin-Madison
common.topic.notable_types
College/University


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.030bdd)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.030bdd ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:common.topic.notable_types ns:m.01y2hnl .
?x ns:education.educational_institution.sports_teams ns:m.026w398 .
}

Purdue University
common.topic.notable_types
College/University


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?c,?y,?x
WHERE {
FILTER (?x != ns:m.05kkh)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05kkh ns:government.governmental_jurisdiction.governing_officials ?y .
?y ns:government.government_position_held.office_holder ?x .
?y ns:government.government_position_held.basic_title ns:m.0fkvn .
FILTER(NOT EXISTS {?y ns:government.government_position_held.from ?sk0} ||
EXISTS {?y ns:government.government_position_held.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "2011-12-31"^^xsd:dateTime) })
FILTER(NOT EXISTS {?y ns:government.government_position_held.to ?sk2} ||
EXISTS {?y ns:government.government_position_held.to ?sk3 .
FILTER(xsd:datetime(?sk3) >= "2011-01-01"^^xsd:dateTime) })
?x ns:government.politician.government_positions_held ?c .
?c ns:government.government_position_held.from ?num .
FILTER (?num > "1983-01-03"^^xsd:dateTime) .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.09c7w0)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.09c7w0 ns:location.statistical_region.religions ?y .
?y ns:location.religion_percentage.religion ?x .
?x ns:religion.religion.places_of_worship ns:g.123852dg .
}

Judaism
religion.religion.places_of_worship
Yanina Synagogue


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.0g2lq)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0g2lq ns:film.actor.film ?y .
?y ns:film.performance.film ?x .
?x ns:film.film.starring ?c .
?c ns:film.performance.character ns:m.011j44 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:sports.professional_sports_team.owner_s ns:m.03_cr7 .
?c ns:sports.sports_team.arena_stadium ?x .
}

Milwaukee Brewers
sports.professional_sports_team.owner_s
Mark Attanasio

Milwaukee Brewers
sports.sports_team.arena_stadium
Miller Park


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:music.artist.concert_tours ns:m.05b1bnc .
?c ns:music.musical_group.member ?y .
?y ns:music.group_membership.role ?x .
?y ns:music.group_membership.member ns:m.02yygk .
}

Journey
music.artist.concert_tours
Raised on Radio Tour


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:sports.sports_team.championships ns:m.04myq1 .
?c ns:sports.sports_team.championships ?x .
?x ns:common.topic.notable_types ns:m.01xljv1 .
}

New York Giants
sports.sports_team.championships
Super Bowl XLII

New York Giants
sports.sports_team.championships
Super Bowl XLVI

Super Bowl XLVI
common.topic.notable_types
Super bowl

Super Bowl XLII
common.topic.notable_types
Super bowl

New York Giants
sports.sports_team.championships
Super Bowl XXI

Super Bowl XXI
common.topic.notable_types
Super bowl

New York Giants
sports.sports_team.championships
Super Bowl XXV

Super Bowl XXV
common.topic.notable_types
Super bowl


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.09c7w0)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.09c7w0 ns:location.statistical_region.religions ?y .
?y ns:location.religion_percentage.religion ?x .
?x ns:religion.religion.types_of_places_of_worship ns:m.01wb7 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.currency_used ns:m.02_mbk .
?c ns:government.governmental_jurisdiction.governing_officials ?y .
?y ns:government.government_position_held.office_holder ?x .
?y ns:government.government_position_held.basic_title ns:m.060bp .
FILTER(NOT EXISTS {?y ns:government.government_position_held.from ?sk0} ||
EXISTS {?y ns:government.government_position_held.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "2015-08-10"^^xsd:dateTime) })
FILTER(NOT EXISTS {?y ns:government.government_position_held.to ?sk2} ||
EXISTS {?y ns:government.government_position_held.to ?sk3 .
FILTER(xsd:datetime(?sk3) >= "2015-08-10"^^xsd:dateTime) })
}

Ethiopia
location.country.currency_used
Ethiopian birr


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.05kkh)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05kkh ns:government.governmental_jurisdiction.governing_officials ?y .
?y ns:government.government_position_held.office_holder ?x .
?y ns:government.government_position_held.basic_title ns:m.0fkvn .
FILTER(NOT EXISTS {?y ns:government.government_position_held.from ?sk0} ||
EXISTS {?y ns:government.government_position_held.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "2011-12-31"^^xsd:dateTime) })
FILTER(NOT EXISTS {?y ns:government.government_position_held.to ?sk2} ||
EXISTS {?y ns:government.government_position_held.to ?sk3 .
FILTER(xsd:datetime(?sk3) >= "2011-01-01"^^xsd:dateTime) })
?x ns:government.politician.government_positions_held ?c .
?c ns:government.government_position_held.from "1979-01-03"^^xsd:dateTime .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?sk0,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:sports.sports_team.championships ns:m.0ds8qct .
?c ns:sports.sports_team.championships ?x .
?x ns:time.event.start_date ?sk0 .
}
ORDER BY DESC(xsd:datetime(?sk0))
LIMIT 1

San Francisco Giants
sports.sports_team.championships
2012 World Series

San Francisco Giants
sports.sports_team.championships
2014 World Series


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:film.film.starring ?k .
?k ns:film.performance.character ns:m.0p8g2xk .
?c ns:film.film.starring ?y .
?y ns:film.performance.actor ?x .
?y ns:film.performance.character ns:m.034qd2 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.09c7w0)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.09c7w0 ns:location.statistical_region.religions ?y .
?y ns:location.religion_percentage.religion ?x .
?x ns:religion.religion.beliefs ns:m.017kx3 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:education.educational_institution.mascot ns:m.03c0lxb .
?c ns:education.educational_institution.mascot ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:music.artist.concert_tours ns:m.063j63d .
?c ns:people.person.place_of_birth ?x .
}

Jay-Z
music.artist.concert_tours
Jay Z 2009 Concert Tour


#MANUAL SPARQL
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?to,?start,?from,?end,?num,?x,?c,?y
WHERE {
  ns:m.081pw ns:time.event.start_date ?start ;
             ns:time.event.end_date ?end .
  ?x ns:government.politician.government_positions_held  ?y .
  ?y ns:government.government_position_held.office_position_or_title ns:m.060d2 ; # President of the United States
     ns:government.government_position_held.from  ?from ;
     ns:government.government_position_held.to  ?to .
  FILTER (?from < ?end)
  FILTER (?to > ?start)?x ns:government.politician.government_positions_held ?c .
?c ns:government.government_position_held.from ?num .
FILTER (?num < "1933-03-04"^^xsd:dateTime) .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:film.actor.film ?k .
?k ns:film.performance.character ns:m.0gx91_n .
?c ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?y ns:education.education.degree ns:m.02h4rq6 .
}

Wharton School of the University of Pennsylvania


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.08l257)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.08l257 ns:film.actor.film ?y .
?y ns:film.performance.film ?x .
?x ns:film.film.written_by ns:m.02zppv .
}

Return from Witch Mountain
film.film.written_by
Alexander Key


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.09c7w0)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.09c7w0 ns:location.statistical_region.religions ?y .
?y ns:location.religion_percentage.religion ?x .
?x ns:film.film_subject.films ns:m.0bwfp64 .
}

Judaism
film.film_subject.films
Lies My Father Told Me


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:common.topic.image ns:m.0k3rnwg .
?c ns:location.location.adjoin_s ?y .
?y ns:location.adjoining_relationship.adjoins ?x .
?x ns:common.topic.notable_types ns:m.01mp .
}

United Kingdom
common.topic.notable_types
Country


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.04f1s6)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.04f1s6 ns:film.actor.film ?y .
?y ns:film.performance.film ?x .
?x ns:film.film.release_date_s ?c .
?c ns:film.film_regional_release_date.film_release_distribution_medium ns:m.02nxhr .
}

Percy Jackson & the Olympians: The Lightning Thief


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.05kkh)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05kkh ns:government.governmental_jurisdiction.governing_officials ?y .
?y ns:government.government_position_held.office_holder ?x .
?y ns:government.government_position_held.basic_title ns:m.0fkvn .
FILTER(NOT EXISTS {?y ns:government.government_position_held.from ?sk0} ||
EXISTS {?y ns:government.government_position_held.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "2011-12-31"^^xsd:dateTime) })
FILTER(NOT EXISTS {?y ns:government.government_position_held.to ?sk2} ||
EXISTS {?y ns:government.government_position_held.to ?sk3 .
FILTER(xsd:datetime(?sk3) >= "2011-01-01"^^xsd:dateTime) })
?x ns:people.deceased_person.place_of_death ns:m.0z33s .
}

Return J. Meigs, Jr.
people.deceased_person.place_of_death
Marietta


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.07pzc)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.07pzc ns:film.actor.film ?y .
?y ns:film.performance.film ?x .
?x ns:film.film.edited_by ns:m.027tvxs .
}

Nothing but Trouble
film.film.edited_by
Malcolm Campbell


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.0c8wxp)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0c8wxp ns:religion.religion.deities ?x .
?x ns:people.deceased_person.cause_of_death ns:m.09hm0 .
}

Catholicism
religion.religion.deities
Jesus Christ

Jesus Christ
people.deceased_person.cause_of_death
Crucifixion


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?c,?y,?x
WHERE {
FILTER (?x != ns:m.030bdd)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.030bdd ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:common.topic.notable_types ns:m.01y2hnl .
?x ns:education.university.number_of_postgraduates ?c .
?c ns:measurement_unit.dated_integer.number ?num .
}
ORDER BY xsd:integer(?num) LIMIT 1

Stanford Graduate School of Business
common.topic.notable_types
College/University


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.currency_formerly_used ns:m.06666p .
?c ns:location.country.form_of_government ?x .
}

Peru
location.country.currency_formerly_used
Peruvian inti

Peru
location.country.form_of_government
Presidential system

Peru
location.country.form_of_government
Unitary state

Peru
location.country.form_of_government
Constitutional republic


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.06cmp)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.06cmp ns:fictional_universe.fictional_setting.languages ?x .
?x ns:music.genre.albums ns:m.01hk14_ .
}

Latin Language
music.genre.albums
Tanto Tempo


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:book.author.book_editions_published ns:m.04v_2v5 .
?c ns:people.person.profession ?x .
}

The Mysterious Affair at Styles (Large Print Edition)

Agatha Christie
people.person.profession
Novelist

Agatha Christie
people.person.profession
Writer

Agatha Christie
people.person.profession
Screenwriter

Agatha Christie
people.person.profession
Playwright

Agatha Christie
people.person.profession
Poet


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:award.award_nominee.award_nominations ?k .
?k ns:award.award_nomination.nominated_for ns:m.0_shc57 .
?c ns:influence.influence_node.influenced_by ?x .
}

Langston Hughes
influence.influence_node.influenced_by
Walt Whitman


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?sk0,?x
WHERE {
FILTER (?x != ns:m.018qjq)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.018qjq ns:location.location.partially_containedby ?x .
?x ns:base.biblioness.bibs_location.loc_type ?sk0 .
FILTER (str(?sk0) = "State")
?x ns:location.location.people_born_here ns:m.0101kq19 .
}

Colorado River
location.location.partially_containedby
Colorado

Colorado
location.location.people_born_here
Larry Owens


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?y,?x
WHERE {
FILTER (?x != ns:m.017_pb)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.017_pb ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:organization.organization.date_founded ?num .
}
ORDER BY DESC(?num) LIMIT 1


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?c,?y,?x
WHERE {
FILTER (?x != ns:m.0c4y8)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0c4y8 ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:common.topic.notable_types ns:m.01y2hnl .
?x ns:education.university.number_of_postgraduates ?c .
?c ns:measurement_unit.dated_integer.number ?num .
}
ORDER BY DESC(xsd:integer(?num)) LIMIT 1

University of Iowa
common.topic.notable_types
College/University


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:film.film_location.featured_in_films ns:m.0fvbd5 .
?c ns:base.biblioness.bibs_location.country ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:film.film_location.featured_in_films ns:m.02vqsll .
?c ns:location.location.containedby ?x .
?x ns:common.topic.notable_types ns:m.01nt .
}

Washington, D.C.
film.film_location.featured_in_films
Frost/Nixon

Washington, D.C.
location.location.containedby
Mid-Atlantic states

Mid-Atlantic states
common.topic.notable_types
Region

Washington, D.C.
location.location.containedby
South Atlantic States

South Atlantic States
common.topic.notable_types
Region


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:biology.breed_origin.breeds_originating_here ns:m.03_27x .
?c ns:location.country.currency_used ?x .
}

Egypt
location.country.currency_used
Egyptian pound


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:common.topic.image ns:m.063gmjr .
?c ns:film.actor.film ?y .
?y ns:film.performance.film ?x .
}

The Twilight Saga: Breaking Dawn - Part 1

The Twilight Saga: Breaking Dawn - Part 2


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:music.lyricist.lyrics_written ns:m.012nbkn9 .
?c ns:base.popstra.celebrity.dated ?y .
?y ns:base.popstra.dated.participant ?x .
}

Tupac Shakur
music.lyricist.lyrics_written
Panther Power


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.01yjl)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.01yjl ns:sports.sports_team.arena_stadium ?x .
?x ns:architecture.structure.opened "1914"^^xsd:dateTime .
}

Chicago Cubs
sports.sports_team.arena_stadium
Wrigley Field


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:government.political_district.elections ns:m.04n5stt .
?c ns:government.governmental_jurisdiction.official_symbols ?y .
?y ns:location.location_symbol_relationship.symbol ?x .
?y ns:location.location_symbol_relationship.Kind_of_symbol ns:m.04627gn .
}

United States Senate election in Hawaii, 2010


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:people.person.quotations ns:m.048cz_5 .
?c ns:government.politician.government_positions_held ?y .
?y ns:government.government_position_held.office_position_or_title ?x .
}

Member of Illinois House of Representatives

I destroy my enemy when I make him my friend.


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.0f4vbz)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0f4vbz ns:film.director.film ?x .
?x ns:film.film.starring ?c .
?c ns:film.performance.actor ns:g.11b7g7ybfr .
}

Angelina Jolie
film.director.film
Unbroken


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.07pzc)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.07pzc ns:film.actor.film ?y .
?y ns:film.performance.film ?x .
?x ns:film.film.directed_by ns:m.014gc6 .
}

Poetic Justice
film.film.directed_by
John Singleton


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?c,?y,?x
WHERE {
FILTER (?x != ns:m.0f8l9c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0f8l9c ns:military.military_combatant.casualties ?y .
?y ns:military.casualties.military_conflict ?x .
?x ns:military.military_conflict.force_strengths ?c .
?c ns:military.force_strength.force_size ?num .
FILTER (xsd:integer(?num) < 16544) .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.0bdxs5)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0bdxs5 ns:film.actor.film ?y .
?y ns:film.performance.film ?x .
?x ns:film.film.release_date_s ?c .
?c ns:film.film_regional_release_date.release_date "2003-12-25"^^xsd:dateTime .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:government.governmental_jurisdiction.governing_officials ?k .
?k ns:government.government_position_held.office_holder ns:m.010ggwdj .
?c ns:location.country.currency_used ?x .
}

Costa Rica
location.country.currency_used
Costa Rican colón


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.04306rv)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.04306rv ns:language.human_language.countries_spoken_in ?x .
?x ns:location.country.official_language ns:m.04306rv .
?x ns:location.country.second_level_divisions ns:m.01_yjb .
}

Switzerland
location.country.official_language
German Language


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:government.governmental_jurisdiction.governing_officials ?k .
?k ns:government.government_position_held.governmental_body ns:m.099gwm .
?c ns:location.country.currency_formerly_used ?x .
}

France
location.country.currency_formerly_used
French franc


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:common.topic.image ns:m.041gkt1 .
?c ns:people.person.places_lived ?y .
?y ns:people.place_lived.location ?x .
FILTER(NOT EXISTS {?y ns:people.place_lived.end_date ?sk0} ||
EXISTS {?y ns:people.place_lived.end_date ?sk1 .
FILTER(xsd:datetime(?sk1) >= "2015-08-10"^^xsd:dateTime) })
FILTER(NOT EXISTS {?y ns:people.place_lived.start_date ?sk2} ||
EXISTS {?y ns:people.place_lived.start_date ?sk3 .
FILTER(xsd:datetime(?sk3) <= "2015-08-10"^^xsd:dateTime) })
}

Carmelo Anthony
common.topic.image
Anthony Carmelo (Whitehouse)


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?c,?x
WHERE {
FILTER (?x != ns:m.01hf7f)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.01hf7f ns:base.culturalevent.event.entity_involved ?x .
?x ns:government.political_appointer.appointees ?c .
?c ns:government.government_position_held.from ?num .
FILTER (?num > "1875-10-19"^^xsd:dateTime) .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:book.author.book_editions_published ns:m.04v21dt .
?c ns:people.person.place_of_birth ?x .
}

John F. Kennedy
book.author.book_editions_published
Profiles in courage

John F. Kennedy
people.person.place_of_birth
Brookline


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:people.person.quotations ns:m.048cyq4 .
?c ns:people.person.children ?x .
}

I love Mickey Mouse more than any woman I have ever known.

Walt Disney
people.person.children
Sharon Mae Disney

Walt Disney
people.person.children
Diane Disney Miller


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.0dq9wx)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0dq9wx ns:people.person.places_lived ?y .
?y ns:people.place_lived.location ?x .
?x ns:location.location.people_born_here ?c .
?c ns:type.object.type ns:award.hall_of_fame_induction .
}

Los Angeles
location.location.people_born_here
John Sciarra


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.0154j)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0154j ns:location.location.containedby ?x .
?x ns:kg.object_profile.prominent_type ns:location.location .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.0f4vbz)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0f4vbz ns:film.director.film ?x .
?x ns:film.film.written_by ns:m.02kxbx3 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:film.film_subject.films ns:m.01716t .
?c ns:influence.influence_node.influenced_by ?x .
}

Jackson Pollock
film.film_subject.films
Pollock

Jackson Pollock
influence.influence_node.influenced_by
Pablo Picasso

Jackson Pollock
influence.influence_node.influenced_by
Carl Jung

Jackson Pollock
influence.influence_node.influenced_by
Joan Mir

Jackson Pollock
influence.influence_node.influenced_by
Mark Tobey

Jackson Pollock
influence.influence_node.influenced_by
Max Ernst

Jackson Pollock
influence.influence_node.influenced_by
John D. Graham

Jackson Pollock
influence.influence_node.influenced_by
Thomas Hart Benton


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?x
WHERE {
FILTER (?x != ns:m.06mkj)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.06mkj ns:sports.sports_team_location.teams ?x .
?x ns:sports.sports_team.founded ?num .
FILTER (?num < "1994"^^xsd:dateTime) .
}

Spain
sports.sports_team_location.teams
Baloncesto Málaga

Spain
sports.sports_team_location.teams
Bàsquet Manresa

Spain
sports.sports_team_location.teams
Spain national football team

Spain
sports.sports_team_location.teams
Real Madrid Baloncesto

Spain
sports.sports_team_location.teams
Saski Baskonia

Spain
sports.sports_team_location.teams
CB Breogán

Spain
sports.sports_team_location.teams
Valencia BC

Spain
sports.sports_team_location.teams
CB Estudiantes

Spain
sports.sports_team_location.teams
CB Sevilla

Spain
sports.sports_team_location.teams
CB Sant Josep

Spain
sports.sports_team_location.teams
CB Murcia

Spain
sports.sports_team_location.teams
Joventut Badalona

Spain
sports.sports_team_location.teams
CB Avenida

Spain
sports.sports_team_location.teams
Obradoiro CAB


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.03_3d)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.03_3d ns:location.statistical_region.places_exported_to ?y .
?y ns:location.imports_and_exports.exported_to ?x .
?x ns:location.place_with_neighborhoods.neighborhoods ns:m.03qjy7j .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:music.lyricist.lyrics_written ns:m.0gbmbrc .
?c ns:music.artist.genre ?x .
}

Claude Debussy
music.lyricist.lyrics_written
Nuit sans fin

Claude Debussy
music.artist.genre
Classical music

Claude Debussy
music.artist.genre
Art song

Claude Debussy
music.artist.genre
Ballet

Claude Debussy
music.artist.genre
20th-century classical music

Claude Debussy
music.artist.genre
Incidental music

Claude Debussy
music.artist.genre
French opera


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?y,?x
WHERE {
FILTER (?x != ns:m.03_3d)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.03_3d ns:location.statistical_region.places_exported_to ?y .
?y ns:location.imports_and_exports.exported_to ?x .
?x ns:location.country.calling_code ?num .
}
ORDER BY DESC(xsd:integer(?num)) LIMIT 1


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.0f2y0)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0f2y0 ns:film.film_character.portrayed_in_films ?y .
?y ns:film.performance.actor ?x .
?y ns:film.performance.special_performance_type ns:m.02nsjvf .
?x ns:film.actor.film ?c .
?c ns:film.performance.character ns:g.121cr_v1 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.0dl567)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0dl567 ns:film.actor.film ?y .
?y ns:film.performance.film ?x .
?x ns:film.film.release_date_s ?c .
?c ns:film.film_regional_release_date.release_date "2009-04-08"^^xsd:dateTime .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:government.governmental_jurisdiction.governing_officials ?k .
?k ns:government.government_position_held.office_position_or_title ns:m.063tf66 .
?c ns:military.military_combatant.casualties ?y .
?y ns:military.casualties.military_conflict ?x .
}

Secretary of State for Human Rights of France


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:music.featured_artist.recordings ns:m.0fsq284 .
?c ns:music.group_member.instruments_played ?x .
}

Fela Kuti
music.featured_artist.recordings
Dr. Solutsu

Fela Kuti
music.group_member.instruments_played
Drums

Fela Kuti
music.group_member.instruments_played
Guitar

Fela Kuti
music.group_member.instruments_played
Keyboard

Fela Kuti
music.group_member.instruments_played
Saxophone

Fela Kuti
music.group_member.instruments_played
Trumpet


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?y,?x
WHERE {
FILTER (?x != ns:m.057yk8)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.057yk8 ns:film.actor.film ?y .
?y ns:film.performance.film ?x .
?x ns:film.film.netflix_id ?num .
FILTER (xsd:integer(?num) < 60031289) .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.070h3)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.070h3 ns:people.person.children ?x .
?x ns:people.deceased_person.date_of_death "-912"^^xsd:dateTime .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?c,?y,?x
WHERE {
FILTER (?x != ns:m.05c10yf)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05c10yf ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:common.topic.notable_types ns:m.01y2hnl .
?x ns:education.university.number_of_undergraduates ?c .
?c ns:measurement_unit.dated_integer.number ?num .
}
ORDER BY DESC(xsd:integer(?num)) LIMIT 1

University of Wisconsin-Madison
common.topic.notable_types
College/University


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.07pzc)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.07pzc ns:film.actor.film ?y .
?y ns:film.performance.film ?x .
?x ns:film.film.release_date_s ?c .
?c ns:film.film_regional_release_date.release_date "1992"^^xsd:dateTime .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?y,?x
WHERE {
FILTER (?x != ns:m.07fbnf)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.07fbnf ns:sports.sports_league.teams ?y .
?y ns:sports.sports_league_participation.team ?x .
?x ns:sports.sports_team.founded ?num .
}
ORDER BY ?num LIMIT 1


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?x
WHERE {
FILTER (?x != ns:m.020bkmh)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.020bkmh ns:location.location.contains ?x .
?x ns:architecture.structure.opened ?num .
FILTER (?num > "1966"^^xsd:dateTime) .
}

Laughlin
location.location.contains
Edgewater Hotel and Casino

Laughlin
location.location.contains
Harrah's Laughlin


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?x
WHERE {
FILTER (?x != ns:m.02pg6z3)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.02pg6z3 ns:location.location.containedby ?x .
?x ns:topic_server.population_number ?num .
FILTER (xsd:integer(?num) < 18964000) .
}

Whistler Mountain
location.location.containedby
Canada


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:biology.breed_origin.breeds_originating_here ns:m.0229mb .
?c ns:location.country.currency_used ?x .
}

Egypt
location.country.currency_used
Egyptian pound


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:biology.breed_origin.breeds_originating_here ns:m.0cm8scc .
?c ns:location.country.languages_spoken ?x .
}

Denmark
location.country.languages_spoken
German Language

Denmark
location.country.languages_spoken
Danish Language

Denmark
location.country.languages_spoken
Greenlandic language


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.0dl567)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0dl567 ns:film.actor.film ?y .
?y ns:film.performance.film ?x .
?x ns:award.award_nominated_work.award_nominations ?c .
?c ns:award.award_nomination.notes_description "as Robby Ray Stewart"@en .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?sk0,?num,?x
WHERE {
FILTER (?x != ns:m.05nrg)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05nrg ns:location.location.contains ?x .
?x ns:base.biblioness.bibs_location.loc_type ?sk0 .
FILTER (str(?sk0) = "Country")
?x ns:location.country.calling_code ?num .
FILTER (xsd:integer(?num) > 682) .
}

Oceania
location.location.contains
Marshall Islands

Marshall Islands
base.biblioness.bibs_location.loc_type
Country

Oceania
location.location.contains
New Caledonia

New Caledonia
base.biblioness.bibs_location.loc_type
Country


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.languages_spoken ns:m.0c_v2 .
?c ns:location.country.languages_spoken ?x .
}

Thailand
location.country.languages_spoken
Thai Language

Thailand
location.country.languages_spoken
Lao Language

Thailand
location.country.languages_spoken
Mlabri Language

Thailand
location.country.languages_spoken
Vietnamese Language

Thailand
location.country.languages_spoken
Saek language

Thailand
location.country.languages_spoken
Hmong language

Thailand
location.country.languages_spoken
Khmer language

Thailand
location.country.languages_spoken
Mon Language

Thailand
location.country.languages_spoken
Malay, Pattani Language

Thailand
location.country.languages_spoken
Akha Language

Thailand
location.country.languages_spoken
Cham language

Thailand
location.country.languages_spoken
Nyaw Language

Thailand
location.country.languages_spoken
Phu Thai language


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:music.lyricist.lyrics_written ns:m.027lqbf .
?c ns:film.actor.film ?y .
?y ns:film.performance.film ?x .
}

Hannah Montana and Miley Cyrus: Best of Both Worlds Concert

Miley Cyrus
music.lyricist.lyrics_written
I Learned From You


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:music.featured_artist.recordings ns:m.0k1q72c .
?c ns:people.person.place_of_birth ?x .
}

I'm Gonna Get Drunk and Play Hank Williams

Brad Paisley
people.person.place_of_birth
Glen Dale


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:award.award_nominee.award_nominations ?k .
?k ns:award.award_nomination.nominated_for ns:m.06b_mb .
?c ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:common.topic.notable_types ns:m.01y2hnl .
}

University of Alabama
common.topic.notable_types
College/University


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:government.governmental_jurisdiction.governing_officials ?k .
?k ns:government.government_position_held.office_holder ns:m.0gj3lkh .
?c ns:location.country.national_anthem ?y .
?y ns:government.national_anthem_of_a_country.anthem ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:music.composer.compositions ns:m.0jxk_hq .
?c ns:music.artist.track_contributions ?y .
?y ns:music.track_contribution.role ?x .
}

Justin Bieber
music.composer.compositions
Thought Of You


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:music.featured_artist.recordings ns:m.0nnffby .
?c ns:people.person.spouse_s ?y .
?y ns:people.marriage.location_of_ceremony ?x .
?y ns:people.marriage.spouse ns:m.01vsykc .
?y ns:people.marriage.type_of_union ns:m.04ztj .
}

Heidi Klum
music.featured_artist.recordings
Wedding Day


#MANUAL SPARQL
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x,?z
WHERE {
ns:m.027jv8 ns:people.person.parents ?y .
?y ns:people.person.gender ns:m.05zppz . #Male
?y ns:sports.pro_athlete.teams ?z .
?z ns:sports.sports_team_roster.team ?x .?x ns:sports.sports_team.arena_stadium ns:m.02y3xn .
}

Peyton Manning
people.person.parents
Archie Manning

Archie Manning
people.person.gender
Male

New Orleans Saints
sports.sports_team.arena_stadium
Mercedes-Benz Superdome


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:people.person.quotations ns:m.048fymc .
?c ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?y ns:education.education.degree ns:m.04zx3q1 .
}

Nothing pains some people more than having to think.


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:government.governmental_jurisdiction.governing_officials ?k .
?k ns:government.government_position_held.governmental_body ns:m.0gj94zc .
?c ns:government.governmental_jurisdiction.governing_officials ?y .
?y ns:government.government_position_held.office_holder ?x .
?y ns:government.government_position_held.office_position_or_title ns:m.0j5wjnc .
FILTER(NOT EXISTS {?y ns:government.government_position_held.from ?sk0} ||
EXISTS {?y ns:government.government_position_held.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "2015-08-10"^^xsd:dateTime) })
FILTER(NOT EXISTS {?y ns:government.government_position_held.to ?sk2} ||
EXISTS {?y ns:government.government_position_held.to ?sk3 .
FILTER(xsd:datetime(?sk3) >= "2015-08-10"^^xsd:dateTime) })
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?x
WHERE {
FILTER (?x != ns:m.0gzh)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0gzh ns:base.inaugurations.inauguration_speaker.inauguration ?x .
?x ns:time.event.end_date ?num .
FILTER (?num < "1865-03-04"^^xsd:dateTime) .
}

Abraham Lincoln 1861 presidential inauguration


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.01p1v)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.01p1v ns:location.country.languages_spoken ?x .
?x ns:language.human_language.main_country ns:m.016wzw .
}

Chile
location.country.languages_spoken
Puquina Language

Puquina Language
language.human_language.main_country
Peru


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.07ldhs)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.07ldhs ns:film.actor.film ?y .
?y ns:film.performance.film ?x .
?x ns:film.film.release_date_s ?c .
?c ns:film.film_regional_release_date.film_regional_debut_venue ns:m.0bl7g2 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?c,?y,?x
WHERE {
FILTER (?x != ns:m.02ktrs)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.02ktrs ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:education.university.number_of_undergraduates ?c .
?c ns:measurement_unit.dated_integer.number ?num .
}
ORDER BY DESC(xsd:integer(?num)) LIMIT 1


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:film.actor.film ?k .
?k ns:film.performance.character ns:m.0gxnk1p .
?c ns:people.person.education ?y .
?y ns:education.education.institution ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:common.topic.image ns:m.04r23lw .
?c ns:fictional_universe.fictional_character.siblings ?y .
?y ns:fictional_universe.sibling_relationship_of_fictional_characters.siblings ?x .
}

Demeter
common.topic.image
Triptolemos Louvre G187


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.0dl567)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0dl567 ns:film.actor.film ?y .
?y ns:film.performance.film ?x .
?x ns:film.film.story_by ns:m.01cd78 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.03_3d)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.03_3d ns:location.statistical_region.places_exported_to ?y .
?y ns:location.imports_and_exports.exported_to ?x .
?x ns:government.governmental_jurisdiction.governing_officials ?c .
?c ns:government.government_position_held.office_holder ns:m.01n54l .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.0dl567)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0dl567 ns:film.actor.film ?y .
?y ns:film.performance.film ?x .
?x ns:film.film.produced_by ns:m.016qtt .
}

Hannah Montana: The Movie
film.film.produced_by
Billy Ray Cyrus


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:music.composer.compositions ns:m.094t6x .
?c ns:people.person.children ?x .
}

Beyoncé Knowles
music.composer.compositions
Dangerously in Love 2

Beyoncé Knowles
people.person.children
Blue Ivy


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.0f4vbz)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0f4vbz ns:film.director.film ?x .
?x ns:film.film.runtime ?c .
?c ns:film.film_cut.runtime "126.0" .
}

Angelina Jolie
film.director.film
In the Land of Blood and Honey


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.01hf7f)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.01hf7f ns:base.culturalevent.event.entity_involved ?x .
?x ns:government.politician.party ?c .
?c ns:government.political_party_tenure.party ns:m.07wbk .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.0dq9wx)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0dq9wx ns:people.person.places_lived ?y .
?y ns:people.place_lived.location ?x .
?x ns:fictional_universe.fictional_setting.characters_that_have_lived_here ns:m.0gz74f1 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.0bdxs5)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0bdxs5 ns:film.actor.film ?y .
?y ns:film.performance.film ?x .
?x ns:film.film.film_casting_director ns:m.0900hqx .
}

Big Fish
film.film.film_casting_director
Denise Chamian


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.0345h)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0345h ns:location.location.adjoin_s ?y .
?y ns:location.adjoining_relationship.adjoins ?x .
?x ns:common.topic.notable_types ns:m.01mp .
?x ns:food.beer_country_region.beers_from_here ns:m.02nvpkg .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.05nrg)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05nrg ns:location.location.contains ?x .
?x ns:common.topic.notable_types ns:m.01mp .
?x ns:fictional_universe.fictional_setting.universe ns:m.010qv_79 .
}

Oceania
location.location.contains
New Zealand

New Zealand
common.topic.notable_types
Country


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:film.film.starring ?k .
?k ns:film.performance.actor ns:m.0v4gfhw .
?c ns:award.award_nominated_work.award_nominations ?y .
?y ns:award.award_nomination.award_nominee ?x .
?y ns:award.award_nomination.award ns:m.02r0csl .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?x
WHERE {
FILTER (?x != ns:m.05zjd)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05zjd ns:language.human_language.countries_spoken_in ?x .
?x ns:location.country.calling_code ?num .
FILTER (xsd:integer(?num) > 55) .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:music.featured_artist.recordings ns:g.11bbmpspvb .
?c ns:people.person.place_of_birth ?x .
}

Tupac Shakur
music.featured_artist.recordings
Beccause I Got a Girl

Tupac Shakur
people.person.place_of_birth
East Harlem


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.05kkh)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05kkh ns:government.governmental_jurisdiction.governing_officials ?y .
?y ns:government.government_position_held.office_holder ?x .
?y ns:government.government_position_held.basic_title ns:m.0fkvn .
FILTER(NOT EXISTS {?y ns:government.government_position_held.from ?sk0} ||
EXISTS {?y ns:government.government_position_held.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "2011-12-31"^^xsd:dateTime) })
FILTER(NOT EXISTS {?y ns:government.government_position_held.to ?sk2} ||
EXISTS {?y ns:government.government_position_held.to ?sk3 .
FILTER(xsd:datetime(?sk3) >= "2011-01-01"^^xsd:dateTime) })
?x ns:government.politician.government_positions_held ?c .
?c ns:government.government_position_held.basic_title ns:m.01t7n9 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.0g2lq)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0g2lq ns:film.actor.film ?y .
?y ns:film.performance.film ?x .
?x ns:film.film.edited_by ns:g.120ndptz .
}

Osmosis Jones
film.film.edited_by
Lois Freeman-Fox


#MANUAL SPARQL
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
	FILTER (?x != ns:m.01znc_)
	{
	  ns:m.01znc_ ns:location.statistical_region.places_exported_to ?y .
	  ?y ns:location.imports_and_exports.exported_to ?x .
	}
	UNION
	{
	  ns:m.01znc_ ns:location.statistical_region.places_imported_from ?y .
	  ?y ns:location.imports_and_exports.imported_from ?x .
	}?x ns:location.country.calling_code ?num .
}
ORDER BY DESC(xsd:integer(?num)) LIMIT 1