Question: What are some examples of types of organizations?

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 ?organizationType ?organizationTypeLabel WHERE {
  ?organizationType wdt:P279 wd:Q43229 .
  ?organizationType rdfs:label ?organizationTypeLabel .
  FILTER(LANG(?organizationTypeLabel) = "en")
}
ORDER BY ?organizationTypeLabel
LIMIT 100

Can you list subclasses of the concept "organization" in Wikidata?

What are different kinds of organizations, such as nonprofits, guilds, or associations?

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


Question: What is the image associated with the SNAC ARK ID "w6xd18x4"?

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

Can you show me the Wikimedia Commons image for Gordon Getty?

Which image is linked to the Social Networks and Archival Context identifier w6xd18x4?

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


Question: What are some nonprofit organizations, their headquarters locations, and who founded them?

SELECT ?organization ?organizationLabel ?founderLabel ?headquartersLabel ?ceoLabel ?ceoStartDate ?employeeCount ?tickerSymbol ?stockExchangeLabel WHERE { ?organization wdt:P31 wd:Q163740 . ?organization rdfs:label ?organizationLabel . FILTER(LANG(?organizationLabel) = "en") OPTIONAL { ?organization wdt:P112 ?founder . ?founder rdfs:label ?founderLabel . FILTER(LANG(?founderLabel) = "en") } OPTIONAL { ?organization wdt:P159 ?headquarters . ?headquarters rdfs:label ?headquartersLabel . FILTER(LANG(?headquartersLabel) = "en") } OPTIONAL { ?organization p:P169 ?ceoStatement . ?ceoStatement ps:P169 ?ceo . ?ceo rdfs:label ?ceoLabel . FILTER(LANG(?ceoLabel) = "en") OPTIONAL { ?ceoStatement pq:P580 ?ceoStartDate . } } OPTIONAL { ?organization p:P1128 ?employeeStatement . ?employeeStatement ps:P1128 ?employeeCount . OPTIONAL { ?employeeStatement pq:P585 ?employeeDate . } } OPTIONAL { ?organization p:P414 ?exchangeStatement . ?exchangeStatement ps:P414 ?stockExchange . ?stockExchange rdfs:label ?stockExchangeLabel . FILTER(LANG(?stockExchangeLabel) = "en") OPTIONAL { ?exchangeStatement pq:P249 ?tickerSymbol . } } } LIMIT 20

Can you list nonprofit organizations with their CEO names and the start dates of their terms, along with employee counts?

Which nonprofit organizations are listed on stock exchanges with ticker symbols, and where are they headquartered?

SELECT ?var1 ?var1Label ?var2Label ?var3 ?var3Label ?var4Label ?var5Label ?var6 ?var7 ?var8 ?var9Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q163740> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/P414> ?var10 . ?var10 <http://www.wikidata.org/prop/statement/P414> ?var9 . ?var10 <http://www.wikidata.org/prop/qualifier/P249> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P249> ?var11 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P159> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P112> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/P169> ?var12 . ?var12 <http://www.wikidata.org/prop/statement/P169> ?var5 . OPTIONAL { ?var12 <http://www.wikidata.org/prop/qualifier/P580> ?var6 . } } OPTIONAL { ?var1 <http://www.wikidata.org/prop/P1128> ?var13 . ?var13 <http://www.wikidata.org/prop/statement/P1128> ?var7 . OPTIONAL { ?var13 <http://www.wikidata.org/prop/qualifier/P585> ?var14 . } } } LIMIT 50


Question: Entities in Florida with coordinates, images, and Commons categories

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 ?item ?itemLabel ?coord ?image ?commonsCategory WHERE {
  ?item wdt:P131 wd:Q812 .
  ?item wdt:P625 ?coord .
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P373 ?commonsCategory .
  }
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
}
LIMIT 3000

What are the places in Florida that have geographic coordinates, images on Wikimedia Commons, and associated Commons categories?

List all locations in Florida along with their coordinates, images, and Wikimedia Commons categories.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerSouthWest> "POINT(-82 28)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(-82 28)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var6 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". ?var1 <http://schema.org/description> ?var5 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } } LIMIT 3000


Question: English language entry in the Great Russian Encyclopedia Online with ID 1821310, including its description.

SELECT ?item ?itemLabel ?description WHERE { ?item wdt:P2924 "1821310" . OPTIONAL { ?item schema:description ?description . FILTER (LANG(?description) = "en") } ?item rdfs:label ?itemLabel . FILTER (LANG(?itemLabel) = "en") }

What is the English label and description of the entry in the Great Russian Encyclopedia Online with ID 1821310?

Show me the English name and description of the Great Russian Encyclopedia Online entry with ID 1821310.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2924> "1813564". 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 are the DOIs of academic papers written by Gary Becker?

SELECT ?work ?workTitle ?doi WHERE { ?work wdt:P50 wd:Q191020 . ?work wdt:P356 ?doi . ?work wdt:P1476 ?workTitle . } LIMIT 10

Which scholarly works by Gary Becker have digital object identifiers (DOIs), and what are their titles?

List Gary Becker’s published papers along with their titles and DOIs.

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


Question: How many times is the REBASE Enzyme Number (P4866) used in direct statements, with ranks, as references, and as qualifiers in Wikidata?

SELECT ?usageType ?rank ?count WHERE { { SELECT ( "statement" AS ?usageType ) ( "" AS ?rank ) ( COUNT( DISTINCT ?item ) AS ?count ) WHERE { ?item wdt:P4866 ?value . } } UNION { SELECT ( "statement" AS ?usageType ) ?rank ( COUNT( DISTINCT ?item ) AS ?count ) WHERE { ?item p:P4866 ?statement . ?statement wikibase:rank ?rank . } GROUP BY ?rank } UNION { SELECT ( "reference" AS ?usageType ) ( "" AS ?rank ) ( COUNT( DISTINCT ?item ) AS ?count ) WHERE { ?item pr:P4866 ?value . } } UNION { SELECT ( "qualifier" AS ?usageType ) ( "" AS ?rank ) ( COUNT( DISTINCT ?item ) AS ?count ) WHERE { ?item pq:P4866 ?value . } } } ORDER BY DESC(?usageType) DESC(?count) ASC(?rank)

Break down the usage of the REBASE enzyme ID property (P4866) by type: direct claims, ranked statements, references, and qualifiers, along with their counts.

