Question: What are the top journals where Jean-Laurent Casanova has published, ranked by the number of publications, and what are their names (using abbreviations if available)?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?publication ?publicationLabel ( COUNT( ?work ) AS ?count ) WHERE {
  ?work wdt:P50 wd:Q17322542 .
  ?work wdt:P1433 ?publication .
  ?publication rdfs:label ?label .
  OPTIONAL {
    ?publication wdt:P1813 ?shortName
  }
  BIND( COALESCE ( ?shortName , ?label ) AS ?publicationLabel ) FILTER ( LANG( ?label ) = "en" )
}
GROUP BY ?publication ?publicationLabel
ORDER BY DESC ( ?count )

Which scientific journals have published the most papers by Jean-Laurent Casanova, and what are their full names or common abbreviations?

Show me a list of journals where Jean-Laurent Casanova has contributed, sorted by publication count, with abbreviations preferred over full titles when they exist.

SELECT ?var1 ?var2Label ( COUNT ( ?var3 ) AS ?var4 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q17322542> . ?var3 <http://www.wikidata.org/prop/direct/P1433> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var5Label . FILTER ( ( ( LANG ( ?var5Label ) = "en" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1813> ?var6 . } BIND ( COALESCE ( ?var6 , ?var5Label ) AS ?var2Label ). } GROUP BY ?var1 ?var2Label ORDER BY DESC( ?var4 )


Question: Parents of Émile Zola

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?parent WHERE {
  ?parent p:P40 ?statement .
  ?statement ps:P40 wd:Q504 .
}

Who are the parents of the French writer Émile Zola?

List the individuals who are biological parents of Émile Zola.

SELECT ?var1 ?var2 ( SAMPLE ( ?var3 ) AS ?var4 ) WHERE { { SELECT DISTINCT ?var1 ?var2 WHERE { ?var2 <http://www.wikidata.org/prop/statement/P40> <http://www.wikidata.org/entity/Q504> . ?var1 <http://www.wikidata.org/prop/P40> ?var2 . } LIMIT 101 } OPTIONAL { ?var2 ?var3 ?var5 . ?var6 <http://wikiba.se/ontology#qualifier> ?var3 . } } GROUP BY ?var1 ?var2


Question: Paintings created by Rembrandt

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?painting WHERE {
  ?painting wdt:P31 wd:Q3305213 .
  ?painting wdt:P170 wd:Q5598 .
}

List all artworks that are paintings and have Rembrandt as their creator.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3305213> . ?var1 <http://www.wikidata.org/prop/direct/P170> <http://www.wikidata.org/entity/Q5598> . }


Question: What heritage-designated sites are located near Helsinki, Finland, within the coordinates 24.9°E to 25.1°E and 59.9°N to 60.1°N?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
SELECT ?item ?itemLabel ?adminArea ?adminAreaLabel ?image ?heritage WHERE {
  ?item wdt:P625 ?coord .
  FILTER ( geof:latitude ( ?coord ) >= 59.9 && geof:latitude ( ?coord ) <= 60.1 && geof:longitude ( ?coord ) >= 24.9 && geof:longitude ( ?coord ) <= 25.1 ) OPTIONAL {
    ?item wdt:P131 ?adminArea .
  }
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  ?item p:P1435 ?heritage .
  OPTIONAL {
    ?adminArea rdfs:label ?adminAreaLabel .
    FILTER ( LANG( ?adminAreaLabel ) = 'en' )
  }
  OPTIONAL {
    ?item rdfs:label ?itemLabel .
    FILTER ( LANG( ?itemLabel ) = 'en' )
  }
}
LIMIT 10

Show me archaeological sites or cultural heritage locations in the Helsinki area with their administrative regions and images, if available.

List cultural heritage items in the 25°E, 60°N region of Finland, including their names and the administrative areas they belong to.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var4 ?var5 WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerWest> "POINT(25 60)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerEast> "POINT(25 60)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } ?var1 <http://www.wikidata.org/prop/P1435> ?var6 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,pl". } }


Question: What are the birth and death dates of Rupert Hughes?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?personLabel ?birthDate ?deathDate WHERE {
  BIND( wd:Q3453278 AS ?person ) .
  ?person wdt:P31 wd:Q5 .
  OPTIONAL {
    ?person wdt:P569 ?birthDate .
  }
  OPTIONAL {
    ?person wdt:P570 ?deathDate .
  }
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}

When was the American writer Rupert Hughes born and when did he die?

Can you tell me the full name, birth date, and death date of Rupert Hughes, the human being known for being a writer and screenwriter?

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q3453278> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the birth and death dates of William A. H. Loveland?

SELECT ?personLabel ?birthDate ?deathDate WHERE { BIND( wd:Q8003964 AS ?person ) . OPTIONAL { ?person wdt:P569 ?birthDate . } OPTIONAL { ?person wdt:P570 ?deathDate . } ?person rdfs:label ?personLabel . FILTER (langMatches(lang(?personLabel), "en")) }

When was William A. H. Loveland born and when did he die?

Can you tell me the full name, birth date, and death date of William A. H. Loveland?

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q8003964> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the birth and death dates of actor Byron Morrow?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?actorLabel ?birthDate ?deathDate WHERE {
  wd:Q1018624 rdfs:label ?actorLabel .
  FILTER(LANG(?actorLabel) = "en")
  OPTIONAL {
    wd:Q1018624 wdt:P569 ?birthDate .
  }
  OPTIONAL {
    wd:Q1018624 wdt:P570 ?deathDate .
  }
}

Can you tell me when Byron Morrow was born and when he died?

Provide the lifespan of Byron Morrow, the American actor, including his birth and death years.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q1018624> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What is the English label and description of the medical condition with MeSH ID D006408?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?itemLabel ?description WHERE {
  ?item wdt:P486 "D006408" .
  OPTIONAL {
    ?item rdfs:label ?itemLabel .
    FILTER ( LANG( ?itemLabel ) = "en" )
  }
  OPTIONAL {
    ?item schema:description ?description .
    FILTER ( LANG( ?description ) = "en" )
  }
}

What is the name and description in English of the subdural hematoma as identified by its MeSH ID D006408?

Please provide the English name and description of the medical condition that has the MeSH descriptor ID D006408.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P486> "D006408". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Units of energy in English

SELECT ?unit ?label WHERE { ?unit wdt:P31 wd:Q2916980 . ?unit rdfs:label ?label . FILTER(LANG(?label) = "en") }

What are the units of energy and their English names?

List all units of energy with their English labels.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q26708069> . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } }


Question: What are the geographic coordinates of Mynyddbach Chapel, and what are the coordinates of the administrative area it is located in?

SELECT ?chapelCoordinates ?administrativeAreaCoordinates WHERE { wd:Q6947882 wdt:P625 ?chapelCoordinates . OPTIONAL { wd:Q6947882 wdt:P131 ?administrativeArea . ?administrativeArea wdt:P625 ?administrativeAreaCoordinates . } }

Coordinates of Mynyddbach Chapel and its administrative region.

Show me the location of Mynyddbach Chapel and the location of the town or region it belongs to.

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q6947882> <http://www.wikidata.org/prop/direct/P625> ?var1 . OPTIONAL { <http://www.wikidata.org/entity/Q6947882> <http://www.wikidata.org/prop/direct/P131> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P625> ?var2 . } }


Question: What are the mountains in Belarus, and what are their elevations above sea level, sorted from highest to lowest?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?mountain ?mountainLabel ?latitude ?longitude ?area ?elevation ?isolation ?prominence ?parentPeak ?parentPeakLabel ?material ?materialLabel ?elevationUnitLabel ?isolationUnitLabel ?prominenceUnitLabel WHERE {
  ?mountain(wdt:P31 / wdt:P279 *) wd:Q8502 ; wdt:P17 wd:Q184 .
  OPTIONAL {
    ?mountain wdt:P625 ?coord .
    BIND(geof:latitude(?coord) AS ?latitude)
    BIND(geof:longitude(?coord) AS ?longitude)
  }
  OPTIONAL {
    ?mountain p:P2046 ?areaStmt .
    ?areaStmt ps:P2046 ?area ; pq:P518 ?areaUnit .
    OPTIONAL {
      ?areaUnit rdfs:label ?areaUnitLabel .
      FILTER(LANG(?areaUnitLabel) = "en")
    }
  }
  OPTIONAL {
    ?mountain p:P2044 ?elevationStmt .
    ?elevationStmt ps:P2044 ?elevation ; pq:P518 ?elevationUnit .
    OPTIONAL {
      ?elevationUnit rdfs:label ?elevationUnitLabel .
      FILTER(LANG(?elevationUnitLabel) = "en")
    }
  }
  OPTIONAL {
    ?mountain p:P2659 ?isolationStmt .
    ?isolationStmt ps:P2659 ?isolation ; pq:P518 ?isolationUnit .
    OPTIONAL {
      ?isolationUnit rdfs:label ?isolationUnitLabel .
      FILTER(LANG(?isolationUnitLabel) = "en")
    }
  }
  OPTIONAL {
    ?mountain p:P2660 ?prominenceStmt .
    ?prominenceStmt ps:P2660 ?prominence ; pq:P518 ?prominenceUnit .
    OPTIONAL {
      ?prominenceUnit rdfs:label ?prominenceUnitLabel .
      FILTER(LANG(?prominenceUnitLabel) = "en")
    }
  }
  OPTIONAL {
    ?mountain wdt:P3137 ?parentPeak .
    ?parentPeak rdfs:label ?parentPeakLabel .
    FILTER(LANG(?parentPeakLabel) = "en")
  }
  OPTIONAL {
    ?mountain wdt:P186 ?material .
    ?material rdfs:label ?materialLabel .
    FILTER(LANG(?materialLabel) = "en")
  }
  ?mountain rdfs:label ?mountainLabel .
  FILTER(LANG(?mountainLabel) = "en")
}
ORDER BY DESC(?elevation)

Can you list all mountains in Belarus along with their coordinates, elevation, topographic prominence, and isolation, if available?

Show me the highest peaks in Belarus, including their latitude, longitude, and elevation data, and indicate if they have a parent peak or are made of specific materials.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6Label ?var7 ?var8Label ?var9 ?var10Label ?var11 ?var11Label ?var12Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q8502> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q184> . OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P625> / <http://www.wikidata.org/prop/statement/value/P625> ) ?var13 . ?var13 <http://wikiba.se/ontology#geoLatitude> ?var2 ; <http://wikiba.se/ontology#geoLongitude> ?var3 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2046> / <http://www.wikidata.org/prop/statement/value/P2046> ) ?var14 . ?var14 <http://wikiba.se/ontology#quantityAmount> ?var4 . ?var14 <http://wikiba.se/ontology#quantityUnit> ?var15 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2044> / <http://www.wikidata.org/prop/statement/value/P2044> ) ?var16 . ?var16 <http://wikiba.se/ontology#quantityAmount> ?var5 . ?var16 <http://wikiba.se/ontology#quantityUnit> ?var6 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2659> / <http://www.wikidata.org/prop/statement/value/P2659> ) ?var17 . ?var17 <http://wikiba.se/ontology#quantityAmount> ?var7 . ?var17 <http://wikiba.se/ontology#quantityUnit> ?var8 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2660> / <http://www.wikidata.org/prop/statement/value/P2660> ) ?var18 . ?var18 <http://wikiba.se/ontology#quantityAmount> ?var9 . ?var18 <http://wikiba.se/ontology#quantityUnit> ?var10 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P3137> ?var11 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P186> ?var12 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en,it,ru". } } ORDER BY DESC( ?var5 )


Question: DBLP authors named "Larry Augustin" with their images

SELECT ?var1Label ?var2 ?var4 WHERE { ?var1 wdt:P2456 ?var2 . OPTIONAL { ?var1 wdt:P18 ?var4 . } ?var1 rdfs:label ?var1Label . FILTER(CONTAINS(LCASE(?var1Label), "larry augustin")) }

Who are the DBLP authors with the name "Larry Augustin", and do they have images on Wikimedia Commons?

Show me the DBLP IDs and images of people named "Larry Augustin" in Wikidata.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2456> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var4 . } ?var3 <http://schema.org/about> ?var1 . FILTER ( ( REGEX ( STR ( ?var3 ) , "string1" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the places located in Latvia?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?place ?placeLabel WHERE {
  ?place wdt:P17 wd:Q211 .
  ?place rdfs:label ?placeLabel .
  FILTER ( LANG( ?placeLabel ) = 'en' )
}
LIMIT 100

