PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.017_pb)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.017_pb ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:education.university.number_of_undergraduates ?c .
?c ns:measurement_unit.dated_integer.number "6735" .
}


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

Taylor Swift
film.film_subject.films
Taylor Swift: Her Life, Her Story


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:media_common.dedicatee.dedications ?k .
?k ns:media_common.dedication.dedicated_by ns:m.014dq7 .
?c ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:common.topic.notable_types ns:m.01y2hnl .
}

University of Missouri
common.topic.notable_types
College/University

University of Iowa
common.topic.notable_types
College/University

Washington University in St. Louis
common.topic.notable_types
College/University

The New School
common.topic.notable_types
College/University


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?c,?x
WHERE {
FILTER (?x != ns:m.0md6f)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0md6f ns:location.location.events ?x .
?x ns:time.event.included_in_event ns:m.081pw .
?x ns:military.military_conflict.casualties ?c .
?c ns:military.casualties.lower_estimate ?num .
FILTER (xsd:integer(?num) > 30000) .
}

Dunkirk
location.location.events
Battle of Dunkirk

Battle of Dunkirk
time.event.included_in_event
World War II


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.0vmt)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0vmt ns:government.governmental_jurisdiction.governing_officials ?y .
?y ns:government.government_position_held.office_holder ?x .
?y ns:government.government_position_held.basic_title ns:m.0fkvn .
FILTER(NOT EXISTS {?y ns:government.government_position_held.from ?sk0} ||
EXISTS {?y ns:government.government_position_held.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "2009-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) >= "2009-01-01"^^xsd:dateTime) })
?x ns:government.political_appointer.appointees ?c .
?c ns:government.government_position_held.basic_title ns:m.09n5b9 .
}


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.05qhw)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05qhw ns:location.country.form_of_government ?x .
?x ns:government.government.government_for ns:m.027nb .
}

Poland
location.country.form_of_government
Parliamentary republic

Parliamentary republic
government.government.government_for
Dominica


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

Brazil
location.country.currency_used
Brazilian real


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:fictional_universe.fictional_setting.universe ns:m.0j_frx8 .
?c ns:base.biblioness.bibs_location.state ?x .
}


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

Poetic Justice
film.film.featured_song
Again


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.07pzc)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.07pzc ns:base.popstra.celebrity.dated ?y .
?y ns:base.popstra.dated.participant ?x .
?x ns:film.actor.dubbing_performances ?c .
?c ns:film.dubbing_performance.character ns:m.0ch6n53 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:government.political_appointer.appointees ?k .
?k ns:government.government_position_held.basic_title ns:m.0dq_h2 .
?c ns:government.politician.party ?y .
?y ns:government.political_party_tenure.party ?x .
}

Under Secretary of Defense for Personnel and Readiness


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

Buddhism
influence.influence_node.influenced
Arthur Schopenhauer


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

John Garcia
music.composer.compositions
Thinkin About-U!

John Garcia
people.person.profession
Musician

John Garcia
people.person.profession
Singer


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.02114t)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.02114t ns:base.popstra.celebrity.dated ?y .
?y ns:base.popstra.dated.participant ?x .
?x ns:film.actor.dubbing_performances ?c .
?c ns:film.dubbing_performance.character ns:m.04gnyjv .
}


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

Race to Witch Mountain
film.film.film_casting_director
Randi Hiller


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

Christianity
film.film_genre.films_in_this_genre
First Class Discipleship


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

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

In the Land of Blood and Honey
film.film.language
Bosnian language


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.0d05q4)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0d05q4 ns:location.country.form_of_government ?x .
?x ns:government.government.government_for ns:m.027nb .
}

Iraq
location.country.form_of_government
Parliamentary republic


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.0345h)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0345h ns:location.location.adjoin_s ?y .
?y ns:location.adjoining_relationship.adjoins ?x .
?x ns:common.topic.notable_types ns:m.01mp .
?x ns:location.country.gdp_nominal_per_capita ?c .
?c ns:measurement_unit.dated_money_value.currency ns:m.09nqf .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.05zjd)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05zjd ns:language.human_language.countries_spoken_in ?x .
?x ns:fictional_universe.fictional_setting.contains ns:m.0j689dq .
}


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

Brad Paisley
music.composer.compositions
Letter to Me

Brad Paisley
people.person.place_of_birth
Glen Dale


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.07gvx)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.07gvx ns:religion.religion.texts ?x .
?x ns:book.author.works_written ns:m.0678721 .
}

Taoism
religion.religion.texts
Zhuang Zhou

Zhuang Zhou
book.author.works_written
Hou guan Yan shi ping dian Zhuangzi


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

Portugal
location.location.people_born_here
Carlos Tavares


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.05hp_9)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05hp_9 ns:film.film_character.portrayed_in_films ?y .
?y ns:film.performance.actor ?x .
?x ns:film.actor.dubbing_performances ?c .
?c ns:film.dubbing_performance.character ns:m.0h2kk01 .
}


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:law.court_jurisdiction_area.courts ns:m.027k5kf .
?c ns:location.country.form_of_government ?x .
}

Peru
law.court_jurisdiction_area.courts
Supreme Court of Peru

Peru
location.country.form_of_government
Presidential system

Peru
location.country.form_of_government
Unitary state

Peru
location.country.form_of_government
Constitutional republic


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?x
WHERE {
FILTER (?x != ns:m.01tzh)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.01tzh ns:location.location.contains ?x .
?x ns:common.topic.notable_types ns:m.01mp .
?x ns:location.country.calling_code ?num .
FILTER (xsd:integer(?num) > 506) .
}

Central America
location.location.contains
Panama


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.07pzc)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.07pzc ns:base.popstra.celebrity.dated ?y .
?y ns:base.popstra.dated.participant ?x .
?x ns:film.producer.film ns:m.09rsf6j .
}

Jada Pinkett Smith
film.producer.film
The Karate Kid


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


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

