PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?y
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.administrative_divisions ns:m.010vz .
?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.060c4 .
FILTER(NOT EXISTS {?y ns:government.government_position_held.from ?sk0} ||
EXISTS {?y ns:government.government_position_held.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "1980-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) >= "1980-01-01"^^xsd:dateTime) })
}


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.0165v)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0165v ns:location.location.adjoin_s ?y .
?y ns:location.adjoining_relationship.adjoins ?x .
?x ns:location.country.administrative_divisions ns:m.012yz_ .
}


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:american_football.football_team.current_head_coach ?x .
}

Baltimore Ravens
sports.professional_sports_team.owner_s
Steve Bisciotti


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?x,?y
WHERE {
FILTER (?x != ns:m.01xvb)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.01xvb ns:sports.professional_sports_team.draft_picks ?y .
?y ns:sports.sports_league_draft_pick.player ?x .
?x ns:sports.pro_athlete.career_start ?num .
FILTER (?num < "2007"^^xsd:dateTime) .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.04d9t7 .
?c ns:location.country.currency_used ?x .
}

Kenya
location.country.currency_used
Kenyan shilling


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.0jm9h .
?c ns:location.country.currency_used ?x .
}


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.04j7wv .
?c ns:sports.sports_team.championships ?x .
?x ns:time.event.end_date ?sk0 .
}
ORDER BY xsd:datetime(?sk0)
LIMIT 1

New York Yankees
sports.sports_team.championships
1999 World Series

New York Yankees
sports.sports_team.championships
1923 World Series


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.01n8cb .
?c ns:location.country.form_of_government ?x .
}

Fiji
location.country.form_of_government
Military dictatorship

Fiji
location.country.form_of_government
Parliamentary republic

Fiji
location.country.form_of_government
Military junta


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?y
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:tv.tv_location.tv_shows_filmed_here ns:m.0jkvl5n .
?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.060c4 .
FILTER(NOT EXISTS {?y ns:government.government_position_held.from ?sk0} ||
EXISTS {?y ns:government.government_position_held.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "2010-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) >= "2010-01-01"^^xsd:dateTime) })
}

China
tv.tv_location.tv_shows_filmed_here
The Bride with White Hair


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k,?y
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.076fk5z .
?c ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:common.topic.notable_types ns:m.01y2hnl .
}

Iowa State University
common.topic.notable_types
College/University

Simpson College
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.administrative_divisions ns:m.0ztkm .
?c ns:location.country.currency_used ?x .
}

Sweden
location.country.currency_used
Swedish krona


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.0lxcw)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0lxcw 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:location.location.time_zones ns:m.02_37z .
}


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

Georgetown University
common.topic.notable_types
College/University

Georgetown University
location.location.time_zones
Eastern Time Zone


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

University of South Carolina
location.location.containedby
South Carolina

South Carolina
location.us_state.capital
Columbia


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:organization.organization.leadership ?k .
?k ns:organization.leadership.person ns:m.0g2003 .
?c ns:automotive.company.make_s ?x .
?x ns:common.topic.notable_types ns:m.02ht342 .
}

General Motors
automotive.company.make_s
Buick

Buick
common.topic.notable_types
Automobile Make

General Motors
automotive.company.make_s
Pontiac

Pontiac
common.topic.notable_types
Automobile Make

General Motors
automotive.company.make_s
Vauxhall

Vauxhall
common.topic.notable_types
Automobile Make

General Motors
automotive.company.make_s
HSV

HSV
common.topic.notable_types
Automobile Make

General Motors
automotive.company.make_s
General Motors

General Motors
common.topic.notable_types
Automobile Make

General Motors
automotive.company.make_s
Oldsmobile

Oldsmobile
common.topic.notable_types
Automobile Make

General Motors
automotive.company.make_s
Hummer

Hummer
common.topic.notable_types
Automobile Make

General Motors
automotive.company.make_s
Holden

Holden
common.topic.notable_types
Automobile Make

General Motors
automotive.company.make_s
GMC

GMC
common.topic.notable_types
Automobile Make

General Motors
automotive.company.make_s
GM Korea

GM Korea
common.topic.notable_types
Automobile Make

General Motors
automotive.company.make_s
Geo

Geo
common.topic.notable_types
Automobile Make

General Motors
automotive.company.make_s
LaSalle

LaSalle
common.topic.notable_types
Automobile Make

General Motors
automotive.company.make_s
Acadian

Acadian
common.topic.notable_types
Automobile Make

General Motors
automotive.company.make_s
Terex

Terex
common.topic.notable_types
Automobile Make

General Motors
automotive.company.make_s
GM PUMA

GM PUMA
common.topic.notable_types
Automobile Make

General Motors
automotive.company.make_s
Oakland Motor Car Company

Oakland Motor Car Company
common.topic.notable_types
Automobile Make


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.0_thgpt .
?c ns:education.educational_institution.mascot ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?y
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:sports.sports_team.team_mascot ns:m.035sw4 .
?c ns:base.schemastaging.sports_team_extra.training_ground ?y .
?y ns:base.schemastaging.team_training_ground_relationship.facility ?x .
}

Philadelphia Phillies
sports.sports_team.team_mascot
Phillie Phanatic


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.04swx)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.04swx 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.01nbgn .
}


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.02rnbv .
?c ns:location.country.official_language ?x .
}

Belgium
location.country.capital
City of Brussels

Belgium
location.country.official_language
Dutch Language

Belgium
location.country.official_language
German Language


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.0d060g)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0d060g 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 ?num,?c,?x,?y
WHERE {
FILTER (?x != ns:m.0f8l9c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0f8l9c 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.060c4 .
FILTER(NOT EXISTS {?y ns:government.government_position_held.from ?sk0} ||
EXISTS {?y ns:government.government_position_held.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "2012-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) >= "2012-01-01"^^xsd:dateTime) })
?x ns:government.politician.government_positions_held ?c .
?c ns:government.government_position_held.from ?num .
FILTER (?num < "2007-05-16"^^xsd:dateTime) .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?y
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:book.illustrator.books_illustrated ns:m.0678xv0 .
?c ns:people.person.places_lived ?y .
?y ns:people.place_lived.location ?x .
}

Pablo Picasso
book.illustrator.books_illustrated
Feu de joie


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

Illinois River
location.location.containedby
Illinois


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

Giza Necropolis
location.location.containedby
Egypt


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.01lg5j .
?c ns:location.country.currency_used ?x .
}

Cuba
location.country.currency_used
Cuban convertible peso

Cuba
location.country.currency_used
Cuban peso


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.0_6t_z8)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0_6t_z8 ns:organization.membership_organization.members ?y .
?y ns:organization.organization_membership.member ?x .
?x ns:wine.wine_region.wine_styles ns:m.01jg9j .
}


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.0172zs .
?c ns:location.country.form_of_government ?x .
}