Which locations have Latvia as their country?

SELECT ?var1 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P395> "LV". SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } OPTIONAL { } } LIMIT 100


Question: List English labels of all organizations and their subclasses in Wikidata.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?organization ?label WHERE {
  ?organization ( wdt:P31 / wdt:P279 * ) wd:Q43229 .
  FILTER ( STRSTARTS( STR( ?organization ) , "http://www.wikidata.org/entity/Q" ) ) .
  OPTIONAL {
    ?organization rdfs:label ?label .
    FILTER ( LANG( ?label ) = "en" )
  }
}
ORDER BY ?organization
LIMIT 10000

What are the English names of all entities classified as organizations or any of their subclasses in Wikidata?

Please provide up to 10,000 English labels of organizations and their subtypes from Wikidata, sorted alphabetically.

SELECT ?var1 ?var2Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q43229> . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } } OFFSET 2000000 LIMIT 10000


Question: What is the English title and description of the Broadway show with IBDB ID 1709?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel ?description WHERE {
  ?item wdt:P1219 "1709" .
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
  OPTIONAL {
    ?item schema:description ?description .
    FILTER(LANG(?description) = "en")
  }
}

Tell me about the play "As You Like It" — what is its Internet Broadway Database ID and description?

Which Shakespeare play has the IBDB show ID 1709, and what is its English description?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1219> "1713". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What movie has the Elonet ID 1109941?

SELECT ?movie WHERE { ?movie wdt:P2346 "1109941" . }

Which film in Wikidata is identified by the Elonet movie ID 1109941?

I need to find the Wikidata entry for the movie with Elonet ID 1109941.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2346> "1109941". }


Question: What movie has the elFilm ID 159948?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?movie WHERE {
  ?movie wdt:P3143 "159948" .
}

Which movie on Wikidata is identified by the elFilm film ID 159948?

I’m looking for the Wikidata entry for the movie with the elFilm identifier 159948. Can you find it?

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3143> "159948". }


Question: Which film has the FilmAffinity ID 228616?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?film WHERE {
  ?film wdt:P480 "228616" .
}

What is the name of the movie identified by 228616 on FilmAffinity?

Tell me the film associated with the FilmAffinity ID 228616.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P480> "228616". }


Question: What movie has the elFilm ID 53035?

SELECT ?movie WHERE { ?movie wdt:P3143 "53035" . }

Which movie on Wikidata is identified by the elFilm film ID 53035?

Find the Wikidata item for the movie with elFilm ID 53035.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3143> "53035". }


Question: What are the names of Alisea Airlines in Italian, English, German, and French, and does it have an image or coordinates on Wikidata?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?label ?image ?coordinates WHERE {
  OPTIONAL {
    wd:Q1174276 rdfs:label ?label .
    FILTER ( LANG( ?label ) IN ( "it" , "en" , "de" , "fr" ) ) VALUES ( ?lang ?order ) {
      ( "it" 1 ) ( "en" 2 ) ( "de" 3 ) ( "fr" 4 )
    }
    FILTER ( ?lang = LANG( ?label ) )
  }
  OPTIONAL {
    wd:Q1174276 wdt:P18 ?image .
  }
  OPTIONAL {
    wd:Q1174276 wdt:P625 ?coordinates .
  }
}
ORDER BY ?order

Can you show me the multilingual labels for Alisea Airlines in order of Italian, English, German, and French, along with any available image or location coordinates?

Retrieve the labels for Alisea Airlines in the languages Italian, English, German, and French, and include its image and geographic coordinates if they exist.