What are the counts of REBASE Enzyme Number (P4866) usages in Wikidata, grouped by whether they are direct statements, ranked statements, references, or qualifiers?

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { { SELECT( <http://wikiba.se/ontology#statementProperty> AS ?var1 )( COUNT ( DISTINCT ?var5 ) AS ?var3 )( COUNT ( ?var6 ) AS ?var4 ) WHERE { ?var5 <http://www.wikidata.org/prop/P4866> ?var6 . } } UNION { SELECT( <http://wikiba.se/ontology#statementProperty> AS ?var1 )( <http://wikiba.se/ontology#BestRank> AS ?var2 )( COUNT ( DISTINCT ?var5 ) AS ?var3 )( COUNT ( ?var7 ) AS ?var4 ) WHERE { ?var5 <http://www.wikidata.org/prop/direct/P4866> ?var7 . } } UNION { SELECT( <http://wikiba.se/ontology#statementProperty> AS ?var1 ) ?var2 ( COUNT ( DISTINCT ?var5 ) AS ?var3 )( COUNT ( ?var8 ) AS ?var4 ) WHERE { ?var5 <http://www.wikidata.org/prop/P4866> ?var8 . ?var8 <http://wikiba.se/ontology#rank> ?var2 . } GROUP BY ?var2 } UNION { SELECT( <http://wikiba.se/ontology#reference> AS ?var1 )( COUNT ( DISTINCT ?var5 ) AS ?var3 )( COUNT ( ?var6 ) AS ?var4 ) WHERE { ?var5 <http://www.wikidata.org/prop/reference/P4866> ?var6 . } } UNION { SELECT( <http://wikiba.se/ontology#qualifier> AS ?var1 )( COUNT ( DISTINCT ?var5 ) AS ?var3 )( COUNT ( ?var6 ) AS ?var4 ) WHERE { ?var5 <http://www.wikidata.org/prop/qualifier/P4866> ?var6 . } } } ORDER BY DESC( ?var1 ) DESC( ?var3 )ASC( ?var2 )


Question: What are Heidi Klum’s occupations?

SELECT ?occupation ?occupationLabel WHERE { wd:Q60036 wdt:P106 ?occupation . ?occupation rdfs:label ?occupationLabel . FILTER(LANG(?occupationLabel) = 'en') }

What professions is Heidi Klum known for?

Can you list Heidi Klum’s jobs in the entertainment industry?

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


Question: What countries and administrative regions is Disneyland Park (Paris) directly located in?

SELECT DISTINCT ?location WHERE { VALUES ?disneyland { wd:Q2313567 } ?disneyland (wdt:P30 | wdt:P17 | wdt:P131 | wdt:P376 | wdt:P501) ?location .}

List all places directly associated with Disneyland Park through country or administrative division links.

Where is Disneyland Park (Paris) situated in terms of its immediate geographic and political context?

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q2313567> 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: What are 100 authors with English labels and descriptions?

SELECT ?author ?authorLabel ?authorDescription WHERE { ?work wdt:P50 ?author . ?author rdfs:label ?authorLabel . ?author schema:description ?authorDescription . FILTER(LANG(?authorLabel) = "en") FILTER(LANG(?authorDescription) = "en") } LIMIT 100

Can you list authors of works who have English names and descriptions?

Show me authors (with their English names and descriptions) of any published work.

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/entity/P50> ?var1 . } 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


Question: How many entities are classified as agent in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ( COUNT( ?item ) AS ?count ) WHERE {
  ?item wdt:P31 wd:Q24229398 .
}

What is the count of items that are instances of the agent class in Wikidata?

Show me the number of entities in Wikidata that are typed as agent.

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


Question: Most common occupations of people in the Six Degrees of Francis Bacon database.

SELECT ?occupationLabel (COUNT(?person) AS ?count)
WHERE {
  ?person wdt:P2401 ?id .
  ?person wdt:P106 ?occupation .
  ?occupation rdfs:label ?occupationLabel .
  FILTER(LANG(?occupationLabel) = "en")
}
GROUP BY ?occupation ?occupationLabel
ORDER BY DESC(?count)

What are the most frequent occupations among individuals listed in the Six Degrees of Francis Bacon network?

Show me a ranked list of occupations of people in the Six Degrees of Francis Bacon database, ordered by how many people have each occupation.

SELECT ?var1Label ?var2 WHERE { { SELECT ?var1 ( COUNT ( ?var3 ) AS ?var2 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P2401> _:b1 . ?var3 <http://www.wikidata.org/prop/direct/P106> ?var1 . } GROUP BY ?var1 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY DESC( ?var2 )


Question: What are the names of Albanian citizens who do not have an Albanian-language label in Wikidata?

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 ?human ?label WHERE {
  ?human wdt:P31 wd:Q5 .
  ?human wdt:P27 wd:Q222 .
  OPTIONAL {
    ?human rdfs:label ?label .
    FILTER(LANG(?label) = "en")
  }
  FILTER(NOT EXISTS {
    ?human rdfs:label ?albanianLabel .
    FILTER(LANG(?albanianLabel) = "sq")
  })
}
ORDER BY ASC(?label)

List humans who are citizens of Albania but whose names are not written in Albanian, showing their English names if available.

Show me the English labels of all Albanian citizens, excluding those who have an Albanian label.

SELECT ?var1 ?var2 ?var2Label ?var3 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var2 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q222> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en, sq". } FILTER ( ( NOT EXISTS { ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "sq" ) ) ) . } ) ) . } ORDER BY ASC( ?var2Label )


Question: Notable students of the University of Leicester

SELECT ?student ?studentLabel WHERE { ?student wdt:P69 wd:Q1333399 . ?student rdfs:label ?studentLabel . FILTER(LANG(?studentLabel) = "en") }

Who are the people educated at the University of Leicester?

List the English-labeled individuals who attended the University of Leicester.

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


Question: What are the English and German Wikipedia pages for the movie with IMDb ID tt4814760?

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?movie ?wikipedia_page WHERE {
  ?movie wdt:P345 "tt4814760" .
  ?wikipedia_page schema:about ?movie ; schema:inLanguage ?lang .
  FILTER ( ?lang = "en" || ?lang = "de" )
}

Show me the Wikipedia articles in English and German about the film "Here Alone".

Which language versions of Wikipedia have articles about the movie identified by tt4814760?

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt4814760". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: External identifiers for Donald Trump

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?value WHERE {
  wd:Q22686 ?p ?stmt .
  ?stmt ?ps ?value .
  FILTER ( STRSTARTS( STR( ?ps ) , "http://www.wikidata.org/prop/statement/" ) ) FILTER ( isLiteral( ?value ) ) BIND( ?p AS ?property )
}
ORDER BY ?property

What are all the external database IDs associated with Donald Trump on Wikidata?

List all the identifiers (like GND, Curlie, CANTIC) linked to Donald Trump in Wikidata.

SELECT DISTINCT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q22686> ?var1 ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1 ) OFFSET 400


Question: What are some paintings that depict portraits?

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 ?item ?itemLabel WHERE {
  ?item wdt:P31 wd:Q3305213 .
  ?item wdt:P921 wd:Q134307 .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}

Can you list paintings where the main subject is a portrait?

Show me artworks classified as paintings with a portrait as their central subject.

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


Question: Who is the French writer named Marcel Jouhandeau?

SELECT DISTINCT ?item WHERE { ?item rdfs:label "Marcel Jouhandeau"@fr . ?item wdt:P31 wd:Q5 .}

What human entity has the French label "Marcel Jouhandeau"?

Find the person in Wikidata whose name in French is Marcel Jouhandeau.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "Jouhand"@fr . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . }


Question: English and German Wikipedia pages for the movie with IMDb ID tt0473753

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?movie ?wikipedia_page WHERE {
  ?movie wdt:P345 "tt0473753" .
  ?wikipedia_page schema:about ?movie .
  {
    ?wikipedia_page schema:inLanguage "en" .
  } UNION {
    ?wikipedia_page schema:inLanguage "de" .
  }
}

What are the English and German Wikipedia articles for the movie Angel-A?

Show me the English and German Wikipedia links for the film identified by IMDb ID tt0473753.

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt0473753". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the English and German Wikipedia and Wikiquote pages about the movie with IMDb ID tt0366780?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?movie ?page WHERE {
  ?movie wdt:P345 "tt0366780" .
  ?page schema:about ?movie .
  ?page schema:inLanguage ?lang .
  VALUES ?lang {
    "en" "de"
  }
}

Show me all Wikimedia pages in English or German that describe the film MirrorMask.

Which language versions of Wikipedia and Wikiquote have articles about the movie MirrorMask?

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt0366780". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: English and German Wikipedia pages for the movie with IMDb ID tt0417385.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?movie ?wikipediaPage WHERE {
  ?movie wdt:P345 "tt0417385" .
  ?wikipediaPage schema:about ?movie .
  ?wikipediaPage schema:inLanguage ?lang .
  FILTER(?lang = "en" || ?lang = "de")
}

What are the English and German Wikipedia articles for the film 12 and Holding?

Show me the Wikipedia pages in English and German for the movie identified by IMDb ID tt0417385.

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt0417385". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the episodes of the TV series The Blacklist, including their seasons and IMDb IDs?

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 ?episode ?episodeLabel ?series ?seriesLabel ?season ?seasonLabel ?imdbId ?premiereDate WHERE {
  ?episode wdt:P31 wd:Q21191270 .
  ?episode wdt:P179 wd:Q13148212 .
  ?episode wdt:P4908 ?season .
  ?episode wdt:P179 ?series .
  OPTIONAL {
    ?episode wdt:P345 ?imdbId .
  }
  OPTIONAL {
    ?episode wdt:P1191 ?premiereDate .
  }
  OPTIONAL {
    ?episode rdfs:label ?episodeLabel .
    FILTER(LANG(?episodeLabel) = "en")
  }
  OPTIONAL {
    ?series rdfs:label ?seriesLabel .
    FILTER(LANG(?seriesLabel) = "en")
  }
  OPTIONAL {
    ?season rdfs:label ?seasonLabel .
    FILTER(LANG(?seasonLabel) = "en")
  }
}
ORDER BY ?season ?episodeLabel
LIMIT 10

List the episodes of The Blacklist season by season, along with their English titles and IMDb identifiers.

Show me the episodes from The Blacklist with their corresponding seasons and IMDb IDs, sorted by season and episode name.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var3Label ?var4 ?var4Label ?var5 ?var6 ?var7 ?var8 ?var9 ?var10 ?var11 ?var12 ?var13 ?var14 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q21191270> . ?var4 <http://www.wikidata.org/prop/direct/P179> <http://www.wikidata.org/entity/Q13148212> . ?var4 <http://www.wikidata.org/prop/direct/P361> ?var3 . ?var4 <http://www.wikidata.org/prop/direct/P179> ?var1 . OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P1191> ?var8 . } OPTIONAL { ?var4 <http://www.wikidata.org/prop/P179> ?var15 . } OPTIONAL { ?var15 <http://www.wikidata.org/prop/qualifier/P1545> ?var5 . } OPTIONAL { ?var4 <http://www.wikidata.org/prop/P361> ?var16 . } OPTIONAL { ?var16 <http://www.wikidata.org/prop/qualifier/P1545> ?var6 . } OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P345> ?var7 . } OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P155> ?var9 . } OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P156> ?var10 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "it". } } ORDER BY ASC( ?var2 )ASC( ?var1 )ASC( <http://www.w3.org/2001/XMLSchema#integer> ( ?var5 ) )


Question: What is the capital of the United States, and what are the labels of both the country and its capital?

SELECT DISTINCT ?countryLabel ?capitalLabel WHERE { ?country rdfs:label "United States"@en . ?country wdt:P36 ?capital . ?country rdfs:label ?countryLabel . ?capital rdfs:label ?capitalLabel . FILTER(LANG(?countryLabel) = "en") FILTER(LANG(?capitalLabel) = "en") }

Show me the English labels of the United States and its capital city.

Retrieve the names in English of the United States and the city that serves as its capital.

SELECT DISTINCT ?var1 ?var2Label ?var1Label ?var3 WHERE { ?var2 ?var4Label "string1". SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Is there a Wikidata item associated with the VIAF ID 316452561?

Does the Virtual International Authority File identifier 316452561 exist in Wikidata?

Can you confirm if the VIAF ID 316452561 is linked to any person or entity in Wikidata?

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P214> "316452561". }


Question: Who were the film directors that died in 2017?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?director WHERE {
  ?director wdt:P106 wd:Q2526255 .
  ?director wdt:P570 ?deathDate .
  FILTER(YEAR(?deathDate) = 2017)
}
LIMIT 500

Can you list all people whose profession was film director and who passed away in 2017?

How many film directors died in 2017, and who are they?

SELECT ?var1 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/P106> <http://www.wikidata.org/entity/Q2526255> . ?var1 <http://www.wikidata.org/prop/direct/P570> <http://www.wikidata.org/entity/Q25290> . OPTIONAL { } } LIMIT 500


Question: Humans married on Christmas Day (December 25) with their marriage start dates.

SELECT ?human ?humanLabel ?marriageStartDate WHERE { ?human wdt:P31 wd:Q5 . ?human p:P26 [ pq:P580 ?marriageStartDate ] . FILTER ( DAY(?marriageStartDate) = 25 && MONTH(?marriageStartDate) = 12 ) . ?human rdfs:label ?humanLabel . FILTER (LANG(?humanLabel) = "en") } LIMIT 10

Who are some people who got married on December 25th, and when did they get married?

List people who got married on December 25th, including their names and the exact date of their marriage.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/P26> [ <http://www.wikidata.org/prop/qualifier/P580> ?var2 ] . FILTER ( ( ( DAY ( ?var2 ) = "25"^^<http://www.w3.org/2001/XMLSchema#integer> ) && ( MONTH ( ?var2 ) = "12"^^<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,en". } } LIMIT 10


Question: Does the IMDb ID tt6450186 exist in Wikidata?

Is there a movie or media item in Wikidata with the IMDb identifier tt6450186?

Check if the IMDb ID tt6450186 is linked to any entity in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt6450186". }


Question: Nobel Prize in Physics winners with 'J' in their name and their spouses

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 ?laureate ?spouse ?laureateLabel WHERE {
  ?laureate wdt:P166 wd:Q38104 .
  ?spouse wdt:P26 ?laureate .
  ?laureate rdfs:label ?laureateLabel .
  FILTER(LANG(?laureateLabel) = 'en')
  FILTER(CONTAINS(LCASE(?laureateLabel) , 'j'))
}

Which Nobel laureates in Physics have names containing the letter 'J' and are married?

List the names of Nobel Prize in Physics winners whose names include 'J' and their spouses.

SELECT ?var1 ?var2 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P166> <http://www.wikidata.org/entity/Q38104> . ?var2 <http://www.wikidata.org/prop/direct/P26> ?var1 . FILTER ( ( CONTAINS ( ?var1Label , "J" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Does the movie with IMDb ID tt7235930 exist in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P345 "tt7235930" .
}

Is there a Wikidata item for the film with IMDb identifier tt7235930?

Check if the IMDb ID tt7235930 is linked to any entity in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt7235930". }


Question: What are the administrative hierarchy levels and types for Saint George Rotunda Church in Sofia?

SELECT DISTINCT ?churchTypeLabel ?admin1TypeLabel ?admin1 ?admin1Label ?admin2TypeLabel ?admin2 ?admin2Label WHERE { wd:Q2598073 wdt:P31 ?churchType . wd:Q2598073 wdt:P131 ?admin1 . ?admin1 wdt:P31 ?admin1Type . ?admin1 wdt:P131 ?admin2 . ?admin2 wdt:P31 ?admin2Type . OPTIONAL { ?churchType rdfs:label ?churchTypeLabel . FILTER(LANG(?churchTypeLabel) = "en") } OPTIONAL { ?admin1Type rdfs:label ?admin1TypeLabel . FILTER(LANG(?admin1TypeLabel) = "en") } OPTIONAL { ?admin2Type rdfs:label ?admin2TypeLabel . FILTER(LANG(?admin2TypeLabel) = "en") } OPTIONAL { ?admin1 rdfs:label ?admin1Label . FILTER(LANG(?admin1Label) = "en") } OPTIONAL { ?admin2 rdfs:label ?admin2Label . FILTER(LANG(?admin2Label) = "en") } }

What type of building is Saint George Rotunda Church, and what administrative regions is it located in, including their types?

Show me the type of Saint George Rotunda Church and its two-level administrative location hierarchy with the types of each location.

SELECT DISTINCT ?var1Label ?var2Label ?var3 ?var3Label ?var4Label ?var5 ?var5Label WHERE { BIND ( <http://www.wikidata.org/entity/Q2598073> AS ?var6 ). ?var6 <http://www.wikidata.org/prop/direct/P31> ?var1 . ?var6 <http://www.wikidata.org/prop/direct/P131> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P31> ?var2 . ?var3 <http://www.wikidata.org/prop/direct/P131> ?var5 . ?var5 <http://www.wikidata.org/prop/direct/P31> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Does the movie 'Invasion' (2007) have the IMDb ID tt6215368?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P345 "tt6215368" .
}

Is there a Wikidata item for the film 'Invasion' with IMDb identifier tt6215368?

Confirm that the IMDb ID tt6215368 corresponds to a movie in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt6215368". }


Question: Is there a Wikidata item with IMDb ID tt7243720?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P345 "tt7243720" .
}

Does the movie or TV show with IMDb ID tt7243720 have a corresponding entry in Wikidata?

Confirm whether the IMDb identifier tt7243720 is linked to any entity in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt7243720". }


Question: What are the Twitter handles of Elon Musk, BBC News, NASA, and SSC Napoli, sorted by the number of Wikipedia articles about them?

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?twitterHandle ( COUNT( ?sitelink ) AS ?sitelinkCount ) WHERE {
  ?item wdt:P2002 ?twitterHandle .
  ?sitelink schema:about ?item .
  VALUES ?twitterHandle {
    "elonmusk" "BBCNews" "NASA" "sscnapoli"
  }
}
GROUP BY ?item ?twitterHandle
ORDER BY ASC ( ?sitelinkCount )

Which of these Twitter accounts — elonmusk, BBCNews, NASA, sscnapoli — has the fewest Wikipedia sitelinks, and how many do they each have?

List the entities with Twitter usernames elonmusk, BBCNews, NASA, and sscnapoli, along with their sitelink counts, ordered from least to most sitelinks.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "pixeltoo" ) ( "a_ka_es" ) ( "string1" ) ( "string2" ) ( "Nap_ooo" ) } } ORDER BY ASC( ?var3 )


