#-------------------------------------------------------
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, "paz vega", "i")
    FILTER ( lang(?artistName) = "en" )
  }
#-------------------------------------------------------
SELECT  ?property ?hasValue ?isValueOf
WHERE
  {   { <http://dbpedia.org/resource/United_States_of_America> ?property ?hasValue }
    UNION
      { ?isValueOf ?property <http://dbpedia.org/resource/United_States_of_America> }
  }
#-------------------------------------------------------
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  dbont: <http://dbpedia.org/ontology/>
PREFIX  dbp:  <http://dbpedia.org/property/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT  ?link ?name
WHERE
  {   { ?link rdf:type dbont:MusicalArtist }
    UNION
      { ?link rdf:type dbont:band }
    ?link foaf:name ?name
    FILTER regex(?name, "anastacia", "i")
  }
#-------------------------------------------------------
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
#-------------------------------------------------------
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  ?label ?s ?subject
WHERE
  { ?s rdfs:label ?label .
    ?s skos:subject ?subject .
    ?s foaf:page <http://en.wikipedia.org/wiki/Java_%28programming_language%29>
    FILTER ( lang(?label) = "en" )
  }
#-------------------------------------------------------
PREFIX  skos: <http://www.w3.org/2004/02/skos/core#>

SELECT  ?film ?x ?y
WHERE
  { ?film skos:subject <http://dbpedia.org/resource/Category:American_films> .
    ?film ?x ?y
  }
#-------------------------------------------------------
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
  { :Conkey-Stevens_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  :     <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
#-------------------------------------------------------
SELECT  *
WHERE
  { ?s ?p ?v }
#-------------------------------------------------------
PREFIX  dbprop: <http://dbpedia.org/property/>
PREFIX  dbpedia: <http://dbpedia.org/ontology/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT DISTINCT  ?compound
WHERE
  { ?compound rdf:type dbpedia:ChemicalCompound }
ORDER BY ?compound
OFFSET  0
LIMIT   1000
#-------------------------------------------------------
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  *
WHERE
  {   { ?type rdf:type owl:Class }
    UNION
      { ?type rdf:type <http://dbpedia.org/ontology/FormulaOneRacer> }
    ?type rdfs:label ?label
    FILTER ( lang(?label) = "en" )
  }
ORDER BY ?label
#-------------------------------------------------------
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  ?name ?place ?description_en ?musician
WHERE
  { ?musician skos:subject <http://dbpedia.org/resource/Category:German_musicians> .
    ?musician foaf:name ?name
    OPTIONAL
      { ?musician rdfs:comment ?description_en
        FILTER ( lang(?description_en) = "en" )
      }
  }
#-------------------------------------------------------
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  category: <http://dbpedia.org/resource/Category:>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  dbo:  <http://dbpedia.org/ontology/>
PREFIX  resource: <http://dbpedia.org/resource/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  property: <http://dbpedia.org/property/>
PREFIX  skos: <http://www.w3.org/2004/02/skos/core#>

SELECT DISTINCT  ?id
WHERE
  { ?id skos:subject ?usr
    { ?usr skos:broader category:Rivers_of_the_United_States_by_state }
  }
ORDER BY ?id
#-------------------------------------------------------
SELECT DISTINCT  ?a
WHERE
  { ?a <http://dbpedia.org/ontology/floorCount> ?Concept }
#-------------------------------------------------------
SELECT  ?s
WHERE
  { ?s ?p ?o }
GROUP BY ?s
#-------------------------------------------------------
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" )
  }
#-------------------------------------------------------
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  ?movie ?title ?originalTitle ?nationality ?nationality2 ?releaseDate ?summary ?studioName ?duration ?url ?website ?directorName
WHERE
  { ?movie <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> dbpedia:Film .
    ?movie foaf:name ?title
    OPTIONAL
      { ?movie rdfs:label ?originalTitle }
    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 }
    OPTIONAL
      { ?movie dbpedia:director ?director }
    OPTIONAL
      { ?director rdfs:label ?directorName
        FILTER ( lang(?directorName) = "en" )
      }
    FILTER regex(?title, "I, Robot", "i")
    FILTER regex(?directorName, "Alex Proyas", "i")
    FILTER ( lang(?originalTitle) = "en" )
  }
#-------------------------------------------------------
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  ?property
WHERE
  { _:b0 ?property _:b1 }
ORDER BY ?property
LIMIT   10
#-------------------------------------------------------
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  geo:  <http://www.w3.org/2003/01/geo/wgs84_pos#>
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  ?subject ?label ?lat ?long
WHERE
  { ?subject geo:lat ?lat .
    ?subject geo:long ?long .
    ?subject rdfs:label ?label
    FILTER ( ( ( ( ( ( xsd:float(?lat) - 39.993333 ) <= 0.05 ) && ( ( 39.993333 - xsd:float(?lat) ) <= 0.05 ) ) && ( ( xsd:float(?long) - 116.337778 ) <= 0.05 ) ) && ( ( 116.337778 - xsd:float(?long) ) <= 0.05 ) ) && ( lang(?label) = "en" ) )
  }
LIMIT   20
#-------------------------------------------------------
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/Telecommunication> } }
    ?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 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  200
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  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  ?subject ?label ?released ?abstract
WHERE
  { ?subject rdf:type <http://dbpedia.org/ontology/City> .
    ?subject rdfs:comment ?abstract .
    ?subject rdfs:label ?label
    FILTER ( ( lang(?abstract) = "en" ) && ( lang(?label) = "en" ) )
  }
ORDER BY ?label
LIMIT   20
#-------------------------------------------------------
SELECT DISTINCT  ?p
WHERE
  { ?s <http://dbpedia.org/property/field> ?field .
    ?s2 ?p ?field
  }
#-------------------------------------------------------
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  dc:   <http://purl.org/dc/elements/1.1/>
PREFIX  dbpedia2: <http://dbpedia.org/property/>
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  skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX  dr:   <http://dbpedia.org/resource/>

SELECT  ?a ?l
WHERE
  { ?a rdf:type foaf:Person .
    ?a rdfs:label ?l
  }
LIMIT   1000
#-------------------------------------------------------
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  ?When
WHERE
  { :Fred_Durst dbpedia2:born ?When
    FILTER ( datatype(?When) = xsd:date )
  }
#-------------------------------------------------------
SELECT  ?property ?hasValue ?isValueOf
WHERE
  {   { <http://dbpedia.org/resource/Warren_Buffett> ?property ?hasValue }
    UNION
      { ?isValueOf ?property <http://dbpedia.org/resource/Warren_Buffett> }
  }
#-------------------------------------------------------
SELECT  ?place ?pred
WHERE
  { ?place ?pred <http://dbpedia.org/resource/Restaurant> }
#-------------------------------------------------------
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  owl:  <http://www.w3.org/2002/07/owl#>

SELECT DISTINCT  ?title ?description ?sameas
WHERE
  { <http://dbpedia.org/resource/Newsnight_Scotland> foaf:name ?title .
    <http://dbpedia.org/resource/Newsnight_Scotland> rdfs:comment ?description
    FILTER ( lang(?description) = "en" )
    OPTIONAL
      {   { ?sameas owl:sameAs <http://dbpedia.org/resource/Newsnight_Scotland> }
        UNION
          { <http://dbpedia.org/resource/Newsnight_Scotland> owl:sameAs ?sameas }
      }
  }
#-------------------------------------------------------
PREFIX  dc:   <http://purl.org/dc/elements/1.1/>
PREFIX  :     <http://dbpedia.org/resource/>
PREFIX  dbpedia2: <http://dbpedia.org/property/>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  dbpo: <http://dbpedia.org/ontology/>
PREFIX  dbpp: <http://dbpedia.org/property/>
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  ?name ?artist
WHERE
  { ?artist rdf:type dbpo:MusicalArtist .
    ?artist dbpedia2:name ?name
  }
OFFSET  10
LIMIT   10
#-------------------------------------------------------
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  ?n ?h
WHERE
  { ?x foaf:name ?n .
    ?x foaf:homepage ?h
    FILTER regex(str(?h), "org")
  }
#-------------------------------------------------------
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
WHERE
  { ?artist <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> dbpedia:Artist .
    ?artist rdfs:label ?artistName
      { OPTIONAL
          { ?artist dbprop:occupation ?occupation
            FILTER ( regex(?occupation, "director", "i") || regex(?occupation, "actress", "i") )
          }
      }
    UNION
      { OPTIONAL
          { ?artist dbpedia:occupation ?occupation
            FILTER ( ?occupation = <http://dbpedia.org/resource/Film_director> )
          }
      }
    FILTER regex(?artistName, "eastwood", "i")
    FILTER ( lang(?artistName) = "en" )
  }
#-------------------------------------------------------
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  ?page ?name
WHERE
  { ?x foaf:page ?page .
    ?x foaf:name ?name
  }
#-------------------------------------------------------
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/Free_(Dani_Harmer_song)> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Calendar> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Trackback> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Holocene> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Destroyed> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Written_By> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Copyright> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Posts> }
    }
    ?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 }
  }
#-------------------------------------------------------
PREFIX  dbprop: <http://dbpedia.org/property/>
PREFIX  dbpedia: <http://dbpedia.org/ontology/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT DISTINCT  ?compound ?inchi
WHERE
  { ?compound rdf:type dbpedia:ChemicalCompound }
ORDER BY ?compound
OFFSET  0
LIMIT   1000
#-------------------------------------------------------
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT  ?name ?nick
WHERE
  { ?x rdf:type foaf:Person .
    ?x foaf:name ?name
    OPTIONAL
      { ?x foaf:nick ?nick }
  }
#-------------------------------------------------------
PREFIX  dc:   <http://purl.org/dc/elements/1.1/>
PREFIX  :     <http://dbpedia.org/resource/>
PREFIX  dbpedia2: <http://dbpedia.org/property/>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  db-ont: <http://dbpedia.org/ontology/>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
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#>
PREFIX  db-work: <http://dbpedia.org/ontology/Work/>

SELECT REDUCED  ?id ?durata ?data_uscita ?incasso
WHERE
  { ?id rdf:type db-ont:Film
    OPTIONAL
      { ?id db-work:runtime ?durata }
    OPTIONAL
      { ?id db-ont:releaseDate ?data_uscita }
    OPTIONAL
      { ?id db-ont:gross ?incasso }
  }
LIMIT   20
#-------------------------------------------------------
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  ?name ?person ?clubs
WHERE
  { ?person dbpedia2:nationalteam :Spain_national_football_team .
    ?person dbpedia2:clubs ?clubs .
    ?person foaf:name ?name
  }
ORDER BY ?name
#-------------------------------------------------------
SELECT DISTINCT  ?subject ?predicate ?object
WHERE
  {   { <http://dbpedia.org/resource/Barnaby_Rudge> ?predicate ?object }
    UNION
      { ?subject ?predicate <http://dbpedia.org/resource/Barnaby_Rudge> }
    FILTER ( ( lang(?object) = "en" ) || ( lang(?object) = "" ) )
  }
ORDER BY ?predicate ?subject
OFFSET  0
LIMIT   200
#-------------------------------------------------------
SELECT DISTINCT  ?subject ?predicate ?object
WHERE
  {   { <http://dbpedia.org/resource/Damon_Lindelof> ?predicate ?object }
    UNION
      { ?subject ?predicate <http://dbpedia.org/resource/Damon_Lindelof> }
    FILTER ( ( lang(?object) = "en" ) || ( lang(?object) = "" ) )
  }
ORDER BY ?predicate ?subject
OFFSET  0
LIMIT   200
#-------------------------------------------------------
PREFIX  dbpp: <http://dbpedia.org/property/>

SELECT DISTINCT  ?containedIn
WHERE
  {   { <http://dbpedia.org/resource/Magic_Kitchen> dbpp:writer ?containedIn }
    UNION
      { <http://dbpedia.org/resource/Magic_Kitchen> dbpp:executiveProducer ?containedIn }
    UNION
      { <http://dbpedia.org/resource/Magic_Kitchen> dbpp:creator ?containedIn }
    UNION
      { <http://dbpedia.org/resource/Magic_Kitchen> dbpp:starring ?containedIn }
    UNION
      { <http://dbpedia.org/resource/Magic_Kitchen> dbpp:executiveProducer ?containedIn }
    UNION
      { <http://dbpedia.org/resource/Magic_Kitchen> dbpp:guest ?containedIn }
    UNION
      { <http://dbpedia.org/resource/Magic_Kitchen> dbpp:director ?containedIn }
    UNION
      { <http://dbpedia.org/resource/Magic_Kitchen> dbpp:producer ?containedIn }
    UNION
      { <http://dbpedia.org/resource/Magic_Kitchen> dbpp:series ?containedIn }
  }
#-------------------------------------------------------
SELECT  ?property ?hasValue ?isValueOf
WHERE
  {   { <http://dbpedia.org/resource/Michael_Mann_%28film_director%29> ?property ?hasValue }
    UNION
      { ?isValueOf ?property <http://dbpedia.org/resource/Michael_Mann_%28film_director%29> }
  }
#-------------------------------------------------------
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  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
  {   { <http://dbpedia.org/resource/Category:Google> rdfs:label ?title
        FILTER langMatches(lang(?title), "EN")
      }
    UNION
      { <http://dbpedia.org/resource/Category:Google> skos:broader ?broader .
        ?broader rdfs:label ?title
        FILTER langMatches(lang(?title), "EN")
      }
    UNION
      { ?narrower skos:broader <http://dbpedia.org/resource/Category:Google> .
        ?narrower rdfs:label ?title
        FILTER langMatches(lang(?title), "EN")
      }
    UNION
      { ?article skos:subject <http://dbpedia.org/resource/Category:Google> .
        ?article rdfs:label ?title
        FILTER langMatches(lang(?title), "EN")
      }
  }
#-------------------------------------------------------
PREFIX  dc:   <http://purl.org/dc/elements/1.1/>
PREFIX  :     <http://dbpedia.org/resource/>
PREFIX  dbpedia2: <http://dbpedia.org/property/>
PREFIX  dbpedia-owl: <http://dbpedia.org/ontology/>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
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  dbpprop: <http://dbpedia.org/property/>
PREFIX  skos: <http://www.w3.org/2004/02/skos/core#>

SELECT  ?actor1 ?actor2 ?pelicula1 ?pelicula2
WHERE
  { ?actor1 rdf:type dbpedia-owl:Actor .
    ?actor2 rdf:type dbpedia-owl:Actor
      { ?actor1 dbpedia-owl:partner ?actor2 }
    UNION
      { ?actor1 dbpedia-owl:spouse ?actor2 }
    ?pelicula1 dbpedia2:starring ?actor1 .
    ?pelicula1 dbpedia2:starring ?actor2 .
    ?pelicula2 dbpedia2:starring ?actor1 .
    ?pelicula2 dbpedia2:starring ?actor2
    FILTER ( ?pelicula1 != ?pelicula2 )
  }
ORDER BY ?actor1
#-------------------------------------------------------
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
  { <http://dbpedia.org/resource/Johnson%2C_Minnesota> ?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), "*") ) ) )
  }
#-------------------------------------------------------
SELECT  ?n
WHERE
  { {   { ?n <http://www.w3.org/2004/02/skos/core#broader> <http://dbpedia.org/resource/Category:Process> }
      UNION
        { <http://dbpedia.org/resource/Process> <http://www.w3.org/2004/02/skos/core#subject> ?sub .
          ?n <http://www.w3.org/2004/02/skos/core#broader> ?sub
        }
    }
  }
#-------------------------------------------------------
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  dbo:  <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 DISTINCT  ?Name ?Birth ?Death ?BirthPlace ?Field ?Prizes
WHERE
  { ?person rdf:type dbo:Scientist .
    ?person foaf:name ?Name .
    ?person dbo:birthDate ?Birth .
    ?person dbo:deathDate ?Death .
    ?person dbpedia2:birthPlace ?BirthPlace .
    ?person dbpedia2:field ?Field
    OPTIONAL
      { ?person dbpedia2:prizes ?Prizes }
    FILTER ( ?Death < "1950-01-01"^^xsd:date )
  }
ORDER BY ?Name
LIMIT   100
#-------------------------------------------------------
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  ?player ?name
WHERE
  { ?s foaf:page ?player .
    ?s foaf:name ?name .
    ?s rdf:type <http://dbpedia.org/ontology/SoccerPlayer> .
    ?s dbpedia2:position ?position .
    ?s dbpedia2:clubs ?club .
    ?club <http://dbpedia.org/ontology/capacity> ?cap .
    ?s <http://dbpedia.org/ontology/birthPlace> ?place .
    ?place ?population ?pop
    OPTIONAL
      { ?s <http://dbpedia.org/ontology/number> ?tricot }
    FILTER ( ?population IN (dbpedia2:populationEstimate, dbpedia2:populationCensus, dbpedia2:statPop) )
    FILTER ( xsd:int(?pop) > 10000000 )
    FILTER ( xsd:int(?cap) < 40000 )
    FILTER regex(?name, "^s", "i")
    FILTER ( ( ( ?position = "Goalkeeper"@en ) || ( ?position = <http://dbpedia.org/resource/Goalkeeper_%28association_football%29> ) ) || ( ?position = <http://dbpedia.org/resource/Goalkeeper_%28football%29> ) )
  }
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/Web_search_engine> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Google_search> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Google> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Censorship> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Free_(ISP)> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Calendar> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/People's_Republic_of_China> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/July> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Free_(love)> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Driver_(video_game)> }
    }
    ?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 }
  }