Joint session of the United States Congress


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.07bcn)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.07bcn ns:travel.travel_destination.tourist_attractions ?x .
?x ns:amusement_parks.park.rides ns:m.0j11542 .
}

Raging Waters Sacramento
amusement_parks.park.rides
Cliffhanger


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

Brad Paisley
music.featured_artist.recordings
Hot Rod Heart


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.041rx)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.041rx ns:people.ethnicity.languages_spoken ?x .
?x ns:language.human_language.rosetta_project_code "hbo" .
}

Jewish people
people.ethnicity.languages_spoken
Biblical Hebrew


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:government.governmental_jurisdiction.governing_officials ?k .
?k ns:government.government_position_held.office_holder ns:m.08v3_f .
?c ns:location.statistical_region.religions ?y .
?y ns:location.religion_percentage.religion ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.021yw7)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.021yw7 ns:tv.tv_actor.starring_roles ?y .
?y ns:tv.regular_tv_appearance.character ?x .
?y ns:tv.regular_tv_appearance.special_performance_type ns:m.02nsjvf .
?x ns:film.film_character.portrayed_in_films ?c .
?c ns:film.performance.actor ns:m.015b67 .
}


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

Chicago Cubs
sports.sports_team.arena_stadium
Hohokam Stadium


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

Peyton Manning
people.person.parents
Archie Manning

Archie Manning
people.person.gender
Male


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

Eastern Europe
location.location.contains
Kievan Rus'

Kievan Rus'
common.topic.notable_types
Country

Kievan Rus'
royalty.kingdom.rulers
Igor of Kiev


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

Ole Miss Rebels football
sports.school_sports_team.school
University of Mississippi


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?c,?x
WHERE {
FILTER (?x != ns:m.04yd_)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.04yd_ ns:people.person.profession ?x .
?x ns:religion.religious_leadership_title.leaders ?c .
?c ns:religion.religious_organization_leadership.end_date ?num .
}
ORDER BY DESC(?num) LIMIT 1

Martin Luther
people.person.profession
Priest


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:event.public_speaker.speeches_or_presentations ?k .
?k ns:event.speech_or_presentation.speech_topic ns:m.017f5 .
?c ns:people.person.sibling_s ?y .
?y ns:people.sibling_relationship.sibling ?x .
?x ns:people.person.gender ns:m.05zppz .
}

Robert F. Kennedy
people.person.gender
Male

Joseph P. Kennedy, Jr.
people.person.gender
Male


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.0dq9wx)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0dq9wx ns:people.person.places_lived ?y .
?y ns:people.place_lived.location ?x .
?x ns:location.statistical_region.co2_emissions_industrial ?c .
?c ns:location.co2_emission.emissions "0.043448524" .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.04510)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.04510 ns:influence.influence_node.influenced_by ?x .
?x ns:influence.influence_node.influenced_by ns:m.016s03 .
}

Jackson Pollock
influence.influence_node.influenced_by
Pablo Picasso

Pablo Picasso
influence.influence_node.influenced_by
Eugène Delacroix


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:fictional_universe.fictional_setting.characters_that_have_lived_here ns:m.0g9m4qw .
?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.0fkvn .
FILTER(NOT EXISTS {?y ns:government.government_position_held.from ?sk0} ||
EXISTS {?y ns:government.government_position_held.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "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) })
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.0345h)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0345h ns:location.location.adjoin_s ?y .
?y ns:location.adjoining_relationship.adjoins ?x .
?x ns:common.topic.notable_types ns:m.01mp .
?x ns:event.speech_topic.speeches_or_presentations_on_this_topic ?c .
?c ns:event.speech_or_presentation.speaker_s ns:m.08ngt5v .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.05zjd)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05zjd ns:language.human_language.countries_spoken_in ?x .
?x ns:government.governmental_jurisdiction.governing_officials ?c .
?c ns:government.government_position_held.governmental_body ns:m.01g99q .
}

Chinese People's Political Consultative Conference


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:theater.theatrical_lyricist.play_lyrics_written ns:m.052sm5 .
?c ns:influence.influence_node.influenced_by ?x .
}

Langston Hughes
influence.influence_node.influenced_by
Walt Whitman


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:media_common.dedicatee.dedications ?k .
?k ns:media_common.dedication.dedicated_by ns:m.07t31 .
?c ns:base.inaugurations.inauguration_speaker.inauguration ?x .
}

Abraham Lincoln 1861 presidential inauguration

Abraham Lincoln 1865 presidential inauguration


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


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

Miami University
common.topic.notable_types
College/University

American University
common.topic.notable_types
College/University


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.075kfb)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.075kfb ns:tv.tv_actor.starring_roles ?y .
?y ns:tv.regular_tv_appearance.series ?x .
?x ns:media_common.netflix_title.netflix_genres ns:m.07c52 .
}


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:government.governmental_jurisdiction.government ns:m.05z01q3 .
?c ns:location.country.currency_used ?x .
}

Egypt
location.country.currency_used
Egyptian pound


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?x
WHERE {
FILTER (?x != ns:m.01ct6)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.01ct6 ns:sports.sports_team.championships ?x .
?x ns:sports.sports_championship_event.championship ns:m.06x5s .
?x ns:time.event.end_date ?num .
}
ORDER BY DESC(?num) LIMIT 1

Baltimore Ravens
sports.sports_team.championships
Super Bowl XLVII


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

The Twilight Saga: New Moon
film.film.film_art_direction_by
Catherine Ircha


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?c,?y,?x
WHERE {
FILTER (?x != ns:m.0c6qh)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0c6qh ns:celebrities.celebrity.sexual_relationships ?y .
?y ns:celebrities.romantic_relationship.celebrity ?x .
?y ns:celebrities.romantic_relationship.relationship_type ns:m.02_7k44 .
?x ns:celebrities.celebrity.sexual_relationships ?c .
?c ns:celebrities.romantic_relationship.end_date ?num .
}
ORDER BY ?num LIMIT 1


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