Question: Who won the Academy Award for Best Writing, Adapted Screenplay and what are their IMDb IDs?

SELECT ?award ?awardLabel ?winner ?winnerLabel ?imdbId WHERE { ?award wdt:P2517 wd:Q7135398 . ?winner p:P1411 ?awardStmt . ?awardStmt ps:P1411 ?award ; rdf:type wikibase:BestRank . ?award rdfs:label ?awardLabel . ?winner rdfs:label ?winnerLabel . FILTER(LANG(?awardLabel) = "en") FILTER(LANG(?winnerLabel) = "en") OPTIONAL { ?winner wdt:P345 ?imdbId . } } LIMIT 100

Which films and screenwriters have won the Academy Award for Best Writing, Adapted Screenplay, and what are their IMDb identifiers?

List all winners of the Academy Award for Best Writing, Adapted Screenplay along with their IMDb IDs.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var3Label 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/P2517> <http://www.wikidata.org/entity/Q7135398> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P345> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1346> ?var3 . } } LIMIT 100


Question: Islands and archipelagos located in or next to the North Sea

SELECT DISTINCT ?island ?islandLabel ?coord WHERE { { ?island wdt:P31 wd:Q23442 . } UNION { ?island wdt:P31 wd:Q33837 . ?island wdt:P527 / wdt:P31 wd:Q23442 . } ?island wdt:P206 wd:Q1693 . OPTIONAL { ?island wdt:P625 ?coord . } OPTIONAL { ?island rdfs:label ?islandLabel FILTER(LANG(?islandLabel) = "en") } } LIMIT 2000

Which islands and island groups are situated in or adjacent to the North Sea?

List all islands and archipelagos in the North Sea region along with their coordinates.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P2670> +) <http://www.wikidata.org/entity/Q23442> . ?var1 ( <http://www.wikidata.org/prop/direct/P206> / <http://www.wikidata.org/prop/direct/P361> *) <http://www.wikidata.org/entity/Q1693> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs,sk,cs,en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . } } LIMIT 2000


Question: English or German title of the movie with IMDb ID tt0355977

SELECT ?item ?imdbId ?label WHERE { ?item wdt:P345 "tt0355977" . BIND("tt0355977" AS ?imdbId) . ?item rdfs:label ?label . FILTER(LANG(?label) IN ("en", "de")) }

What is the English or German label for the film with IMDb ID tt0355977?

Show me the English or German name of the movie identified by tt0355977 on IMDb.

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt0355977". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Does Transfermarkt player ID 84677 exist in Wikidata?

ASK WHERE { ?player wdt:P2446 "84677" . }

Is there a football player in Wikidata with the Transfermarkt ID 84677?

Confirm if the footballer with Transfermarkt ID 84677 is listed in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2446> "84677". }


Question: Does Wikidata contain a football player with Transfermarkt ID 256994?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?player wdt:P2446 "256994" .
}

Is Marius Kleinsorge listed in Wikidata with the Transfermarkt player ID 256994?

Can you confirm that the footballer Marius Kleinsorge has the Transfermarkt ID 256994 in Wikidata?

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2446> "256994". }


Question: Who are the people with the surname Legault?

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

List all humans in Wikidata whose family name is Legault.

Can you show me the list of individuals with the last name Legault?

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "legau"@fr . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . }


Question: Wikipedia page in English or German for movie with IMDb ID tt0477731

SELECT ?movie ?wikipedia_page WHERE { ?movie wdt:P345 "tt0477731" . ?wikipedia_page schema:about ?movie . { ?wikipedia_page schema:inLanguage "en" . } UNION { ?wikipedia_page schema:inLanguage "de" . } }

What is the English or German Wikipedia page for the movie with IMDb ID tt0477731?