Chile
location.country.currency_used
Chilean peso

Chile
location.country.form_of_government
Presidential system

Chile
location.country.form_of_government
Unitary state

Chile
location.country.form_of_government
Constitutional republic

Chile
location.country.form_of_government
Democratic 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.currency_used ns:m.019vxc .
?c ns:location.country.languages_spoken ?x .
}

Afghanistan
location.country.currency_used
Afghan afghani

Afghanistan
location.country.languages_spoken
Farsi, Eastern Language

Afghanistan
location.country.languages_spoken
Pashto language


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

Islam
religion.religion.places_of_worship
Büyük Selimiye Mosque


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.09l_z4 .
?c ns:sports.sports_team.colors ?x .
}

Arizona Cardinals
sports.sports_team.team_mascot
Big Red

Arizona Cardinals
sports.sports_team.colors
White

Arizona Cardinals
sports.sports_team.colors
Black

Arizona Cardinals
sports.sports_team.colors
Cardinal


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.sports_teams ns:m.03cqzts .
?c ns:location.location.containedby ?x .
}

South Carolina Gamecocks men's basketball

University of South Carolina
location.location.containedby
United States of America

University of South Carolina
location.location.containedby
Columbia

University of South Carolina
location.location.containedby
South Carolina


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.01xvb)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.01xvb ns:sports.professional_sports_team.draft_picks ?y .
?y ns:sports.sports_league_draft_pick.player ?x .
?x ns:sports.pro_athlete.career_start "2002"^^xsd:dateTime .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.064r7fk)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.064r7fk ns:language.human_language.main_country ?x .
?x ns:location.statistical_region.co2_emissions_per_capita ?c .
?c ns:measurement_unit.dated_metric_ton.date "1965"^^xsd:dateTime .
}

Standard Tibetan
language.human_language.main_country
China


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.01xyt7)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.01xyt7 ns:sports.pro_athlete.teams ?y .
?y ns:sports.sports_team_roster.team ?x .
?x ns:sports.sports_team.championships ns:m.0100z7d3 .
}

New England Patriots
sports.sports_team.championships
1997 AFC Championship Game


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.02lfw5)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.02lfw5 ns:sports.pro_athlete.teams ?y .
?y ns:sports.sports_team_roster.team ?x .
FILTER(NOT EXISTS {?y ns:sports.sports_team_roster.from ?sk0} ||
EXISTS {?y ns:sports.sports_team_roster.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "2015-08-10"^^xsd:dateTime) })
FILTER(NOT EXISTS {?y ns:sports.sports_team_roster.to ?sk2} ||
EXISTS {?y ns:sports.sports_team_roster.to ?sk3 .
FILTER(xsd:datetime(?sk3) >= "2015-08-10"^^xsd:dateTime) })
?x ns:sports.sports_team.championships ns:m.012xwf .
}

Brazil national football team
sports.sports_team.championships
1994 FIFA World Cup


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.027rrck .
?c ns:base.biblioness.bibs_location.country ?x .
}

Alaska
base.biblioness.bibs_location.country
United States of America


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.04p2d4 .
?c ns:location.country.form_of_government ?x .
}

Mali
location.country.form_of_government
Unitary state

Mali
location.country.form_of_government
Semi-presidential system


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.067174 .
?c ns:base.locations.countries.continent ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?y
WHERE {
FILTER (?x != ns:m.0d05w3)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0d05w3 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.0230bc .
}


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.08x9cq .
?c ns:sports.sports_team.championships ?x .
}

Houston Rockets
sports.sports_team.championships
1994 NBA Finals

Houston Rockets
sports.sports_team.championships
1995 NBA Finals


#MANUAL SPARQL
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y2,?x,?y1
WHERE {

    ns:m.09b69 ns:location.location.contains ?y1 .  # Eastern Europe
    ?y1 ns:common.topic.notable_types ns:m.01mp .   # Country
    ?y1 ns:location.statistical_region.religions ?y2 .
    ?y2 ns:location.religion_percentage.religion ?x .?x ns:religion.religion.places_of_worship ns:m.0100k8_q .
}

Eastern Europe
location.location.contains
?y1  # Eastern Europe

Romania
common.topic.notable_types
m.01mp   # Country

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

Second Polish Republic
common.topic.notable_types
m.01mp   # Country


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k,?y
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.0c3xm .
?c ns:location.location.adjoin_s ?y .
?y ns:location.adjoining_relationship.adjoins ?x .
?x ns:common.topic.notable_types ns:m.01mp .
}

North Korea
common.topic.notable_types
Country


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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 ?c,?x
WHERE {
FILTER (?x != ns:m.05csx)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05csx ns:geography.river.basin_countries ?x .
?x ns:government.governmental_jurisdiction.governing_officials ?c .
?c ns:government.government_position_held.appointed_by ns:m.02z9bpp .
}

Niger River
geography.river.basin_countries
Mali


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


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

Los Angeles Lakers
sports.sports_team.championships
1949 BAA Finals


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.0crgs6s .
?c ns:people.deceased_person.cause_of_death ?x .
}

Donna Summer
music.artist.concert_tours
Live & More Encore Tour

Donna Summer
people.deceased_person.cause_of_death
Cancer

Donna Summer
people.deceased_person.cause_of_death
Lung cancer


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

Kingdom of Great Britain
location.country.capital
Edinburgh


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.02gzcx .
?c ns:location.location.nearby_airports ?x .
}

Saint Lucia
location.location.nearby_airports
George F. L. Charles Airport


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.01g3b2 .
?c ns:base.locations.countries.continent ?x .
}

Costa Rica
location.country.capital
San José

