Question: List living politicians with their given names, family names, gender, country, political party, date of birth, official website, and image.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?politician ?image ?givenNameLabel ?familyNameLabel ?genderLabel ?countryLabel ?dateOfBirth ?officialWebsite ?partyLabel WHERE {
  ?politician wdt:P31 wd:Q5 ; wdt:P106 wd:Q82955 ; wdt:P18 ?image ; wdt:P735 ?givenName ; wdt:P734 ?familyName ; wdt:P21 ?gender ; wdt:P27 ?country ; wdt:P569 ?dateOfBirth ; wdt:P856 ?officialWebsite ; wdt:P102 ?party .
  ?givenName rdfs:label ?givenNameLabel .
  ?familyName rdfs:label ?familyNameLabel .
  ?gender rdfs:label ?genderLabel .
  ?country rdfs:label ?countryLabel .
  ?party rdfs:label ?partyLabel .
  FILTER ( LANG( ?givenNameLabel ) = "en" ) FILTER ( LANG( ?familyNameLabel ) = "en" ) FILTER ( LANG( ?genderLabel ) = "en" ) FILTER ( LANG( ?countryLabel ) = "en" ) FILTER ( LANG( ?partyLabel ) = "en" ) FILTER ( NOT EXISTS {
    ?politician wdt:P570 ?deathDate
  }
  )
}

Who are the living politicians, and what are their full names, gender, nationality, political party, date of birth, official website, and profile image?

Show me a list of currently alive politicians, including their first and last names, gender, country of citizenship, political party, birth date, official website, and a photo.

SELECT DISTINCT ?var1 ?var2 ?var3Label ?var4Label ?var5Label ?var6Label ?var7 ?var8 ?var9Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> ; <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q82955> ; <http://www.wikidata.org/prop/direct/P18> ?var2 ; <http://www.wikidata.org/prop/direct/P735> ?var3 ; <http://www.wikidata.org/prop/direct/P734> ?var4 ; <http://www.wikidata.org/prop/direct/P21> ?var5 ; <http://www.wikidata.org/prop/direct/P27> ?var6 ; <http://www.wikidata.org/prop/direct/P569> ?var7 ; <http://www.wikidata.org/prop/direct/P856> ?var8 ; <http://www.wikidata.org/prop/direct/P102> ?var9 . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var10 . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,de,en". } }


Question: Living politicians with their party, country, gender, birth date, website, image, and party color hex codes.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?person ?website ?given_nameLabel ?family_nameLabel ?partyLabel(SAMPLE(?image) AS ?image_sample) ?birth_date ?genderLabel ?countryLabel(GROUP_CONCAT(DISTINCT ?hex_color ; separator = ", ") AS ?party_hex_colors) WHERE {
  ?person wdt:P31 wd:Q5 ; wdt:P106 wd:Q82955 ; wdt:P735 ?given_name ; wdt:P734 ?family_name ; wdt:P102 ?party ; wdt:P18 ?image ; wdt:P21 ?gender ; wdt:P27 ?country ; wdt:P569 ?birth_date ; wdt:P856 ?website .
  ?party rdfs:label ?partyLabel .
  FILTER(LANG(?partyLabel) = "en")
  ?given_name rdfs:label ?given_nameLabel .
  FILTER(LANG(?given_nameLabel) = "en")
  ?family_name rdfs:label ?family_nameLabel .
  FILTER(LANG(?family_nameLabel) = "en")
  ?gender rdfs:label ?genderLabel .
  FILTER(LANG(?genderLabel) = "en")
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?countryLabel) = "en")
  ?party wdt:P462 ?color .
  ?color wdt:P465 ?hex_color .
  FILTER(NOT EXISTS {
    ?person wdt:P570 ?death_date .
  })
}
GROUP BY ?person ?website ?given_nameLabel ?family_nameLabel ?partyLabel ?birth_date ?genderLabel ?countryLabel

Who are the living politicians, and what are their given names, family names, political parties, countries, genders, birth dates, official websites, images, and party color hex codes?

List all living politicians along with their full names, political parties (including official labels and color hex codes), countries, genders, dates of birth, official websites, and profile images.