Show me the Wikipedia article in English or German about the film identified by IMDb ID tt0477731.

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt0477731". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: English or German Wikipedia page for the movie with IMDb ID tt0461169

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?movie ?wikipediaPage WHERE {
  VALUES ?imdbId {
    "tt0461169"
  }
  ?movie wdt:P345 ?imdbId .
  ?wikipediaPage schema:about ?movie .
  {
    ?wikipediaPage schema:inLanguage "en" .
  } UNION {
    ?wikipediaPage schema:inLanguage "de" .
  }
}

What is the English or German Wikipedia page for the film with IMDb identifier tt0461169?

Show me the Wikipedia page in English or German for the movie identified by tt0461169 on IMDb.

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt0461169". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: English and German Wikipedia pages about the movie with IMDb ID tt1375666

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?wikipedia_page ?language WHERE {
  ?movie wdt:P345 "tt1375666" .
  ?wikipedia_page schema:about ?movie ; schema:inLanguage ?language .
  FILTER(?language = "en" || ?language = "de")
}

What are the English and German Wikipedia pages about the movie Inception?

Show me the English and German language Wikipedia pages related to the movie Inception (IMDb: tt1375666).

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt0817885". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the English and German Wikipedia pages for the movie with IMDb ID tt0468683?

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?movie ?wikipedia_page WHERE {
  ?movie wdt:P345 "tt0468683" .
  ?wikipedia_page schema:about ?movie ; schema:inLanguage ?lang .
  FILTER ( ?lang = "en" || ?lang = "de" )
}

Show me the Wikipedia articles in English and German about the film "The Red Shoes" (2005).

Which language versions of Wikipedia have articles about the movie identified by IMDb ID tt0468683?

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt0468683". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Which Wikidata entities have Twitter/X usernames 'bitgo', 'elonmusk', 'planet4589', 'sciam', 'SpaceX', or 'Tesla'?

SELECT ?entity ?twitterUsername WHERE { ?entity wdt:P2002 ?twitterUsername . VALUES ?twitterUsername { "bitgo" "elonmusk" "planet4589" "sciam" "SpaceX" "Tesla" } }

Who or what organizations on Wikidata use the Twitter handles @bitgo, @elonmusk, @planet4589, @sciam, @SpaceX, or @Tesla?

List the entities on Wikidata that are associated with the Twitter usernames: bitgo, elonmusk, planet4589, sciam, SpaceX, and Tesla.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "sciam" ) ( "ElonMusk" ) ( "SpaceX" ) ( "string1" ) ( "string2" ) ( "string3" ) ( "amberooops" ) ( "abby_wix" ) ( "JaneidyEve" ) ( "string4" ) ( "cloud9" ) ( "spacex" ) ( "harbor" ) ( "tesla" ) ( "bitgo" ) ( "string5" ) ( "string6" ) ( "PumaPay" ) ( "string7" ) ( "elonmusk" ) ( "Tesla" ) ( "valleyhack" ) ( "1_55_AM" ) ( "wolfejosh" ) ( "string8" ) ( "string9" ) ( "solarcity" ) ( "kubz42018" ) ( "string10" ) ( "StasisGame" ) ( "23rdNNC" ) ( "string11" ) ( "string12" ) ( "planet4589" ) ( "caytxg" ) ( "Liembo" ) ( "DdeArco" ) ( "marconiese" ) ( "regs888" ) } }


Question: What is the English or German Wikipedia page for the movie with IMDb ID tt0051423?

SELECT ?movie ?wikipediaPage WHERE { ?movie wdt:P345 "tt0051423" . ?wikipediaPage schema:about ?movie . { ?wikipediaPage schema:inLanguage "en" . } UNION { ?wikipediaPage schema:inLanguage "de" . } }

Find the Wikipedia article in English or German about the film identified by tt0051423 on IMDb.

Which Wikipedia pages (in English or German) are linked to the movie Blue Murder at St Trinian's via its IMDb ID?

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt0051423". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Top companies in the United Kingdom

SELECT ?company ?companyLabel WHERE { ?company wdt:P31/wdt:P279* wd:Q783794 . ?company wdt:P17 wd:Q145 . ?company wdt:P1476 ?companyLabel . FILTER(LANG(?companyLabel) = "en") } LIMIT 100

What are some companies based in the United Kingdom?

List up to 100 English-named companies located in the United Kingdom, including their official titles.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 ( <http://www.wikidata.org/prop/P31> / <http://www.wikidata.org/prop/statement/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q783794> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q145> . ?var1 <http://wikiba.se/ontology#sitelinks> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "et,en". } } ORDER BY DESC( ?var2 ) LIMIT 100


Question: What are the movie theaters in Norfolk, Virginia, and their coordinates?

SELECT ?theater ?coordinates WHERE { ?theater wdt:P31 wd:Q41253 . ?theater wdt:P131 wd:Q49231 . OPTIONAL { ?theater wdt:P625 ?coordinates . } } LIMIT 100

Can you list all cinemas in Norfolk, VA, along with their geographic locations?

Where are the film theaters located in Norfolk, Virginia?

SELECT ?var1 ?var1Label ?var2 ?var2Label 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/P31> <http://www.wikidata.org/entity/Q41253> . ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q49231> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . } } LIMIT 100


Question: Image of Samuel Laurence with SNAC ARK ID w6w66s50

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

What is the image associated with the SNAC ARK ID w6w66s50?

Show me the Wikimedia Commons image for the person identified by SNAC ARK ID w6w66s50.

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


Question: What are the types and examples of clothing in Wikidata?

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 ?item ?itemLabel WHERE {
  ?item(wdt:P31 / wdt:P279 *) wd:Q11460 .
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
}

What are the subclasses and instances of clothing in English?

List all clothing items and their English labels from Wikidata, including subcategories like dresses, hats, and coats.

SELECT ?var1 ?var1Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q11460> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sv". } FILTER ( ( ( SUBSTR ( STR ( ?var1Label ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) != "Q" ) ) ) . }


Question: Swedish-language clothing items that are not armored vehicles.

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 ?item ?label WHERE {
  ?item ( wdt:P31 / wdt:P279 * ) wd:Q11460 . MINUS {
    ?item ( wdt:P31 / wdt:P279 * ) wd:Q130368 .
  }
  ?item rdfs:label ?label .
  FILTER ( LANG( ?label ) = "sv" ) FILTER ( REGEX( STR( ?label ) , "^[A-Z]" ) )
}
ORDER BY ASC ( ?label )

What are the Swedish names for items classified as clothing but not armored fighting vehicles?

List all Swedish labels for clothing items (including subclasses), ensuring they start with an uppercase letter and excluding any that are armored fighting vehicles.

SELECT ?var1 ?var2 WHERE { { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q11460> . } MINUS { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q130368> . } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "sv" ) ) ) . FILTER ( ( ( UCASE ( SUBSTR ( ?var2 ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) = SUBSTR ( ?var2 ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) ) . } ORDER BY ASC( ?var2 )


Question: What dishes and products are made from cabbage, and what images and Wikipedia pages are associated with them?

SELECT ?cabbageDerivativeLabel ?cabbageDerivative ?image ?externalPage WHERE { ?cabbageDerivative wdt:P527 wd:Q35051 . OPTIONAL { ?cabbageDerivative wdt:P18 ?image . } OPTIONAL { ?externalPage schema:about ?cabbageDerivative . } ?cabbageDerivative rdfs:label ?cabbageDerivativeLabel . FILTER(LANG(?cabbageDerivativeLabel) = "en") }

Which foods derived from cabbage have images on Wikimedia Commons and links to Wikipedia articles in English?

Show me all English-named cabbage-based foods along with their associated images and external links like Wikipedia pages.

SELECT ?var1Label ?var1 ?var2 ?var2Label ?var3 ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P527> <http://www.wikidata.org/entity/Q35051> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } OPTIONAL { ?var3 <http://schema.org/about> ?var1 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } }


Question: What is the English title of the movie with IMDb ID tt6685596?

SELECT ?item ?itemLabel WHERE { ?item wdt:P345 "tt6685596" . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

Which movie has the IMDb identifier tt6685596, and what is its English title?

Tell me the English name of the film identified by tt6685596 on IMDb.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt6685596". SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } }


Question: What are the English and German Wikipedia pages for the movie with IMDb ID tt0099800?

SELECT ?movie ?wikipediaPage WHERE { ?movie wdt:P345 "tt0099800" . ?wikipediaPage schema:about ?movie . { ?wikipediaPage schema:inLanguage "en" . } UNION { ?wikipediaPage schema:inLanguage "de" . } }

Which Wikipedia articles in English and German are about the movie 'House Party' (IMDb: tt0099800)?

Show me the English and German Wikipedia links for the film identified by IMDb ID tt0099800.

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt0099800". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Wikipedia page for The Amityville Legacy on IMDb tt5189528 in English or German

SELECT ?movie ?wikipedia_page WHERE { ?movie wdt:P345 "tt5189528" . ?wikipedia_page schema:about ?movie . VALUES ?lang { "en" "de" } ?wikipedia_page schema:inLanguage ?lang . }

What is the English or German Wikipedia page for the movie with IMDb ID tt5189528?

Show me the English or German Wikipedia article for the movie identified by IMDb ID tt5189528.

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt5189528". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the aspect ratios (height divided by width) of manuscripts in Wikidata?

SELECT ?manuscript ?height ?width (?height / ?width AS ?aspectRatio) WHERE { ?manuscript wdt:P31 wd:Q87167 ; wdt:P2049 ?width ; wdt:P2048 ?height . FILTER(?width > 0) }

Can you list manuscripts along with their height, width, and the ratio of height to width?

Which handwritten documents have recorded dimensions, and what is their height-to-width proportion?

SELECT * WHERE { BIND ( ( ?var1 / ?var2 ) AS ?var3 ). ?var4 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q87167> ; <http://www.wikidata.org/prop/direct/P2049> ?var2 ; <http://www.wikidata.org/prop/direct/P2048> ?var1 . }


Question: Who is the person with IMDb ID nm0780624?

SELECT ?person ?personLabel WHERE { ?person wdt:P345 "nm0780624" . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") }

What is the name of the actor identified by the IMDb ID nm0780624?

Please provide the English label for the Wikidata item with IMDb identifier nm0780624.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "nm0780624". SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } }


Question: Does Chalmers University of Technology have the GND ID 1005111-9?

Is there an entity in Wikidata with the GND identifier 1005111-9?

Confirm if the German National Library ID 1005111-9 is assigned to any item in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "1005111-9". }


Question: People named Martin born in 2000

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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:P735 wd:Q18002399 .
  ?person wdt:P569 ?dob .
  FILTER ( ?dob >= "2000-01-01" ^^ xsd:date && ?dob <= "2000-12-31" ^^ xsd:date ) .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}

Who are the people named Martin that were born in the year 2000?

List the English names of people with the given name Martin who were born in 2000.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P735> <http://www.wikidata.org/entity/Q18002399> . ?var1 <http://www.wikidata.org/prop/direct/P569> "1.1.2000". }


Question: List of English-named human poets

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 ?humanLabel WHERE {
  ?human wdt:P31 wd:Q5 .
  ?human wdt:P106 wd:Q49757 .
  ?human rdfs:label ?humanLabel .
  FILTER ( LANG( ?humanLabel ) = "en" )
}
LIMIT 400000

Who are the human poets with English-language labels on Wikidata?

Show me the names in English of all people whose occupation is poet.

SELECT ?var1 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q49757> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P106> ?var2 . } } LIMIT 400000


