#-------------------------------------------------------
SELECT DISTINCT  ?field
WHERE
  { ?s <http://dbpedia.org/property/field> ?field }
#-------------------------------------------------------
PREFIX  o:    <http://dbpedia.org/ontology/>

SELECT  *
WHERE
  { FILTER ( ?y = <http://dbpedia.org/resource/Julius_Caesar> )
    ?b o:commander ?y
  }
#-------------------------------------------------------
PREFIX  dc:   <http://purl.org/dc/elements/1.1/>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  dbpedia: <http://dbpedia.org/>
PREFIX  owl:  <http://www.w3.org/2002/07/owl#>
PREFIX  xsd:  <http://www.w3.org/2001/XMLSchema#>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  do:   <http://dbpedia.org/ontology/>
PREFIX  dp:   <http://dbpedia.org/property/>
PREFIX  skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX  dr:   <http://dbpedia.org/resource/>

SELECT DISTINCT  ?r ?n ?b ?a
WHERE
  { ?r rdf:type do:Actor
    OPTIONAL
      { ?r dp:name ?n }
    OPTIONAL
      { ?r dp:birthdate ?b }
    OPTIONAL
      { ?r do:abstract ?a }
  }
LIMIT   1000
#-------------------------------------------------------
PREFIX  dc:   <http://purl.org/dc/elements/1.1/>
PREFIX  :     <http://dbpedia.org/resource/>
PREFIX  dbpedia2: <http://dbpedia.org/property/>
PREFIX  geo:  <http://www.w3.org/2003/01/geo/wgs84_pos#>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  vcard: <http://www.w3.org/2001/vcard-rdf/3.0#>
PREFIX  dcterms: <http://purl.org/dc/terms/>
PREFIX  sioc: <http://rdfs.org/sioc/ns#>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  co:   <http://www.geonames.org/countries/#>
PREFIX  category: <http://dbpedia.org/resource/Category:>
PREFIX  time: <http://pervasive.semanticweb.org/ont/2004/06/time#>
PREFIX  p:    <http://dbpedia.org/property/>
PREFIX  dbpedia: <http://dbpedia.org/>
PREFIX  xsd:  <http://www.w3.org/2001/XMLSchema#>
PREFIX  owl:  <http://www.w3.org/2002/07/owl#>
PREFIX  swrc: <http://swrc.ontoware.org/ontology#>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  rss:  <http://purl.org/rss/1.0/>
PREFIX  cyc:  <http://www.cyc.com/2004/06/04/cyc#>
PREFIX  skos: <http://www.w3.org/2004/02/skos/core#>

SELECT  ?label ?property ?hasValue ?itemlabel
WHERE
  { :Blish-Garret_House ?property ?hasValue
    OPTIONAL
      { ?hasValue rdfs:label ?itemlabel }
    OPTIONAL
      { ?property rdfs:label ?label }
    FILTER ( ( ( langMatches(lang(?label), "en") || ( ! langMatches(lang(?label), "*") ) ) && ( langMatches(lang(?hasValue), "en") || ( ! langMatches(lang(?hasValue), "*") ) ) ) && ( langMatches(lang(?itemlabel), "en") || ( ! langMatches(lang(?itemlabel), "*") ) ) )
  }
#-------------------------------------------------------
PREFIX  db:   <http://dbpedia.org/resource/>
PREFIX  dbpedia-owl: <http://dbpedia.org/ontology/>
PREFIX  dbprop: <http://dbpedia.org/property/>

SELECT  ?s ?o
WHERE
  { ?s dbprop:pubchem ?o }
#-------------------------------------------------------
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  dbprop: <http://dbpedia.org/property/>
PREFIX  dbpedia: <http://dbpedia.org/ontology/>

SELECT DISTINCT  ?artist ?artistName ?movie ?title ?originalTitle ?nationality ?nationality2 ?releaseDate ?summary ?studioName ?duration ?url ?website
WHERE
  { ?artist <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> dbpedia:Artist .
    ?artist rdfs:label ?artistName .
    ?movie <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> dbpedia:Film .
    ?movie dbpedia:director ?artist
    OPTIONAL
      { ?movie rdfs:label ?originalTitle
        FILTER ( lang(?originalTitle) = "en" )
      }
    OPTIONAL
      { ?movie dbprop:title ?title
        FILTER ( lang(?title) = "en" )
      }
    OPTIONAL
      { ?movie dbpedia:director ?director .
        ?director rdfs:label ?directorName
        FILTER ( lang(?directorName) = "en" )
      }
    OPTIONAL
      { ?movie dbprop:country ?country .
        ?country rdfs:label ?nationality
        FILTER ( lang(?nationality) = "en" )
      }
    OPTIONAL
      { ?movie dbprop:country ?nationality2
        FILTER ( lang(?nationality2) = "en" )
      }
    OPTIONAL
      { ?movie dbpedia:releaseDate ?releaseDate }
    OPTIONAL
      { ?movie dbpedia:abstract ?summary
        FILTER ( lang(?summary) = "fr" )
      }
    OPTIONAL
      { ?movie dbprop:distributor ?studio .
        ?studio rdfs:label ?studioName
        FILTER ( lang(?studioName) = "en" )
      }
    OPTIONAL
      { ?movie <http://dbpedia.org/ontology/Work/runtime> ?duration }
    OPTIONAL
      { ?movie foaf:homepage ?url }
    OPTIONAL
      { ?movie foaf:page ?website }
    FILTER regex(?artistName, "david fincher", "i")
    FILTER ( lang(?artistName) = "en" )
  }
#-------------------------------------------------------
SELECT  ?x ?abstract ?address
WHERE
  { ?x <http://dbpedia.org/ontology/abstract> ?abstract .
    ?x <http://dbpedia.org/ontology/address> ?address
    FILTER ( regex(?abstract, "a", "i") && regex(?address, "a", "i") )
  }
LIMIT   100
#-------------------------------------------------------
SELECT DISTINCT  ?subject ?predicate ?object
WHERE
  {   { <http://dbpedia.org/resource/Charles_Dickens> ?predicate ?object }
    UNION
      { ?subject ?predicate <http://dbpedia.org/resource/Charles_Dickens> }
    FILTER ( ( lang(?object) = "en" ) || ( lang(?object) = "" ) )
  }
ORDER BY ?predicate ?subject
OFFSET  0
LIMIT   200
#-------------------------------------------------------
PREFIX  dc:   <http://purl.org/dc/elements/1.1/>
PREFIX  :     <http://dbpedia.org/resource/>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  dbpedia2: <http://dbpedia.org/property/>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  dbpediaontology: <http://dbpedia.org/ontology/>
PREFIX  owl:  <http://www.w3.org/2002/07/owl#>
PREFIX  xsd:  <http://www.w3.org/2001/XMLSchema#>
PREFIX  dbpedia: <http://dbpedia.org/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  skos: <http://www.w3.org/2004/02/skos/core#>

SELECT  ?Where
WHERE
  {   { :Fred_Durst dbpedia2:born ?Where }
    UNION
      { :Fred_Durst dbpediaontology:birthPlace ?Where }
      { ?Where rdf:type dbpediaontology:Place }
    UNION
      { ?Where rdf:type dbpediaontology:City }
  }
#-------------------------------------------------------
PREFIX  dc:   <http://purl.org/dc/elements/1.1/>
PREFIX  :     <http://dbpedia.org/resource/>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  dbpedia2: <http://dbpedia.org/property/>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  owl:  <http://www.w3.org/2002/07/owl#>
PREFIX  xsd:  <http://www.w3.org/2001/XMLSchema#>
PREFIX  dbpedia: <http://dbpedia.org/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  skos: <http://www.w3.org/2004/02/skos/core#>

SELECT  *
WHERE
  { ?game skos:subject <http://dbpedia.org/resource/Category:First-person_shooters> .
    ?game foaf:name ?title
  }
ORDER BY ?title
#-------------------------------------------------------
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  dbprop: <http://dbpedia.org/property/>
PREFIX  dbpedia: <http://dbpedia.org/ontology/>

SELECT DISTINCT  ?artist ?artistName ?occupation ?shortDescription ?birthdate
WHERE
  { ?artist <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> dbpedia:Artist .
    ?artist rdfs:label ?artistName
    OPTIONAL
      { ?artist dbpedia:birthDate ?birthdate }
    OPTIONAL
      { ?artist dbprop:occupation ?occupation
        FILTER isLiteral(?occupation)
      }
    OPTIONAL
      { ?artist dbprop:shortDescription ?shortDescription }
    FILTER regex(?artistName, "clive owen", "i")
    FILTER ( lang(?artistName) = "en" )
  }
#-------------------------------------------------------
PREFIX  :     <http://dbpedia.org/resource/>
PREFIX  dbo:  <http://dbpedia.org/ontology/>
PREFIX  dbp:  <http://dbpedia.org/property/>

SELECT DISTINCT  ?s ?p ?o
WHERE
  {   { { ?s ?p ?o }
        FILTER ( ( ( ?s = :Virginia_Wolf ) && regex(?p, "(http://dbpedia.org/property/|http://dbpedia.org/ontology/)") ) && regex(?o, "http://dbpedia.org/resource/") )
      }
    UNION
      { { ?s ?p ?o }
        FILTER ( ( ( ?o = :Virginia_Wolf ) && regex(?p, "(http://dbpedia.org/property/|http://dbpedia.org/ontology/)") ) && regex(?s, "http://dbpedia.org/resource/") )
      }
  }
ORDER BY ?s ?p ?o
LIMIT   16
#-------------------------------------------------------
PREFIX  dc:   <http://purl.org/dc/elements/1.1/>
PREFIX  :     <http://dbpedia.org/resource/>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  dbpedia2: <http://dbpedia.org/property/>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  owl:  <http://www.w3.org/2002/07/owl#>
PREFIX  xsd:  <http://www.w3.org/2001/XMLSchema#>
PREFIX  dbpedia: <http://dbpedia.org/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  skos: <http://www.w3.org/2004/02/skos/core#>

SELECT DISTINCT  ?scientist
WHERE
  { ?s foaf:page ?scientist }
LIMIT   1000
#-------------------------------------------------------
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  dbp:  <http://dbpedia.org/property/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT DISTINCT  ?resource ?uri ?wtitle ?comment ?image
WHERE
  { {   { ?resource foaf:page <http://en.wikipedia.org/wiki/List_of_Latin_digraphs> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Von> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Beiträge_zur_genauern_Kenntniß_der_ehstnischen_Sprache> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Bewerber> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Rolle> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Lassen> }
    }
    ?resource foaf:page ?uri .
    ?resource rdfs:label ?wtitle
    FILTER langMatches(lang(?wtitle), "en")
    OPTIONAL
      { ?resource rdfs:comment ?comment
        FILTER langMatches(lang(?comment), "en")
      }
    OPTIONAL
      { ?resource foaf:depiction ?image }
  }
#-------------------------------------------------------
SELECT  *
WHERE
  { ?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Country> .
    ?s ?p ?o
  }