SELECT DISTINCT ?var1 ?var2 ?var3Label ?var4Label ?var5Label ( SAMPLE ( ?var6 ) AS ?var7 )( SAMPLE ( ?var8 ) AS ?var9 )( SAMPLE ( ?var10 ) AS ?var10 )( SAMPLE ( ?var11 ) AS ?var11Label )( GROUP_CONCAT ( ?var12 ) AS ?var12 )( GROUP_CONCAT ( ?var13 ) AS ?var14 )( SAMPLE ( ?var5 ) AS ?var5 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> ; <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q82955> ; <http://www.wikidata.org/prop/direct/P18> ?var6 ; <http://www.wikidata.org/prop/direct/P735> ?var4 ; <http://www.wikidata.org/prop/direct/P734> ?var5 ; <http://www.wikidata.org/prop/direct/P21> ?var8 ; <http://www.wikidata.org/prop/direct/P27> ?var10 ; <http://www.wikidata.org/prop/direct/P569> ?var11 ; <http://www.wikidata.org/prop/direct/P856> ?var2 ; <http://www.wikidata.org/prop/direct/P102> ?var12 . ?var12 <http://www.wikidata.org/prop/direct/P1705> ?var3Label ; <http://www.wikidata.org/prop/direct/P1813> ?var15 ; <http://www.wikidata.org/prop/direct/P462> ?var16 . ?var16 <http://www.wikidata.org/prop/direct/P465> ?var13 . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var17 . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,de,en". } } GROUP BY ?var1 ?var5Label ?var4Label ?var2 ?var3Label


Question: What are the start dates of the Government of Greece?

SELECT ?startTime WHERE { ?government wdt:P31 wd:Q15260617 . ?government wdt:P580 ?startTime . } LIMIT 10

When did the Government of Greece begin, according to Wikidata?

Can you list the historical start times of the Greek government?

SELECT( isIRI ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var3 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q15260617> . ?var3 <http://www.wikidata.org/prop/direct/P580> ?var1 . } } } LIMIT 1


Question: What are the geographic coordinates of the sources of rivers and streams in Norway?

SELECT ?river ?riverLabel ?sourceCoordinates WHERE { ?river (wdt:P31/wdt:P279*) wd:Q355304 . ?river wdt:P17 wd:Q20 . ?river p:P625 ?statement . ?statement ps:P625 ?sourceCoordinates . ?statement pq:P518 wd:Q7376362 . ?river rdfs:label ?riverLabel . FILTER(LANG(?riverLabel) = "en") } LIMIT 1000

Can you list the English names and source locations of all watercourses in Norway?

Where in Norway do rivers and streams begin? Return their names and exact coordinates.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q355304> . ?var1 <http://www.wikidata.org/prop/P625> _:b1 . _:b1 <http://www.wikidata.org/prop/statement/P625> ?var3 . _:b1 <http://www.wikidata.org/prop/qualifier/P518> <http://www.wikidata.org/entity/Q7376362> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q20> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs,en". } } LIMIT 1000


Question: Total number of deaths in airline aviation accidents by year

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT(SUM(?deaths) AS ?totalDeaths) ?year WHERE {
  ?accident wdt:P31 wd:Q744913 ; wdt:P137 ?operator ; wdt:P1120 ?deaths ; wdt:P585 ?date .
  ?operator wdt:P31 wd:Q46970 .
  BIND(YEAR(?date) AS ?year)
}
GROUP BY ?year
ORDER BY ASC(?year)

How many people died in airline aviation accidents each year, starting from 1921?

Show the cumulative number of deaths in airline-operated aviation accidents, grouped by year and ordered chronologically.

SELECT( SUM ( ?var1 ) AS ?var1 ) ?var2 WHERE { BIND ( YEAR ( ?var3 ) AS ?var2 ). ?var4 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q744913> ; <http://www.wikidata.org/prop/direct/P137> ?var5 ; <http://www.wikidata.org/prop/direct/P1120> ?var1 ; <http://www.wikidata.org/prop/direct/P585> ?var3 . ?var5 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q46970> . FILTER ( ( <http://www.w3.org/2001/XMLSchema#integer> ( ?var1 ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es,es". } } GROUP BY ?var2 ORDER BY ASC( ?var2 )


Question: List aircraft operators with their IATA codes, alliances, or owners, and identify which are low-cost airlines.

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 ?var1Label ?var3 ?var4Display WHERE {
  {
    ?var1 wdt:P31 / wdt:P279 * wd:Q1875615 .
    ?var1 wdt:P229 ?x .
  } UNION {
    ?var1 wdt:P31 / wdt:P279 * wd:Q1875615 .
    ?var1 wdt:P114 ?x .
  } UNION {
    ?var1 wdt:P31 / wdt:P279 * wd:Q1875615 .
    ?var1 wdt:P127 ?x .
  }
  BIND(EXISTS {
    ?var1 wdt:P31 wd:Q190915
  }
  AS ?var3)
  OPTIONAL {
    ?var1 wdt:P229 ?var5 .
  }
  OPTIONAL {
    ?var1 wdt:P114 ?var8 .
  }
  OPTIONAL {
    ?var1 wdt:P127 ?var7 .
  }
  BIND(COALESCE(?var8 , ?var5 , ?var7) AS ?var4)
  ?var1 rdfs:label ?var1Label .
  FILTER(LANG(?var1Label) = "en")
  OPTIONAL {
    ?var4 rdfs:label ?var4Label .
    FILTER(LANG(?var4Label) = "en")
  }
  BIND(IF(isIRI(?var4) , ?var4Label , STR(?var4)) AS ?var4Display)
}
ORDER BY DESC(?var3)
LIMIT 10

Which aircraft operators are not low-cost airlines, and what are their IATA codes, airline alliances, or owners?

Show me a list of aircraft operators that have an IATA code, alliance, or owner, sorted so that low-cost airlines appear first — and indicate which ones are low-cost.

SELECT DISTINCT ?var1Label ?var2 ?var3 ?var4Label WHERE { BIND ( EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q190915> . } AS ?var3 ). ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q1875615> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P238> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P361> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P127> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P114> ?var8 . } BIND ( COALESCE ( ?var8 , ?var5 , ?var5 , ?var7 ) AS ?var4 ). SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY DESC( ?var3 )


Question: Does Wikidata contain an entity with GND ID 4152466-4?

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

Is there a person or organization in Wikidata identified by the GND number 4152466-4?

Confirm if the German National Library ID 4152466-4 is linked to any item in Wikidata.

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


Question: What organizations is Gillian Eadie a member of, and when did she join?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?image ?organization ?organizationLabel ?start ?end WHERE {
  wd:Q48978064 p:P463 ?statement .
  ?statement ps:P463 ?organization .
  ?organization rdfs:label ?organizationLabel .
  FILTER(LANG(?organizationLabel) = "en")
  OPTIONAL {
    ?organization wdt:P18 ?image
  }
  OPTIONAL {
    ?statement pq:P580 ?start
  }
  OPTIONAL {
    ?statement pq:P582 ?end
  }
}

Show me the image, name, and membership period of organizations associated with medieval archaeologist Gillian Eadie.

Which group has Gillian Eadie been affiliated with since 2006, and is there a logo for that group?

SELECT ?var1 ?var2 ?var3Label ?var4 ?var5 ?var6Label WHERE { { <http://www.wikidata.org/entity/Q48978064> <http://www.wikidata.org/prop/P1416> ?var7 . } UNION { <http://www.wikidata.org/entity/Q48978064> <http://www.wikidata.org/prop/P108> ?var7 . } { ?var7 <http://www.wikidata.org/prop/statement/P1416> ?var2 . } UNION { ?var7 <http://www.wikidata.org/prop/statement/P108> ?var2 . } ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/qualifier/P580> ?var4 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/qualifier/P582> ?var5 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/qualifier/P512> ?var8 . ?var8 <http://www.w3.org/2000/01/rdf-schema#label> ?var6Label . FILTER ( ( ( LANG ( ?var6Label ) = "en" ) ) ) . } 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: What is the most specific category that both Seoul and Cape Canaveral belong to, based on their types in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?commonAncestor ( ( ?dist1 + ?dist2 ) AS ?totalDistance ) WHERE {
  {
    SELECT ?commonAncestor ( COUNT( ?mid1 ) AS ?dist1 ) WHERE {
      wd:Q108178728 wdt:P279 * ?mid1 .
      ?mid1 wdt:P279 * ?commonAncestor .
    }
    GROUP BY ?commonAncestor
    ORDER BY ASC ( ?dist1 )
    LIMIT 100
  }
  {
    SELECT ?commonAncestor ( COUNT( ?mid2 ) AS ?dist2 ) WHERE {
      wd:Q185113 wdt:P279 * ?mid2 .
      ?mid2 wdt:P279 * ?commonAncestor .
    }
    GROUP BY ?commonAncestor
    ORDER BY ASC ( ?dist2 )
    LIMIT 100
  }
}
ORDER BY ASC ( ?totalDistance )
LIMIT 1

What is the shared superclass of Seoul and Cape Canaveral in the Wikidata taxonomy?

Which category is the closest common ancestor of the type of Seoul (a national capital) and the type of Cape Canaveral (a cape)?

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q8684> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q193401> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: List airlines with their IATA and ICAO codes, official websites, logos, country codes, hub airports, and labels in English or Spanish.

SELECT ?airline ?iataCode ?icaoCode ?label ?callSign ?dissolvedDate ?endOfWorkPeriod ?image ?allianceLabel ?countryCode ?logo ?inceptionDate ?ownerIataCode ?website ?hubAirportCode WHERE { ?airline wdt:P31 wd:Q46970 . ?airline wdt:P229 ?iataCode . OPTIONAL { ?airline wdt:P230 ?icaoCode . } OPTIONAL { ?airline rdfs:label ?label . FILTER ( LANG(?label) = "en" || LANG(?label) = "es" ) } OPTIONAL { ?airline wdt:P2317 ?callSign . } OPTIONAL { ?airline wdt:P576 ?dissolvedDate . } OPTIONAL { ?airline wdt:P2032 ?endOfWorkPeriod . } OPTIONAL { ?airline wdt:P18 ?image . } OPTIONAL { ?airline wdt:P114 ?alliance . ?alliance rdfs:label ?allianceLabel . FILTER ( LANG(?allianceLabel) = "en" ) } OPTIONAL { ?airline wdt:P17 ?country . ?country wdt:P297 ?countryCode . } OPTIONAL { ?airline wdt:P154 ?logo . } OPTIONAL { ?airline wdt:P571 ?inceptionDate . } OPTIONAL { ?airline wdt:P127 ?owner . ?owner wdt:P229 ?ownerIataCode . } OPTIONAL { ?airline wdt:P856 ?website . } OPTIONAL { ?airline wdt:P113 ?hub . ?hub wdt:P238 ?hubAirportCode . } }

What are the details of airlines, including their IATA and ICAO identifiers, official websites, logos, country of operation, hub airports, and labels in English or Spanish?

Please provide a comprehensive list of airlines, showing their names (in English or Spanish), IATA/ICAO codes, country ISO codes, hub airports, ownership details, founding dates, dissolution dates, logos, websites, and call signs.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 ?var10 ?var11 ?var12 ?var13 ?var14 ?var15 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q46970> . ?var1 <http://www.wikidata.org/prop/direct/P229> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P230> ?var3 . } OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P114> ?var16 . ?var16 <http://www.w3.org/2000/01/rdf-schema#label> ?var9 . FILTER ( ( ( LANG ( ?var9 ) = "en" ) ) ) . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P576> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2032> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var17 . ?var17 <http://www.wikidata.org/prop/direct/P297> ?var10 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P154> ?var11 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P571> ?var12 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P127> ?var18 . ?var18 <http://www.wikidata.org/prop/direct/P229> ?var13 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var14 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P113> ?var19 . ?var19 <http://www.wikidata.org/prop/direct/P238> ?var15 . } FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var4 ) = "es" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2317> ?var5 . } }


Question: Japanese citizens with children, sorted by child's name

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?personLabel ?childLabel WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P27 wd:Q17 .
  ?person wdt:P40 ?child .
  ?person rdfs:label ?personLabel .
  ?child rdfs:label ?childLabel .
  FILTER(LANG(?personLabel) = "en")
  .
  FILTER(LANG(?childLabel) = "en")
  .
}
ORDER BY ASC(?childLabel)

Who are the Japanese people who have children, and what are their children’s names, listed in alphabetical order?

List all Japanese citizens along with the names of their children, sorted alphabetically by the child’s name.

SELECT ?var1 ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P40> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q17> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ja,en". } } ORDER BY ASC( ?var2Label )


Question: What properties are used to describe Snickers in Wikidata, along with their English labels and descriptions?

SELECT ?propertyEntity ?propertyLabel ?propertyDescription WHERE { wd:Q714179 ?property ?value . FILTER(STRSTARTS(STR(?property), "http://www.wikidata.org/prop/direct/")) BIND(IRI(REPLACE(STR(?property), "http://www.wikidata.org/prop/direct/", "http://www.wikidata.org/entity/")) AS ?propertyEntity) . ?propertyEntity rdf:type wikibase:Property . ?propertyEntity rdfs:label ?propertyLabel . ?propertyEntity schema:description ?propertyDescription . FILTER(LANG(?propertyLabel) = "en") FILTER(LANG(?propertyDescription) = "en") } LIMIT 100

Can you list the English labels and descriptions of all properties that have values assigned to the Snickers chocolate bar?

Show me the English names and meanings of the facts known about Snickers in Wikidata.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 ?var5 <http://www.wikidata.org/entity/Q714179> . ?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: Does the GND ID 1102141003 exist in Wikidata?

Is there a person or organization in Wikidata with the German National Library ID 1102141003?

Check if the entity with GND identifier 1102141003 is present in Wikidata.

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


Question: What political party was Norman Schwarzkopf Jr. a member of?

SELECT ?party ?partyLabel WHERE { wd:Q310188 wdt:P102 ?party . ?party rdfs:label ?partyLabel . FILTER (LANG(?partyLabel) = "en") } LIMIT 50

Which political party is associated with General Norman Schwarzkopf Jr.?

Can you tell me the English name of the political party that Norman Schwarzkopf Jr. belonged to?

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


Question: Rivers with their lengths and images from Wikidata.

SELECT ?river ?riverLabel ?length ?image WHERE { ?river wdt:P31 wd:Q4022 . OPTIONAL { ?river wdt:P2043 ?length . } OPTIONAL { ?river wdt:P18 ?image . } ?river rdfs:label ?riverLabel . FILTER(LANG(?riverLabel) = "en") } LIMIT 100

What are the names, lengths, and images of rivers in Wikidata?

Show me up to 100 rivers along with their lengths and associated Wikimedia Commons images, using English labels.

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


Question: Male astronauts with first names containing "Chris"

SELECT DISTINCT ?person ?personLabel WHERE { ?person wdt:P31 wd:Q5 ; wdt:P21 wd:Q6581097 ; wdt:P106 wd:Q11631 ; wdt:P735 ?givenName . ?givenName rdfs:label ?givenNameLabel . FILTER (CONTAINS(LCASE(?givenNameLabel), "chris")) . ?person rdfs:label ?personLabel . FILTER (LANG(?personLabel) = "en") . FILTER (LANG(?givenNameLabel) = "en") . } LIMIT 10

Who are the male astronauts whose first names include "Chris"?

List the English names of all male astronauts who have a given name starting with "Chris".

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> ; <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581097> ; <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q11631> ; <http://www.wikidata.org/prop/direct/P735> ?var3 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( CONTAINS ( ?var4 , "Chris" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 10


Question: English and German Wikipedia pages for the TV series with IMDb ID tt5729304

SELECT ?item ?wikipediaPage WHERE { ?item wdt:P345 "tt5729304" . ?wikipediaPage schema:about ?item . VALUES ?lang { "en" "de" } ?wikipediaPage schema:inLanguage ?lang . }

What are the English and German Wikipedia articles for the TV show "In the Dark" (IMDb: tt5729304)?

Show me the English and German Wikipedia links for the TV series identified by IMDb ID tt5729304.

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt5729304". } ?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: Superclasses of Brisbane International tennis tournament

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?superclass ?superclassLabel WHERE {
  wd:Q264806 wdt:P279 * ?superclass .
  ?superclass rdfs:label ?superclassLabel .
  FILTER ( LANG( ?superclassLabel ) = "en" )
}
LIMIT 50

What categories does the Brisbane International tennis tournament belong to, including broader categories?

List all the broader classifications of the Brisbane International tennis tournament in Wikidata.

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


Question: What type of research station is Kohnen Station?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?class WHERE {
  wd:Q688142 wdt:P31 ?class .
  ?class wdt:P279 * wd:Q195339 .
}

Is Kohnen Station a type of research station, and if so, what specific category does it belong to?

Show me the specific class of research station that Kohnen Station is an instance of.

SELECT * WHERE { <http://www.wikidata.org/entity/Q688142> ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/279> *) <http://www.wikidata.org/entity/Q195339> ; <http://www.wikidata.org/prop/direct/P31> ?var1 . }


Question: Who are the members of the German Bundestag and their political parties?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?politician ?party WHERE {
  ?politician wdt:P31 wd:Q5 .
  ?politician wdt:P39 wd:Q1939555 .
  OPTIONAL {
    ?politician wdt:P102 ?party .
  }
}

List all humans who have held the position of member of the German Bundestag, along with their political party affiliations.

Which political parties are associated with members of the German Bundestag?

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


Question: German academics who are members of AfD and have a doctorate, sorted by birth date with their birthplaces.

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 ?person ?dateOfBirth ?placeOfBirthLabel WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P102 wd:Q6721203 .
  ?person wdt:P512 wd:Q849697 .
  ?person wdt:P569 ?dateOfBirth .
  ?person wdt:P19 ?placeOfBirth .
  ?placeOfBirth rdfs:label ?placeOfBirthLabel .
  FILTER ( LANG( ?placeOfBirthLabel ) = "en" )
}
ORDER BY ASC ( ?dateOfBirth )

Who are the German members of the Alternative for Germany (AfD) party with a doctorate, and where and when were they born?

List the names, birth dates, and birthplaces of all German doctors who belong to the AfD, ordered by their birth year.

SELECT DISTINCT ?var1 ?var2 ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P102> <http://www.wikidata.org/entity/Q6721203> . ?var1 <http://www.wikidata.org/prop/direct/P512> <http://www.wikidata.org/entity/Q849697> . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P19> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY ASC( ?var2 )ASC( ?var4 )


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

ASK WHERE { ?movie wdt:P345 "tt5752524" . }

Is there a film in Wikidata identified by the IMDb identifier tt5752524?

Confirm if the film 'Ravens' (2017) is listed in Wikidata using its IMDb ID tt5752524.

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


Question: Does Henriette Beese have a GND ID of 108722740?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?person wdt:P227 "108722740" .
}

Is there a Wikidata entity associated with the German National Library ID 108722740?

Confirm whether the GND ID 108722740 corresponds to a known person in Wikidata.

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


Question: Is there a Wikidata item with GND ID 1070474096?

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

Does the person with GND identifier 1070474096 have a corresponding entry in Wikidata?

Check if the German National Library ID 1070474096 is linked to any entity in Wikidata.

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


Question: How many academic degrees do members of the German Bundestag hold, and how many members have each number of degrees?

SELECT (COUNT(?degree) AS ?degreeCount) WHERE { ?member wdt:P39 wd:Q1939555 ; wdt:P512 ?degree . } GROUP BY ?member ORDER BY ?degreeCount

What is the distribution of academic qualifications among German Bundestag members?

Can you show how many German Bundestag members have one, two, or three academic degrees?

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


Question: French politicians or alumni of Sciences Po schools who speak French or are French citizens.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?person ( STR( ?label ) AS ?name ) WHERE {
  VALUES ?school {
    wd:Q3151958 wd:Q859363 wd:Q1139065 wd:Q18214943 wd:Q3151967 wd:Q1252062 wd:Q1664755 wd:Q3151959 wd:Q2253344 wd:Q3151965 wd:Q273579
  }
  {
    ?person wdt:P106 wd:Q82955 .
  } UNION {
    ?person wdt:P102 ?party .
  } UNION {
    ?person wdt:P69 ?school .
  }
  {
    ?person wdt:P27 wd:Q142 .
  } UNION {
    ?person wdt:P103 wd:Q150 .
  }
  ?person rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" )
}
ORDER BY ASC ( ?person )

Who are French citizens or native French speakers that are either politicians or graduated from any of the French Institutes of Political Studies (Sciences Po) or the École nationale d'administration?

List the names of people who are either politicians, members of a political party, or alumni of Sciences Po institutions in France, and who are either French citizens or native French speakers.

SELECT ?var1 ?var2Label WHERE { VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q3151958> ) ( <http://www.wikidata.org/entity/Q859363> ) ( <http://www.wikidata.org/entity/Q1139065> ) ( <http://www.wikidata.org/entity/Q18214943> ) ( <http://www.wikidata.org/entity/Q3151967> ) ( <http://www.wikidata.org/entity/Q1252062> ) ( <http://www.wikidata.org/entity/Q1664755> ) ( <http://www.wikidata.org/entity/Q3151959> ) ( <http://www.wikidata.org/entity/Q2253344> ) ( <http://www.wikidata.org/entity/Q3151965> ) ( <http://www.wikidata.org/entity/Q273579> ) } { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q82955> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P102> ?var4 . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P69> ?var3 . } { ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q142> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P103> <http://www.wikidata.org/entity/Q150> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fr". } } ORDER BY ASC( ?var1 )


Question: What are the broader categories or classes that the historical position of Spanish governor of Puerto Rico belongs to?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?ancestor WHERE {
  wd:Q45899956 wdt:P31 ?class .
  ?class wdt:P279 * ?ancestor .
}

What is the class hierarchy of the type of position held by Spanish governors of Puerto Rico?

What kinds of abstract roles or positions does the Spanish governor of Puerto Rico fall under in the Wikidata ontology?

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


Question: List low-cost airlines with their IATA codes, countries, founding dates, and official websites.

PREFIX schema: <http://schema.org/>
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 ?airline ?label ?iataCode ?icaoCode ?countryLabel ?inception ?dissolved ?image ?website ?twitter ?allianceLabel ?ownerLabel ?hubLabel WHERE {
  ?airline wdt:P31 wd:Q46970 .
  ?airline schema:description ?desc .
  FILTER ( LANG( ?desc ) = "en" ) .
  FILTER ( CONTAINS( LCASE( ?desc ) , "low-cost" ) ) .
  OPTIONAL {
    ?airline rdfs:label ?label .
    FILTER ( LANG( ?label ) = "en" )
  }
  .
  OPTIONAL {
    ?airline wdt:P229 ?iataCode
  }
  .
  OPTIONAL {
    ?airline wdt:P230 ?icaoCode
  }
  .
  OPTIONAL {
    ?airline wdt:P17 ?country .
    ?country rdfs:label ?countryLabel .
    FILTER ( LANG( ?countryLabel ) = "en" )
  }
  .
  OPTIONAL {
    ?airline wdt:P571 ?inception
  }
  .
  OPTIONAL {
    ?airline wdt:P576 ?dissolved
  }
  .
  OPTIONAL {
    ?airline wdt:P18 ?image
  }
  .
  OPTIONAL {
    ?airline wdt:P856 ?website
  }
  .
  OPTIONAL {
    ?airline wdt:P2002 ?twitter
  }
  .
  OPTIONAL {
    ?airline wdt:P114 ?alliance .
    ?alliance rdfs:label ?allianceLabel .
    FILTER ( LANG( ?allianceLabel ) = "en" )
  }
  .
  OPTIONAL {
    ?airline wdt:P127 ?owner .
    ?owner rdfs:label ?ownerLabel .
    FILTER ( LANG( ?ownerLabel ) = "en" )
  }
  .
  OPTIONAL {
    ?airline wdt:P113 ?hub .
    ?hub rdfs:label ?hubLabel .
    FILTER ( LANG( ?hubLabel ) = "en" )
  }
}
LIMIT 20

Which airlines are described as low-cost carriers in Wikidata, and what are their headquarters, websites, and Twitter handles?

Please provide a list of low-cost airlines, including their names, IATA and ICAO codes, countries of origin, founding years, and official websites.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 ?var10 ?var11 ?var12 ?var13 ?var14 ?var15 ?var16 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q190915> . ?var1 <http://www.wikidata.org/prop/direct/P229> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P230> ?var3 . } OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P114> ?var17 . ?var17 <http://www.w3.org/2000/01/rdf-schema#label> ?var9 . FILTER ( ( ( LANG ( ?var9 ) = "en" ) ) ) . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P576> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2032> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var18 . ?var18 <http://www.wikidata.org/prop/direct/P297> ?var10 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P154> ?var11 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P571> ?var12 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P127> ?var19 . ?var19 <http://www.wikidata.org/prop/direct/P229> ?var13 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var14 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P113> ?var20 . ?var20 <http://www.wikidata.org/prop/direct/P238> ?var15 . } FILTER ( ( ( LANG ( ?var4 ) = "es" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2317> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var16 . } }


Question: What properties and values describe the Pindad G2 firearm, excluding its instance-of classification?

SELECT ?property ?value WHERE { wd:Q15991020 ?property ?value . FILTER (?property != wdt:P31) } ORDER BY ?property

Can you list all the details about the Pindad G2 weapon model, such as its country of origin, designer, and ammunition, but not its type?

Show me all the information available for the Pindad G2 semi-automatic pistol, excluding the fact that it is a weapon model?

SELECT ?var1 ?var2 ?var3 ( SAMPLE ( ?var4 ) AS ?var5 ) WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var2 ?var6 <http://www.wikidata.org/entity/Q15991020> . ?var1 ?var7 ?var2 . ?var3 <http://wikiba.se/ontology#statementProperty> ?var6 . ?var3 <http://wikiba.se/ontology#claim> ?var7 . FILTER ( ( ( ?var3 != <http://www.wikidata.org/entity/P31> ) ) ) . } LIMIT 101 } OPTIONAL { ?var2 ?var4 ?var8 . ?var9 <http://wikiba.se/ontology#qualifier> ?var4 . } } GROUP BY ?var1 ?var2 ?var3


Question: What is the most common property that links Neil Gaiman to other items in Wikidata?

SELECT ?property (COUNT(?property) AS ?count) WHERE { ?item ?property wd:Q210059 . FILTER(STRSTARTS(STR(?property), "http://www.wikidata.org/prop/direct/")) } GROUP BY ?property ORDER BY DESC(?count) LIMIT 1

How many times is Neil Gaiman listed as an author in Wikidata, and is that the most frequent role he has?

Which Wikidata property connects Neil Gaiman to the most other entities, and what is the count?

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/Q210059> . ?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: Non-Dutch players who played for AFC Ajax

SELECT ?player ?playerLabel WHERE { ?player wdt:P54 wd:Q81888 . FILTER (NOT EXISTS { ?player wdt:P27 wd:Q29999 }) . ?player rdfs:label ?playerLabel . FILTER(LANG(?playerLabel) = "en") }

Which football players have played for AFC Ajax but are not citizens of the Netherlands?

List the names of all non-Dutch athletes who have been members of AFC Ajax.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P54> <http://www.wikidata.org/entity/Q81888> . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q29999> . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "nl,en". } }


Question: Humans with GND, ISNI, or VIAF identifiers

SELECT DISTINCT ?item ?itemLabel ?identifier ?prop WHERE { ?item wdt:P31 wd:Q5 . ?item ?prop ?identifier . FILTER (?prop IN (wdt:P227, wdt:P2452, wdt:P1014)) . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } ORDER BY DESC(?identifier) LIMIT 500

Which humans have GND, ISNI, or VIAF identifiers, and what are those identifiers?

List people who have a GND, ISNI, or VIAF ID, sorted by identifier value in descending order.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q21146257> . ?var1 <http://wikiba.se/ontology#identifiers> ?var2 . FILTER ( ( ( ?var2 != "0"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . ?var1 ?var4 ?var5 . FILTER ( ( ( ?var4 = <http://www.wikidata.org/prop/direct/P2452> ) || ( ?var4 = <http://www.wikidata.org/prop/direct/P1014> ) || ( ?var4 = <http://www.wikidata.org/prop/direct/P227> ) ) ) . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var6Label . ?var7 <http://www.wikidata.org/prop/direct/P1687> ?var8 . FILTER ( ( ( ?var8 = <http://www.wikidata.org/entity/P2452> ) || ( ?var8 = <http://www.wikidata.org/entity/P1014> ) || ( ?var8 = <http://www.wikidata.org/entity/P227> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,de". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . ?var7 <http://www.w3.org/2004/02/skos/core#altLabel> ?var3 . } FILTER ( ( CONTAINS ( STR ( ?var6Label ) , "string1" ) ) ) . } ORDER BY DESC( ?var2 ) LIMIT 500


Question: Does the GND ID 4191991-9 exist in Wikidata?

Is there a Wikidata item associated with the German National Library ID 4191991-9?

Check if the state archives entity is identified by the GND ID 4191991-9 in Wikidata.

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


Question: Who were the members of the Australian House of Representatives for the Division of Aston, and when did their terms start?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?person ?personLabel ?startDate WHERE {
  ?person p:P39 ?statement .
  ?statement ps:P39 wd:Q18912794 .
  ?statement pq:P768 wd:Q1074102 .
  ?statement pq:P580 ?startDate .
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
}
ORDER BY ASC(?startDate)

Which individuals represented the Division of Aston in the Australian House of Representatives, and what were the start dates of their terms?

List the people who held the seat of Aston in the Australian House of Representatives, along with the start dates of their terms, ordered chronologically.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/P39> ?var3 . ?var3 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q18912794> . ?var3 <http://www.wikidata.org/prop/qualifier/P768> <http://www.wikidata.org/entity/Q1074102> . ?var3 <http://www.wikidata.org/prop/qualifier/P580> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var2 )


Question: List all entities classified as house cats in Wikidata with their English names.

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

Who are the characters or entities in Wikidata that are marked as being a house cat?

Show me the English labels of all items in Wikidata that are instances of a house cat.

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


Question: What are the different types of seasons recognized 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 ?season ?seasonLabel WHERE {
  ?season wdt:P279 wd:Q24384 .
  ?season rdfs:label ?seasonLabel
  FILTER(LANG(?seasonLabel) = "en")
}
ORDER BY ?seasonLabel

Can you list the seasonal divisions that are subclasses of the general concept of season?

What are some examples of seasonal periods on Earth according to Wikidata?

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


Question: List people who served in the South Australian Legislative Council with their start and end dates, parliamentary term, and political party.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?person ?startDate ?endDate ?parliamentaryTerm ?parliamentaryGroup WHERE {
  ?person p:P39 ?positionStatement .
  ?positionStatement ps:P39 / wdt:P279 * wd:Q18662245 .
  OPTIONAL {
    ?positionStatement pq:P580 ?startDate .
  }
  OPTIONAL {
    ?positionStatement pq:P582 ?endDate .
  }
  OPTIONAL {
    ?positionStatement pq:P2937 ?parliamentaryTerm .
  }
  OPTIONAL {
    ?positionStatement pq:P4100 ?parliamentaryGroup .
  }
  FILTER(NOT EXISTS {
    ?positionStatement pq:P768 []
  })
}

Who were the members of the South Australian Legislative Council, when did they serve, which parliament did they belong to, and what political parties were they affiliated with?

Please provide a list of individuals who held office in the South Australian Legislative Council, including their term start and end dates, the specific parliament they served in, and their party affiliation — excluding those associated with electoral districts.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var4Label ?var5 ?var5Label ?var6 ?var6Label WHERE { ?var1 <http://www.wikidata.org/prop/P39> ?var7 . ?var7 <http://www.wikidata.org/prop/statement/P39> [ <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q18662245> ] . OPTIONAL { ?var7 <http://www.wikidata.org/prop/qualifier/P580> ?var2 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/qualifier/P582> ?var3 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/qualifier/P2937> ?var4 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/qualifier/P768> ?var5 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/qualifier/P4100> ?var6 . } FILTER ( ( NOT EXISTS { ?var7 <http://www.wikidata.org/prop/qualifier/P768> [] . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: List Australian Prime Ministers, their political parties, spouses, and term start/end dates.

SELECT ?primeMinister ?primeMinisterLabel ?party ?partyLabel ?spouse ?spouseLabel ?startDate ?endDate WHERE { ?primeMinister wdt:P39 wd:Q319145 . OPTIONAL { ?primeMinister wdt:P102 ?party . ?party rdfs:label ?partyLabel . FILTER(LANG(?partyLabel) = "en") } OPTIONAL { ?primeMinister wdt:P26 ?spouse . ?spouse rdfs:label ?spouseLabel . FILTER(LANG(?spouseLabel) = "en") } OPTIONAL { ?primeMinister p:P39 ?statement . ?statement ps:P39 wd:Q319145 . OPTIONAL { ?statement pq:P580 ?startDateRaw . BIND(SUBSTR(STR(?startDateRaw), 1, 10) AS ?startDate) } OPTIONAL { ?statement pq:P582 ?endDateRaw . BIND(SUBSTR(STR(?endDateRaw), 1, 10) AS ?endDate) } } ?primeMinister rdfs:label ?primeMinisterLabel . FILTER(LANG(?primeMinisterLabel) = "en") } ORDER BY ?primeMinister

Who are the Prime Ministers of Australia, what parties did they belong to, who are their spouses, and when did their terms begin and end?

Please provide a list of all Australian Prime Ministers along with their political affiliations, spouses, and the dates of their terms in office.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var4 ?var5 ?var5Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q319145> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/P39> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q319145> . OPTIONAL { BIND ( SUBSTR ( STR ( ?var7 ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"10"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var3 ). ?var6 <http://www.wikidata.org/prop/qualifier/P580> ?var7 . } OPTIONAL { BIND ( SUBSTR ( STR ( ?var8 ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"10"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var4 ). ?var6 <http://www.wikidata.org/prop/qualifier/P582> ?var8 . } } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P26> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P102> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var7 )


Question: List governors of Alaska with their term start and end dates, ordered by most recent first.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?governor ?governorLabel ?startDate ?endDate WHERE {
  ?governor wdt:P31 wd:Q5 .
  ?governor p:P39 ?statement .
  ?statement ps:P39 wd:Q20801644 .
  OPTIONAL {
    ?statement pq:P580 ?startDate .
  }
  OPTIONAL {
    ?statement pq:P582 ?endDate .
  }
  OPTIONAL {
    ?governor rdfs:label ?governorLabel .
    FILTER(LANG(?governorLabel) = "en")
  }
}
ORDER BY DESC(?startDate)

Who have been the governors of Alaska, and when did their terms begin and end?

Please provide the names of all individuals who have served as Governor of Alaska, along with the start and end dates of their terms, sorted from most recent to earliest.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4Label ?var5Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/P39> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q20801644> . OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P580> ?var2 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P582> ?var3 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P1365> ?var4 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P1366> ?var5 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY DESC( ?var2 )


Question: List of firearms as instances of the class firearm.

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 ?firearm ?firearmLabel WHERE {
  ?firearm wdt:P31 wd:Q12796 .
  ?firearm rdfs:label ?firearmLabel .
  FILTER(LANG(?firearmLabel) = "en")
}

What are some examples of firearms according to Wikidata?

Show me the English names of all individual firearm models classified as instances of the class "firearm".

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


Question: Subclasses of handgun with their labels and images.

SELECT ?handgun ?label ?image WHERE { ?handgun wdt:P279 wd:Q1574963 . ?handgun rdfs:label ?label . OPTIONAL { ?handgun wdt:P18 ?image . } FILTER(LANG(?label) = "en") } LIMIT 100

What are the different types of handguns, and what are their names and images?

List all known types of handguns along with their English names and any available images from Wikimedia Commons.

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


Question: Who is Michael Jackson’s mother, and what is her gender? Also, what is Michael Jackson’s gender?

SELECT ?mother ?motherLabel ?michaelGender ?michaelCoords ?motherCoords ?motherGender WHERE { wd:Q2831 wdt:P25 ?mother . OPTIONAL { wd:Q2831 wdt:P21 ?michaelGender . } OPTIONAL { wd:Q2831 wdt:P625 ?michaelCoords . } OPTIONAL { ?mother wdt:P625 ?motherCoords . } OPTIONAL { ?mother wdt:P21 ?motherGender . } ?mother rdfs:label ?motherLabel . FILTER(LANG(?motherLabel) = "en") }

What do we know about Michael Jackson’s mother, including her name, gender, and location? And what is Michael Jackson’s gender?

Can you tell me about Michael Jackson’s mother: her name, gender, and where she is located? Also, what is Michael Jackson’s sex?

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var8Label WHERE { <http://www.wikidata.org/entity/Q2831> <http://www.wikidata.org/prop/direct/P25> ?var1 . OPTIONAL { <http://www.wikidata.org/entity/Q2831> <http://www.wikidata.org/prop/direct/P21> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q2831> <http://www.wikidata.org/prop/direct/P625> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P21> ?var9 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: Who were the Director-Generals of the Swedish National Heritage Board, and during which years did they serve?

SELECT ?person ?personLabel ?startYear ?endYear WHERE { ?person wdt:P31 wd:Q5 ; p:P39 ?statement . ?statement ps:P39 wd:Q10655117 ; pq:P580 ?start ; pq:P582 ?end . BIND(YEAR(?start) AS ?startYear) BIND(YEAR(?end) AS ?endYear) ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") }

List the people who held the position of Director-General of the Swedish National Heritage Board along with the start and end years of their terms.

Can you show me the tenure periods (start and end years) for each person who served as Director-General of the Swedish National Heritage Board?

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { BIND ( YEAR ( ?var4 ) AS ?var2 ). BIND ( YEAR ( ?var5 ) AS ?var3 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> ; <http://www.wikidata.org/prop/P39> [ <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q10655117> ; <http://www.wikidata.org/prop/qualifier/P580> ?var4 ; <http://www.wikidata.org/prop/qualifier/P582> ?var5 ] . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sv,en". } }


Question: Properties and values of the Sikorsky CH-54 Tarhe helicopter.

SELECT ?property ?value WHERE { wd:Q2336788 ?property ?value .}

What information is available about the Sikorsky CH-54 Tarhe on Wikidata?

List all known facts about the Sikorsky CH-54 Tarhe aircraft.

SELECT DISTINCT * WHERE { <http://www.wikidata.org/entity/Q2336788> ?var1 ?var2 . } LIMIT 100


Question: What books or categories feature the Sikorsky CH-54 Tarhe helicopter?

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 ?item ?label WHERE {
  {
    ?item wdt:P180 wd:Q2336788 .
  } UNION {
    ?item wdt:P301 wd:Q2336788 .
  }
  OPTIONAL {
    ?item rdfs:label ?label .
    FILTER ( LANG( ?label ) = "en" )
  }
}
LIMIT 100

Which publications and Wikimedia categories are about the Sikorsky CH-54 Tarhe?

List English-labeled resources that depict or are categorized under the Sikorsky CH-54 Tarhe.

SELECT DISTINCT ?var1 WHERE { ?var1 ?var2 <http://www.wikidata.org/entity/Q2336788> . ?var1 ?var3 ?var4 . FILTER ( ( isIRI ( ?var4 ) || ( LANG ( ?var4 ) = "" ) || LANGMATCHES ( LANG ( ?var4 ) , "en" ) ) ) . OPTIONAL { ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "" ) || LANGMATCHES ( LANG ( ?var5 ) , "en" ) ) ) . } } LIMIT 100


Question: Islands without a country

SELECT ?island (COALESCE(?enLabel, STR(?island)) AS ?label) WHERE { ?island wdt:P31 wd:Q23442 . FILTER (NOT EXISTS { ?island wdt:P17 ?country }) OPTIONAL { ?island rdfs:label ?enLabel . FILTER(LANG(?enLabel) = "en") } } ORDER BY ?label

Which islands are not part of any sovereign state?

List all islands that do not belong to any country, showing their names if available.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q23442> . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var2 . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "id,en". } }


Question: Who are the Italian astronauts, and how much time have they spent in space, ordered from most to least time spent?

SELECT ?astronaut ?astronautLabel ?timeInSpace ?timeUnit ?wikipediaPage WHERE { ?astronaut wdt:P106 wd:Q11631 ; wdt:P27 wd:Q38 . OPTIONAL { ?astronaut p:P2873 ?timeStmt . ?timeStmt ps:P2873 ?timeInSpace ; psv:P2873 ?timeValueNode . ?timeValueNode wikibase:quantityUnit ?timeUnit . } OPTIONAL { ?astronaut rdfs:label ?astronautLabel . FILTER(LANG(?astronautLabel) = "en") } OPTIONAL { ?wikipediaPage schema:about ?astronaut ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . } } ORDER BY DESC(?timeInSpace)

Italian astronauts with time in space and Wikipedia links

List Italian astronauts along with their total time in space (in minutes), the unit of measurement, and their English Wikipedia page, sorted by time in space descending.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q11631> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q38> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2873> ?var2 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2067> / <http://www.wikidata.org/prop/statement/value/P2067> ) [ <http://wikiba.se/ontology#quantityUnit> ?var5 ] . } OPTIONAL { ?var2 <http://wikiba.se/ontology#quantityUnit> ?var3 . } OPTIONAL { ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/inLanguage> "en". FILTER ( ( ( SUBSTR ( STR ( ?var4 ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"25"^^<http://www.w3.org/2001/XMLSchema#integer> ) = "string1" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "it,en". } } ORDER BY DESC( ?var2 )


Question: Birth date of Michael Jackson’s mother, and genders of Michael Jackson and his mother.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?motherBirthDate ?michaelGender ?motherGender WHERE {
  wd:Q2831 wdt:P25 ?mother .
  ?mother wdt:P569 ?motherBirthDate .
  wd:Q2831 wdt:P21 ?michaelGender .
  ?mother wdt:P21 ?motherGender .
}

What is the birth date of Michael Jackson’s mother, and what are the genders of Michael Jackson and his mother?

Can you tell me when Michael Jackson’s mother was born, and confirm that Michael Jackson is male and his mother is female?

SELECT ?var1 ?var2 ?var3 WHERE { <http://www.wikidata.org/entity/Q2831> <http://www.wikidata.org/prop/direct/P25> ?var4 . ?var4 <http://www.wikidata.org/prop/direct/P569> ?var1 . <http://www.wikidata.org/entity/Q2831> <http://www.wikidata.org/prop/direct/P21> ?var2 . ?var4 <http://www.wikidata.org/prop/direct/P21> ?var3 . }


Question: Entities associated with association football (soccer)

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 ?item ?itemLabel WHERE {
  ?item wdt:P641 wd:Q2736 .
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
}
LIMIT 200

Who are the people and clubs that play association football?

List the English names of all football players and teams linked to association football.

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


Question: What properties are used to describe the office of President of the United States in Wikidata, and what are their English labels and descriptions?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?propertyLabel ?propertyDescription WHERE {
  VALUES ?property {
    wd:P101 wd:P1027 wd:P106 wd:P1906 wd:P2360 wd:P2388 wd:P2670 wd:P301
  }
  ?property rdfs:label ?propertyLabel .
  ?property schema:description ?propertyDescription .
  FILTER ( LANG( ?propertyLabel ) = "en" ) FILTER ( LANG( ?propertyDescription ) = "en" )
}
LIMIT 20

List the English labels and descriptions of Wikidata properties that are associated with the entity "President of the United States".

Which Wikidata properties describe the President of the United States, and what do they mean in English?

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/prop/direct/Q11696> . ?var1 ?var6 ?var5 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 20 } ?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 20


Question: Humans who hold positions that are subclasses of head of state.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label WHERE {
  ?var1 wdt:P31 wd:Q5 .
  ?var1 wdt:P39 ?var2 .
  ?var2 wdt:P279 * wd:Q48352 .
  ?var1 rdfs:label ?var1Label .
  ?var2 rdfs:label ?var2Label .
  FILTER(LANG(?var1Label) = "en")
  .
  FILTER(LANG(?var2Label) = "en")
  .
}

Who are the people holding offices such as president or governor, and what positions do they hold?

List all heads of state and their titles, including subtypes like lieutenant governors and presidents.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P39> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q48352> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es,en". } }


Question: Japanese name of Hōjō Sōun

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?label WHERE {
  wd:Q924929 rdfs:label ?label .
  FILTER ( LANG( ?label ) = "ja" )
}
LIMIT 100

What is the Japanese label for Hōjō Sōun on Wikidata?

Can you tell me how Hōjō Sōun is written in Japanese characters?

SELECT DISTINCT ?var1 WHERE { <http://www.wikidata.org/entity/Q924929> <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "ja" ) ) ) . } LIMIT 100


Question: Direct properties and multilingual descriptions of the genus Papio (baboons)

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

What are the taxonomic details and descriptions in different languages for baboons (genus Papio)?

Show me all available information about the genus Papio, including its scientific classification and descriptions in various languages.

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


Question: What are the legislative bodies of electoral units (like municipalities or departments), and which countries do they belong to?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?electoralUnit ?electoralUnitLabel ?country ?countryLabel ?jurisdiction ?jurisdictionLabel ?legislativeBody ?legislativeBodyLabel WHERE {
  ?electoralUnit wdt:P279 + wd:Q192611 .
  ?electoralUnit wdt:P194 ?legislativeBody .
  OPTIONAL {
    ?electoralUnit wdt:P17 ?country .
    ?country rdfs:label ?countryLabel .
    FILTER ( LANG( ?countryLabel ) = "en" )
  }
  OPTIONAL {
    ?electoralUnit wdt:P1001 ?jurisdiction .
    ?jurisdiction rdfs:label ?jurisdictionLabel .
    FILTER ( LANG( ?jurisdictionLabel ) = "en" )
  }
  ?legislativeBody rdfs:label ?legislativeBodyLabel .
  FILTER ( LANG( ?legislativeBodyLabel ) = "en" ) ?electoralUnit rdfs:label ?electoralUnitLabel .
  FILTER ( LANG( ?electoralUnitLabel ) = "en" )
}

List all administrative divisions used for elections, their governing councils, and the countries or jurisdictions they operate in.

Show me the councils responsible for governing electoral areas such as departments and municipalities, along with their associated countries and jurisdictions.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3Label ?var4Label ?var5 ?var5Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> + <http://www.wikidata.org/entity/Q192611> . OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P279> +/ <http://www.wikidata.org/prop/qualifier/P642> ) ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1001> ?var4 . } ?var1 <http://www.wikidata.org/prop/direct/P194> ?var5 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Who are the governors of Georgia?

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 ?governor ?governorLabel WHERE {
  ?governor wdt:P39 wd:Q880198 .
  ?governor rdfs:label ?governorLabel .
  FILTER(LANG(?governorLabel) = "en")
}

List all individuals who have held the office of Governor of Georgia.

What are the names of people who served as Governor of Georgia?

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


Question: Which property is most often used to reference the head of state property in Wikidata?

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

What property is used most frequently to link to the property "head of state"?

Show me the property that has the highest number of statements pointing to "head of state".

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/P35> . ?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: Does Wikidata contain an entry for the German National Library ID 1106863445?

Is there a person in Wikidata with the GND ID 1106863445?

Confirm whether the individual with GND ID 1106863445 is represented in Wikidata.

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


Question: What are the broader categories that a sports season of a sports club belongs to?

SELECT DISTINCT ?superclass WHERE { { wd:Q1539532 wdt:P279 ?superclass . } UNION { wd:Q1539532 wdt:P279/wdt:P279 ?superclass . } }

What classes are above "sports season of a sports club" in the Wikidata hierarchy?

Can you list the parent and grandparent categories of a sports club season in Wikidata?

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


Question: What are all the political positions that Nick Bourne has held throughout his career?

SELECT DISTINCT ?statement ?position WHERE { wd:Q7026799 p:P39 ?statement . ?statement ps:P39 ?position .}

List all offices held by Nick Bourne, including past ones.

Can you provide a complete list of the public offices Nick Bourne has occupied?

SELECT DISTINCT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q7026799> <http://www.wikidata.org/prop/P39> ?var1 . ?var1 <http://www.wikidata.org/prop/statement/P39> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the geographic coordinates and official names of volcanic landforms?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?coord ?item ?name WHERE {
  ?item ( wdt:P31 / wdt:P279 * ) wd:Q29025902 .
  ?item wdt:P625 ?coord .
  OPTIONAL {
    ?item wdt:P1448 ?name
  }
}

Volcanic landforms with coordinates and official names

List all volcanic landforms along with their locations and official names, if available.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> ?) <http://www.wikidata.org/entity/Q16659508> . ?var3 <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> "de, en,fr". } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P1448> ?var4 . } }


Question: What are the names and coordinates of all volcanic landforms with English labels?

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/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT ?item ( GROUP_CONCAT( DISTINCT ?label ; SEPARATOR = "|" ) AS ?labels ) ( GROUP_CONCAT( DISTINCT ?altLabel ; SEPARATOR = "|" ) AS ?altLabels ) ( SAMPLE( ?coord ) AS ?coordinate ) WHERE {
  ?item ( wdt:P31 / wdt:P279 * ) wd:Q29025902 .
  ?item wdt:P625 ?coord .
  OPTIONAL {
    ?item rdfs:label ?label FILTER ( LANG( ?label ) = "en" )
  }
  OPTIONAL {
    ?item skos:altLabel ?altLabel FILTER ( LANG( ?altLabel ) = "en" )
  }
}
GROUP BY ?item

Can you list volcanic landforms along with their English names, alternative names, and geographic coordinates?

Show me the English labels, alternative labels, and locations of all features classified as volcanic landforms.

SELECT ?var1 ( GROUP_CONCAT ( DISTINCT ?var2Label ; SEPARATOR = "|" ) AS ?var3 )( GROUP_CONCAT ( DISTINCT ?var4 ; SEPARATOR = "|" ) AS ?var5 )( SAMPLE ( ?var6 ) AS ?var7 ) WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q18455918> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var6 . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( LANG ( ?var2Label ) IN ( "en" ) ) ) . } OPTIONAL { ?var1 <http://www.w3.org/2004/02/skos/core#altLabel> ?var4 . FILTER ( ( LANG ( ?var4 ) IN ( "en" ) ) ) . } } GROUP BY ?var1


Question: What are the organizations in Saudi Arabia, and do they have ISNI identifiers?

SELECT ?organizationLabel ?isni WHERE { ?organization (wdt:P31/wdt:P279*) wd:Q43229 . ?organization wdt:P17 wd:Q851 . OPTIONAL { ?organization wdt:P213 ?isni . } OPTIONAL { ?organization rdfs:label ?organizationLabel . FILTER(LANG(?organizationLabel) = "en") } }

Can you list all organizations based in Saudi Arabia along with their International Standard Name Identifiers?

Which organizations in Saudi Arabia are assigned an ISNI code?

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


Question: Head of government of the United States

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 ?headOfGovernment ?headOfGovernmentLabel WHERE {
  wd:Q30 wdt:P6 ?headOfGovernment .
  ?headOfGovernment rdfs:label ?headOfGovernmentLabel .
  FILTER(LANG(?headOfGovernmentLabel) = "en")
}

Who is the head of government of the United States?

Tell me who currently leads the executive branch of the United States.

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


Question: Rivers in Peru with their mouth, continent, length, watershed area, and discharge.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?river ?mouth ?continent ?length ?watershedArea ?discharge WHERE {
  ?river wdt:P31 wd:Q4022 .
  ?river wdt:P17 wd:Q419 .
  ?river wdt:P403 ?mouth .
  OPTIONAL {
    ?river wdt:P30 ?continent .
  }
  OPTIONAL {
    ?river wdt:P2043 ?length .
  }
  OPTIONAL {
    ?river wdt:P2053 ?watershedArea .
  }
  OPTIONAL {
    ?river wdt:P2225 ?discharge .
  }
}
LIMIT 20

What are the rivers in Peru, and what are their mouths, continents, lengths, watershed areas, and discharge rates?

Please list all rivers located in Peru along with their downstream mouth, continent, length in kilometers, watershed area in square kilometers, and average discharge.

SELECT ?var1 ?var1Label ?var2Label ?var3Label ?var4Label ?var5Label ?var6Label ?var7 ?var8 ?var9 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4022> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q419> . ?var1 <http://www.wikidata.org/prop/direct/P403> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P885> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2043> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P30> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2053> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2225> ?var9 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 100000


Question: Does the GND ID 115356789X exist in Wikidata?

Is there a person in Wikidata with the German National Library ID 115356789X?

Check if the entity with GND ID 115356789X is present in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "115356789X". }


Question: Head of government of the United States

SELECT ?headOfGovernment ?headOfGovernmentLabel WHERE { ?headOfGovernment wdt:P31 wd:Q5 . wd:Q30 wdt:P6 ?headOfGovernment . ?headOfGovernment rdfs:label ?headOfGovernmentLabel . FILTER(LANG(?headOfGovernmentLabel) = "en")}

Who is the head of government of the United States?

What is the name of the person who is the head of government of the United States?

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


Question: What is the English label for the Wikimedia username property on Wikidata?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?label WHERE {
  wd:P4174 rdfs:label ?label .
  FILTER ( LANGMATCHES( LANG( ?label ) , "en" ) )
}

Can you tell me the name of the property that stores Wikimedia usernames in English?

How is the property for Wikimedia usernames labeled in English on Wikidata?

SELECT( SAMPLE ( ?var1 ) AS ?var2Label ) WHERE { <http://www.wikidata.org/prop/novalue/P4174> <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( LANGMATCHES ( LANG ( ?var1 ) , "en" ) ) ) . }


Question: What properties are used to describe house cats in Traditional Chinese?

SELECT DISTINCT ?property ?propertyLabel ?propertyDescription WHERE { ?item ?property wd:Q146 . FILTER(STRSTARTS(STR(?property), "http://www.wikidata.org/prop/direct/")) . BIND(IRI(REPLACE(STR(?property), "http://www.wikidata.org/prop/direct/", "http://www.wikidata.org/entity/")) AS ?propertyItem) . ?propertyItem rdfs:label ?propertyLabel . FILTER(LANG(?propertyLabel) = "zh-tw") . OPTIONAL { ?propertyItem schema:description ?propertyDescription . FILTER(LANG(?propertyDescription) = "zh-tw") } } LIMIT 20

Which properties linked to the house cat have Traditional Chinese labels and descriptions?

Show me the Traditional Chinese labels and descriptions of properties that are used in statements about domestic cats.

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/Q146> . ?var1 ?var6 ?var5 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 20 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "zh-tw" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "zh-tw" ) ) ) . } LIMIT 20


Question: How many languages are used to label each subclass of domesticated animals in Wikidata?

SELECT ?subclass (COUNT(DISTINCT LANG(?label)) AS ?labelCount) WHERE { ?subclass wdt:P279 wd:Q622852 . ?subclass rdfs:label ?label . } GROUP BY ?subclass

Which domesticated animal subclasses have the most language labels, and how many languages are they labeled in?

Can you list all subclasses of domesticated animals along with the number of languages their names are available in?

SELECT ?var1 ( COUNT ( DISTINCT ?var2 ) AS ?var3 ) WHERE { BIND ( LANG ( ?var4Label ) AS ?var2 ). ?var1 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q622852> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . } GROUP BY ?var1 HAVING ( ( COUNT ( DISTINCT ?var2 ) >= "0"^^<http://www.w3.org/2001/XMLSchema#integer> ) )


Question: What properties are used to describe food products in Wikidata?

SELECT DISTINCT ?propertyItem ?propertyItemLabel ?propertyItemDescription WHERE { { wd:Q951964 ?property ?value . FILTER(STRSTARTS(STR(?property), "http://www.wikidata.org/prop/direct/")) BIND(REPLACE(STR(?property), "http://www.wikidata.org/prop/direct/", "") AS ?pid) BIND(IRI(CONCAT("http://www.wikidata.org/entity/", ?pid)) AS ?propertyItem) } UNION { ?subject ?property wd:Q951964 . FILTER(STRSTARTS(STR(?property), "http://www.wikidata.org/prop/direct/")) BIND(REPLACE(STR(?property), "http://www.wikidata.org/prop/direct/", "") AS ?pid) BIND(IRI(CONCAT("http://www.wikidata.org/entity/", ?pid)) AS ?propertyItem) } ?propertyItem rdfs:label ?propertyItemLabel . ?propertyItem schema:description ?propertyItemDescription . FILTER(LANG(?propertyItemLabel) = "en") FILTER(LANG(?propertyItemDescription) = "en") } LIMIT 100

Which properties have been used in statements about food products, and what are their English labels and descriptions?

List the English labels and descriptions of all properties that are used in connections with food products.

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/Q951964> . ?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 are the English and German Wikipedia pages for the movie The Matrix with IMDb ID tt0133093?

SELECT ?item ?wikipedia_page ?imdb_id WHERE { ?item wdt:P345 "tt0133093" . ?wikipedia_page schema:about ?item ; schema:inLanguage ?lang . FILTER(?lang = "en" || ?lang = "de") BIND("tt0133093" AS ?imdb_id) }

Which Wikipedia articles in English or German are about the film The Matrix, and what is its IMDb identifier?

Show me the English and German Wikipedia pages related to the movie The Matrix (IMDb: tt0133093), along with its IMDb ID.

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt1942787". } ?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: Who is the European Parliament member with ID 190799 and what is their description?

SELECT ?mep ?mepLabel ?description WHERE { ?mep wdt:P1186 "190799" . OPTIONAL { ?mep rdfs:label ?mepLabel . FILTER (LANG(?mepLabel) = "en") } OPTIONAL { ?mep schema:description ?description . FILTER (LANG(?description) = "en") } }

What is the name and English description of the MEP with directory ID 190799?

Show me the English name and description of the European Parliament member identified by 190799.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1186> "190799". 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: Current Chinese national leaders and their positions in Chinese

SELECT ?person (GROUP_CONCAT(?positionLabel; SEPARATOR = "<br/>") AS ?positions)
WHERE {
  ?person p:P39 ?statement .
  ?statement ps:P39 ?position .
  ?statement pq:P580 ?startDate .
  FILTER (NOT EXISTS { ?statement pq:P582 ?endDate }) .

  {
    ?position wdt:P279 wd:Q30945753 .
  } UNION {
    ?position wdt:P279 wd:Q46403368 .
  }

  OPTIONAL {
    ?position rdfs:label ?positionLabel .
    FILTER (LANG(?positionLabel) = "zh") .
  }
}
GROUP BY ?person

Who are the current holders of top leadership positions in China, and what are their official titles in Chinese?

List all currently serving high-ranking officials in the People’s Republic of China along with their Chinese-language job titles.

SELECT ?var1 ( GROUP_CONCAT ( ?var2Label ; SEPARATOR = "<br/>" ) AS ?var3 ) WHERE { ?var1 <http://www.wikidata.org/prop/P39> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/P39> ?var5 . ?var4 <http://www.wikidata.org/prop/qualifier/P580> ?var6 . FILTER ( ( NOT EXISTS { ?var4 <http://www.wikidata.org/prop/qualifier/P582> ?var7 . } ) ) . { ?var5 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q30945753> . } UNION { ?var5 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q46403368> . } OPTIONAL { ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "zh" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "zh". } } GROUP BY ?var1


Question: What are all the parent classes of volcanic landform in the Wikidata taxonomy?

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

Show me the complete hierarchy of classes that volcanic landform belongs to, including indirect superclasses.

What broader categories does a volcanic landform fall under in Wikidata?

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


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

SELECT ?item ?wikipedia_page WHERE { ?item wdt:P345 "tt10838180" . ?wikipedia_page schema:about ?item ; schema:inLanguage ?lang . FILTER(?lang = "en" || ?lang = "de") FILTER(REGEX(STR(?wikipedia_page), "wikipedia.org")) }

What are the English and German Wikipedia articles about the movie with IMDb ID tt10838180?

Show me the English and German Wikipedia pages for The Matrix Resurrections.

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt1029287". } ?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 Wikidata contain an entity with GND ID 1154536149?

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

Is there a person in Wikidata identified by the German National Library ID 1154536149?

Confirm if the GND ID 1154536149 corresponds to any entity in Wikidata.

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


Question: Is there a Wikidata item with GND ID 1148600426?

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

Does the German National Library ID 1148600426 correspond to any entity in Wikidata?

Confirm if the GND ID 1148600426 is assigned to any person or organization in Wikidata.

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


Question: When did Boris Johnson serve as Prime Minister of the United Kingdom?

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?position ?start ?end WHERE {
  wd:Q180589 p:P39 ?statement .
  ?statement ps:P39 ?position .
  OPTIONAL {
    ?statement pq:P580 ?start
  }
  OPTIONAL {
    ?statement pq:P582 ?end
  }
  FILTER(?position = wd:Q14211)
}

What were the start and end dates of Boris Johnson’s term as Prime Minister of the United Kingdom?

Show me the period during which Boris Johnson held the office of Prime Minister of the United Kingdom.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q28842706> <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q13423495> . }


Question: What are the cities in West Nusa Tenggara Province, Indonesia?

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 ?city ?cityLabel WHERE {
  ?city wdt:P31 wd:Q3199141 .
  ?city wdt:P131 wd:Q5062 .
  ?city rdfs:label ?cityLabel .
  FILTER ( LANG( ?cityLabel ) = "en" )
}

List the cities located in West Nusa Tenggara with their English labels.

Which Indonesian cities are part of the West Nusa Tenggara province?

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


Question: What are the types of the tram stop Westwijk?

SELECT ?typeLabel WHERE { wd:Q2044925 wdt:P31 ?type . ?type rdfs:label ?typeLabel . FILTER(LANG(?typeLabel) = 'en') }

Is the entity Q2044925 classified as a squatter's house, and if not, what is its actual classification?

Can you tell me the English labels of all the categories that the tram stop Westwijk belongs to?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q2044925> <https://www.wikidata.org/wiki/Property:P31> <http://www.wikidata.org/entity/Q13691604> . }


Question: Who is the head of government of the United States?

SELECT ?headOfGovernment WHERE { wd:Q30 wdt:P6 ?headOfGovernment .}

What is the current head of government of the United States according to Wikidata?

List the person who holds the position of head of government for the United States.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q30> <http://www.wikidata.org/prop/p6> ?var1 . }


Question: Who is the president of the United States?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?president WHERE {
  ?president wdt:P39 wd:Q11696 .
}

Who holds the position of head of government of the United States?

List all individuals who have been president of the United States.

SELECT ?var1 WHERE { <https://www.wikidata.org/wiki/Q17310488> <http://www.wikidata.org/prop/direct/P6> ?var1 . }


Question: People who worked at both University of Mannheim and University of Kiel, with their employment start dates.

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?employer ?start WHERE {
  ?person p:P108 ?statement .
  ?statement ps:P108 ?employer .
  ?statement pq:P580 ?start .
  ?person p:P108 ?stmt1 .
  ?stmt1 ps:P108 wd:Q317070 .
  ?person p:P108 ?stmt2 .
  ?stmt2 ps:P108 wd:Q156737 .
}

Which people have been employed by both the University of Mannheim and the University of Kiel, and when did they start working at each?

Show me all the jobs and start dates for individuals who have worked at both the University of Mannheim and the University of Kiel.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P108> <http://www.wikidata.org/entity/Q317070> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . } ?var1 <http://www.wikidata.org/prop/P108> ?var3 . ?var3 <http://www.wikidata.org/prop/statement/P108> ?var4 . ?var3 <http://www.wikidata.org/prop/qualifier/P580> ?var5 . ?var1 <http://www.wikidata.org/prop/direct/P108> <http://www.wikidata.org/entity/Q156737> . }


Question: What are all the superclass categories of volcanic landform in Wikidata?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?superclass WHERE {
  wd:Q29025902 wdt:P279 * ?superclass .
}

What classes does volcanic landform belong to, including indirect parent classes?

Show me the full hierarchy of classes that volcanic landform is a subclass of.

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


Question: What are the English names and ISNI identifiers of organizations located in South Sudan?

SELECT ?organizationLabel ?isni WHERE { ?organization (wdt:P31/wdt:P279*) wd:Q43229 . ?organization wdt:P17 wd:Q958 . OPTIONAL { ?organization wdt:P213 ?isni . } ?organization rdfs:label ?organizationLabel . FILTER(LANG(?organizationLabel) = "en") }

Can you list organizations in South Sudan along with their International Standard Name Identifiers (ISNI)?

Which institutions in South Sudan have an ISNI code, and what are their names in English?

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


Question: What are the Hebrew names of biblical figures that Rashi identified as the same person as another figure?

SELECT ?item ?sameAs ?itemLabel WHERE { ?item p:P460 ?statement . ?statement ps:P460 ?sameAs . ?statement prov:wasDerivedFrom / pr:P248 / wdt:P50 wd:Q26456 . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "he") }

Which biblical figures did Rashi equate, and what are their Hebrew names?

According to Rashi’s commentaries, which pairs of biblical figures are considered identical, and what are their Hebrew names?

SELECT ?var1 ?var2 ( GROUP_CONCAT ( DISTINCT ?var3Label ; SEPARATOR = " / " ) AS ?var1Label ) WHERE { { SELECT ?var1 ?var2 ?var3Label WHERE { { BIND ( ?var1 AS ?var2 ). ?var1 <http://www.wikidata.org/prop/P460> [ <http://www.wikidata.org/prop/statement/P460> ?var4 ; ( <http://www.w3.org/ns/prov#wasDerivedFrom> / <http://www.wikidata.org/prop/reference/P248> / <http://www.wikidata.org/prop/direct/P50> ) <http://www.wikidata.org/entity/Q26456> ] . ?var1 <http://wikiba.se/ontology#sitelinks> ?var5 . ?var4 <http://wikiba.se/ontology#sitelinks> ?var6 . FILTER ( ( ( ?var5 > ?var6 ) ) ) . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "he" ) ) ) . } UNION { BIND ( ?var4 AS ?var2 ). ?var1 <http://www.wikidata.org/prop/P460> [ <http://www.wikidata.org/prop/statement/P460> ?var4 ; ( <http://www.w3.org/ns/prov#wasDerivedFrom> / <http://www.wikidata.org/prop/reference/P248> / <http://www.wikidata.org/prop/direct/P50> ) <http://www.wikidata.org/entity/Q26456> ] . ?var1 <http://wikiba.se/ontology#sitelinks> ?var5 . ?var4 <http://wikiba.se/ontology#sitelinks> ?var6 . FILTER ( ( ( ?var5 < ?var6 ) ) ) . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "he" ) ) ) . } } } } GROUP BY ?var2 ?var1


Question: What are the Twitter, Facebook, and Instagram handles of Bundesliga football clubs, along with their logos?

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 ?team ?teamLabel ?twitter ?facebook ?instagram ?image WHERE {
  ?team wdt:P118 wd:Q82595 .
  ?team wdt:P31 wd:Q476028 .
  OPTIONAL {
    ?team wdt:P2002 ?twitter .
  }
  OPTIONAL {
    ?team wdt:P2013 ?facebook .
  }
  OPTIONAL {
    ?team wdt:P2003 ?instagram .
  }
  OPTIONAL {
    ?team wdt:P18 ?image .
  }
  ?team rdfs:label ?teamLabel .
  FILTER ( LANG( ?teamLabel ) = "en" )
}

Which German Bundesliga football teams have official social media accounts on Twitter, Facebook, and Instagram, and what are their images?

Please list the English names, social media usernames (Twitter, Facebook, Instagram), and official images of all association football clubs in the Bundesliga.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/p118> <http://www.wikidata.org/entity/Q82595> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2013> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2003> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var5 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Who are the members of the Free Democratic Party (FDP) in the German Bundestag, and what are their affiliations?

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 ?politician ?politicianLabel ?affiliation WHERE {
  ?politician wdt:P102 wd:Q13124 .
  ?politician wdt:P39 wd:Q1939555 .
  OPTIONAL {
    ?politician wdt:P1416 ?affiliation .
  }
  OPTIONAL {
    ?politician rdfs:label ?politicianLabel .
    FILTER ( LANG( ?politicianLabel ) = "en" )
  }
}
ORDER BY ASC ( ?politicianLabel )

Which politicians are members of both the Free Democratic Party and the German Bundestag, and which Bundestag fractions are they affiliated with?

List the names and affiliations of all FDP members serving in the German Bundestag.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var3Label ?var4Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P102> <http://www.wikidata.org/entity/Q13124> . ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q1939555> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1416> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1412> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1416> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P937> ?var4 . } } ORDER BY ASC( ?var6Label )ASC( ?var1Label )


Question: What type of cat is Tomba?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?instance WHERE {
  wd:Q25393350 wdt:P31 ?instance .
}

What class does the cat named Tomba belong to?

Show me the specific category or type that Tomba is classified as in Wikidata.

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


Question: Does the German National Library ID "4079262-6" exist in Wikidata?

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

Is there a Wikidata item associated with the GND ID 4079262-6?

Is the GND identifier 4079262-6 linked to any entity in Wikidata?

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