Valentine's Day
film.film.edited_by
Jim Clark


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

Belgium
location.country.languages_spoken
Picard Language

Belgium
location.location.containedby
Western Europe


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


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

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

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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:government.political_district.representatives ?k .
?k ns:government.government_position_held.appointed_by ns:m.026f66 .
?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.0fkvn .
FILTER(NOT EXISTS {?y ns:government.government_position_held.from ?sk0} ||
EXISTS {?y ns:government.government_position_held.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "2015-08-10"^^xsd:dateTime) })
FILTER(NOT EXISTS {?y ns:government.government_position_held.to ?sk2} ||
EXISTS {?y ns:government.government_position_held.to ?sk3 .
FILTER(xsd:datetime(?sk3) >= "2015-08-10"^^xsd:dateTime) })
}


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

Costa Rica
location.country.languages_spoken
Bribri Language

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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.0chghy)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0chghy ns:location.country.form_of_government ?x .
?x ns:government.form_of_government.countries ?c .
?c ns:location.location.people_born_here ns:m.0143sn .
}

Australia
location.country.form_of_government
Constitutional monarchy

Constitutional monarchy
government.form_of_government.countries
Kingdom of Prussia

Kingdom of Prussia
location.location.people_born_here
Baldur von Schirach


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

F. Scott Fitzgerald
influence.influence_node.influenced_by
T. S. Eliot

T. S. Eliot
film.film_subject.films
Tom & Viv


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

One death is a tragedy; a million is a statistic.


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.0vmt)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0vmt ns:government.governmental_jurisdiction.governing_officials ?y .
?y ns:government.government_position_held.office_holder ?x .
?y ns:government.government_position_held.basic_title ns:m.0fkvn .
FILTER(NOT EXISTS {?y ns:government.government_position_held.from ?sk0} ||
EXISTS {?y ns:government.government_position_held.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "2009-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) >= "2009-01-01"^^xsd:dateTime) })
?x ns:government.politician.government_positions_held ?c .
?c ns:government.government_position_held.appointed_by ns:m.0157m .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.0gzh)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0gzh ns:government.politician.government_positions_held ?y .
?y ns:government.government_position_held.office_position_or_title ?x .
?x ns:government.government_office_category.officeholders ?c .
?c ns:government.government_position_held.governmental_body ns:m.0b3wk .
}


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:time.participant.event ns:m.09gnk2r .
?c ns:sports.sports_team.championships ?x .
}

San Francisco Giants
time.participant.event
2010 World Series

San Francisco Giants
sports.sports_team.championships
2010 World Series

San Francisco Giants
sports.sports_team.championships
2012 World Series

San Francisco Giants
sports.sports_team.championships
2014 World Series


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.01hf7f)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.01hf7f ns:base.culturalevent.event.entity_involved ?x .
?x ns:government.political_appointer.appointees ?c .
?c ns:government.government_position_held.office_position_or_title ns:m.05c27m6 .
}


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.second_level_divisions ns:m.02w2j21 .
?c ns:location.country.currency_used ?x .
}

Brazil
location.country.currency_used
Brazilian real


#MANUAL SPARQL
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
	{
	  # Film
	  ns:m.0534r8 ns:film.film_character.portrayed_in_films ?y .
	  ?y ns:film.performance.actor ?x .
	  ?y ns:film.performance.special_performance_type ns:m.02nsjvf . #voice
	}
	UNION
	{
	  # TV
	  ns:m.0534r8 ns:tv.tv_character.appeared_in_tv_program ?y .
	  ?y ns:tv.regular_tv_appearance.actor ?x .
	}?x ns:film.actor.dubbing_performances ?c .
?c ns:film.dubbing_performance.character ns:m.0hgc6fq .
}


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


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

Percy Jackson & the Olympians: The Lightning Thief


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.0cns5)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0cns5 ns:travel.tourist_attraction.near_travel_destination ?x .
?x ns:protected_sites.protected_site.annual_visitors ?c .
?c ns:measurement_unit.dated_integer.number "4413668" .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.07ldhs)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.07ldhs ns:film.actor.film ?y .
?y ns:film.performance.film ?x .
?x ns:film.film.genre ?c .
?c ns:organization.organization_sector.organizations_in_this_sector ns:m.014l4w .
}

The Adventures of Sharkboy and Lavagirl
film.film.genre
Animation


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.place_with_neighborhoods.neighborhoods ns:m.02kkt0 .
?c ns:base.biblioness.bibs_location.state ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:military.military_conflict.commanders ?k .
?k ns:military.military_command.military_commander ns:m.028_jb .
?c ns:time.event.locations ?x .
}

Battle of New Orleans
time.event.locations
Chalmette


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?y,?x
WHERE {
FILTER (?x != ns:m.075kfb)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.075kfb ns:tv.tv_actor.starring_roles ?y .
?y ns:tv.regular_tv_appearance.series ?x .
?x ns:tv.tv_program.number_of_seasons ?num .
FILTER (xsd:integer(?num) < 6) .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:government.political_appointer.appointees ?k .
?k ns:government.government_position_held.office_position_or_title ns:m.027c0bd .
?c ns:government.us_president.vice_president ?x .
}

Ronald Reagan
government.us_president.vice_president
George H. W. Bush


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


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

Dominican Republic
location.country.second_level_divisions
Comendador, Elías Piña

Dominican Republic
location.location.containedby
North America

Dominican Republic
location.location.containedby
Americas

Dominican Republic
location.location.containedby
Latin America

Dominican Republic
location.location.containedby
Greater Antilles

Dominican Republic
location.location.containedby
País


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

Justin Bieber
people.person.place_of_birth
London


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.081nh)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.081nh ns:people.person.children ?x .
?x ns:people.person.profession ns:m.02hrh1q .
}