Costa Rica
base.locations.countries.continent
North America


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.05csx)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05csx ns:geography.river.basin_countries ?x .
?x ns:location.country.administrative_divisions ns:m.010fbxn6 .
}

Niger River
geography.river.basin_countries
Nigeria


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.05cb70)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05cb70 ns:sports.pro_athlete.teams ?y .
?y ns:sports.sports_team_roster.team ?x .
FILTER(NOT EXISTS {?y ns:sports.sports_team_roster.from ?sk0} ||
EXISTS {?y ns:sports.sports_team_roster.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "2011-12-31"^^xsd:dateTime) })
FILTER(NOT EXISTS {?y ns:sports.sports_team_roster.to ?sk2} ||
EXISTS {?y ns:sports.sports_team_roster.to ?sk3 .
FILTER(xsd:datetime(?sk3) >= "2011-01-01"^^xsd:dateTime) })
?x ns:sports.sports_team.team_mascot ns:m.04mxr90 .
}

New Orleans Saints
sports.sports_team.team_mascot
Sir Saint


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.07yfzw .
?c ns:people.person.profession ?x .
}

Albert Einstein
people.person.profession
Teacher

Albert Einstein
people.person.profession
Writer

Albert Einstein
people.person.profession
Scientist

Albert Einstein
people.person.profession
Philosopher

Albert Einstein
people.person.profession
Mathematician

Albert Einstein
people.person.profession
Physicist

Albert Einstein
people.person.profession
Author

Albert Einstein
people.person.profession
Theoretical Physicist


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.02bpjk)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.02bpjk 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.02ppyzm .
}

Louisiana State University
common.topic.notable_types
College/University


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.0k05prt .
?c ns:people.person.profession ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.016yzz)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.016yzz 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:location.us_state.capital ns:m.0ftvz .
}


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.sports_teams ns:m.03by3qq .
?c ns:location.location.containedby ?x .
}

University of South Carolina
location.location.containedby
United States of America

University of South Carolina
location.location.containedby
Columbia

University of South Carolina
location.location.containedby
South Carolina


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.016yzz)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.016yzz 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:location.us_state.capital ns:m.0f2r6 .
}

Utah
location.us_state.capital
Salt Lake City


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k,?y
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.0c3xm .
?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.060c4 .
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) })
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.0_6t_z8)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0_6t_z8 ns:organization.membership_organization.members ?y .
?y ns:organization.organization_membership.member ?x .
?x ns:wine.wine_region.wine_styles ns:m.0c4r71 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.04swx)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.04swx 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.currency_used ns:m.04dq0w .
}

Turkey
location.country.currency_used
Turkish lira


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.056_y)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.056_y ns:travel.travel_destination.tourist_attractions ?x .
?x ns:architecture.structure.construction_started "1558"^^xsd:dateTime .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.06npd)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.06npd 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.02sn34 .
}


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

Jonas Brothers
music.artist.concert_tours
When You Look Me in the Eyes Tour


#MANUAL SPARQL
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
	ns:m.03f34_ ns:architecture.building_function.buildings ?y .
	?y ns:travel.tourist_attraction.near_travel_destination ?x .?x ns:olympics.olympic_host_city.olympics_hosted ns:m.0130xg .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k,?y
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.0327fc .
?c ns:people.person.education ?y .
?y ns:education.education.institution ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?y
WHERE {
FILTER (?x != ns:m.06bnz)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.06bnz ns:location.location.adjoin_s ?y .
?y ns:location.adjoining_relationship.adjoins ?x .
?x ns:common.topic.notable_types ns:m.01mp .
?x ns:religion.religious_leadership_jurisdiction.leader ?c .
?c ns:religion.religious_organization_leadership.organization ns:m.05cx56 .
}

Ukrainian Orthodox Church of the Kyivan Patriarchate


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?y
WHERE {
FILTER (?x != ns:m.0165v)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0165v ns:location.location.adjoin_s ?y .
?y ns:location.adjoining_relationship.adjoins ?x .
?x ns:government.governmental_jurisdiction.governing_officials ?c .
?c ns:government.government_position_held.appointed_by ns:m.0d2m0y .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k,?y
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.0b6xvr8 .
?c ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:common.topic.notable_types ns:m.01y2hn6 .
}

Hot Springs High School
common.topic.notable_types
School


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.0jgd)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0jgd 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.location.time_zones ns:m.0jy1pqp .
}

Brazil
location.location.time_zones
Brasília Time Zone


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.languages_spoken ?x .
}

Egypt
location.country.languages_spoken
Arabic Language

Egypt
location.country.languages_spoken
Sa'idi Arabic

Egypt
location.country.languages_spoken
Arabic, Sudanese Spoken Language

Egypt
location.country.languages_spoken
Egyptian Arabic

Egypt
location.country.languages_spoken
Domari Language

Egypt
location.country.languages_spoken
Modern Standard Arabic

Egypt
location.country.languages_spoken
Bedawi Arabic

Egypt
location.country.languages_spoken
Siwi Language

Egypt
location.country.languages_spoken
Nobiin Language


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.088q4 .
?c ns:location.country.currency_used ?x .
}

South Africa
location.country.currency_used
South African rand


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.0n8r4 .
?c ns:base.locations.countries.continent ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.07ssc)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.07ssc 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.05csx)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05csx ns:geography.river.basin_countries ?x .
?x ns:location.location.time_zones ns:m.03bdv .
}

Niger River
geography.river.basin_countries
Mali

Mali
location.location.time_zones
Greenwich Mean Time Zone

Niger River
geography.river.basin_countries
Guinea

Guinea
location.location.time_zones
Greenwich Mean 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:sports.sports_team.team_mascot ns:m.02x0cyj .
?c ns:sports.sports_team.location ?x .
}

Pittsburgh Steelers
sports.sports_team.team_mascot
Steely McBeam

Pittsburgh Steelers
sports.sports_team.location
Pittsburgh


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.06bnz)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.06bnz 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.01gf5 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k,?y
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.0hq8pc2 .
?c ns:film.film.starring ?y .
?y ns:film.performance.actor ?x .
?y ns:film.performance.character ns:m.0f2y0 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.056_y)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.056_y ns:travel.travel_destination.tourist_attractions ?x .
?x ns:architecture.structure.construction_started "1734"^^xsd:dateTime .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.0466k4 .
?c ns:location.country.currency_used ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.06npd)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.06npd 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.location.time_zones ns:m.03plfd .
}