Question: List video games released between 1980 and 2016 with their platform, publisher, genre, developer, and ESRB/PEGI ratings.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?game ?platform ?publisher ?genre(YEAR(?pubDate) AS ?year) ?developer ?esrb ?pegi WHERE {
  ?game wdt:P31 wd:Q7889 .
  ?game wdt:P400 ?platform .
  ?game wdt:P123 ?publisher .
  ?game wdt:P136 ?genre .
  ?game wdt:P577 ?pubDate .
  OPTIONAL {
    ?game wdt:P178 ?developer .
  }
  OPTIONAL {
    ?game wdt:P852 ?esrb .
  }
  OPTIONAL {
    ?game wdt:P908 ?pegi .
  }
  FILTER(?pubDate > "1979-12-31T00:00:00Z" ^^ xsd:dateTime && ?pubDate < "2017-01-01T00:00:00Z" ^^ xsd:dateTime)
}
LIMIT 50

What are the video games published between 1980 and 2016, and what are their platforms, publishers, genres, developers, and content ratings?

Show me a list of video games from the 1980s to mid-2010s, including their release year, who developed and published them, what genre they belong to, on which platforms they were released, and their age ratings (ESRB or PEGI).

SELECT ?var1 ?var1Label ?var2Label ?var3Label ( YEAR ( ?var4 ) AS ?var5 ) ?var6Label ?var7Label ?var8Label ?var9 ?var10 ?var11Label ?var12Label ?var13 ?var14 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q7889> . ?var1 <http://www.wikidata.org/prop/direct/P400> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P123> ?var7 . ?var1 <http://www.wikidata.org/prop/direct/P136> ?var6 . ?var1 <http://www.wikidata.org/prop/direct/P577> ?var4 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P178> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var9 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P179> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var10 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P852> ?var11 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P908> ?var12 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P268> ?var13 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P646> ?var14 . } FILTER ( ( ( ?var4 > "1979-12-31T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var4 < "2017-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en, fr". } } LIMIT 100


Question: Does the concept of euroization have the GND ID 4288123-7?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P227 "4288123-7" .
}

Is there a Wikidata item with the German National Library ID "4288123-7"?

Confirm whether the GND ID 4288123-7 is assigned to any entity in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "4288123-7". }


Question: What Wikipedia pages are linked to the IMDb movie tt7764424?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?item ?wikipediaPage WHERE {
  ?item wdt:P345 "tt7764424" .
  ?wikipediaPage schema:about ?item .
  FILTER(REGEX(STR(?wikipediaPage) , "\\.wikipedia\\.org"))
}

Which Wikipedia articles describe the film or series with IMDb ID tt7764424?

Show me the Wikipedia links for the item with IMDb identifier tt7764424.

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt7764424". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: People who died in 1692 with Greek labels

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?label ?deathDate WHERE {
  ?person wdt:P570 ?deathDate .
  ?person rdfs:label ?label .
  FILTER(LANG(?label) = "el")
  FILTER(?deathDate >= "1692-01-01T00:00:00Z" ^^ xsd:dateTime)
  FILTER(?deathDate <= "1692-12-31T23:59:59Z" ^^ xsd:dateTime)
}
ORDER BY ASC(?deathDate)

Who were the people that died in 1692, and what are their names in Greek?

List the names in Greek of all individuals who died during the year 1692, sorted by date of death.

SELECT ?var1 ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P570> ?var2 . OPTIONAL { ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "el" ) ) ) . } FILTER ( ( ( ?var2 >= "1692-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "1692-12-31T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . FILTER ( ( ?var1 ) ) . } ORDER BY ASC( ?var2 )


Question: Which Wikidata items have Twitter usernames TV5MONDE, berlinale, or Lyxor?

SELECT ?item ?twitterUsername WHERE { ?item wdt:P2002 ?twitterUsername . VALUES ?twitterUsername { "TV5MONDE" "berlinale" "Lyxor" } }

What are the Wikidata entities associated with the Twitter accounts @TV5MONDE, @berlinale, and @Lyxor?

Show me the Wikidata items for the Twitter handles TV5MONDE, berlinale, and Lyxor.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "celia_cbo" ) ( "PBALille" ) ( "string1" ) ( "GuyHomard" ) ( "BASonerion" ) ( "Salemioche" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "TV5MONDE" ) ( "mounir" ) ( "string5" ) ( "pbeyssac" ) ( "trojette" ) ( "string6" ) ( "CDonnees" ) ( "bevellin" ) ( "string7" ) ( "string8" ) ( "piotrek442" ) ( "string9" ) ( "fnielsen" ) ( "string10" ) ( "BBeyern" ) ( "GoogleFR" ) ( "string11" ) ( "string12" ) ( "string13" ) ( "string14" ) ( "PoulpyWP" ) ( "string15" ) ( "string16" ) ( "string17" ) ( "Berlinale" ) ( "aBerteau_" ) ( "Pymouss" ) ( "string18" ) ( "string19" ) ( "SamsungFR" ) ( "string20" ) ( "NFr21" ) ( "GroupePSA" ) ( "LabFabfr" ) ( "inOut2018" ) ( "Patafisik" ) ( "string21" ) ( "jfreixas" ) ( "string22" ) ( "string23" ) ( "string24" ) ( "string25" ) ( "MuseomixBE" ) ( "museomixCH" ) ( "string26" ) ( "string27" ) ( "museomixIT" ) ( "museomixOP" ) ( "Pyb75" ) ( "string28" ) ( "string29" ) ( "string30" ) ( "napo" ) ( "string31" ) ( "cathicks" ) ( "string32" ) ( "PuNkY_PSB" ) ( "textfiles" ) ( "string33" ) ( "ButaGhibli" ) ( "string34" ) ( "Lyxor" ) ( "string35" ) ( "hdevichi" ) } } ORDER BY ASC( ?var3 )


Question: Orthologs of gene CTL0866 and their species taxonomy IDs.

SELECT ?orthologLocusTag ?taxonId WHERE { ?sourceGene wdt:P2393 "CTL0866" ; wdt:P684 ?orthologGene . ?orthologGene wdt:P2393 ?orthologLocusTag ; wdt:P703 ?taxon . ?taxon wdt:P685 ?taxonId . }

What are the locus tags of genes orthologous to CTL0866, and in which species (NCBI taxonomy IDs) are they found?

Show me the orthologous gene locus tags and their corresponding NCBI taxonomy IDs for the gene with locus tag CTL0866.

SELECT ?var1 ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P2393> "CTL0866"; <http://www.wikidata.org/prop/direct/P684> ?var4 . ?var4 <http://www.wikidata.org/prop/direct/P2393> ?var1 ; <http://www.wikidata.org/prop/direct/P703> ?var5 . ?var5 <http://www.wikidata.org/prop/direct/P685> ?var2 . }


Question: Image of James P. Holcombe with SNAC ARK ID w6kk9snd

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

What is the image associated with the SNAC ARK ID w6kk9snd?

Show the Wikimedia Commons image for the person identified by the SNAC ARK ID w6kk9snd.

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


Question: Does the National Register of Historic Places list a site with reference number 74001695?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?historicPlace wdt:P649 "74001695" .
}

Is there a historic place in the U.S. National Register with the ID 74001695?

Confirm whether the Sheep Ranch Fortified House is registered in the National Register of Historic Places under number 74001695.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P649> "74001695". }


Question: Is there a National Register of Historic Places listing with reference number 88002929?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?historicPlace wdt:P649 "88002929" .
}

Does the Logan House in Kentucky have the NRHP reference number 88002929?

Confirm if the NRHP ID 88002929 corresponds to a registered historic place in the United States.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P649> "88002929". }


Question: What is Angela Merkel's date of birth?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?birthDate WHERE {
  wd:Q567 wdt:P569 ?birthDate .
}