Walt Disney
people.person.children
Diane Disney Miller

Diane Disney Miller
people.person.profession
Actor


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.07_m9_)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.07_m9_ ns:people.person.parents ?x .
?x ns:people.deceased_person.date_of_death "1903-01-03"^^xsd:dateTime .
}

Adolf Hitler
people.person.parents
Alois Hitler


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

Hinduism
religion.religion.deities
Uchchhishta Ganapati


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:fictional_universe.fictional_setting.contains ns:m.0j689dq .
?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:music.lyricist.lyrics_written ns:m.0_74_pw .
?c ns:influence.influence_node.influenced_by ?x .
}

Langston Hughes
music.lyricist.lyrics_written
Street Scene: Act I. No. 6b Quartet

Langston Hughes
influence.influence_node.influenced_by
Walt Whitman


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

World Music Award for World's Best Selling Barbadian Artist

Rihanna
people.person.place_of_birth
Saint Michael Parish


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

Canada
location.location.events
2002 December solstice


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

Heidi Klum
book.author.book_editions_published
Heidi Klum's Body of Knowledge


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

Andrew Jackson
people.person.quotations
Our Union: It must be preserved.


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

Jamaica
location.country.currency_used
Jamaican dollar


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?c,?x
WHERE {
FILTER (?x != ns:m.04yd_)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.04yd_ ns:people.person.profession ?x .
?x ns:religion.religious_leadership_title.leaders ?c .
?c ns:religion.religious_organization_leadership.end_date ?num .
}
ORDER BY ?num LIMIT 1

Martin Luther
people.person.profession
Priest


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

Beyoncé Knowles
film.film_subject.films
Beyonce: Baby and Beyond

Beyoncé Knowles
people.person.children
Blue Ivy


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.0fhp9)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0fhp9 ns:travel.travel_destination.tourist_attractions ?x .
?x ns:time.recurring_event.current_frequency ns:m.02n9t4t .
}

Rock im Park
time.recurring_event.current_frequency
Yearly


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


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.0f2wj)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0f2wj ns:travel.travel_destination.tourist_attractions ?x .
?x ns:architecture.venue.capacity "3401" .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.02zjd)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.02zjd ns:influence.influence_node.influenced_by ?x .
?x ns:influence.influence_node.peers ?c .
?c ns:influence.peer_relationship.peers ns:m.018wj9 .
}

F. Scott Fitzgerald
influence.influence_node.influenced_by
T. S. Eliot


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.0dpd2h)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0dpd2h ns:music.group_member.membership ?y .
?y ns:music.group_membership.group ?x .
?x ns:award.award_nominee.award_nominations ?c .
?c ns:award.award_nomination.award ns:m.02f77y .
}

MTV Video Music Award for Best Pop Video


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

Ohio University
common.topic.notable_types
College/University


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

United Kingdom
common.topic.notable_types
Country


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:geography.body_of_water.bridges ns:m.0df768 .
?c ns:geography.river.mouth ?x .
}

Mississippi River
geography.body_of_water.bridges
Bridge of Hope

Mississippi River
geography.river.mouth
Gulf of Mexico


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

Hoot
film.film.produced_by
Jimmy Buffett


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

Whistler Mountain
location.location.containedby
Canada


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

Sex and the City 2
film.film.executive_produced_by
Toby Emmerich


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:tv.tv_program.multipart_episodes ns:m.047t4gp .
?c ns:tv.tv_program.regular_cast ?y .
?y ns:tv.regular_tv_appearance.actor ?x .
?y ns:tv.regular_tv_appearance.character ns:m.02m29p .
}

Family Guy
tv.tv_program.multipart_episodes
Stewie Kills Lois and Lois Kills Stewie


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

Harry Potter and the Philosopher's Stone


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.07_m9_)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.07_m9_ ns:people.deceased_person.cause_of_death ?x .
?x ns:film.film_character.portrayed_in_films ?c .
?c ns:film.performance.actor ns:m.02bw1q .
}

Adolf Hitler
people.deceased_person.cause_of_death
Suicide


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:award.award_nominee.award_nominations ?k .
?k ns:award.award_nomination.award ns:m.0y54kb3 .
?c ns:people.person.places_lived ?y .
?y ns:people.place_lived.location ?x .
}

Young Hollywood Award for SodaStream Unbottle the World


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.07ldhs)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.07ldhs ns:film.actor.film ?y .
?y ns:film.performance.film ?x .
?x ns:film.film.genre ?c .
?c ns:type.object.name "Animation"@en .
}

The Adventures of Sharkboy and Lavagirl
film.film.genre
Animation


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


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

Carmelo Anthony
film.film_subject.films
Carmelo's Way


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

Tupac Shakur
music.producer.releases_produced
Strictly 4 My N.I.G.G.A.Z...


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?sk0,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:film.film.soundtrack ns:m.01l38nq .
?c ns:film.film.starring ?y .
?y ns:film.performance.actor ?x .
?y ns:film.performance.character ns:m.0264f7h .
?y ns:film.performance.character_note ?sk0 .
FILTER (str(?sk0) = "Young Forrest")
}

Forrest Gump: Original Motion Picture Score


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.09bg4l)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.09bg4l ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:common.topic.notable_types ns:m.01y2hnl .
?x ns:organization.organization.date_founded "1929"^^xsd:dateTime .
}

University of Missouri–Kansas City
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.second_level_divisions ns:m.042mmz .
?c ns:location.country.currency_used ?x .
}

Brazil
location.country.second_level_divisions
Monte Alto, São Paulo

Brazil
location.country.currency_used
Brazilian real


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?y,?x
WHERE {
FILTER (?x != ns:m.0f8l9c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0f8l9c ns:military.military_combatant.casualties ?y .
?y ns:military.casualties.military_conflict ?x .
?x ns:time.event.end_date ?num .
}
ORDER BY ?num LIMIT 1


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.018t67)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.018t67 ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:common.topic.notable_types ns:m.01y2hnl .
?x ns:education.university.number_of_undergraduates ?c .
?c ns:measurement_unit.dated_integer.number "1648" .
}