Ukraine
location.location.time_zones
Eastern European Time Zone


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.07ssc)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.07ssc 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,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.administrative_divisions ns:m.01z0_l .
?c ns:location.country.official_language ?x .
}

Hungary
location.country.official_language
Hungarian language


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.09mr097 .
?c ns:organization.organization.founders ?x .
}

Ford Motor Company
organization.organization.founders
Henry Ford


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.0d060g)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0d060g ns:location.statistical_region.religions ?y .
?y ns:location.religion_percentage.religion ?x .
?x ns:religion.religion.sacred_sites ns:m.0430_ .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?y
WHERE {
FILTER (?x != ns:m.06bnz)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.06bnz ns:location.location.adjoin_s ?y .
?y ns:location.adjoining_relationship.adjoins ?x .
?x ns:common.topic.notable_types ns:m.01mp .
?x ns:religion.religious_leadership_jurisdiction.leader ?c .
?c ns:religion.religious_organization_leadership.leader ns:m.05cxfq .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.form_of_government ?x .
}

Egypt
location.country.form_of_government
Semi-presidential system

Egypt
location.country.form_of_government
Provisional government


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.us_state.capital ns:m.0fvwz .
?c ns:location.location.time_zones ?x .
}

Missouri
location.us_state.capital
Jefferson City

Missouri
location.location.time_zones
Central Time Zone


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?y
WHERE {
FILTER (?x != ns:m.060_7)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.060_7 ns:people.person.places_lived ?y .
?y ns:people.place_lived.location ?x .
?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 ?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.0dftcf .
?c ns:sports.sports_team.championships ?x .
}

Detroit Pistons
sports.professional_sports_team.owner_s
Tom Gores

Detroit Pistons
sports.sports_team.championships
2004 NBA Finals

Detroit Pistons
sports.sports_team.championships
1990 NBA Finals

Detroit Pistons
sports.sports_team.championships
1989 NBA Finals


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.011w8v)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.011w8v ns:location.location.containedby ?x .
?x ns:location.country.administrative_divisions ns:m.05vd5 .
}

United Kingdom, with Dependencies and Territories


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.06bnz)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.06bnz 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.01914 .
}


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.location.time_zones ns:m.0y498v7 .
?c ns:location.country.languages_spoken ?x .
}

Australia
location.location.time_zones
Central Western Time Zone

Australia
location.country.languages_spoken
English Language

Australia
location.country.languages_spoken
Esperanto 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:location.location.time_zones ns:m.0y49btq .
?c ns:location.country.languages_spoken ?x .
}

Australia
location.location.time_zones
Heard and McDonald Islands Time Zone


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.01fhpn .
?c ns:location.location.containedby ?x .
?x ns:common.topic.notable_types ns:m.0kpys4 .
}

Harvard College
location.location.containedby
Massachusetts

Massachusetts
common.topic.notable_types
US State


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.0bsl6 .
?c ns:location.country.form_of_government ?x .
}

Fiji
location.country.form_of_government
Military dictatorship

Fiji
location.country.form_of_government
Parliamentary republic

Fiji
location.country.form_of_government
Military junta


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.03wj1k .
?c ns:education.educational_institution.mascot ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.0157m)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0157m 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.mascot ns:m.05ty1h .
}

University Yale
common.topic.notable_types
College/University


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.0c3xm .
?c ns:location.country.official_language ?x .
}

China
location.country.official_language
Standard Chinese


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.beliefs ns:m.074hw .
?c ns:religion.religion.beliefs ?x .
}

Islam
religion.religion.beliefs
God in Islam

Islam
religion.religion.beliefs
Entering Heaven alive

Islam
religion.religion.beliefs
Islamic view of angels

Islam
religion.religion.beliefs
Masih ad-Dajjal

Islam
religion.religion.beliefs
Islamic holy books

Islam
religion.religion.beliefs
Prophets in Islam

Islam
religion.religion.beliefs
Predestination in Islam


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?c,?x
WHERE {
FILTER (?x != ns:m.085gk)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.085gk ns:influence.influence_node.influenced_by ?x .
?x ns:government.politician.government_positions_held ?c .
?c ns:government.government_position_held.from ?num .
}
ORDER BY ?num LIMIT 1

Walt Whitman
influence.influence_node.influenced_by
Abraham Lincoln


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.01k05y .
?c ns:location.country.languages_spoken ?x .
}

National Anthem of the Republic of China

Taiwan
location.country.languages_spoken
Taiwanese Mandarin

Taiwan
location.country.languages_spoken
Mandarin Chinese

Taiwan
location.country.languages_spoken
Chinese, Hakka Language

Taiwan
location.country.languages_spoken
Taiwanese Hokkien


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.0clvvt1 .
?c ns:location.location.containedby ?x .
}

University of South Carolina
location.location.containedby
United States of America

University of South Carolina
location.location.containedby
Columbia

University of South Carolina
location.location.containedby
South Carolina


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.019mh7 .
?c ns:location.country.official_language ?x .
}

Scotland
location.country.official_language
English 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.championships ns:m.010hn4x1 .
?c ns:sports.sports_team.championships ?x .
?x ns:sports.sports_championship_event.championship ns:m.05nblxt .
}

Juventus F.C.
sports.sports_team.championships
2014 Supercoppa Italiana

Juventus F.C.
sports.sports_team.championships
1996 UEFA Champions League Final


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.04z4ml .
?c ns:location.country.currency_used ?x .
}

Tunisia
location.country.currency_used
Tunisian dinar


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?y
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:sports.sports_team.championships ns:m.04f7kvl .
?c ns:base.schemastaging.sports_team_extra.training_ground ?y .
?y ns:base.schemastaging.team_training_ground_relationship.facility ?x .
}