SELECT ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q1174276> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = ?var7 ) ) ) . VALUES ( ?var7 ?var8 ) { ( "it""1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "en""2"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "de""3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "fr""4"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "it""5"^^<http://www.w3.org/2001/XMLSchema#integer> ) } } OPTIONAL { <http://www.wikidata.org/entity/Q1174276> <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q1174276> <urn:dboabstract> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "it" ) ) ) . } OPTIONAL { <http://www.wikidata.org/entity/Q1174276> <http://www.wikidata.org/prop/direct/P625> ?var4 . } OPTIONAL { ?var6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Article> ; <http://schema.org/about> <http://www.wikidata.org/entity/Q1174276> ; <http://schema.org/inLanguage> "it"; <http://schema.org/isPartOf> <https://it.wikipedia.org/> . } } ORDER BY ASC( ?var8 )


Question: People and units who served in the Confederate States Army

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?personOrUnit ?personOrUnitLabel ?confederateArmyLabel WHERE {
  ?personOrUnit wdt:P241 wd:Q1125021 .
  ?personOrUnit rdfs:label ?personOrUnitLabel .
  wd:Q1125021 rdfs:label ?confederateArmyLabel .
  FILTER ( LANG( ?personOrUnitLabel ) = "en" ) FILTER ( LANG( ?confederateArmyLabel ) = "en" )
}

Who were the individuals and military units that belonged to the Confederate States Army?

List the names of all people and military units that were part of the Confederate States Army, along with the name of the army itself.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P241> <http://www.wikidata.org/entity/Q1125021> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: List places within 50 km of Ciucea, Romania, that don't have images on Wikimedia Commons.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
SELECT ?nearbyItem ?label ?coord WHERE {
  wd:Q16426175 wdt:P625 ?center .
  BIND(geof:latitude(?center) AS ?centerLat)
  BIND(geof:longitude(?center) AS ?centerLon)
  BIND(?centerLat - 0.45 AS ?minLat)
  BIND(?centerLat + 0.45 AS ?maxLat)
  BIND(?centerLon - 0.635 AS ?minLon)
  BIND(?centerLon + 0.635 AS ?maxLon)
  ?nearbyItem wdt:P625 ?coord .
  BIND(geof:latitude(?coord) AS ?lat)
  BIND(geof:longitude(?coord) AS ?lon)
  FILTER(?lat >= ?minLat && ?lat <= ?maxLat && ?lon >= ?minLon && ?lon <= ?maxLon)
  FILTER NOT EXISTS {
    ?nearbyItem wdt:P18 []
  }
  ?nearbyItem rdfs:label ?label .
  FILTER(LANG(?label) = "en" || LANG(?label) = "")
}
LIMIT 10

What are the nearby locations to Ciucea within a 50-kilometer radius that do not have associated images?

Show me the names and coordinates of places near Ciucea, excluding those with images, within a 50 km distance.

SELECT ?var1 ?var1Label ?var2 WHERE { <http://www.wikidata.org/entity/Q16426175> <http://www.wikidata.org/prop/direct/P625> ?var3 . SERVICE <http://wikiba.se/ontology#around> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#center> ?var3 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#radius> "50". } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the Spanish alcoholic beverages and their official websites and geographic locations?

SELECT ?beverageLabel ?website ?coordinates WHERE { ?beverage (wdt:P31/wdt:P279*) wd:Q154 . ?beverage wdt:P17 wd:Q29 . ?beverage wdt:P625 ?coordinates . OPTIONAL { ?beverage wdt:P856 ?website . } OPTIONAL { ?beverage rdfs:label ?beverageLabel FILTER(LANG(?beverageLabel) = "en") } }

Can you list the names, websites, and coordinates of alcoholic drinks produced in Spain?

Show me the English-labeled alcoholic beverages from Spain, along with their official websites and map coordinates.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q154> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q29> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,de". } }


Question: What are the UNESCO World Heritage Sites in Sudan, along with their Commons categories, types, and administrative regions?

SELECT ?site (SAMPLE(?labelEn) AS ?label) (SAMPLE(?commonsValue) AS ?commons) (GROUP_CONCAT(DISTINCT ?instanceTypeLabel; SEPARATOR="; ") AS ?instanceTypes) (COALESCE(SAMPLE(?adminLabelEn), "missing") AS ?adminLabel) WHERE { ?site wdt:P1435 wd:Q9259 . ?site wdt:P17 wd:Q1049 . ?site rdfs:label ?labelEn . FILTER(LANG(?labelEn) = "en") OPTIONAL { ?site wdt:P373 ?commonsValue . } OPTIONAL { ?site wdt:P31 ?instanceType . ?instanceType rdfs:label ?instanceTypeLabel . FILTER(LANG(?instanceTypeLabel) = "en") } OPTIONAL { ?site wdt:P131 ?admin . ?admin rdfs:label ?adminLabelEn . FILTER(LANG(?adminLabelEn) = "en") } } GROUP BY ?site ORDER BY ASC(?label) LIMIT 1000

Can you list the English-named World Heritage Sites in Sudan, including their Wikimedia Commons categories, what types of heritage they are, and which administrative area they belong to — showing "missing" if no region is specified?

Show me the World Heritage Sites located in Sudan, grouped by site, with their labels, Commons categories, instance types (like cultural or natural site), and administrative location — and if no administrative location is known, just say "missing".

SELECT ?var1 ( SAMPLE ( ?var2Label ) AS ?var2Label )( SAMPLE ( ?var3 ) AS ?var3 )( GROUP_CONCAT ( DISTINCT ?var4Label ; SEPARATOR = "; " ) AS ?var5 )( SAMPLE ( ?var6 ) AS ?var6 )( SAMPLE ( ?var7Label ) AS ?var7Label ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1435> ?var8 . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q1049> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . VALUES ( ?var8 ) { ( <http://www.wikidata.org/entity/Q9259> ) } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var9 . ?var9 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var6 . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var7Label . FILTER ( ( ( LANG ( ?var7Label ) = "en" ) ) ) . } OPTIONAL { BIND ( "missing" AS ?var6 ). BIND ( "---" AS ?var7Label ). } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . } GROUP BY ?var1 ORDER BY ASC( ?var2Label ) LIMIT 1000


Question: What are all the taxonomic ranks above Foeniculum webbii?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?taxon WHERE {
  wd:Q17132637 wdt:P171 * ?taxon .
}

What is the complete taxonomic lineage of the plant species Foeniculum webbii?

List all the biological classifications that Foeniculum webbii belongs to, from species up to the highest taxon.

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q17132637> AS ?var2 ). ?var2 ( <http://www.wikidata.org/prop/direct/P171> | <http://www.wikidata.org/prop/direct/P273> | <http://www.wikidata.org/prop/direct/P75> | <http://www.wikidata.org/prop/direct/P76> | <http://www.wikidata.org/prop/direct/P77> | <http://www.wikidata.org/prop/direct/P70> | <http://www.wikidata.org/prop/direct/P71> | <http://www.wikidata.org/prop/direct/P74> | <http://www.wikidata.org/prop/direct/P89> )* ?var1 . }


Question: Subclasses of majolica with their labels and images

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?subclass ?subclassLabel ?image WHERE {
  ?subclass wdt:P279 wd:Q622753 .
  OPTIONAL {
    ?subclass wdt:P18 ?image .
  }
  ?subclass rdfs:label ?subclassLabel .
  FILTER(LANG(?subclassLabel) = "en")
}
LIMIT 100

What are the subclasses of majolica, and what are their names and images?

Show me the English names of all types of majolica pottery, along with any available images.

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q622753> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ru". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } } LIMIT 100


Question: What are all the broader categories that "wiki with script conversion" belongs to, including indirect ones?

SELECT DISTINCT ?superclass WHERE { wd:Q36509592 wdt:P279* ?superclass .}

List all superclass entities of MediaWiki instances that support language conversion syntaxes.

What is the full classification hierarchy above "wiki with script conversion" in Wikidata?

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q36509592> AS ?var2 ). ?var2 <http://www.wikidata.org/prop/direct/P279> * ?var1 . }


Question: Top causes of death among librarians, ranked by frequency.

SELECT ?causeOfDeath ?causeLabel (COUNT(*) AS ?count) WHERE { ?librarian wdt:P106 wd:Q182436 . ?librarian wdt:P509 ?causeOfDeath . OPTIONAL { ?causeOfDeath rdfs:label ?causeLabel . FILTER(LANG(?causeLabel) = "en") } } GROUP BY ?causeOfDeath ?causeLabel ORDER BY DESC(?count) ASC(?causeLabel)

What are the most common causes of death for people who worked as librarians?

Show me a list of causes of death for librarians, sorted by how many librarians died from each cause, with English labels and counts.

SELECT ?var1 ?var2 ( COUNT (* ) AS ?var3 ) WHERE { ?var4 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q182436> . ?var4 <http://www.wikidata.org/prop/direct/P509> ?var1 . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } } GROUP BY ?var1 ?var2 ORDER BY DESC( ?var3 )ASC( ?var2 )


Question: Organizations linked to Vibe Gedsø Frøkjær, their coordinates, associated images, and the nature of the link (e.g., affiliation, education).

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?image ?organization ?organizationLabel ?coordinate ?propertyLabel WHERE {
  wd:Q20984695 ?property ?organization .
  ?organization ( ( p:P159 / pq:P625 ) | ( wdt:P276 * / wdt:P625 ) ) ?coordinate .
  ?propertyItem wikibase:directClaim ?property .
  OPTIONAL {
    ?organization wdt:P18 ?image .
  }
  ?propertyItem rdfs:label ?propertyLabel .
  ?organization rdfs:label ?organizationLabel .
  FILTER ( LANG( ?propertyLabel ) = "en" && LANG( ?organizationLabel ) = "en" )
}

What are the organizations Vibe Gedsø Frøkjær is connected to, their geographic locations, the type of relationship (like "educated at" or "affiliation"), and their images?

Show me the organizations associated with Vibe Gedsø Frøkjær, including their coordinates, the English labels of the connecting properties, and any available images.

SELECT DISTINCT ?var1 ?var2 ?var2Label ?var3 ( ?var4Label AS ?var5 ) WHERE { <http://www.wikidata.org/entity/Q20984695> ?var6 ?var2 . ?var2 (( <http://www.wikidata.org/prop/P159> / <http://www.wikidata.org/prop/qualifier/P625> )|( <http://www.wikidata.org/prop/direct/P276> */ <http://www.wikidata.org/prop/direct/P625> )) ?var3 . ?var7 <http://wikiba.se/ontology#directClaim> ?var6 . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,da,de,es,fr,jp,nl,no,ru,sv,zh". } ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . }


Question: What are the English names, locations, and images of all known verracos (ancient animal sculptures) in Spain and Portugal?

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 wdt:P31 wd:Q2988353 . ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "en") OPTIONAL { ?var1 wdt:P625 ?var2 . } OPTIONAL { ?var1 wdt:P18 ?var3 . } } ORDER BY ASC(?var1Label)

Can you list the verracos with their coordinates and pictures from Wikimedia Commons?

Show me the ancient animal sculptures called verracos, including where they are located and what they look like.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/P31> <http://www.wikidata.org/entity/Q2988353> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1Label )


Question: All properties and values for the jazz standard Ornithology

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?value WHERE {
  wd:Q2031297 ?property ?value .
}

What are all the properties and their values for the jazz standard "Ornithology"?

List everything known about the Charlie Parker composition "Ornithology" in Wikidata.

SELECT * WHERE { <http://www.wikidata.org/entity/Q2031297> ?var1 ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Citation count distribution of papers published in OpenSym ’17

SELECT ?citation_count ( COUNT( ?paper ) AS ?paper_count ) WHERE { { SELECT ?paper ( COUNT( ?citing_work ) AS ?citation_count ) WHERE { ?paper wdt:P1433 wd:Q35961402 . OPTIONAL { ?citing_work wdt:P2860 ?paper . } } GROUP BY ?paper } } GROUP BY ?citation_count ORDER BY DESC ( ?citation_count )

How many papers from the 2017 OpenSym conference were cited 1 time, 3 times, 8 times, and 37 times?

Show me how many papers in the Proceedings of the 13th International Symposium on Open Collaboration received each number of citations, sorted from most to least cited.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { { SELECT ?var2 ( COUNT ( ?var4 ) AS ?var1 ) WHERE { ?var2 <http://www.wikidata.org/prop/direct/P1433> <http://www.wikidata.org/entity/Q35961402> . OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P2860> ?var2 . } } GROUP BY ?var2 } } GROUP BY ?var1 ORDER BY DESC( ?var1 )


Question: Railway stations in Switzerland without images and their coordinates

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?station ?stationLabel ?coordinates WHERE {
  ?station wdt:P31 wd:Q55488 ; wdt:P17 wd:Q39 ; wdt:P625 ?coordinates . MINUS {
    ?station wdt:P18 [] .
  }
  OPTIONAL {
    ?station rdfs:label ?stationLabel .
    FILTER(LANG(?stationLabel) = "en")
  }
}

What are the names and locations of railway stations in Switzerland that don't have any images on Wikimedia Commons?

List the English names and GPS coordinates of all railway stations in Switzerland that are missing images.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q55488> ; <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q39> ; <http://www.wikidata.org/prop/direct/P625> ?var2 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P18> [] . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } }


Question: Image of the British Museum with SNAC ARK ID w60w2228

SELECT ?image WHERE { ?item wdt:P3430 "w60w2228" . OPTIONAL { ?item wdt:P18 ?image . } }

What is the image associated with the British Museum in the SNAC ARK ID system?

Show me the Wikimedia Commons image linked to the British Museum using its SNAC ARK ID w60w2228.

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3430> "w60w2228". OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } }


Question: Film with MovieMeter ID 101056

SELECT ?film WHERE { ?film wdt:P1970 "101056" . }

Which film has the MovieMeter film ID 101056?

Can you tell me the name of the film identified as 101056 on MovieMeter?

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1970> "101056". }


Question: What countries and administrative regions is the village of Tarłów directly part of?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?location WHERE {
  wd:Q2195315 ( wdt:P30 | wdt:P17 | wdt:P131 | wdt:P376 | wdt:P501 ) ?location .
}

Which entities are directly connected to Tarłów through its location properties like country and administrative division?

Show me the immediate geographic and administrative context of Tarłów, Poland.

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q2195315> AS ?var2 ). ?var2 ( <http://www.wikidata.org/prop/direct/P30> | <http://www.wikidata.org/prop/direct/P17> | <http://www.wikidata.org/prop/direct/P131> | <http://www.wikidata.org/prop/direct/P376> | <http://www.wikidata.org/prop/direct/P501> )* ?var1 . }


Question: Hebrew labels of cities and human settlements in Wikidata.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?city ?label WHERE {
  VALUES ?class {
    wd:Q515 wd:Q486972
  }
  ?city wdt:P31 / wdt:P279 * ?class .
  ?city rdfs:label ?label .
  FILTER ( LANG( ?label ) = "he" )
}
LIMIT 20

What are the Hebrew names of cities and human settlements on Wikidata?

Show me the Hebrew-language labels for all cities and human settlements in Wikidata.

SELECT DISTINCT ?var1 ?var2Label ?var3 ?var3Label WHERE { { ?var1 (( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> )| <http://www.wikidata.org/prop/direct/P31> ) <http://www.wikidata.org/entity/Q515> . } UNION { ?var1 (( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> )| <http://www.wikidata.org/prop/direct/P31> ) <http://www.wikidata.org/entity/Q486972> . } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "he". } FILTER ( ( ( LANG ( ?var2Label ) = "he" ) ) ) . } LIMIT 20


Question: List companies in Wikidata.

SELECT DISTINCT ?company WHERE { ?company wdt:P31 wd:Q4830453 } LIMIT 20

What are some examples of companies in Wikidata?

Show me up to 20 entities that are classified as companies in Wikidata.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Company> . } LIMIT 20


Question: What are the IMDb, Rotten Tomatoes, Netflix, and AlloCiné IDs for the movie "Valérian and the City of a Thousand Planets"?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?imdbId ?rottenTomatoesId ?netflixId ?allocineId WHERE {
  wd:Q20926273 wdt:P345 ?imdbId .
  wd:Q20926273 wdt:P1258 ?rottenTomatoesId .
  wd:Q20926273 wdt:P1874 ?netflixId .
  wd:Q20926273 wdt:P1265 ?allocineId .
}

Can you find the streaming and review platform identifiers for Valérian and the City of a Thousand Planets?

Show me the unique identifiers for Valérian and the City of a Thousand Planets on IMDb, Rotten Tomatoes, Netflix, and AlloCiné.

SELECT * WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q21647260> <http://www.wikidata.org/prop/direct/P345> ?var1 . } OPTIONAL { <http://www.wikidata.org/entity/Q21647260> <http://www.wikidata.org/prop/direct/P1258> ?var2 . } OPTIONAL { <http://www.wikidata.org/entity/Q21647260> <http://www.wikidata.org/prop/direct/P1874> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q21647260> <http://www.wikidata.org/prop/direct/P1265> ?var4 . } }


Question: What is the Freebase ID for the movie with IMDb ID tt2316801?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?freebaseId ?imdbId ?kgId WHERE {
  ?item wdt:P31 wd:Q11424 .
  OPTIONAL {
    ?item wdt:P646 ?freebaseId .
  }
  ?item wdt:P345 ?imdbId .
  OPTIONAL {
    ?item wdt:P2671 ?kgId .
  }
  FILTER ( ?imdbId = "tt2316801" )
}

Can you find the film with IMDb ID tt2316801 and show its Freebase ID and Google Knowledge Graph ID?

Show me the details of the movie identified by tt2316801 on IMDb, including its Freebase and Google Knowledge Graph identifiers.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q2431196> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P646> ?var2 . } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2671> ?var4 . } FILTER ( ( ( ?var3 = "tt2316801" ) ) ) . }


Question: What countries, regions, and continents is the Lüllau Watermill located in?

SELECT DISTINCT ?location ?locationLabel WHERE { wd:Q36655261 (wdt:P131|wdt:P17|wdt:P30)+ ?location . ?location rdfs:label ?locationLabel . FILTER(LANG(?locationLabel) = "en") } ORDER BY ?locationLabel LIMIT 100

Can you list all the administrative and geographic entities that the Lüllau Watermill is part of, starting from its immediate locality up to the continent?

Through what geographic hierarchy — such as town, district, state, country, and continent — is the Lüllau Watermill connected to the rest of the world?

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q36655261> AS ?var2 ). ?var2 ( <http://www.wikidata.org/prop/direct/P30> | <http://www.wikidata.org/prop/direct/P17> | <http://www.wikidata.org/prop/direct/P131> | <http://www.wikidata.org/prop/direct/P376> | <http://www.wikidata.org/prop/direct/P501> )* ?var1 . }


Question: List landscapes in Japan with their coordinates and Japanese and English names, plus optional Korean and Chinese names.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?feature ?coord ?label_ja ?label_en ?label_ko ?label_zh WHERE {
  ?feature wdt:P17 wd:Q17 .
  ?feature wdt:P31 / wdt:P279 * wd:Q107425 .
  ?feature wdt:P625 ?coord .
  ?feature rdfs:label ?label_ja .
  FILTER(LANG(?label_ja) = "ja")
  .
  ?feature rdfs:label ?label_en .
  FILTER(LANG(?label_en) = "en")
  .
  OPTIONAL {
    ?feature rdfs:label ?label_ko .
    FILTER(LANG(?label_ko) = "ko")
  }
  .
  OPTIONAL {
    ?feature rdfs:label ?label_zh .
    FILTER(LANG(?label_zh) = "zh")
  }
}
ORDER BY DESC(?coord)

What are the geographic landscapes in Japan, including their coordinates and labels in Japanese and English, along with any available Korean and Chinese translations?

Please provide a list of all landscapes in Japan, showing their coordinates, Japanese and English labels, and where available, their Korean and Chinese labels.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q17> . ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q107425> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var6 . FILTER ( ( ( LANG ( ?var5 ) = "ko" ) ) ) . FILTER ( ( ( LANG ( ?var6 ) = "zh" ) ) ) . } FILTER ( ( ( LANG ( ?var3 ) = "ja" ) ) ) . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . } ORDER BY DESC( ?var2 )


Question: What buildings and places in Gothenburg are located on specific streets, excluding administrative registration districts?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?place ?placeLabel ?street WHERE {
  ?place wdt:P131 ?admin_area .
  ?admin_area wdt:P131 * wd:Q52502 .
  ?place wdt:P669 ?street .
  FILTER(NOT EXISTS {
    ?place wdt:P31 wd:Q18333556 .
  })
  OPTIONAL {
    ?place rdfs:label ?placeLabel .
    FILTER(LANG(?placeLabel) = "en")
  }
}

List all streets in Gothenburg that have buildings or landmarks on them, but not registration districts.

Which locations in Gothenburg have a street address, and what are those streets, if they are not official registration districts?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P131> * <http://www.wikidata.org/entity/Q52502> . ?var1 <http://www.wikidata.org/prop/direct/P669> ?var2 . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q18333556> . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sv". } }


Question: What software is used by other entities, and who uses them?

SELECT ?software ?softwareLabel ?user WHERE { ?software wdt:P31 wd:Q7397 . ?user wdt:P1535 ?software . OPTIONAL { ?software rdfs:label ?softwareLabel . FILTER(LANG(?softwareLabel) = "en") } } LIMIT 10

List software and the entities that use them, with English labels.

Which software tools are utilized by other systems, and what are their names?

SELECT ?var1 ?var1Label ?var2 WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q7397> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Undirected"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P2236> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2236> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the breweries located in Bamberg, Germany, and where are they situated?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?brewery ?breweryLabel ?coord WHERE {
  ?brewery wdt:P31 / wdt:P279 * wd:Q131734 .
  ?brewery wdt:P131 wd:Q3936 .
  ?brewery rdfs:label ?breweryLabel
  FILTER ( LANG( ?breweryLabel ) = 'en' ) .
  OPTIONAL {
    ?brewery wdt:P625 ?coord
  }
}

List the beer breweries in Bamberg along with their coordinates.

Can you show me the names and locations of all beer-producing companies in the town of Bamberg?

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { BIND ( <http://www.wikidata.org/entity/Q3936> AS ?var4 ). ?var4 <http://www.wikidata.org/prop/direct/P625> ?var5 . SERVICE <http://wikiba.se/ontology#around> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#center> ?var5 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#radius> "100."^^<http://www.w3.org/2001/XMLSchema#decimal> . } ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q131734> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: What are the French communes that have an OpenStreetMap relation ID?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?commune ?communeLabel WHERE {
  ?commune wdt:P31 wd:Q484170 .
  ?commune wdt:P402 ?osmId .
  ?commune rdfs:label ?communeLabel .
  FILTER ( LANG( ?communeLabel ) = "fr" )
}
LIMIT 100

List French municipalities with an OpenStreetMap identifier and their French names.

Which communes in France are mapped in OpenStreetMap, and what are their French names?

SELECT ?var1 ?var1Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q484170> . ?var1 <http://www.wikidata.org/prop/direct/P553> <http://www.wikidata.org/entity/Q936> . } LIMIT 100


Question: What journals and conferences has Alan Mislove published in, and how many papers did he publish in each?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?publication ?publicationLabel ( COUNT( ?work ) AS ?count ) WHERE {
  ?work wdt:P50 wd:Q36840045 .
  ?work wdt:P1433 ?publication .
  ?publication rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" ) OPTIONAL {
    ?publication wdt:P1813 ?shortName
  }
  BIND( COALESCE ( ?shortName , ?label ) AS ?publicationLabel )
}
GROUP BY ?publication ?publicationLabel
ORDER BY DESC ( ?count )

Show the venues where Alan Mislove has published, using abbreviated names if available, sorted by number of publications.

How many publications does Alan Mislove have in each venue, and what are their names (using abbreviations where possible)?

SELECT ?var1 ?var2Label ( COUNT ( ?var3 ) AS ?var4 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q36840045> . ?var3 <http://www.wikidata.org/prop/direct/P1433> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var5Label . FILTER ( ( ( LANG ( ?var5Label ) = "en" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1813> ?var6 . } BIND ( COALESCE ( ?var6 , ?var5Label ) AS ?var2Label ). } GROUP BY ?var1 ?var2Label ORDER BY DESC( ?var4 )


Question: What are the broader categories or classes that a vehicle-ramming attack belongs to?

SELECT ?subclass ?subclassLabel WHERE { wd:Q18711682 wdt:P279+ ?subclass . ?subclass rdfs:label ?subclassLabel . FILTER(LANG(?subclassLabel) = "en") } LIMIT 50

List all the superclasses of vehicle-ramming attack in the Wikidata ontology.

How is a vehicle-ramming attack classified in terms of higher-level categories like terrorism or violence?

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q18711682> AS ?var2 ). ?var2 <http://www.wikidata.org/prop/direct/P279> * ?var1 . }


Question: List of positions (roles or offices) in Wikidata.

SELECT ?item ?itemLabel WHERE { ?item wdt:P31 wd:Q4164871 . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } LIMIT 100

What are some examples of positions or official roles in Wikidata?

Show me the names of all known positions or offices in Wikidata, along with their English labels.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P273> * <http://www.wikidata.org/entity/Q4164871> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 100


Question: What are the direct superclass categories of the type that Pepsi is an instance of?

SELECT ?superclassLabel (LANG(?superclassLabel) AS ?lang) WHERE { wd:Q47719 wdt:P31 ?instanceType . ?instanceType wdt:P279 ?superclass . ?superclass rdfs:label ?superclassLabel . FILTER(LANG(?superclassLabel) = "en") }

What broader classes does the category "brand" (which Pepsi belongs to) belong to?

What are the parent classes in the taxonomy for Pepsi’s type?

SELECT ?var1Label ( LANG ( ?var1Label ) AS ?var2 ) WHERE { <http://www.wikidata.org/entity/Q47719> <http://www.wikidata.org/prop/direct/P31> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P279> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Administrative regions in Portuguese with entities located in them

SELECT DISTINCT ?adminEntity ?label WHERE { ?item wdt:P131 ?adminEntity . ?adminEntity rdfs:label ?label . FILTER (LANG(?label) = "pt") } LIMIT 100

Which administrative territories have Portuguese labels and are used as locations for other entities?

List up to 100 administrative entities that have Portuguese labels and are referenced as locations in Wikidata.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P131> ?var1 . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "pt" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "pt" ) ) ) . } LIMIT 100