Amherst 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:periodicals.newspaper_circulation_area.newspapers ns:m.02vn8fs .
?c ns:location.country.currency_used ?x .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.01hf7f)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.01hf7f ns:base.culturalevent.event.entity_involved ?x .
?x ns:government.politician.government_positions_held ?c .
?c ns:government.government_position_held.to "1877-03-04"^^xsd:dateTime .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.0f2wj)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0f2wj ns:travel.travel_destination.tourist_attractions ?x .
?x ns:award.hall_of_fame.inductees ?c .
?c ns:award.hall_of_fame_induction.inductee ns:m.0127xk .
}


#MANUAL SPARQL
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
	FILTER (?x != ns:m.01znc_)
	{
	  ns:m.01znc_ ns:location.statistical_region.places_exported_to ?y .
	  ?y ns:location.imports_and_exports.exported_to ?x .
	}
	UNION
	{
	  ns:m.01znc_ ns:location.statistical_region.places_imported_from ?y .
	  ?y ns:location.imports_and_exports.imported_from ?x .
	}?x ns:location.statistical_region.co2_emissions_per_capita ?c .
?c ns:measurement_unit.dated_metric_ton.number "0.447181" .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.02114t)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.02114t ns:base.popstra.celebrity.dated ?y .
?y ns:base.popstra.dated.participant ?x .
?x ns:music.artist.concert_tours ns:m.027vqy0 .
}

Justin Timberlake
music.artist.concert_tours
Justified and Stripped Tour


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.location.time_zones ns:m.0y498v7 .
?c ns:royalty.kingdom.rulers ?x .
?x ns:common.topic.notable_types ns:m.04fnrhx .
}

Australia
location.location.time_zones
Central Western Time Zone

Australia
royalty.kingdom.rulers
Elizabeth II

Elizabeth II
common.topic.notable_types
Monarch


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

Helen Keller
people.deceased_person.place_of_death
Easton


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

Roman Empire
location.country.capital
Rome


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.05zjd)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05zjd ns:language.human_language.countries_spoken_in ?x .
?x ns:tv.tv_location.tv_shows_filmed_here ns:m.0jkvl5n .
}

China
tv.tv_location.tv_shows_filmed_here
The Bride with White Hair


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

Houston Rockets
sports.sports_team.championships
1994 NBA Finals

Houston Rockets
sports.sports_team.arena_stadium
Toyota Center

Houston Rockets
sports.sports_team.arena_stadium
Lakewood Church Central Campus


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

Baltimore Ravens
sports.sports_team.team_mascot
Rise

Baltimore Ravens
sports.sports_team.championships
Super Bowl XLVII

Baltimore Ravens
sports.sports_team.championships
Super Bowl XXXV


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

New York Knicks
sports.sports_team.championships
1973 NBA 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:religion.religion.places_of_worship ns:m.0260jdk .
?c ns:religion.religion.texts ?x .
}

Taoism
religion.religion.places_of_worship
Zhi Nan Temple

Taoism
religion.religion.texts
Zhuang Zhou

Taoism
religion.religion.texts
Tao Te Ching


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.0d3k14)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0d3k14 ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:education.educational_institution.newspaper ns:m.08zwhp .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.0dq9wx)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0dq9wx ns:people.person.places_lived ?y .
?y ns:people.place_lived.location ?x .
?x ns:location.location.people_born_here ?c .
?c ns:sports.pro_athlete.career_start "1999"^^xsd:dateTime .
}

Los Angeles
location.location.people_born_here
Toby Bailey

Los Angeles
location.location.people_born_here
Dennis Northcutt

Los Angeles
location.location.people_born_here
Kabeer Gbaja-Biamila

Los Angeles
location.location.people_born_here
Billy Miller

Los Angeles
location.location.people_born_here
Andre Miller

Los Angeles
location.location.people_born_here
Arthur Lee


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

Caribbean
location.location.contains
Saint Lucia

Saint Lucia
common.topic.notable_types
Country


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

Folsom Lake
location.location.time_zones
Pacific Time Zone

Raging Waters Sacramento
location.location.time_zones
Pacific Time Zone


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

Pittsburgh Steelers
sports.sports_team.fight_song
Renegade


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?y,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:government.governmental_jurisdiction.governing_officials ?k .
?k ns:government.government_position_held.appointed_by ns:m.02pkb1c .
?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.0fkvn .
FILTER(NOT EXISTS {?y ns:government.government_position_held.from ?sk0} ||
EXISTS {?y ns:government.government_position_held.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "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) })
}


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

Egypt
location.country.currency_used
Egyptian pound


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?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.016b9c .
?c ns:sports.sports_team.colors ?x .
}

Dallas Cowboys
sports.professional_sports_team.owner_s
Jerry Jones

Dallas Cowboys
sports.sports_team.colors
White

Dallas Cowboys
sports.sports_team.colors
Blue

Dallas Cowboys
sports.sports_team.colors
Royal blue

Dallas Cowboys
sports.sports_team.colors
Navy Blue

Dallas Cowboys
sports.sports_team.colors
Silver


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

Michael Bublé
people.person.profession
Actor

Michael Bublé
people.person.profession
Singer

Michael Bublé
people.person.profession
Songwriter


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.078d2b .
?c ns:organization.organization.founders ?x .
}

New York University
organization.organization.founders
Albert Gallatin

New York University
organization.organization.founders
Mordecai Manuel Noah


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


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

Ukraine
location.country.languages_spoken
Romanian Language

Ukraine
location.country.languages_spoken
Hungarian language

Ukraine
location.country.languages_spoken
Russian Language

Ukraine
location.country.languages_spoken
Ukrainian Language

Ukraine
location.country.languages_spoken
Albanian language