2008 National League Championship Series


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?y
WHERE {
FILTER (?x != ns:m.01xvb)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.01xvb ns:sports.professional_sports_team.draft_picks ?y .
?y ns:sports.sports_league_draft_pick.player ?x .
?x ns:sports.pro_athlete.sports_played_professionally ?c .
?c ns:sports.pro_sports_played.career_start "2004"^^xsd:dateTime .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.05cb70)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05cb70 ns:sports.pro_athlete.teams ?y .
?y ns:sports.sports_team_roster.team ?x .
FILTER(NOT EXISTS {?y ns:sports.sports_team_roster.from ?sk0} ||
EXISTS {?y ns:sports.sports_team_roster.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "2011-12-31"^^xsd:dateTime) })
FILTER(NOT EXISTS {?y ns:sports.sports_team_roster.to ?sk2} ||
EXISTS {?y ns:sports.sports_team_roster.to ?sk3 .
FILTER(xsd:datetime(?sk3) >= "2011-01-01"^^xsd:dateTime) })
?x ns:sports.sports_team.team_mascot ns:m.02qrgwz .
}


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.team_mascot ns:m.067ggw .
?c ns:sports.sports_team.arena_stadium ?x .
?x ns:architecture.structure.opened ?sk0 .
}
ORDER BY DESC(xsd:datetime(?sk0))
LIMIT 1

Seattle Seahawks
sports.sports_team.team_mascot
Seattle Seahawks Blitz

Seattle Seahawks
sports.sports_team.arena_stadium
CenturyLink Field


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.06npd)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.06npd 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.currency_used ns:m.01hfll .
}

Hungary
location.country.currency_used
Hungarian forint


#MANUAL SPARQL
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y2,?x,?y1
WHERE {

    ns:m.09b69 ns:location.location.contains ?y1 .  # Eastern Europe
    ?y1 ns:common.topic.notable_types ns:m.01mp .   # Country
    ?y1 ns:location.statistical_region.religions ?y2 .
    ?y2 ns:location.religion_percentage.religion ?x .?x ns:religion.religion.organizations ns:m.010gnbvm .
}

Eastern Europe
location.location.contains
?y1  # Eastern Europe

Romania
common.topic.notable_types
m.01mp   # Country

Heritage Netherlands Reformed Congregations

Second Polish Republic
common.topic.notable_types
m.01mp   # 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:education.educational_institution.newspaper ns:m.0bft_l .
?c ns:location.location.containedby ?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.administrative_divisions ns:m.02q_xc .
?c ns:location.country.form_of_government ?x .
}

Mongolia
location.country.form_of_government
Parliamentary republic

Mongolia
location.country.form_of_government
Semi-presidential system


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?y
WHERE {
FILTER (?x != ns:m.0_6t_z8)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0_6t_z8 ns:organization.membership_organization.members ?y .
?y ns:organization.organization_membership.member ?x .
?x ns:location.location.contains ?c .
?c ns:aviation.airport.serves ns:m.05g2b .
}

Germany
location.location.contains
Weeze Airport

Weeze Airport
aviation.airport.serves
Nijmegen


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.0165v)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0165v ns:location.location.adjoin_s ?y .
?y ns:location.adjoining_relationship.adjoins ?x .
?x ns:location.location.time_zones ns:m.02_37z .
}


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.0m6w8 .
?c ns:location.country.currency_used ?x .
}

Sweden
location.country.currency_used
Swedish krona


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


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

Catholicism
religion.religion.texts
Book of Nehemiah


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:basketball.basketball_team.head_coach ns:m.04b87b .
?c ns:sports.sports_team.championships ?x .
}

Houston Rockets
basketball.basketball_team.head_coach
Kevin McHale

Houston Rockets
sports.sports_team.championships
1994 NBA Finals

Houston Rockets
sports.sports_team.championships
1995 NBA Finals


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?y
WHERE {
FILTER (?x != ns:m.016yzz)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.016yzz 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:government.governmental_jurisdiction.governing_officials ?c .
?c ns:government.government_position_held.appointed_by ns:m.019x9z .
}


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.0ftn8 .
?c ns:location.country.currency_used ?x .
}

Tunisia
location.country.currency_used
Tunisian dinar


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.01fvj1 .
?c ns:base.locations.countries.continent ?x .
}

Belize
base.locations.countries.continent
North America


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

Seljuk Empire
location.country.capital
Ray


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.0jzc)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0jzc ns:language.human_language.countries_spoken_in ?x .
?x ns:religion.religious_leadership_jurisdiction.leader ?c .
?c ns:religion.religious_organization_leadership.leader ns:m.02qmnw .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.077v0v .
?c ns:people.person.profession ?x .
}

James Dean
people.person.profession
Actor


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.leader ns:m.05cxfq .
?c ns:location.country.currency_used ?x .
}

Ukraine
location.country.currency_used
Ukrainian hryvnia


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.01vrncs)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.01vrncs ns:people.person.places_lived ?y .
?y ns:people.place_lived.location ?x .
?x ns:tv.tv_location.tv_shows_filmed_here ns:m.01vnbh .
}

Malibu
tv.tv_location.tv_shows_filmed_here
Two and a Half Men


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?x
WHERE {
FILTER (?x != ns:m.06y57)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.06y57 ns:travel.travel_destination.tourist_attractions ?x .
?x ns:zoos.zoo.opened ?num .
}
ORDER BY ?num LIMIT 1


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.07fpnw .
?c ns:american_football.football_team.current_head_coach ?x .
}

Baltimore Ravens
sports.sports_team.fight_song
Seven Nation Army


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.05zvb8f .
?c ns:religion.religion.texts ?x .
}

Taoism
religion.religion.places_of_worship
Beiyue Temple

Taoism
religion.religion.texts
Zhuang Zhou

Taoism
religion.religion.texts
Tao Te Ching


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.05k6b3s .
?c ns:location.location.containedby ?x .
}

University of South Carolina
location.location.containedby
United States of America

University of South Carolina
location.location.containedby
Columbia

University of South Carolina
location.location.containedby
South Carolina


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


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.076s5 .
?c ns:sports.sports_team.championships ?x .
?x ns:time.event.end_date ?sk0 .
}
ORDER BY DESC(xsd:datetime(?sk0))
LIMIT 1

Oakland Raiders
sports.sports_team.championships
Super Bowl XVIII

Oakland Raiders
sports.sports_team.championships
2003 AFC Championship Game


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.capital ns:m.0150n .
}

West Germany
location.country.capital
Bonn


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.064r7fk)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.064r7fk ns:language.human_language.main_country ?x .
?x ns:location.country.administrative_divisions ns:m.0110_1rf .
}