Can you tell me the full date when Angela Merkel was born, according to Wikidata?

SELECT * WHERE { <http://www.wikidata.org/entity/Q567> <http://www.wikidata.org/prop/direct/P3150> ?var1 . }


Question: Wikipedia pages in English or German for the movie with IMDb ID tt6710214

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX schema: <http://schema.org/>
SELECT ?item ?wikipediaPage WHERE {
  ?item wdt:P345 "tt6710214" .
  ?wikipediaPage schema:about ?item ; schema:inLanguage ?lang ; schema:isPartOf [ wikibase:wikiGroup "wikipedia" ] .
  FILTER(?lang = "en" || ?lang = "de")
}

What are the English or German Wikipedia pages for the documentary 'Liberated: The New Sexual Revolution'?

Show me the Wikipedia articles in English or German about the film identified by IMDb ID tt6710214.

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt6710212". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Languages spoken in Indonesia with their images

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?language(SAMPLE(?image) AS ?imageUrl) WHERE {
  ?language wdt:P31 wd:Q34770 ; wdt:P17 wd:Q252 .
  OPTIONAL {
    ?language wdt:P18 ?image .
  }
}
GROUP BY ?language

What are the languages spoken in Indonesia, and which ones have associated images on Wikimedia Commons?

List all languages in Indonesia and show an image for each if available.

SELECT ?var1 ( SAMPLE ( ?var2 ) AS ?var3 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q34770> ; <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q252> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var1


Question: What English and German language pages are about the movie with IMDb ID tt0099197?

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?movie ?page WHERE {
  ?movie wdt:P345 "tt0099197" .
  ?page schema:about ?movie .
  ?page schema:inLanguage ?lang .
  FILTER ( ?lang = "en" || ?lang = "de" )
}

Can you list the Wikipedia and Wikiquote pages in English and German for the film "By Dawn's Early Light"?

Which language versions of web pages discuss the movie identified by tt0099197?

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt0099197". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the English and German Wikipedia pages for the movie with IMDb ID tt4073868?

SELECT ?movie ?wikipedia_page WHERE { ?movie wdt:P345 "tt4073868" . ?wikipedia_page schema:about ?movie . ?wikipedia_page schema:inLanguage ?lang . FILTER(?lang = "en" || ?lang = "de") }

Find the Wikipedia articles in English and German about the film identified by tt4073868 on IMDb.

Which Wikipedia pages in English or German describe the movie "A Decent Man" (tt4073868)?

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt4073868". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are some examples of Christmas celebrations around the world?

SELECT ?var1 ?label WHERE {
  ?var1 wdt:P31 wd:Q19809 .
  ?var1 rdfs:label ?label .
  FILTER(LANG(?label) = "en")
}
LIMIT 21

List Christmas-related events by country or region

Show me the names of events that are classified as instances of Christmas

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


Question: Airports in Belgium with their coordinates and English 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 DISTINCT ?airport ?airportLabel ?coordinates WHERE {
  ?airport wdt:P31 wd:Q1248784 ; wdt:P17 wd:Q31 ; wdt:P625 ?coordinates .
  ?airport rdfs:label ?airportLabel .
  FILTER ( LANG( ?airportLabel ) = "en" )
}

What are the English names and geographic coordinates of all airports located in Belgium?

List all airports in Belgium along with their English labels and GPS coordinates.

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1248784> ; ?var3 <http://www.wikidata.org/entity/Q31> ; <http://www.wikidata.org/prop/direct/P625> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "zh,en". } }


Question: What is the English label and description of the property used to indicate that someone is an Australian rules football player?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?prop ?propLabel ?propDescription WHERE {
  ?item wdt:P106 wd:Q13414980 .
  wd:P106 a wikibase:Property .
  wd:P106 rdfs:label ?propLabel .
  wd:P106 schema:description ?propDescription .
  FILTER(LANG(?propLabel) = "en")
  FILTER(LANG(?propDescription) = "en")
}
LIMIT 100

Which occupation property in Wikidata is associated with Australian rules football players, and what does it mean?

Can you tell me the label and description of the property that assigns "Australian rules football player" as an occupation?

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/Q13414980> . ?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


Question: What items are classified as subclasses of short film via statement-level properties in Wikidata?

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?statement ( SAMPLE( ?qualifier ) AS ?sample_qualifier ) WHERE {
  {
    SELECT DISTINCT ?item ?statement WHERE {
      ?statement ps:P279 wd:Q24862 .
      ?item p:P279 ?statement .
    }
    LIMIT 101
  }
  OPTIONAL {
    ?statement ?qualifier ?value .
    ?qualifier wikibase:qualifier true .
  }
}
GROUP BY ?item ?statement

Are there any qualifiers attached to statements that classify items as subclasses of short film?

List all items that have a subclass-of relationship to short film using statement-level data, along with any associated qualifiers.

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


Question: Which Wikidata item has the Twitter username "ALALibrary"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?username WHERE {
  ?item wdt:P2002 "ALALibrary" .
}

What organization on Wikidata uses "@ALALibrary" on Twitter?

Find the entity in Wikidata that is associated with the Twitter handle ALALibrary.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "Liblarrian" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "UVicLib" ) ( "jddurno" ) ( "jmhuculak" ) ( "string6" ) ( "zinelib" ) ( "ALALibrary" ) ( "ala_wo" ) ( "OpenGavin" ) ( "string7" ) ( "mdalmau" ) ( "string8" ) ( "M_T_Miller" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "jluwrites" ) } }


Question: Image for Robert Zaller with SNAC ARK ID w6sq921w

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

What is the Wikimedia Commons image for the person with SNAC ARK ID w6sq921w?

Show me the image linked to the SNAC ARK ID w6sq921w.

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


Question: What properties are most frequently used to link entities to racket sports like badminton or tennis?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?property ( COUNT( * ) AS ?count ) WHERE {
  ?racketSport wdt:P31 wd:Q2426135 .
  ?entity ?property ?racketSport .
}
GROUP BY ?property
ORDER BY DESC ( ?count )

Show me the non-direct properties connected to racket sports and their usage counts, ordered by frequency.

Which properties relate other items to racket sports, and which ones are used the most?

SELECT ?var1 ( COUNT (* ) AS ?var2 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q2312410> ; <http://www.wikidata.org/prop/direct/P641> <http://www.wikidata.org/entity/Q2426135> . [] ?var1 ?var3 . MINUS { ?var1 ^ <http://wikiba.se/ontology#directClaim> [] . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var1 ORDER BY DESC( ?var2 )


Question: Is the Court of Appeal of Nancy a type of software?

Does the Court of Appeal of Nancy belong to a category that is a subclass of software?

Is the Court of Appeal of Nancy categorized under software in Wikidata’s classification system?

ASK WHERE { <http://www.wikidata.org/entity/Q3000970> ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q7397> . <http://www.bigdata.com/queryHints#Prior> <http://www.bigdata.com/queryHints#gearing> "forwards". }


Question: What are the IATA codes of airports and their corresponding countries?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?iataCode ?countryCode WHERE {
  ?airport wdt:P31 wd:Q1248784 .
  ?airport wdt:P238 ?iataCode .
  ?airport wdt:P131 / wdt:P297 ?countryCode .
}

Can you list the three-letter IATA airport codes along with the two-letter ISO country codes of where each airport is located?

Show me the country codes for all airports based on their IATA identifiers.

SELECT ?var1 ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1248784> . ?var3 <http://www.wikidata.org/prop/direct/P238> ?var1 . ?var3 <http://www.wikidata.org/prop/direct/P131> ?var4 . ?var4 <http://www.wikidata.org/prop/direct/P297> ?var2 . }


Question: What is the most common property used to link people to the given name "Anna" in Wikidata?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?property(COUNT(?property) AS ?count) WHERE {
  {
    SELECT ?property WHERE {
      ?item ?propertyUsed wd:Q666578 .
      ?property wikibase:directClaim ?propertyUsed .
      ?property rdf:type wikibase:Property .
    }
    LIMIT 10000
  }
}
GROUP BY ?property
ORDER BY DESC(?count)
LIMIT 1

Which property connects the most individuals to the name Anna, and how many people share this name?

How many people are named Anna, and what property is used to record their given name in Wikidata?

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/Q666578> . ?var1 <http://wikiba.se/ontology#directClaim> ?var4 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 10000 } } GROUP BY ?var1 ORDER BY DESC( ?var2 ) LIMIT 1


Question: What other topics are associated with works that have the Copenhagen University Library as their main subject?

SELECT DISTINCT ?otherTopic ?otherTopicLabel WHERE { ?work wdt:P921 wd:Q621273 . ?work wdt:P921 ?otherTopic . FILTER ( ?otherTopic != wd:Q621273 ) . ?otherTopic rdfs:label ?otherTopicLabel . FILTER ( lang(?otherTopicLabel) = "en" ) }

Which topics, besides the Copenhagen University Library, are the main subjects of works about the library?

Show me the other main subjects of items that are primarily about the Copenhagen University Library.

SELECT DISTINCT ?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/Q621273> . } UNION { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P361> +) <http://www.wikidata.org/entity/Q621273> . } UNION { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P1269> +) <http://www.wikidata.org/entity/Q621273> . } ?var3 <http://www.wikidata.org/prop/direct/P921> ?var1 , ?var2 . FILTER ( ( ( <http://www.wikidata.org/entity/Q621273> != ?var1 ) && ( <http://www.wikidata.org/entity/Q621273> != ?var2 ) && ( ?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: List all subclasses of sport with their labels, sorted in reverse alphabetical order.

SELECT ?sportSubclass ?label WHERE { ?sportSubclass wdt:P279 wd:Q349 . OPTIONAL { ?sportSubclass rdfs:label ?label . } } ORDER BY DESC(?label)

What are all the sports and sub-sports in Wikidata, and what are their names in different languages, ordered from Z to A?

Show me every known subclass of sport, along with its label in any language, and sort them from Z to A by label.

SELECT ?var1 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q349> . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } } ORDER BY DESC( ?var2Label )