Ukraine
location.country.languages_spoken
Moldovan language

Ukraine
location.country.languages_spoken
Tatar Language


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

Pittsburgh Steelers
sports.sports_team.championships
2009 AFC Championship Game


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.0rczx)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0rczx ns:location.location.contains ?x .
?x ns:common.topic.notable_types ns:m.01y2hnl .
?x ns:education.educational_institution.newspaper ns:m.02pqh9f .
}

Greeley
location.location.contains
University of Northern Colorado

University of Northern Colorado
common.topic.notable_types
College/University


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.07fbnf)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.07fbnf ns:sports.sports_league.teams ?y .
?y ns:sports.sports_league_participation.team ?x .
?x ns:sports.professional_sports_team.owner_s ns:m.01hf9v .
}

Los Angeles Angels of Anaheim
sports.professional_sports_team.owner_s
Arte Moreno


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.05zjd)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05zjd ns:language.human_language.countries_spoken_in ?x .
?x ns:location.statistical_region.merchandise_trade_percent_of_gdp ?c .
?c ns:measurement_unit.dated_percentage.rate "100.72" .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.05zjd)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05zjd ns:language.human_language.countries_spoken_in ?x .
?x ns:location.statistical_region.part_time_employment_percent ?c .
?c ns:measurement_unit.dated_percentage.rate "10.8" .
}


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


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

Judaism
religion.religion.places_of_worship
Yanina Synagogue


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

Hannah Montana and Miley Cyrus: Best of Both Worlds Concert

Miley Cyrus
music.artist.concert_tours
Hannah Montana: World Tour 2010/2011


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.05hp_9)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05hp_9 ns:film.film_character.portrayed_in_films ?y .
?y ns:film.performance.actor ?x .
?x ns:medicine.notable_person_with_medical_condition.condition ns:m.0m32h .
}


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.01hf7f)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.01hf7f ns:base.culturalevent.event.entity_involved ?x .
?x ns:location.country.capital ns:m.0dzt9 .
}

Confederate States of America
location.country.capital
Richmond


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

Guatemala
location.country.currency_used
Guatemalan quetzal


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

Greece
location.country.languages_spoken
Greek Language

Greece
location.country.languages_spoken
Albanian 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.country.administrative_divisions ns:m.03xplf .
?c ns:location.country.currency_used ?x .
}

Dominican Republic
location.country.currency_used
Dominican peso


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.04510)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.04510 ns:influence.influence_node.influenced_by ?x .
?x ns:medicine.notable_person_with_medical_condition.condition ns:m.029sk .
}

Jackson Pollock
influence.influence_node.influenced_by
Pablo Picasso


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.09gfxrx .
?c ns:people.person.profession ?x .
}

Michael Bublé
music.artist.concert_tours
Crazy Love Tour

Michael Bublé
people.person.profession
Actor

Michael Bublé
people.person.profession
Singer

Michael Bublé
people.person.profession
Songwriter


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.05zjd)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05zjd ns:language.human_language.countries_spoken_in ?x .
?x ns:location.statistical_region.gdp_growth_rate ?c .
?c ns:measurement_unit.dated_percentage.rate "-0.094096" .
}


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

South Korea
location.country.capital
Seoul


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.location.time_zones ns:m.0y49btq .
?c ns:royalty.kingdom.rulers ?x .
?x ns:common.topic.notable_types ns:m.04fnrhx .
}

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

Australia
royalty.kingdom.rulers
Elizabeth II

Elizabeth II
common.topic.notable_types
Monarch


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

New York Knicks
basketball.basketball_team.head_coach
Derek Fisher

New York Knicks
sports.sports_team.championships
1973 NBA 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:architecture.architect.structures_designed ns:m.026z765 .
?c ns:base.kwebbase.kwtopic.disciplines ?x .
}

Andrew Carnegie
base.kwebbase.kwtopic.disciplines
financier

Andrew Carnegie
base.kwebbase.kwtopic.disciplines
steel


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


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:wine.wine_region.wine_styles ns:m.01jg9j .
?c ns:location.country.languages_spoken ?x .
}


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


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


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

Iran
location.country.currency_used
Iranian rial

Iran
location.country.form_of_government
Presidential system

Iran
location.country.form_of_government
Parliamentary system

Iran
location.country.form_of_government
Unitary state

Iran
location.country.form_of_government
Islamic republic


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

Taylor Swift
music.artist.concert_tours
The 1989 World Tour


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

Los Angeles Dodgers
sports.professional_sports_team.owner_s
Frank McCourt

Los Angeles Dodgers
sports.sports_team.championships
1959 World Series

Los Angeles Dodgers
sports.sports_team.championships
1963 World Series

Los Angeles Dodgers
sports.sports_team.championships
1981 World Series

Los Angeles Dodgers
sports.sports_team.championships
1965 World Series

Los Angeles Dodgers
sports.sports_team.championships
1988 World Series


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

Denmark
location.country.languages_spoken
German Language

Denmark
location.country.languages_spoken
Danish Language

Denmark
location.country.languages_spoken
Greenlandic language


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

Christianity
religion.religion.notable_figures
Marcion of Sinope


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.05zjd)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05zjd ns:language.human_language.countries_spoken_in ?x .
?x ns:location.statistical_region.foreign_direct_investment_net_inflows ?c .
?c ns:measurement_unit.dated_money_value.amount "-1019690513" .
}


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

Oceania
location.location.contains
New Zealand

New Zealand
base.biblioness.bibs_location.loc_type
Country


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


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

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


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

Tupac Shakur
people.person.place_of_birth
East Harlem


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

San Francisco Giants
sports.professional_sports_team.owner_s
Bill Neukom

San Francisco Giants
sports.sports_team.championships
2014 World Series


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.national_anthem ?k .
?k ns:government.national_anthem_of_a_country.anthem ns:m.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 ?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.02q_hzh .
?c ns:sports.sports_team.championships ?x .
?x ns:time.event.start_date ?sk0 .
}
ORDER BY DESC(xsd:datetime(?sk0))
LIMIT 1