Standard Tibetan
language.human_language.main_country
China


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.0ktnm .
?c ns:location.country.currency_used ?x .
}

Aruba
location.country.currency_used
Aruban florin


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.01b0dl)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.01b0dl ns:sports.pro_athlete.teams ?y .
?y ns:sports.sports_team_roster.team ?x .
?x ns:sports.sports_team.fight_song ns:m.095v49 .
}

Minnesota Vikings
sports.sports_team.fight_song
Skol, Vikings


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.01rj4t .
?c ns:location.country.currency_used ?x .
}

Cuba
location.country.currency_used
Cuban convertible peso

Cuba
location.country.currency_used
Cuban peso


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.01kvjf .
?c ns:location.country.currency_used ?x .
}

Ukraine
location.country.currency_used
Ukrainian hryvnia


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.0h2n386 .
?c ns:film.film.featured_film_locations ?x .
}

Stand by Me
film.film.featured_film_locations
Oregon


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.04gg8b0 .
?c ns:sports.sports_team.championships ?x .
?x ns:time.event.start_date ?sk0 .
}
ORDER BY xsd:datetime(?sk0)
LIMIT 1

Los Angeles Lakers
sports.sports_team.championships
2009 NBA Finals

Los Angeles Lakers
sports.sports_team.championships
1949 BAA Finals


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.09ncdd .
?c ns:music.artist.origin ?x .
}

Shakira
music.artist.concert_tours
Tour Anfibio


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.0j_8yp9 .
?c ns:sports.sports_team.location ?x .
}

Pittsburgh Steelers
sports.sports_team.fight_song
Steelers Polka

Pittsburgh Steelers
sports.sports_team.location
Pittsburgh


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

Duluth
location.location.time_zones
Central Time Zone

Minneapolis
location.location.time_zones
Central Time Zone

Hibbing
location.location.time_zones
Central Time Zone


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.07ssc)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.07ssc ns:location.statistical_region.religions ?y .
?y ns:location.religion_percentage.religion ?x .
?x ns:religion.religion.sacred_sites ns:m.02l7zq .
}

Sikhism
religion.religion.sacred_sites
Harmandir Sahib


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

Giza Necropolis
location.location.containedby
Egypt


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

Anglicanism
religion.religion.texts
The Bible

Catholicism
religion.religion.texts
The Bible


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.08x9w1 .
?c ns:sports.sports_team.championships ?x .
?x ns:time.event.start_date ?sk0 .
}
ORDER BY xsd:datetime(?sk0)
LIMIT 1

Los Angeles Lakers
sports.sports_team.championships
1987 NBA Finals


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?y
WHERE {
FILTER (?x != ns:m.06npd)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.06npd ns:location.location.adjoin_s ?y .
?y ns:location.adjoining_relationship.adjoins ?x .
?x ns:common.topic.notable_types ns:m.01mp .
?x ns:religion.religious_leadership_jurisdiction.leader ?c .
?c ns:religion.religious_organization_leadership.organization ns:m.05cx56 .
}

Ukrainian Orthodox Church of the Kyivan Patriarchate


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.052bw)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.052bw ns:travel.travel_destination.tourist_attractions ?x .
?x ns:architecture.museum.established "2002"^^xsd:dateTime .
}


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?y
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.administrative_divisions ns:m.01hf6 .
?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.060c4 .
FILTER(NOT EXISTS {?y ns:government.government_position_held.from ?sk0} ||
EXISTS {?y ns:government.government_position_held.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "1980-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) >= "1980-01-01"^^xsd:dateTime) })
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:organization.organization.leadership ?k .
?k ns:organization.leadership.person ns:m.0h62s2c .
?c ns:sports.sports_team.championships ?x .
?x ns:sports.sports_championship_event.championship ns:m.05nblxt .
}

Juventus F.C.
sports.sports_team.championships
1996 UEFA Champions League Final


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.currency_used ?x .
}

Ukraine
location.country.currency_used
Ukrainian hryvnia


#MANUAL SPARQL
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
    {
      SELECT ?x (COUNT(?x) as ?count)
      WHERE {
          ns:m.02_p0 ns:sports.sports_award_type.winners ?y .
          ?y ns:sports.sports_award.award_winner ?x .
      }
    }
    {
      SELECT (MAX(?count) AS ?maxCount)
      WHERE {
        SELECT ?x (COUNT(?x) as ?count)
        WHERE {
          ns:m.02_p0 ns:sports.sports_award_type.winners ?y .
          ?y ns:sports.sports_award.award_winner ?x .
        }
      }
    }
    FILTER (?maxCount = ?count)?x ns:sports.sports_team.team_mascot ns:m.02nsyh9 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.01b0dl)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.01b0dl ns:sports.pro_athlete.teams ?y .
?y ns:sports.sports_team_roster.team ?x .
?x ns:sports.professional_sports_team.owner_s ns:m.03bzsxk .
}

Seattle Seahawks
sports.professional_sports_team.owner_s
Paul G. Allen Family Foundation


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.0ch4g6y .
?c ns:education.educational_institution.mascot ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.0b90_r)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0b90_r 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.0146yb .
}


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

University of Oxford
common.topic.notable_types
College/University

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


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.0_gv21m .
?c ns:sports.sports_team.arena_stadium ?x .
?x ns:architecture.structure.opened ?sk0 .
}
ORDER BY DESC(xsd:datetime(?sk0))
LIMIT 1

Seattle Seahawks
sports.sports_team.championships
2006 NFC Championship Game

Seattle Seahawks
sports.sports_team.arena_stadium
CenturyLink Field


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.0157m)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0157m 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.046h3s .
}


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.0fn4c .
?c ns:base.locations.countries.continent ?x .
}

Belize
base.locations.countries.continent
North America


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.05djw1)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05djw1 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.092h__ .
}

Temple University
common.topic.notable_types
College/University


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.04tfqf .
?c ns:sports.sports_team.championships ?x .
?x ns:time.event.end_date ?sk0 .
}
ORDER BY xsd:datetime(?sk0)
LIMIT 1

New York Yankees
sports.sports_team.championships
1950 World Series

New York Yankees
sports.sports_team.championships
1923 World Series


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.02bpjk)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.02bpjk 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.080y8r .
}