Question: Properties related to sRGB color hex triplet with English labels and descriptions

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?relatedProperty ?relatedPropertyLabel ?relatedPropertyDescription WHERE {
  ?relatedProperty wdt:P1659 wd:P465 .
  ?relatedProperty rdfs:label ?relatedPropertyLabel .
  ?relatedProperty schema:description ?relatedPropertyDescription .
  FILTER(LANG(?relatedPropertyLabel) = "en")
  FILTER(LANG(?relatedPropertyDescription) = "en")
}

What properties are related to the sRGB color hex triplet property in Wikidata, and what are their English labels and descriptions?

List the English labels and descriptions of all properties that are related to the sRGB color hex triplet property.

SELECT ?var1 ?var2Label ?var3 WHERE { BIND ( <http://www.wikidata.org/prop/direct/P465> AS ?var4 ). ?var5 ?var6 ?var4 . ?var5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var5 <http://www.wikidata.org/prop/direct/P1659> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . }


Question: List of cricketers with their names.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?personLabel WHERE {
  ?person wdt:P106 wd:Q12299841 .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}

Who are the people whose occupation is cricketer, and what are their names?

Show me the English names of all individuals who are cricketers.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q12299841> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: What are the cities in Canada?

SELECT ?city ?cityLabel WHERE { ?city wdt:P31 wd:Q515 . ?city wdt:P17 wd:Q16 . ?city rdfs:label ?cityLabel . FILTER(LANG(?cityLabel) = "en") }

Which populated places in Canada are classified as cities?

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q515> . OPTIONAL { } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q16> . }


Question: Humans who are Nobel Prize winners

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?human WHERE {
  ?human wdt:P31 wd:Q5 ; wdt:P106 wd:Q115784320
}

Which humans have received the Nobel Prize?

List all people who have won the Nobel Prize.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/Q21013267> ?var2 ; <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . }


Question: Which Wikidata properties are used to assign unique identifiers like Snowflake ID or ISNI?

SELECT DISTINCT ?property ?propertyLabel ?identifierType ?identifierTypeLabel WHERE {  ?identifierType wdt:P279 wd:Q6545185 .  {    ?identifierType wdt:P1687 ?property .  } UNION {    ?property wdt:P1629 ?identifierType .  }  OPTIONAL { ?property wdt:P1813 ?propertyLabel . }  OPTIONAL { ?identifierType rdfs:label ?identifierTypeLabel . }  FILTER(LANG(?propertyLabel) = "" || LANG(?propertyLabel) = "en")  FILTER(LANG(?identifierTypeLabel) = "" || LANG(?identifierTypeLabel) = "en")}

What properties in Wikidata are associated with types of unique identifiers such as address family identifiers or user IDs?

List all Wikidata properties that identify entities belonging to subclasses of unique identifiers, along with the identifier types they are used for.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var2 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q6545185> . OPTIONAL { { ?var2 <http://www.wikidata.org/prop/direct/P1687> ?var1 . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P1629> ?var2 . } } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q18614948> . ?var1 <http://www.wikidata.org/prop/direct/P31> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P279> + <http://www.wikidata.org/entity/Q18614948> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,de". } }


Question: Main subjects of works by Iain Murray, with count

SELECT ?count ?subjectLabel WHERE { { SELECT ?subject (COUNT(?work) AS ?count) WHERE { ?work wdt:P50 wd:Q32268843 . ?work wdt:P921 ?subject . } GROUP BY ?subject ORDER BY DESC(?count) } ?subject rdfs:label ?subjectLabel . FILTER(LANG(?subjectLabel) = "en") }

What are the main topics of the academic works authored by Iain Murray, and how many works are there for each topic?

List the main subjects of Iain Murray’s publications in English, along with how many publications each subject appears in, sorted by most frequent first.

SELECT ?var1 ?var2Label ?var3Label WHERE { { SELECT ?var4 ( COUNT ( ?var5 ) AS ?var1 ) WHERE { ?var5 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q32268843> . ?var5 <http://www.wikidata.org/prop/direct/P921> ?var4 . } GROUP BY ?var4 ORDER BY DESC( ?var1 ) } BIND ( SUBSTR ( ?var6Label ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"60"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var3Label ). ?var5 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q32268843> . ?var5 <http://www.wikidata.org/prop/direct/P921> ?var4 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var6Label . FILTER ( ( ( LANG ( ?var6Label ) = "en" ) ) ) . }


Question: What are the most common types of geographical features in Sweden with elevation data, and what is their average elevation?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?classLabel ( AVG( ?elevation ) AS ?avgElevation ) ( COUNT( * ) AS ?count ) WHERE {
  ?item wdt:P17 wd:Q34 ; wdt:P2044 ?elevation ; wdt:P31 ?class .
  ?class rdfs:label ?classLabel .
  FILTER ( LANG( ?classLabel ) = "en" )
}
GROUP BY ?classLabel
ORDER BY DESC ( ?count )

For each type of geographical feature in Sweden (like lakes, rivers, islands), what is the average elevation above sea level and how many such features exist?

Which class of geographical objects in Sweden has the highest count of elevation measurements, and what is the average elevation of that class?

SELECT ?var1Label ( AVG ( ?var2 ) AS ?var3 )( COUNT (* ) AS ?var4 ) WHERE { ?var5 <http://www.wikidata.org/prop/direct/P2044> ?var2 . ?var5 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q34> . ?var5 <http://www.wikidata.org/prop/direct/P31> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sv,en". } } GROUP BY ?var1Label ORDER BY DESC( ?var4 )


Question: What disambiguation pages on Wikipedia are named after male given names?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?disambiguation ?disambiguationLabel WHERE {
  ?disambiguation wdt:P31 wd:Q4167410 .
  ?disambiguation wdt:P138 ?name .
  ?name wdt:P31 wd:Q12308941 .
}

Show me Wikimedia disambiguation pages that refer to male first names like John or Michael.

Which Wikipedia disambiguation pages are created for names that are typically given to boys?

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q12308941> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4167410> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ru,en". } }


Question: What are the locations and coordinates of Albert Einstein's employers, along with their images and the property name used to link him to them?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?image ?employer ?employerLabel ?location ?coordinates ?propertyLabel WHERE {
  wd:Q937 wdt:P108 ?employer .
  ?employer wdt:P276 ?location .
  ?location wdt:P625 ?coordinates .
  OPTIONAL {
    ?location wdt:P18 ?image .
  }
  wd:P108 rdfs:label ?propertyLabel .
  FILTER ( LANG( ?propertyLabel ) = "en" )
}

Which institutions employed Albert Einstein, where are they located, what are their geographic coordinates, and is there an image available for each location?

Show me the employers of Albert Einstein, their locations, coordinates, any associated images, and the English label of the employment property.

SELECT DISTINCT ?var1 ?var2 ?var2Label ?var3 ( ?var4Label AS ?var5 ) WHERE { <http://www.wikidata.org/entity/Q36961715> ?var6 ?var2 . ?var2 (( <http://www.wikidata.org/prop/P159> / <http://www.wikidata.org/prop/qualifier/P625> )|( <http://www.wikidata.org/prop/direct/P276> */ <http://www.wikidata.org/prop/direct/P625> )) ?var3 . ?var7 <http://wikiba.se/ontology#directClaim> ?var6 . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,da,de,es,fr,jp,nl,no,ru,sv,zh". } ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . }


Question: What are the images, coordinates, and Wikipedia links for Morsum in German, English, and Italian?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?label ?image ?coordinates ?wikipedia WHERE {
  wd:Q20629 rdfs:label ?label .
  FILTER(LANG(?label) IN("de" , "en" , "fr" , "it"))
  OPTIONAL {
    wd:Q20629 wdt:P18 ?image .
  }
  OPTIONAL {
    wd:Q20629 wdt:P625 ?coordinates .
  }
  VALUES(?langCode ?priority ?wikiSite) {("de" 1 <https://de.wikipedia.org/>)("en" 2 <https://en.wikipedia.org/>)("fr" 3 <https://fr.wikipedia.org/>)("it" 4 <https://it.wikipedia.org/>)
  }
  BIND(LANG(?label) AS ?labelLang)
  FILTER(?labelLang = ?langCode)
  ?wikipedia schema:about wd:Q20629 ; schema:inLanguage ?labelLang ; schema:isPartOf ?wikiSite .
}
ORDER BY ?priority

Show me the pictures and location of Morsum along with its Wikipedia pages in German, English, and Italian, ordered by language preference.

For Morsum, list all available Wikimedia Commons images, coordinates, and Wikipedia articles in German, English, and Italian.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q20629> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = ?var5 ) ) ) . VALUES ( ?var5 ?var6 ) { ( "de""1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "en""2"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "de""3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "fr""4"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "it""5"^^<http://www.w3.org/2001/XMLSchema#integer> ) } } OPTIONAL { <http://www.wikidata.org/entity/Q20629> <http://www.wikidata.org/prop/direct/P18> ?var2 . } OPTIONAL { <http://www.wikidata.org/entity/Q20629> <http://www.wikidata.org/prop/direct/P625> ?var3 . } OPTIONAL { ?var4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Article> ; <http://schema.org/about> <http://www.wikidata.org/entity/Q20629> ; <http://schema.org/inLanguage> "de"; <http://schema.org/isPartOf> <https://de.wikipedia.org/> . } } ORDER BY ASC( ?var6 )


Question: Rivers in Russia and their coordinates

SELECT ?river ?coordinates WHERE { ?river wdt:P31 wd:Q4022 . ?river wdt:P17 wd:Q159 . ?river wdt:P625 ?coordinates . } LIMIT 100

What are the geographic coordinates of rivers located in Russia?

List up to 100 rivers in Russia along with their latitude and longitude coordinates.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4022> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q159> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . } LIMIT 100


Question: Films with YouTube video IDs and their English titles.

SELECT ?film ?filmLabel ?youtubeId WHERE { ?film wdt:P1651 ?youtubeId ; wdt:P31 wd:Q11424 . ?film rdfs:label ?filmLabel . FILTER(LANG(?filmLabel) = "en") } LIMIT 1000

Which films have YouTube video IDs, and what are their English titles?

Show me a list of films along with their YouTube IDs and English names.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1651> ?var2 ; <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } LIMIT 1000


Question: What are the scientific names of some biological taxa?

SELECT ?taxon ?scientificName WHERE { ?taxon wdt:P225 ?scientificName . } LIMIT 10

Can you list 10 taxa along with their correct scientific names according to taxonomic standards?

Show me the Latin or scientific names used to classify organisms in Wikidata.

SELECT ?var1 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "zh,en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P225> ?var1 . } } LIMIT 10


Question: What are some video games or software released on Microsoft Windows?

SELECT ?item ?itemLabel ?image WHERE { ?item wdt:P400 wd:Q1406 . OPTIONAL { ?item wdt:P18 ?image . } ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } LIMIT 100

Can you list the English names of games and applications that run on Windows?

Which Windows-compatible software have images available on Wikimedia Commons?

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P400> <http://www.wikidata.org/entity/Q1406> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } } LIMIT 100


Question: How many UK Members of Parliament were born each year after 1945?

SELECT DISTINCT ?year ( COUNT( ?person ) AS ?count ) WHERE { ?person wdt:P39 wd:Q486839 . ?person wdt:P569 ?birthDate . BIND(YEAR(?birthDate) AS ?year) FILTER(?year > 1945) } GROUP BY ?year ORDER BY ASC(?year)

Show the number of British MPs born after 1945, grouped by their birth year.

Can you list the count of UK Members of Parliament by birth year, starting from 1946?

SELECT DISTINCT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { BIND ( YEAR ( ?var4 ) AS ?var5 ). ?var2 <http://www.wikidata.org/prop/direct/P39> [ <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q16707842> ] . ?var2 <http://www.wikidata.org/prop/direct/P569> ?var4 . FILTER ( ( ( ?var5 > "1945"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . ?var2 ( <http://www.wikidata.org/prop/P569> / <http://www.wikidata.org/prop/statement/value/P569> ) ?var6 . ?var6 <http://wikiba.se/ontology#timePrecision> "9"^^<http://www.w3.org/2001/XMLSchema#integer> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var1 ORDER BY ASC( ?var1 )


Question: Image of the person with SNAC ARK ID w6335ngt

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?image WHERE {
  ?item wdt:P3430 "w6335ngt" .
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
}

What is the image of Bernard W. Aronson, identified by the SNAC ARK ID w6335ngt?

Show me the Wikimedia Commons image associated with the SNAC ARK ID w6335ngt.

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3430> "w6335ngt". OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } }


Question: Association football players and their playing positions

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?player ?name ?image ?position ?positionShortName WHERE {
  ?player wdt:P106 wd:Q937857 .
  OPTIONAL {
    ?player wdt:P2561 ?name .
  }
  OPTIONAL {
    ?player wdt:P18 ?image .
  }
  OPTIONAL {
    ?player wdt:P413 ?position .
    ?position wdt:P1813 ?positionShortName .
    FILTER ( LANG( ?positionShortName ) = "en" )
  }
}
LIMIT 500

Who are the association football players and what positions do they play, with short position names like 'CF' or 'GK'?

List association football players along with their positions in abbreviated form (e.g., 'CF', 'GK') if available.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 ?var4Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q937857> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2561> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P413> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1469> ?var5 . } } LIMIT 500


Question: Czech Olympic Committee athlete ID 236, English label and description

SELECT ?athlete ?athleteLabel ?description WHERE { ?athlete wdt:P4062 "236" . ?athlete rdfs:label ?athleteLabel . FILTER (LANG(?athleteLabel) = "en") OPTIONAL { ?athlete schema:description ?description . FILTER (LANG(?description) = "en") } }

Who is the Czech athlete with ID 236 in the Czech Olympic Committee database, and what is their English description?

Show me the English name and description of the Czech Olympic athlete with ID 236.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P4062> "4162". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Most common birth dates (day/month) of UK Members of Parliament with known birth days.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT DISTINCT ?monthDay(COUNT(DISTINCT ?person) AS ?count) WHERE {
  ?person wdt:P39 wd:Q486839 .
  ?person p:P569 ?stmt .
  ?stmt psv:P569 ?value .
  ?value wikibase:timePrecision "11" ^^ xsd:integer .
  ?value wikibase:timeValue ?birthdate .
  BIND(SUBSTR(STR(?birthdate) , 9 , 2) AS ?day)
  BIND(SUBSTR(STR(?birthdate) , 6 , 2) AS ?month)
  BIND(CONCAT(?day , "/" , ?month) AS ?monthDay)
}
GROUP BY ?monthDay
ORDER BY DESC(?count)

On which day and month were the most UK Members of Parliament born, considering only those with full birth dates recorded?

Show me the distribution of birth days (DD/MM) among British MPs who have their exact birth dates recorded, ordered by frequency.

SELECT DISTINCT ?var1 ( COUNT ( DISTINCT ?var2 ) AS ?var3 ) WHERE { BIND ( DAY ( ?var4 ) AS ?var5 ). BIND ( MONTH ( ?var4 ) AS ?var6 ). BIND ( CONCAT ( STR ( ?var5 ) , "/", STR ( ?var6 ) ) AS ?var1 ). ?var2 <http://www.wikidata.org/prop/direct/P39> [ <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q16707842> ] . ?var2 <http://www.wikidata.org/prop/direct/P569> ?var4 . ?var2 ( <http://www.wikidata.org/prop/P569> / <http://www.wikidata.org/prop/statement/value/P569> ) ?var7 . ?var7 <http://wikiba.se/ontology#timePrecision> "11"^^<http://www.w3.org/2001/XMLSchema#integer> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var1 ORDER BY DESC( ?var3 )


Question: Female alumni of the University of São Paulo with their birthplaces, birth dates, coordinates, and images.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?personLabel ?birthPlace ?birthPlaceLabel ?birthPlaceCoordinates ?dateOfBirth ?image WHERE {
  ?person wdt:P69 wd:Q835960 .
  ?person wdt:P21 wd:Q6581072 .
  ?person wdt:P19 ?birthPlace .
  ?birthPlace wdt:P625 ?birthPlaceCoordinates .
  ?person wdt:P569 ?dateOfBirth .
  ?person wdt:P18 ?image .
  ?person rdfs:label ?personLabel .
  ?birthPlace rdfs:label ?birthPlaceLabel .
  FILTER(LANG(?personLabel) = "en")
  FILTER(LANG(?birthPlaceLabel) = "en")
}

Who are the women educated at the University of São Paulo, where were they born, when were they born, what are the coordinates of their birthplaces, and do they have images available?

List all female graduates of the University of São Paulo along with their birthplace, birth date, birthplace coordinates, and a linked image from Wikimedia Commons.

SELECT ?var1 ?var1Label ?var2Label ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P69> <http://www.wikidata.org/entity/Q835960> . ?var1 <http://www.wikidata.org/prop/direct/P19> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var2 <http://www.wikidata.org/prop/direct/P625> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var5 . ?var1 <http://www.wikidata.org/prop/direct/P812> ?var6 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pt, en". } }


Question: English Wikipedia page about the film "A Pilot Returns" with "Pilot" in the URL.

SELECT ?page WHERE { ?page schema:about wd:Q4003998 ; schema:isPartOf <https://en.wikipedia.org/> . FILTER (REGEX(STR(?page), "Pilot")) }

What is the English Wikipedia page for the film "A Pilot Returns" that includes "Pilot" in its web address?

Show me the English Wikipedia article for the 1942 film "A Pilot Returns" whose URL contains the word "Pilot".

SELECT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q4003998> AS ?var2 ). ?var1 <http://schema.org/about> ?var2 . ?var1 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . FILTER ( ( REGEX ( STR ( ?var1 ) , "string1" ) ) ) . }


Question: Subclasses of terrorism

SELECT DISTINCT ?item ?itemLabel WHERE { ?item wdt:P279 wd:Q7283 . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

What are the different types of terrorism?

List all known forms of terrorism as classified in Wikidata.

SELECT DISTINCT ?var1 ?var1Label WHERE { { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q7283> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5710433> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: Scientific names of taxa with known geographic locations.

SELECT ?taxon ?scientificName WHERE { ?taxon wdt:P225 ?scientificName . ?taxon wdt:P276 [] .}

Which taxa have both a scientific name and a recorded geographic location?

Show me the scientific names of all taxa that are associated with a location, such as a continent where their fossils were found.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P225> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P276> [] . }


Question: Terrorism events with their coordinates or locations, prioritizing coordinates, and showing "No location" if unknown.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?terrorismEvent ?label ?coordinates ?location ?locationValue WHERE {
  ?terrorismEvent(wdt:P31 / wdt:P279 *) wd:Q7283 .
  OPTIONAL {
    ?terrorismEvent wdt:P625 ?coordinates .
  }
  OPTIONAL {
    ?terrorismEvent wdt:P276 ?location .
  }
  ?terrorismEvent rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  BIND(COALESCE(?coordinates , ?location , "No location") AS ?locationValue)
}

What are the terrorism-related incidents and their associated locations (coordinates or place names), with coordinates preferred over place names?

List all terrorism events in English along with their geographic coordinates if available; if not, use the location entity (like city or airport); if neither is available, mark it as "No location".

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE { { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q7283> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . } BIND ( IF ( EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . } , ?var2 , IF ( EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P276> ?var3 . } , ?var5 ,"0"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var4 ). SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: Italian label, description, image, coordinates, and Italian Wikipedia page for Vladimir Kubyshkin

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
SELECT ?label ?description ?image ?coordinates ?wikipediaArticle WHERE {
  OPTIONAL {
    wd:Q16668129 rdfs:label ?label .
    FILTER ( LANG( ?label ) = ?lang ) VALUES ( ?lang ?priority ) {
      ( "it" 1 ) ( "en" 2 ) ( "de" 3 ) ( "fr" 4 )
    }
  }
  OPTIONAL {
    wd:Q16668129 schema:description ?description .
    FILTER ( LANG( ?description ) = "it" )
  }
  OPTIONAL {
    wd:Q16668129 wdt:P18 ?image .
  }
  OPTIONAL {
    wd:Q16668129 wdt:P625 ?coordinates .
  }
  OPTIONAL {
    ?wikipediaArticle rdf:type schema:Article ; schema:about wd:Q16668129 ; schema:inLanguage "it" ; schema:isPartOf <https://it.wikipedia.org/> .
  }
}
ORDER BY ?priority

What is the Italian label, description, image, coordinates, and Italian Wikipedia article for Vladimir Kubyshkin?

Please provide the preferred language label (prioritizing Italian), Italian description, image, coordinates, and Italian Wikipedia link for Vladimir Kubyshkin.

SELECT ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q21490935> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = ?var7 ) ) ) . VALUES ( ?var7 ?var8 ) { ( "it""1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "en""2"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "de""3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "fr""4"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "it""5"^^<http://www.w3.org/2001/XMLSchema#integer> ) } } OPTIONAL { <http://www.wikidata.org/entity/Q21490935> <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q21490935> <urn:dboabstract> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "it" ) ) ) . } OPTIONAL { <http://www.wikidata.org/entity/Q21490935> <http://www.wikidata.org/prop/direct/P625> ?var4 . } OPTIONAL { ?var6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Article> ; <http://schema.org/about> <http://www.wikidata.org/entity/Q21490935> ; <http://schema.org/inLanguage> "it"; <http://schema.org/isPartOf> <https://it.wikipedia.org/> . } } ORDER BY ASC( ?var8 )


Question: What properties describe the concept of "child" in Wikidata, and what are the labels and counts of their values?

SELECT ?property (SAMPLE(?propLabel) AS ?propertyLabel) (COUNT(?value) AS ?count) (GROUP_CONCAT(?valueLabel; SEPARATOR=", ") AS ?valueLabels) WHERE { wd:Q7569 ?property ?value . ?value rdfs:label ?valueLabel . FILTER(LANG(?valueLabel) = "en") . ?propertyEntity wikibase:directClaim ?property . ?propertyEntity rdfs:label ?propLabel . FILTER(LANG(?propLabel) = "en") } GROUP BY ?property

Can you list the English labels of properties used for "child", along with how many values each has and what those values are called in English?

Show me a summary of all properties linked to "child" in Wikidata, including their names, the number of values, and the English labels of those values.

SELECT ?var1 ( SAMPLE ( ?var2 ) AS ?var2 )( COUNT ( ?var3 ) AS ?var4 )( GROUP_CONCAT ( ?var5 ; SEPARATOR = ", " ) AS ?var5 ) WHERE { <http://www.wikidata.org/entity/Q7569> ?var1 ?var3 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "en" ) ) ) . ?var6 <http://wikiba.se/ontology#directClaim> ?var1 . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } GROUP BY ?var1


Question: Authors of scientific works about titanium dioxide or NM-100 nanomaterials, paired as co-authors.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?author1 ?author1Label ?author2 ?author2Label WHERE {
  {
    ?work wdt:P921 wd:Q193521 .
  } UNION {
    ?work wdt:P921 wd:Q37111097 .
  }
  ?work wdt:P50 ?author1 .
  ?work wdt:P50 ?author2 .
  FILTER(?author1 != ?author2)
  ?author1 rdfs:label ?author1Label .
  ?author2 rdfs:label ?author2Label .
  FILTER(LANG(?author1Label) = "en" && LANG(?author2Label) = "en")
}

Which pairs of different authors have written works about titanium dioxide or the nanomaterial NM-100?

List all pairs of distinct authors who have co-authored publications on titanium dioxide or its nanomaterial form NM-100.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P31> */ <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q37109840> . } UNION { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P361> +) <http://www.wikidata.org/entity/Q37109840> . } UNION { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P1269> +) <http://www.wikidata.org/entity/Q37109840> . } ?var3 <http://www.wikidata.org/prop/direct/P50> ?var1 . ?var3 <http://www.wikidata.org/prop/direct/P50> ?var2 . FILTER ( ( ( ?var1 != ?var2 ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fr,de,ru,es,zh,jp". } }


Question: Greece labels in English, German, French, and Italian with Wikipedia links, image, and coordinates

SELECT ?var1Label ?var3 ?var4 ?var6 WHERE { VALUES (?lang ?var8) { ("en" "1"^^xsd:integer) ("de" "2"^^xsd:integer) ("fr" "3"^^xsd:integer) ("it" "4"^^xsd:integer) } wd:Q41 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = ?lang) OPTIONAL { wd:Q41 wdt:P18 ?var3 . } OPTIONAL { wd:Q41 wdt:P625 ?var4 . } OPTIONAL { ?var6 schema:about wd:Q41 ; schema:inLanguage ?lang ; schema:isPartOf ?domain . VALUES (?lang ?domain) { ("en" <https://en.wikipedia.org/>) ("de" <https://de.wikipedia.org/>) ("fr" <https://fr.wikipedia.org/>) ("it" <https://it.wikipedia.org/>) } } } ORDER BY ASC(?var8)

What are the official names of Greece in English, German, French, and Italian, along with its flag image, geographic coordinates, and Wikipedia articles in those languages?

Please provide the multilingual labels for Greece (English, German, French, Italian), its image from Wikimedia Commons, its geographic coordinates, and links to its Wikipedia pages in those languages, ordered by language preference.

SELECT ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q41> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = ?var7 ) ) ) . VALUES ( ?var7 ?var8 ) { ( "undefined""1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "en""2"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "de""3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "fr""4"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "it""5"^^<http://www.w3.org/2001/XMLSchema#integer> ) } } OPTIONAL { <http://www.wikidata.org/entity/Q41> <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q41> <urn:dboabstract> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "undefined" ) ) ) . } OPTIONAL { <http://www.wikidata.org/entity/Q41> <http://www.wikidata.org/prop/direct/P625> ?var4 . } OPTIONAL { ?var6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Article> ; <http://schema.org/about> <http://www.wikidata.org/entity/Q41> ; <http://schema.org/inLanguage> "undefined"; <http://schema.org/isPartOf> <https://undefined.wikipedia.org/> . } } ORDER BY ASC( ?var8 )


Question: How many states and provinces are connected to a country or another administrative division in Wikidata?

SELECT (COUNT(DISTINCT ?item) AS ?count) WHERE { { ?item wdt:P17 ?country . } UNION { ?parent wdt:P150 ?item . } { ?item (wdt:P31/wdt:P279*) wd:Q7275 . } UNION { ?item (wdt:P31/wdt:P279*) wd:Q34876 . } }

Count the number of administrative regions (states or provinces) that have a country as their sovereign state or are contained within another region.

What is the total number of states and provinces that are either part of a country or are subdivisions of other territories?

SELECT( COUNT ( DISTINCT * ) AS ?var1 ) WHERE { { ?var2 <http://www.wikidata.org/prop/direct/P17> ?var3 . } UNION { ?var3 <http://www.wikidata.org/prop/direct/P150> ?var2 . } { ?var2 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q7275> . } UNION { ?var2 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q34876> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Children and spouses of Vladimir Putin with their images.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?personLabel ?image WHERE {
  {
    ?person wdt:P22 wd:Q7747 .
  } UNION {
    ?person wdt:P26 wd:Q7747 .
  }
  OPTIONAL {
    ?person wdt:P18 ?image .
  }
  OPTIONAL {
    ?person rdfs:label ?personLabel .
    FILTER(LANG(?personLabel) = "en")
  }
}
LIMIT 100

Who are the children and spouses of Vladimir Putin, and do they have public images available?

List all known children and spouses of Vladimir Putin along with their English names and any associated images from Wikimedia Commons.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var3Label WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P22> <http://www.wikidata.org/entity/Q7747> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { { ?var1 <http://www.wikidata.org/prop/direct/P22> ?var3 . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P26> ?var3 . } } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } } UNION { ?var1 <http://www.wikidata.org/prop/direct/P26> <http://www.wikidata.org/entity/Q7747> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P26> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } } } LIMIT 100


Question: Airlines that are members of the Association of German Airlines, with their Wikipedia pages, official websites, and types.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?airline(SAMPLE(?airlineLabel) AS ?label) ?wikipediaPage(SAMPLE(?officialWebsite) AS ?website)(SAMPLE(?instanceOf) AS ?type) WHERE {
  ?airline wdt:P463 wd:Q1009002 .
  ?wikipediaPage schema:about ?airline ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> .
  OPTIONAL {
    ?airline wdt:P856 ?officialWebsite .
  }
  OPTIONAL {
    ?airline wdt:P31 ?instanceOf .
  }
  ?airline rdfs:label ?airlineLabel .
}
GROUP BY ?airline ?wikipediaPage
ORDER BY ?airline

Which airlines are members of the Association of German Airlines, and what are their official websites, English Wikipedia pages, and classifications?

List all airlines belonging to the Association of German Airlines, along with their official websites, English Wikipedia links, and what kind of organizations they are.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P127> <http://www.wikidata.org/entity/Q1009002> . ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/inLanguage> "en". ?var2 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P127> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the relationships between Vladimir Putin and other humans, and who are those people?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?relation ?person WHERE {
  wd:Q7747 ?relation ?person .
  ?person wdt:P31 wd:Q5 .
}
ORDER BY ?relation ?person
LIMIT 10

Who are the humans related to Vladimir Putin, and how are they connected to him?

List up to 10 people connected to Vladimir Putin by family, education, or other relationships, along with the type of connection.

SELECT DISTINCT ?var1 ?var2 WHERE { BIND ( <http://www.wikidata.org/entity/Q7747> AS ?var3 ). ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var3 ?var1 ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var4 ) LIMIT 10


Question: What are Udemy’s country, industry, and Twitter username in English, French, and German?

SELECT DISTINCT
  ?item
  ?label
  (LANG(?label) AS ?lang)
  ?countryLabel
  ?industryLabel
  ?twitterUsername
  ?simpleWikiPage
WHERE {
  BIND(wd:Q7877165 AS ?item) .  # Udemy

  ?item rdfs:label ?label .
  FILTER(LANG(?label) IN ("en", "fr", "de"))

  OPTIONAL { ?item wdt:P17 ?country . ?country rdfs:label ?countryLabel . FILTER(LANG(?countryLabel) = "en") }
  OPTIONAL { ?item wdt:P452 ?industry . ?industry rdfs:label ?industryLabel . FILTER(LANG(?industryLabel) = "en") }
  OPTIONAL { ?item wdt:P2002 ?twitterUsername }

  OPTIONAL {
    ?simpleWikiPage schema:about ?item ;
                    schema:inLanguage "en" ;
                    schema:isPartOf <https://simple.wikipedia.org/> .
  }
}

In which country is Udemy based, what industry does it operate in, and what is its Twitter handle, with labels available in English, French, and German?

Show me Udemy’s labels in English, French, and German, along with its country, industry, and Twitter username.

SELECT DISTINCT ?var1 ?var2Label ( LANG ( ?var2Label ) AS ?var3 ) ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 ?var10 ?var11 WHERE { BIND ( <http://www.wikidata.org/entity/Q7877165> AS ?var1 ). ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . OPTIONAL { ?var1 <http://schema.org/description> ?var12 . } FILTER ( ( ( LANG ( ?var2Label ) = "fr" ) || ( LANG ( ?var2Label ) = "en" ) || ( LANG ( ?var2Label ) = "de" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P452> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var9 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var10 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P154> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P935> ?var7 . } OPTIONAL { ?var11 <http://schema.org/about> ?var1 . ?var11 <http://schema.org/inLanguage> "en". ?var11 <http://schema.org/isPartOf> <https://simple.wikipedia.org/> . } }


Question: Humans without spouses and their occupations

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?personLabel ( GROUP_CONCAT( ?occupationLabel ; SEPARATOR = ", " ) AS ?occupations ) WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" ) FILTER NOT EXISTS {
    ?person wdt:P26 []
  }
  OPTIONAL {
    ?person wdt:P106 ?occupation .
    ?occupation rdfs:label ?occupationLabel .
    FILTER ( LANG( ?occupationLabel ) = "en" )
  }
}
GROUP BY ?person ?personLabel
LIMIT 1000

Who are some people who are not married and what are their occupations?

List 1000 people who don’t have a spouse along with their jobs.

SELECT ?var1 ?var1Label ( GROUP_CONCAT ( ?var2Label ; SEPARATOR = ", " ) AS ?var3 ) WHERE { ?var1 ( <http://www.wikidata.org/prop/P26> / <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ) <http://www.wikidata.org/prop/novalue/P26> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } } GROUP BY ?var1 ?var1Label LIMIT 1000


Question: What is the image of Calais on Wikimedia Commons?

SELECT ?image WHERE { wd:Q6454 wdt:P18 ?image .}

Can you show me the picture linked to the city of Calais?

Which landmark image is associated with Calais, France?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q6454> <http://www.wikidata.org/prop/direct/P18> ?var1 . }


Question: What properties are used to describe instances of locomotives in Wikidata?

SELECT DISTINCT ?propertyItem ?propertyItemLabel ?propertyItemDescription WHERE { ?instance wdt:P31 wd:Q93301 . ?instance ?property ?value . ?propertyItem wikibase:directClaim ?property . ?propertyItem a wikibase:Property . ?propertyItem rdfs:label ?propertyItemLabel . ?propertyItem schema:description ?propertyItemDescription . FILTER(LANG(?propertyItemLabel) = "en") FILTER(LANG(?propertyItemDescription) = "en") } LIMIT 100

Can you list the English labels and descriptions of properties that are used on locomotives?

Which Wikidata properties link locomotive instances to their attributes, and what are their English descriptions?

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 ?var5 <http://www.wikidata.org/entity/Q93301> . ?var1 ?var6 ?var5 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } LIMIT 100