San Francisco Giants
sports.sports_team.team_mascot
Crazy Crab


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

Bahamas
base.locations.countries.continent
North America


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

Illinois
location.location.time_zones
Central Time Zone


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.05zjd)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05zjd ns:language.human_language.countries_spoken_in ?x .
?x ns:location.statistical_region.population ?c .
?c ns:measurement_unit.dated_integer.number "10004081" .
}


#MANUAL SPARQL
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?from,?p,?x,?c,?y,?z
WHERE {
ns:m.03_js ns:government.politician.government_positions_held ?p .
?p ns:government.government_position_held.office_position_or_title ns:m.060d2 .
?p ns:government.government_position_held.from ?from .
ns:m.03_js ns:government.politician.government_positions_held ?y .
?y ns:government.government_position_held.office_position_or_title ?x .
?y ns:government.government_position_held.from ?z .
filter(xsd:datetime(?z) - xsd:datetime(?from) < 0)
?x ns:government.government_office_or_title.office_holders ?c .
?c ns:government.government_position_held.from "1782-04-19"^^xsd:dateTime .
}

United States Ambassador to the Netherlands


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.04306rv)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.04306rv ns:language.human_language.countries_spoken_in ?x .
?x ns:location.country.official_language ns:m.04306rv .
?x ns:location.location.contains ?c .
?c ns:aviation.airport.serves ns:m.05g2b .
}

Germany
location.country.official_language
German Language

Germany
location.location.contains
Weeze Airport

Weeze Airport
aviation.airport.serves
Nijmegen


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

San Francisco Giants
sports.sports_team.championships
2010 World Series

San Francisco Giants
sports.sports_team.championships
2012 World Series


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

Taoism
religion.religion.texts
Zhuang Zhou

Taoism
religion.religion.texts
Tao Te Ching


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.05zjd)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05zjd ns:language.human_language.countries_spoken_in ?x .
?x ns:location.statistical_region.long_term_unemployment_rate ?c .
?c ns:measurement_unit.dated_percentage.rate "11.6" .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.04ykz)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.04ykz ns:location.location.partially_contained_by ?y .
?y ns:location.partial_containment_relationship.partially_contained_by ?x .
?x ns:location.us_state.capital ns:m.04gxf .
}


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


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

Hawaii
film.film_location.featured_in_films
Girls! Girls! Girls!


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?sk0,?k,?x,?c,?y
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:film.actor.film ?k .
?k ns:film.performance.film ns:m.0crvgjw .
?c ns:sports.pro_athlete.teams ?y .
?y ns:sports.sports_team_roster.team ?x .
?y ns:sports.sports_team_roster.from ?sk0 .
}
ORDER BY xsd:datetime(?sk0)
LIMIT 1


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?k,?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:government.political_appointer.appointees ?k .
?k ns:government.government_position_held.office_position_or_title ns:m.07jrjrr .
?c ns:people.deceased_person.cause_of_death ?x .
}

Adolf Hitler
people.deceased_person.cause_of_death
Ballistic trauma

Adolf Hitler
people.deceased_person.cause_of_death
Suicide


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

Greece
location.country.languages_spoken
Greek Language

Greece
location.country.languages_spoken
Albanian 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:music.featured_artist.recordings ns:m.0dqpwnq .
?c ns:music.artist.origin ?x .
}

The Dark of the Matinee (Spanish version)

Franz Ferdinand
music.artist.origin
Glasgow


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

French
language.human_language.language_family
Gallo-Romance languages


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:book.author.book_editions_published ns:m.040v_ty .
?c ns:law.inventor.inventions ?x .
}

Benjamin Franklin
book.author.book_editions_published
Poor Richard's Almanac of 1735

Benjamin Franklin
law.inventor.inventions
Glass harmonica

Benjamin Franklin
law.inventor.inventions
Franklin stove

Benjamin Franklin
law.inventor.inventions
Lightning rod

Benjamin Franklin
law.inventor.inventions
Bifocals


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.0vmt)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0vmt ns:government.governmental_jurisdiction.governing_officials ?y .
?y ns:government.government_position_held.office_holder ?x .
?y ns:government.government_position_held.basic_title ns:m.0fkvn .
FILTER(NOT EXISTS {?y ns:government.government_position_held.from ?sk0} ||
EXISTS {?y ns:government.government_position_held.from ?sk1 .
FILTER(xsd:datetime(?sk1) <= "2009-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) >= "2009-01-01"^^xsd:dateTime) })
?x ns:government.politician.government_positions_held ?c .
?c ns:government.government_position_held.basic_title ns:m.09n5b9 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?c,?y,?x
WHERE {
FILTER (?x != ns:m.04ykz)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.04ykz ns:location.location.partially_contained_by ?y .
?y ns:location.partial_containment_relationship.partially_contained_by ?x .
?x ns:government.governmental_jurisdiction.official_symbols ?c .
?c ns:location.location_symbol_relationship.date_adopted ?num .
FILTER (?num > "2001"^^xsd:dateTime) .
}


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

Adam Sandler
film.producer.film
Just Go With It


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

Rome
film.film_location.featured_in_films
Madly in Love

Rome
location.location.containedby
Province of Rome


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:periodicals.newspaper_circulation_area.newspapers ns:m.0czccp .
?c ns:olympics.olympic_host_city.olympics_hosted ?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:people.person.quotations ns:m.048g2gr .
?c ns:people.person.profession ?x .
}

Martin Luther
people.person.quotations
The devil is God's ape!

Martin Luther
people.person.profession
Theologian

Martin Luther
people.person.profession
Professor

Martin Luther
people.person.profession
Writer

Martin Luther
people.person.profession
Physician

Martin Luther
people.person.profession
Priest

Martin Luther
people.person.profession
Monk


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

Dominican Republic
location.country.languages_spoken
Samaná English

Dominican Republic
location.country.languages_spoken
Spanish Language

Dominican Republic
location.country.languages_spoken
Haitian Creole


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:periodicals.newspaper_circulation_area.newspapers ns:m.05f4_4z .
?c ns:location.country.official_language ?x .
}

Egypt
location.country.official_language
Modern Standard Arabic


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

Laziness may appear attractive but work gives satisfaction.


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.082db)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.082db ns:music.artist.genre ?x .
?x ns:film.film_subject.films ns:m.03qp5b1 .
}