Louisiana State University
common.topic.notable_types
College/University


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:organization.organization.leadership ?k .
?k ns:organization.leadership.person ns:m.03wbmyk .
?c ns:location.location.containedby ?x .
?x ns:common.topic.notable_types ns:m.0kpys4 .
}

Harvard College
location.location.containedby
Massachusetts

Massachusetts
common.topic.notable_types
US State


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.05cx56 .
?c ns:location.country.currency_used ?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:architecture.architect.structures_designed ns:m.06_d_fx .
?c ns:people.deceased_person.place_of_death ?x .
}

Thomas Jefferson
people.deceased_person.place_of_death
Charlottesville


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

Walt Whitman
influence.influence_node.influenced_by
Abraham Lincoln


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.03wws_ .
?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 != ns:m.083tk)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.083tk ns:language.human_language.countries_spoken_in ?x .
?x ns:government.governmental_jurisdiction.governing_officials ?c .
?c ns:government.government_position_held.appointed_by ns:m.0ck4s .
}


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.sports_teams ns:m.05h0hlp .
?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:location.country.administrative_divisions ns:m.02sn34 .
?c ns:location.country.currency_used ?x .
}

Ukraine
location.country.currency_used
Ukrainian hryvnia


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:organization.organization.leadership ?k .
?k ns:organization.leadership.person ns:m.0y6y815 .
?c ns:sports.sports_team.championships ?x .
?x ns:sports.sports_championship_event.championship ns:m.05nblxt .
}

Juventus F.C.
sports.sports_team.championships
1996 UEFA Champions League Final


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.03_y2f)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.03_y2f ns:sports.pro_athlete.teams ?y .
?y ns:sports.sports_team_roster.team ?x .
?x ns:sports.sports_team.championships ns:m.010fhjn8 .
}

En Avant de Guingamp
sports.sports_team.championships
2014 Coupe de France Final


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k,?y
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.03b_br1 .
?c ns:organization.organization.board_members ?y .
?y ns:organization.organization_board_membership.member ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.04lvwk)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.04lvwk 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.047p3cf .
}

University of Arkansas
common.topic.notable_types
College/University


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.06npd)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.06npd 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.015g43 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.01xyt7)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.01xyt7 ns:sports.pro_athlete.teams ?y .
?y ns:sports.sports_team_roster.team ?x .
?x ns:sports.sports_team.fight_song ns:m.08cdm4 .
}

Michigan Wolverines football
sports.sports_team.fight_song
The Victors


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.0d05w3)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0d05w3 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.0494n .
}


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

Australia
location.location.time_zones
Heard and McDonald Islands Time Zone


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.060_7)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.060_7 ns:people.person.places_lived ?y .
?y ns:people.place_lived.location ?x .
?x ns:location.country.capital ns:m.05qtj .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.06x2z0 .
?c ns:education.educational_institution.mascot ?x .
}


#MANUAL SPARQL
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y2,?x,?y1
WHERE {

    ns:m.09b69 ns:location.location.contains ?y1 .  # Eastern Europe
    ?y1 ns:common.topic.notable_types ns:m.01mp .   # Country
    ?y1 ns:location.statistical_region.religions ?y2 .
    ?y2 ns:location.religion_percentage.religion ?x .?x ns:religion.religion.types_of_places_of_worship ns:m.0173tc .
}

Eastern Europe
location.location.contains
?y1  # Eastern Europe

Romania
common.topic.notable_types
m.01mp   # Country

Second Polish Republic
common.topic.notable_types
m.01mp   # Country


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


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.0_6t_z8)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0_6t_z8 ns:organization.membership_organization.members ?y .
?y ns:organization.organization_membership.member ?x .
?x ns:location.location.time_zones ns:m.042g7t .
}

Netherlands
location.location.time_zones
Atlantic Time Zone


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

Buddhism
religion.religion.places_of_worship
Candi Laras


#MANUAL SPARQL
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
	ns:m.03f34_ ns:architecture.building_function.buildings ?y .
	?y ns:travel.tourist_attraction.near_travel_destination ?x .?x ns:olympics.olympic_host_city.olympics_hosted ns:m.0c_tl .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.0157m)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0157m 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.031v8g .
}

University Yale
common.topic.notable_types
College/University


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.03_j8)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.03_j8 ns:people.person.nationality ?x .
?x ns:location.country.capital ns:m.02m77 .
}

James Cook
people.person.nationality
Kingdom of Great Britain

Kingdom of Great Britain
location.country.capital
Edinburgh


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?x
WHERE {
FILTER (?x != ns:m.06y57)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.06y57 ns:travel.travel_destination.tourist_attractions ?x .
?x ns:zoos.zoo.opened ?num .
FILTER (?num > "1972"^^xsd:dateTime) .
}


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

Saudi Arabia
location.country.currency_used
Saudi riyal


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.0jzc)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0jzc ns:language.human_language.countries_spoken_in ?x .
?x ns:location.location.contains ?c .
?c ns:location.mailing_address.citytown ns:m.02_wp3 .
}


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.03yk4pb)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.03yk4pb ns:people.person.places_lived ?y .
?y ns:people.place_lived.location ?x .
?x ns:tv.tv_location.tv_shows_filmed_here ns:m.09fc83 .
}

Las Vegas
tv.tv_location.tv_shows_filmed_here
The Stand


#MANUAL SPARQL
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
    {
      SELECT ?x (COUNT(?x) as ?count)
      WHERE {
          ns:m.02_p0 ns:sports.sports_award_type.winners ?y .
          ?y ns:sports.sports_award.award_winner ?x .
      }
    }
    {
      SELECT (MAX(?count) AS ?maxCount)
      WHERE {
        SELECT ?x (COUNT(?x) as ?count)
        WHERE {
          ns:m.02_p0 ns:sports.sports_award_type.winners ?y .
          ?y ns:sports.sports_award.award_winner ?x .
        }
      }
    }
    FILTER (?maxCount = ?count)?x ns:sports.sports_team.championships ns:m.0266flf .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k,?y
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.location.adjoin_s ?y .
?y ns:location.adjoining_relationship.adjoins ?x .
?x ns:common.topic.notable_types ns:m.01mp .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.0yb0)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0yb0 ns:influence.influence_node.influenced_by ?x .
?x ns:architecture.architect.structures_designed ns:m.041tmv .
}