Question: What are the multilingual descriptions and direct properties of swine influenza?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?property ?value WHERE {
  wd:Q36855 ?property ?value .
  FILTER(?property = schema:description || STRSTARTS(STR(?property) , "http://www.wikidata.org/prop/direct/"))
}

Can you list all the known facts about swine influenza, including its definitions in different languages?

What identifiers and classifications does Wikidata have for swine influenza?

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q36855> ?var1 ?var2 . }


Question: Fashion designers, grand couturiers, and costume designers with their birth years and countries.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?country ?birthYear WHERE {
  VALUES ?occupation {
    wd:Q3501317 wd:Q4845479 wd:Q1323191
  }
  ?person wdt:P106 ?occupation .
  OPTIONAL {
    ?person wdt:P27 ?country .
  }
  OPTIONAL {
    ?person wdt:P569 ?dob .
  }
  BIND( YEAR( ?dob ) AS ?birthYear )
}
LIMIT 10

Who are some fashion designers, grand couturiers, or costume designers, and in which countries and years were they born?

List 10 people working as fashion designers, grand couturiers, or costume designers, along with their country of citizenship and birth year.

SELECT ?var1Label ?var2Label ?var3 ?var4Label ?var5 WHERE { { { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q3501317> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q4845479> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q1323191> . } } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P27> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var6 . } BIND ( YEAR ( ?var6 ) AS ?var3 ). OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P19> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P108> ?var5 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 10


Question: List all academic works by Nicholas Carlini, including co-authors, publication dates, and where they were published, sorted from newest to oldest.

SELECT (MIN(?pubDate) AS ?minPubDate)
       ?work ?workLabel
       (GROUP_CONCAT(DISTINCT ?typeLabel; SEPARATOR=", ") AS ?types)
       (SAMPLE(?numPages) AS ?numPagesSample)
       ?publishedIn ?publishedInLabel
       (GROUP_CONCAT(DISTINCT ?authorLabel; SEPARATOR=", ") AS ?coAuthors)
WHERE {
  ?work wdt:P50 wd:Q50219388 .  # Work authored by Nicholas Carlini
  ?work wdt:P50 ?author .       # Get all authors of the work

  # Get work label
  ?work rdfs:label ?workLabel .
  FILTER(LANG(?workLabel) = "en")

  # Get author labels (with fallback to Q-ID)
  OPTIONAL {
    ?author rdfs:label ?authorLabelRaw .
    FILTER(LANG(?authorLabelRaw) = "en")
  }
  BIND(COALESCE(?authorLabelRaw, SUBSTR(STR(?author), 32)) AS ?authorLabel)

  # Get type (instance of)
  OPTIONAL {
    ?work wdt:P31 ?type .
    ?type rdfs:label ?typeLabel .
    FILTER(LANG(?typeLabel) = "en")
  }

  # Get publication date
  OPTIONAL {
    ?work wdt:P577 ?pubDate .
  }

  # Get number of pages
  OPTIONAL {
    ?work wdt:P1104 ?numPages .
  }

  # Get published in
  OPTIONAL {
    ?work wdt:P1433 ?publishedIn .
    ?publishedIn rdfs:label ?publishedInLabel .
    FILTER(LANG(?publishedInLabel) = "en")
  }
}
GROUP BY ?work ?workLabel ?publishedIn ?publishedInLabel
ORDER BY DESC(?minPubDate)

What are the most recent papers authored by Nicholas Carlini, and who are their co-authors, types, and publication venues?

Show me a list of Nicholas Carlini’s publications with their publication dates, co-authors, types (e.g., scholarly article), and where they were published, ordered by date with the newest first.

SELECT( MIN ( ?var1 ) AS ?var2 ) ?var3 ?var3Label ( GROUP_CONCAT ( DISTINCT ?var4Label ; SEPARATOR = ", " ) AS ?var5 )( SAMPLE ( ?var6 ) AS ?var7 ) ?var8 ?var8Label ( GROUP_CONCAT ( DISTINCT ?var9Label ; SEPARATOR = ", " ) AS ?var10 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q50219388> . ?var3 <http://www.wikidata.org/prop/direct/P50> ?var11 . OPTIONAL { ?var11 <http://www.w3.org/2000/01/rdf-schema#label> ?var12 . FILTER ( ( ( LANG ( ?var12 ) = "en" ) ) ) . } BIND ( COALESCE ( ?var12 , SUBSTR ( STR ( ?var11 ) ,"32"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var9Label ). OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P31> ?var4 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . } OPTIONAL { BIND ( <http://www.w3.org/2001/XMLSchema#date> ( ?var13 ) AS ?var1 ). ?var3 <http://www.wikidata.org/prop/direct/P577> ?var13 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P1104> ?var6 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P1433> ?var8 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,da,de,es,fr,jp,no,ru,sv,zh". } } GROUP BY ?var3 ?var3Label ?var8 ?var8Label ORDER BY DESC( ?var2 )


Question: Who is the French film director named Paul Paviot?

SELECT DISTINCT ?item WHERE { ?item rdfs:label "Paul Paviot" @fr . ?item wdt:P31 wd:Q5 . }

What human entity in Wikidata has the French label "Paul Paviot"?

Can you find the Wikidata item for the person called Paul Paviot in French?

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "Guy Paviot"@fr . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . }


Question: Image of the entity with SNAC ARK ID w6f29nwg

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

What is the image of the person or entity identified by the SNAC ARK ID w6f29nwg?

Please provide the Wikimedia Commons image linked to the SNAC ARK ID w6f29nwg.

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


Question: List all first-level administrative divisions (like provinces or states) with their population, area, official website, GeoNames ID, FIPS code, inception date, dissolved date, and images.

SELECT DISTINCT ?item ?label ?geonamesId ?image ?inception ?population ?area ?website ?fipsCode ?dissolvedDate WHERE { ?item (wdt:P31/wdt:P279*) wd:Q10864048 . ?item rdfs:label ?label . OPTIONAL { ?item wdt:P1566 ?geonamesId . } OPTIONAL { ?item wdt:P18 ?image . } OPTIONAL { ?item wdt:P571 ?inception . } OPTIONAL { ?item wdt:P1082 ?population . } OPTIONAL { ?item wdt:P2046 ?area . } OPTIONAL { ?item wdt:P856 ?website . } OPTIONAL { ?item wdt:P901 ?fipsCode . } OPTIONAL { ?item wdt:P576 ?dissolvedDate . } }

What are the names, populations, areas, official websites, and other key details of all first-level administrative divisions around the world?