Wolfgang Amadeus Mozart
music.artist.genre
Opera

Opera
film.film_subject.films
Everybody Does It


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

Murder Was the Case
film.film.directed_by
Fab Five Freddy


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

Benjamin Franklin
book.author.book_editions_published
Poor Richard's Almanac of 1735

Benjamin Franklin
people.person.place_of_birth
Boston


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?y,?x
WHERE {
FILTER (?x != ns:m.06qjgc)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.06qjgc 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) <= "2010-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) >= "2010-01-01"^^xsd:dateTime) })
?x ns:sports.sports_team.founded "1899-11-29"^^xsd:dateTime .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?x
WHERE {
FILTER (?x != ns:m.0md6f)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0md6f ns:location.location.events ?x .
?x ns:time.event.included_in_event ns:m.081pw .
?x ns:military.military_conflict.commanders ?c .
?c ns:military.military_command.military_combatant ns:m.07ssc .
}

Dunkirk
location.location.events
Battle of Dunkirk

Battle of Dunkirk
time.event.included_in_event
World War II


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

Trey Songz
music.featured_artist.recordings
Out of My Head


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?c,?y,?x
WHERE {
FILTER (?x != ns:m.04ykz)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.04ykz ns:location.location.partially_contained_by ?y .
?y ns:location.partial_containment_relationship.partially_contained_by ?x .
?x ns:government.governmental_jurisdiction.official_symbols ?c .
?c ns:location.location_symbol_relationship.date_adopted ?num .
FILTER (?num < "2001"^^xsd:dateTime) .
}


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

Australia
royalty.kingdom.rulers
Elizabeth II

Oceania
location.location.contains
New Zealand

New Zealand
base.biblioness.bibs_location.loc_type
Country

New Zealand
royalty.kingdom.rulers
Elizabeth II

Oceania
location.location.contains
Papua New Guinea

Papua New Guinea
base.biblioness.bibs_location.loc_type
Country

Papua New Guinea
royalty.kingdom.rulers
Elizabeth II

Oceania
location.location.contains
Solomon Islands

Solomon Islands
base.biblioness.bibs_location.loc_type
Country

Solomon Islands
royalty.kingdom.rulers
Elizabeth II


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.04f1s6)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.04f1s6 ns:film.actor.film ?y .
?y ns:film.performance.film ?x .
?x ns:award.award_nominated_work.award_nominations ?c .
?c ns:award.award_nomination.notes_description "Based on his book"@en .
}


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

Race to Witch Mountain
film.film.film_casting_director
Sarah Finn


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

Cold Mountain
film.film.directed_by
Anthony Minghella


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


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

Eastern Europe
location.location.contains
Georgia

Georgia
location.location.events
Battle of Partskhisi


#MANUAL SPARQL
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?yr,?awd,?k,?x,?c,?y
WHERE {
?c ns:film.actor.film ?k .
?k ns:film.performance.character ns:m.0gz5pws .
?c ns:award.award_winner.awards_won ?y .	# Tom Hanks
  ?y ns:award.award_honor.honored_for ?x .
  ?y ns:award.award_honor.year ?yr ;
     ns:award.award_honor.award ?awd .
  ?awd ns:award.award_category.category_of ns:m.0g_w .  # Academy Awards
}
ORDER BY ?yr
LIMIT 1

Tom Hanks
award.award_winner.awards_won
?y	# Tom Hanks

Academy Award for Best Actor
award.award_category.category_of
Academy Awards


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?c,?y,?x
WHERE {
FILTER (?x != ns:m.05hp_9)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.05hp_9 ns:film.film_character.portrayed_in_films ?y .
?y ns:film.performance.actor ?x .
?x ns:award.award_nominee.award_nominations ?c .
?c ns:award.award_nomination.ceremony ns:m.01hfr2 .
}


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?x
WHERE {
FILTER (?x != ns:m.06cmp)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.06cmp ns:location.country.capital ?x .
?x ns:fictional_universe.fictional_setting.fictional_characters_born_here ns:m.0n2_v3s .
}

Roman Empire
location.country.capital
Constantinople


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


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?x
WHERE {
FILTER (?x != ns:m.0713r)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0713r ns:sports.sports_team.championships ?x .
?x ns:time.event.end_date ?num .
FILTER (?num > "2010-11-01"^^xsd:dateTime) .
}

San Francisco Giants
sports.sports_team.championships
2012 World Series

San Francisco Giants
sports.sports_team.championships
2014 World Series


PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT ?num,?x
WHERE {
FILTER (?x != ns:m.0261m)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0261m ns:location.location.contains ?x .
?x ns:common.topic.notable_types ns:m.01mp .
?x ns:location.country.iso_numeric ?num .
}
ORDER BY xsd:integer(?num) LIMIT 1


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

Toronto
location.location.time_zones
Eastern 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:book.author.book_editions_published ns:m.040v_yc .
?c ns:people.person.place_of_birth ?x .
}

Benjamin Franklin
book.author.book_editions_published
Poor Richard's Almanac of 1757

Benjamin Franklin
people.person.place_of_birth
Boston


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:common.topic.image ns:m.04r6z74 .
?c ns:common.topic.notable_types ?x .
}

Calabria
common.topic.image
Flag of Calabria

Calabria
common.topic.notable_types
Italian region


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