Antoni Gaudí
influence.influence_node.influenced_by
William Morris


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:organization.organization.leadership ?k .
?k ns:organization.leadership.person ns:m.02bvmk .
?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:religion.religion.places_of_worship ns:m.02wb7r4 .
?c ns:religion.religion.beliefs ?x .
}

Islam
religion.religion.places_of_worship
Yavuz Sultan Selim Mosque

Islam
religion.religion.beliefs
God in Islam

Islam
religion.religion.beliefs
Entering Heaven alive

Islam
religion.religion.beliefs
Islamic view of angels

Islam
religion.religion.beliefs
Masih ad-Dajjal

Islam
religion.religion.beliefs
Islamic holy books

Islam
religion.religion.beliefs
Prophets in Islam

Islam
religion.religion.beliefs
Predestination in Islam


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.0_6t_z8)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0_6t_z8 ns:organization.membership_organization.members ?y .
?y ns:organization.organization_membership.member ?x .
?x ns:location.country.administrative_divisions ns:m.010f9zv5 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?y
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.currency_used ns:m.02svsf .
?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.060c4 .
FILTER(NOT EXISTS {?y ns:government.government_position_held.from ?sk0} ||
EXISTS {?y ns:government.government_position_held.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "1980-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) >= "1980-01-01"^^xsd:dateTime) })
}

Pakistan
location.country.currency_used
Pakistani rupee


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.major_field_of_study ns:m.0dgy0ln .
?c ns:influence.influence_node.influenced_by ?x .
}

Andy Warhol
influence.influence_node.influenced_by
Jean-Michel Basquiat

Andy Warhol
influence.influence_node.influenced_by
John Cage

Andy Warhol
influence.influence_node.influenced_by
Jasper Johns

Andy Warhol
influence.influence_node.influenced_by
Man Ray

Andy Warhol
influence.influence_node.influenced_by
Robert Rauschenberg

Andy Warhol
influence.influence_node.influenced_by
Truman Capote

Andy Warhol
influence.influence_node.influenced_by
Marcel Duchamp

Andy Warhol
influence.influence_node.influenced_by
Frank Stella

Andy Warhol
influence.influence_node.influenced_by
Tom of Finland

Andy Warhol
influence.influence_node.influenced_by
Ben Shahn

Andy Warhol
influence.influence_node.influenced_by
Jack Smith


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k,?y
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.04gps1c .
?c ns:film.actor.film ?y .
?y ns:film.performance.character ?x .
?y ns:film.performance.film ns:m.06zkfsy .
}


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.08x9k6 .
?c ns:sports.sports_team.championships ?x .
}

Houston Rockets
sports.sports_team.championships
1995 NBA Finals

Houston Rockets
sports.sports_team.championships
1994 NBA Finals


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.081sq .
?c ns:people.person.profession ?x .
}

Barack Obama
people.person.profession
Lawyer

Barack Obama
people.person.profession
Writer

Barack Obama
people.person.profession
Politician

Barack Obama
people.person.profession
Law professor

Barack Obama
people.person.profession
Author


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.01lfy .
?c ns:base.locations.countries.continent ?x .
}


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.02vn_kg .
?c ns:location.location.containedby ?x .
}

University of South Carolina
location.location.containedby
United States of America

University of South Carolina
location.location.containedby
Columbia

University of South Carolina
location.location.containedby
South Carolina


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.026mph .
?c ns:location.country.currency_used ?x .
}

Aruba
location.country.currency_used
Aruban florin


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k,?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.01dlgn .
?c ns:location.location.adjoin_s ?y .
?y ns:location.adjoining_relationship.adjoins ?x .
?x ns:common.topic.notable_types ns:m.01mp .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.060_7)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.060_7 ns:people.person.places_lived ?y .
?y ns:people.place_lived.location ?x .
?x ns:location.country.currency_used ns:m.01qyjx .
}

France
location.country.currency_used
CFP franc


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.05csx)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05csx ns:geography.river.basin_countries ?x .
?x ns:location.country.capital ns:m.0fn8p .
}

Niger River
geography.river.basin_countries
Guinea


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?y
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.us_state.capital ns:m.0fvvg .
?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.0j749 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.011w8v)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.011w8v ns:location.location.containedby ?x .
?x ns:location.country.administrative_divisions ns:m.04wcf .
}

United Kingdom, with Dependencies and Territories


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.languages_spoken ?x .
}

Egypt
location.country.languages_spoken
Arabic Language

Egypt
location.country.languages_spoken
Sa'idi Arabic

Egypt
location.country.languages_spoken
Arabic, Sudanese Spoken Language

Egypt
location.country.languages_spoken
Egyptian Arabic

Egypt
location.country.languages_spoken
Domari Language

Egypt
location.country.languages_spoken
Modern Standard Arabic

Egypt
location.country.languages_spoken
Bedawi Arabic

Egypt
location.country.languages_spoken
Siwi Language

Egypt
location.country.languages_spoken
Nobiin Language


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.04swx)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.04swx 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.05qtj .
}


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

Illinois River
location.location.containedby
Illinois


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.06xxc)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.06xxc ns:people.person.nationality ?x .
?x ns:government.governmental_jurisdiction.governing_officials ?c .
?c ns:government.government_position_held.appointed_by ns:m.0c3xm .
}

Samuel Pepys
people.person.nationality
China


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?y
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.location.adjoin_s ?y .
?y ns:location.adjoining_relationship.adjoins ?x .
?x ns:common.topic.notable_types ns:m.01mp .
}

North Korea
common.topic.notable_types
Country


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?y
WHERE {
FILTER (?x != ns:m.0165v)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0165v ns:location.location.adjoin_s ?y .
?y ns:location.adjoining_relationship.adjoins ?x .
?x ns:religion.religious_leadership_jurisdiction.leader ?c .
?c ns:religion.religious_organization_leadership.leader ns:m.05ngt2 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x,?y
WHERE {
FILTER (?x != ns:m.016yzz)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.016yzz 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:location.country.capital ns:m.01qmmt .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x,?k
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.048941b .
?c ns:people.deceased_person.cause_of_death ?x .
}

Susan Atkins
people.deceased_person.cause_of_death
Cancer

Susan Atkins
people.deceased_person.cause_of_death
Brain tumor