Provide a comprehensive overview of all first-level administrative divisions, including their labels, population, area, official websites, GeoNames IDs, FIPS codes, when they were established or dissolved, and associated images.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 WHERE { ?var10 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q10864048> . ?var10 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . ?var11 <http://schema.org/about> ?var10 . OPTIONAL { ?var10 <http://www.wikidata.org/prop/direct/P1566> ?var2 . } OPTIONAL { ?var10 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var10 <http://www.wikidata.org/prop/direct/P571> ?var4 . } OPTIONAL { ?var10 <http://www.wikidata.org/prop/direct/P1082> ?var5 . } OPTIONAL { ?var10 <http://www.wikidata.org/prop/direct/P2046> ?var6 . } OPTIONAL { ?var10 <http://www.wikidata.org/prop/direct/P856> ?var7 . } OPTIONAL { ?var10 <http://www.wikidata.org/prop/direct/P901> ?var8 . } OPTIONAL { ?var10 <http://www.wikidata.org/prop/direct/P576> ?var9 . } }


Question: Publication years and first 20 characters of titles of works by Greg S. Corrado.

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 ?year ?titleSnippet WHERE {
  ?work wdt:P50 wd:Q24803072 ; wdt:P577 ?date ; rdfs:label ?title .
  FILTER(LANGMATCHES(LANG(?title) , "en"))
  BIND(YEAR(?date) AS ?year)
  BIND(SUBSTR(?title , 1 , 20) AS ?titleSnippet)
}
ORDER BY ?year

What are the publication years and shortened titles (first 20 characters) of Greg S. Corrado’s published works?

List Greg S. Corrado’s publications with their publication years and the first 20 characters of their English titles, sorted by year.

SELECT ?var1 ?var2 ?var3Label WHERE { { SELECT ?var1 ( SAMPLE ( ?var4 ) AS ?var2 ) ?var3Label WHERE { { SELECT( STR ( ?var5 ) AS ?var1 )( "0"^^<http://www.w3.org/2001/XMLSchema#integer> AS ?var4 )( "_" AS ?var3Label ) WHERE { BIND ( YEAR ( ?var6 ) AS ?var5 ). ?var7 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q577> . ?var7 <http://www.wikidata.org/prop/direct/P585> ?var6 . { SELECT( MIN ( ?var5 ) AS ?var8 )( MAX ( ?var5 ) AS ?var9 ) WHERE { BIND ( YEAR ( ?var10 ) AS ?var5 ). ?var11 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q24803072> . ?var11 <http://www.wikidata.org/prop/direct/P577> ?var10 . } } FILTER ( ( ( ?var5 >= ?var8 ) && ( ?var5 <= ?var9 ) ) ) . } } UNION { BIND ( SUBSTR ( ?var12Label ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"20"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var3Label ). BIND ( STR ( YEAR ( ?var6 ) ) AS ?var1 ). ?var11 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q24803072> . ?var11 <http://www.wikidata.org/prop/direct/P1104> ?var4 . ?var11 <http://www.wikidata.org/prop/direct/P577> ?var6 . ?var11 <http://www.w3.org/2000/01/rdf-schema#label> ?var12Label . FILTER ( ( ( LANG ( ?var12Label ) = "en" ) ) ) . } } GROUP BY ?var1 ?var11 ?var3Label ORDER BY ASC( ?var1 ) } }


Question: Monasteries in Germany

SELECT ?monastery ?monasteryLabel WHERE { ?monastery wdt:P31 wd:Q44613 . ?monastery wdt:P17 wd:Q183 . ?monastery rdfs:label ?monasteryLabel . FILTER(LANG(?monasteryLabel) = "en") } LIMIT 100

What are the monasteries located in Germany?

List the English names of all monasteries in Germany.

SELECT ?var1 ?var1Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,de". } OPTIONAL { } OPTIONAL { } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q31956829> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q183> . } LIMIT 100


Question: Countries with retired ISO 3166-1 codes

SELECT DISTINCT ?country WHERE { ?country wdt:P773 ?iso3166_3_code . }

Which countries have had their ISO 3166-1 codes retired and are now listed in ISO 3166-3?

Show me a list of current countries that were previously assigned ISO 3166-1 codes which are now obsolete.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P773> ?var3 . }


Question: Which papers cite "Could scientists use Altmetric.com scores to predict longer term citation counts?" and what other papers do they cite?

SELECT ?citingPaper ?citingPaperTitle ?citedByCitingPaper WHERE { ?citingPaper wdt:P2860 wd:Q47528245 . ?citingPaper wdt:P2860 ?citedByCitingPaper . ?citingPaper wdt:P1476 ?citingPaperTitle . FILTER (?citedByCitingPaper != wd:Q47528245) }

For each academic paper that cites the study on Altmetric.com scores and citation prediction, what are the other scholarly works it references?

Show me the citation network: list all papers that reference the Altmetric.com citation study, along with the additional papers each of those papers cites.

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


Question: What properties are used to describe Messier 34, and what are their values in English?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ( SAMPLE( ?propertyLabel ) AS ?propLabel ) ( COUNT( ?object ) AS ?objectCount ) ( GROUP_CONCAT( ?objectLabel ; SEPARATOR = ", " ) AS ?objectLabels ) WHERE {
  wd:Q13729 ?property ?object .
  ?object rdfs:label ?objectLabel .
  FILTER ( LANG( ?objectLabel ) = "en" ) .
  ?propertyItem wikibase:directClaim ?property .
  ?propertyItem rdfs:label ?propertyLabel .
  FILTER ( LANG( ?propertyLabel ) = "en" ) .
}
GROUP BY ?property

For Messier 34, list each property (like "instance of" or "constellation"), its English name, how many objects it connects to, and what those objects are called in English.

Can you show me a summary of Messier 34’s Wikidata connections, including the property names in English, how many things each property links to, and the names of those linked entities?

SELECT ?var1 ( SAMPLE ( ?var2 ) AS ?var2 )( COUNT ( ?var3 ) AS ?var4 )( GROUP_CONCAT ( ?var5 ; SEPARATOR = ", " ) AS ?var5 ) WHERE { <http://www.wikidata.org/entity/Q13729> ?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: What type of building is the Ivan Vazov National Theatre, and what is its administrative hierarchy down to the municipality level, including the types and names of each administrative level?

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 ?theatreTypeLabel ?cityTypeLabel ?city ?cityLabel ?municipalityTypeLabel ?municipality ?municipalityLabel WHERE {
  wd:Q1858012 wdt:P31 ?theatreType .
  wd:Q1858012 wdt:P131 ?city .
  ?city wdt:P31 ?cityType .
  ?city wdt:P131 ?municipality .
  ?municipality wdt:P31 ?municipalityType .
  ?theatreType rdfs:label ?theatreTypeLabel .
  ?cityType rdfs:label ?cityTypeLabel .
  ?municipalityType rdfs:label ?municipalityTypeLabel .
  ?city rdfs:label ?cityLabel .
  ?municipality rdfs:label ?municipalityLabel .
  FILTER(LANG(?theatreTypeLabel) = "en")
  FILTER(LANG(?cityTypeLabel) = "en")
  FILTER(LANG(?municipalityTypeLabel) = "en")
  FILTER(LANG(?cityLabel) = "en")
  FILTER(LANG(?municipalityLabel) = "en")
}

Type and location hierarchy of Ivan Vazov National Theatre in Bulgaria

Show me the type of Ivan Vazov National Theatre, the city it’s in (Sofia), the type of Sofia, the municipality Sofia belongs to (Stolichna), and the type of that municipality.

SELECT DISTINCT ?var1Label ?var2Label ?var3 ?var3Label ?var4Label ?var5 ?var5Label WHERE { BIND ( <http://www.wikidata.org/entity/Q1858012> AS ?var6 ). ?var6 <http://www.wikidata.org/prop/direct/P31> ?var1 . ?var6 <http://www.wikidata.org/prop/direct/P131> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P31> ?var2 . ?var3 <http://www.wikidata.org/prop/direct/P131> ?var5 . ?var5 <http://www.wikidata.org/prop/direct/P31> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What is the image of the person with SNAC ARK ID w68s7662?

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

Can you find an image on Wikimedia Commons for Jan Kip, identified by the SNAC ARK ID w68s7662?

Is there a Commons image linked to the Social Networks and Archival Context identifier w68s7662?

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


Question: 16th-century paintings inspired by artworks created between 1500 and 1600.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?painting ?paintingLabel ?inspiredBy ?inspiredByLabel WHERE {
  ?painting wdt:P31 wd:Q3305213 .
  ?painting wdt:P941 ?inspiredBy .
  ?inspiredBy wdt:P571 ?inceptionDate .
  FILTER(?inceptionDate >= "1500-01-01T00:00:00Z" ^^ xsd:dateTime && ?inceptionDate <= "1600-01-01T00:00:00Z" ^^ xsd:dateTime)
  OPTIONAL {
    ?painting rdfs:label ?paintingLabel .
    FILTER(LANG(?paintingLabel) = "en")
  }
  OPTIONAL {
    ?inspiredBy rdfs:label ?inspiredByLabel .
    FILTER(LANG(?inspiredByLabel) = "en")
  }
}

Which paintings from the 16th century were inspired by other artworks created between 1500 and 1600, and what were those inspiring artworks?

List the 16th-century paintings and the artworks that inspired them, where the inspiring artworks were created between 1500 and 1600.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3305213> . ?var1 <http://www.wikidata.org/prop/direct/P941> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P571> ?var3 . FILTER ( ( ( ?var3 >= "1500-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var3 <= "1600-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: Twitter usernames "elonmusk", "cyb3rgam3r420", and "NASA" and their number of Wikipedia sitelinks, sorted by count.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?item ?username(COUNT(?site) AS ?sitelinkCount) WHERE {
  ?item wdt:P2002 ?username .
  ?site schema:about ?item .
  ?site schema:isPartOf ?wiki .
  FILTER(STRSTARTS(STR(?wiki) , "https://"))
  VALUES ?username {
    "elonmusk" "cyb3rgam3r420" "NASA"
  }
}
GROUP BY ?item ?username
ORDER BY ASC(?sitelinkCount)

Which entities have the Twitter usernames "elonmusk", "cyb3rgam3r420", or "NASA", and how many Wikipedia links do they have, ordered by the number of links?

Show me the entities linked to the Twitter accounts "elonmusk", "cyb3rgam3r420", and "NASA", along with their sitelink counts, sorted from lowest to highest.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "max_jbo" ) ( "string2" ) ( "Gallimard" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "BBbjr69" ) } } ORDER BY ASC( ?var3 )


Question: English label for the profession 'physicist'

SELECT ?item ?itemLabel WHERE { BIND( wd:Q169470 AS ?item ) . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

What is the English name for the Wikidata entity of a physicist?

Show me the English label for the Wikidata item representing the profession of physicist.

SELECT ?var1 ?var1Label WHERE { BIND ( <http://www.wikidata.org/entity/Q169470> AS ?var1 ). SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es". } }


Question: Which Wikidata entities have the Twitter username 'CityOfBoston'?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?username WHERE {
  ?item p:P2002 ?stmt .
  ?stmt ps:P2002 ?username .
  BIND("CityOfBoston" AS ?target)
  .
  FILTER(?username = ?target)
  .
}

What entity on Wikidata is associated with the Twitter handle CityOfBoston?

Show me the Wikidata item that has the Twitter username CityOfBoston.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "tanuq_w" ) ( "string3" ) ( "string4" ) ( "PanFy92" ) ( "KayleeFuhr" ) ( "dmrtin90" ) ( "string5" ) ( "string6" ) ( "k2boie" ) ( "string7" ) ( "__KyD__" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "Jose2LR" ) ( "string12" ) ( "chikkoki" ) ( "string13" ) ( "string14" ) ( "1981Mead" ) } } ORDER BY ASC( ?var3 )


Question: What is the English name of the University of Zurich?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?university ?universityLabel WHERE {
  BIND(wd:Q206702 AS ?university)
  ?university rdfs:label ?universityLabel .
  FILTER(LANG(?universityLabel) = "en")
}

Can you tell me the label of the University of Zurich in English?

What does the entity Q206702 (University of Zurich) get called in English?

SELECT ?var1 ?var1Label WHERE { BIND ( <http://www.wikidata.org/entity/Q206702> AS ?var1 ). SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es". } }