PREFIX fb: <http://rdf.freebase.com/ns/>
SELECT ?endDate WHERE {
  fb:m.0jnq8 fb:sports.sports_team.championships ?final .
  ?final fb:time.event.end_date ?endDate .
}
ORDER BY DESC ( ?endDate )
LIMIT 1

The last time the LA Kings won a playoff series (Stanley Cup Final) was on 2014-06-13.

[System]
You are a question answering assistant. Your job is to generate a SPARQL query to answer a given user question.

You have access to the following knowledge graphs:
freebase at http://galera:7002

You can use the following SPARQL prefixes implicitly in all functions:
fb: <http://rdf.freebase.com/ns/
fbkey: <http://rdf.freebase.com/key/
rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs: <http://www.w3.org/2000/01/rdf-schema#
owl: <http://www.w3.org/2002/07/owl#
xsd: <http://www.w3.org/2001/XMLSchema#
foaf: <http://xmlns.com/foaf/0.1/
skos: <http://www.w3.org/2004/02/skos/core#
dct: <http://purl.org/dc/terms/
dc: <http://purl.org/dc/elements/1.1/
prov: <http://www.w3.org/ns/prov#
schema: <http://schema.org/
geo: <http://www.opengis.net/ont/geosparql#
geosparql: <http://www.opengis.net/ont/geosparql#
gn: <http://www.geonames.org/ontology#
bd: <http://www.bigdata.com/rdf#
hint: <http://www.bigdata.com/queryHints#
wikibase: <http://wikiba.se/ontology#
qb: <http://purl.org/linked-data/cube#
void: <http://rdfs.org/ns/void#

You should follow a step-by-step approach to generate the SPARQL query:
1. Determine possible entities and properties implied by the user question.
2. Use the functions to search for entities and properties in the knowledge graphs. Where applicable, constrain the searches with already identified entities and properties.
3. Gradually build up the SPARQL query using the identified entities and properties. Start with simple queries and add more complexity as needed. Use the execute function to get feedback on intermediate queries. You can go back and forth between knowledge graph searches and SPARQL query executions to refine the query.
4. Use the answer or cancel function to finalize your answer and stop the generation process.

Additional rules:
1. Explain your thought process before and after each step and function call.
2. Do not assume or make up any entities or properties without verifying them with the knowledge graphs and functions.
3. The SPARQL query should always return the actual identifiers / IRIs of the items in its result. It additionally may return labels or other human-readable information, but they are optional and should be put within optional clauses unless explicitly requested by the user.
4. Do not stop early if there are still obvious improvements to be made to the SPARQL query. For example, keep refining your SPARQL query if its result contains irrelevant items or is missing items you expected.
5. Do not perform additional computation (e.g. filtering, sorting, calculations) on the result of the SPARQL query to determine the answer. All computation should be done solely within SPARQL.
6. For questions with a "True" or "False" answer the SPARQL query should be an ASK query.
7. Do not use 'SERVICE wikibase:label { bd:serviceParam wikibase:language ...' in SPARQL queries. It is not SPARQL standard and unsupported by the used QLever SPARQL endpoints. Use rdfs:label or similar properties to get labels instead.

[User] when was the last time the la kings won a playoff series?

[Tool]
Top 10 entity alternatives:
1. Los Angeles Kings, also known as Los Angeles Kings Hockey Club (fb:m.0jnq8): The Los Angeles Kings are a professional ice hockey team based i...of the franchise that raised hockey's popularity in Los Angeles., Los Angeles Kings Hockey Club  is a 2013 Telly Award winner., has type Professional Sports Team
2. Los Angeles Kings (fb:m.06l8n7g): has type Book
3. Los Angeles Kings Playoffs (fb:m.0_gh5k6): Los Angeles Kings Playoffs is a 2013 Telly Award winning TV program, created for Fox Sports West and Prime Ticket., has type Award-Winning Work
4. Los Angeles Kings seasons (fb:m.08sq6q_)
5. 2013–14 Los Angeles Kings season (fb:m.0vxfpr6): The 2013–14 Los Angeles Kings season was the 47th season for the...al Hockey League franchise that was established on June 5, 1967.
6. 2011–12 Los Angeles Kings season (fb:m.0gg7js7): The 2011–12 Los Angeles Kings season was the 45th season for the...n to capture the first Stanley Cup championship in team history.
7. 2014–15 Los Angeles Kings season (fb:m.010hlj3k): The 2014–15 Los Angeles Kings season was the 48th season for the... the playoffs after winning the Stanley Cup the previous season.
8. 2012–13 Los Angeles Kings season (fb:m.0k0sj2b): The 2012–13 Los Angeles Kings season was the 46th season for the...nded by the Chicago Blackhawks in the Western Conference Finals.
9. 2010–11 Los Angeles Kings season (fb:m.0c02kbk): The 2010–11 Los Angeles Kings season was the 44th season for the National Hockey League franchise.
10. 2015–16 Los Angeles Kings season (fb:m.013cc_xq): The 2015–16 Los Angeles Kings season will be the 49th season for...al Hockey League franchise that was established on June 5, 1967.

[Tool]
Top 10 property alternatives:
1. Championships (fb:sports.sports_team.championships): links to type Sports League Championship Event, part of Sports Team schema
2. Sports Team Location (fb:sports.sports_team.location): links to type Sports Team Location, part of Sports Team schema
3. Sport (fb:sports.sports_team.sport): part of Sports Team schema, links to type Sport
4. Arena/Stadium (fb:sports.sports_team.arena_stadium): links to type Sports Facility, part of Sports Team schema
5. Conference (fb:ice_hockey.hockey_team.conference): links to type Ice hockey conference, part of Ice hockey team schema
6. Venue (fb:sports.sports_team.venue): links to type Team/venue relationship, part of Sports Team schema
7. Roster (fb:sports.sports_team.roster): links to type Sports team roster, part of Sports Team schema
8. Division (fb:ice_hockey.hockey_team.division): links to type Ice hockey division, part of Ice hockey team schema
9. Key (fb:type.object.key): part of Object schema, links to type Key
10. Coach (fb:ice_hockey.hockey_team.coach): links to type Ice hockey coach, part of Ice hockey team schema

No other items found

[Tool]
Top 10 entity alternatives:
1. Ice Hockey, also known as Hockey (fb:m.03tmr): Ice hockey is a contact team sport played on ice, usually in a r...ng. Worldwide, there are ice hockey federations in 73 countries., has type Sport
2. Ice Hockey (fb:m.06xbml): Ice Hockey is a 1988 video game published and developed by Ninte...g round, black pucks into the opposing goal with a hockey stick., has type Video game
3. Ice Hockey Iceland (fb:m.064lj8b): Ice Hockey Iceland is the governing body of ice hockey in Iceland.
4. Ice Hockey (fb:m.0btnsx): Ice Hockey is an ice hockey video game designed by Activision programmer Alan Miller, and published by Activision., has type Video game
5. Ice Hockey (fb:m.025696j): Hockey types pertain to the sport of ice hockey played worldwide...ed: 1100 hockey players, 30 hockey teams, rosters and positions.
6. Ice Hockey (fb:m.0dqqvhz): has type Musical Recording
7. Ice Hockey (fb:m.0fqxy8f): has type Musical Recording
8. Ice Hockey (fb:m.0ybwzg_): has type Musical Recording
9. Ice Hockey (fb:m.07kk815): has type TV Episode
10. Ice Hockey (fb:m.0zhd24d): has type Composition

[Tool]
Top 10 property alternatives:
1. Series (fb:base.motorcycle.motorcycle_distinguishing_feature.series): part of Motorcycle distinguishing feature schema, links to type Motorcycle series
2. series (fb:base.artist_domain.ua_artwork.ua_series): part of artwork schema, links to type series
3. Series (fb:base.webvideo.internet_video_series_crew_gig.series): part of Internet Video Series Crew Gig schema, links to type Internet Video Series
4. Series (fb:base.webvideo.internet_video_crewmember.series): links to type Internet Video Series Crew Gig, part of Internet Video Crewmember schema
5. series (fb:base.coinsdaily.coin_type.series): links to type coin_series, part of coin_type schema
6. Series (fb:base.webvideo.internet_video_season.series): part of Internet Video Season schema, links to type Internet Video Series
7. Series (fb:base.motorcycle.motorcycle_make.series): links to type Motorcycle series, part of Motorcycle make schema
8. Series (fb:base.motorcycle.motorcycle_manufacturer.series): part of Motorcycle manufacturer schema, links to type Motorcycle series
9. Series (fb:base.motorcycle.motorcycle_body_style.series): part of Motorcycle body style schema, links to type Motorcycle series
10. Series (fb:base.motorcycle.motorcycle_model.series): links to type Motorcycle series, part of Motorcycle model schema

[Tool]
Top 10 entity alternatives:
1. Series (fb:m.03yfv): A series is, informally speaking, the sum of the terms of a sequ...tive disciplines such as physics, computer science, and finance.
2. Playoffs, also known as Playoff (fb:m.0jxrg): The playoffs, postseason and/or finals of a sports league are a ...lower-placed teams – the term "wild card" refers to these teams.
3. Series (fb:m.047qmh6): Series are subdivisions of rock layers made based on the age of ...ugh the two words are sometimes confused in informal literature., has type Location
4. Playoff (fb:m.0c1sm3x): Playoff is a 2011 biographical film, written and directed by Isr... the life of Ralph Klein, Israel's most famous basketball coach., Playoff is a 2011 film directed by Eran Riklis., has type Film
5. Series (fb:m.04h9yy): In botany and plant taxonomy, a series is a subdivision of a gen... organize very large genera, which may have hundreds of species., has type Organism Classification Rank
6. Séries+, also known as Series+ (fb:m.050b3_): Séries+ is a Canadian French language Category A specialty chann...amatic programming. The channel is owned by Corus Entertainment., has type TV Network
7. Playoff (fb:m.07gt0_): A playoff in the sport of golf is an extra hole, or holes, playe...are usually played directly after completion of the final round.
8. Series (fb:m.03fmrc0)
9. Series (fb:m.0fzk8c0): has type Record label
10. Series (fb:m.04tpswx): has type Book Edition

[Tool] No entity items found

[Tool] Got no rows and 3 columns

[Tool] No entity items found

[Tool]
Top 10 property alternatives:
1. Games In Series (fb:cvg.game_series.games_in_series): part of Video Game Series schema, links to type Video game
2. Games in series (fb:user.pak21.default_domain.game_series.games_in_series): links to type Part of game series, part of Game series schema
3. Play off results (fb:base.x2010fifaworldcupsouthafrica.world_cup_participation.play_off_results): part of World Cup Participation schema, links to type Play off results
4. Play off results (fb:base.x2010fifaworldcupsouthafrica.play_off_qualifier.play_off_results): part of Play off qualifier schema, links to type Play off results
5. Second round game one (fb:base.x2010fifaworldcupsouthafrica.world_cup_play_off.second_round_game_one): part of World cup play off schema, links to type Play off results
6. Championships Series (fb:base.athletics.athletics_area.championships): links to type Athletics Championships Series, part of Athletics Area schema
7. Play-off against (fb:base.x2010fifaworldcupsouthafrica.world_cup_qualification.play_off_against): links to type 2010 World Cup Spot Allocation, part of World cup qualification schema
8. Series Event (fb:cricket.cricket_match.series_event): links to type Cricket Series Event, part of Cricket Match schema
9. Qualification Play off (fb:base.x2010fifaworldcupsouthafrica.fifa_world_cup.qualification_play_off): links to type World cup play off, part of FIFA World Cup schema
10. Standings (fb:base.triathlon.triathlon_race_event.standings): part of Triathlon Race Event schema, links to type Triathlon Result

[Tool]
Top 10 property alternatives:
1. Key (fb:type.object.key): part of Object schema, links to type Key
2. Description (fb:common.topic.description): part of Topic schema, links to type Text
3. Article (fb:common.topic.article): links to type Document, part of Topic schema
4. Name (fb:type.object.name): part of Object schema, links to type Text
5. Start date (fb:time.event.start_date): links to type Date/Time, part of Event schema

No other items found

[Tool]
Top 10 property alternatives:
1. Key (fb:type.object.key): part of Object schema, links to type Key
2. Description (fb:common.topic.description): part of Topic schema, links to type Text
3. Article (fb:common.topic.article): links to type Document, part of Topic schema
4. Name (fb:type.object.name): part of Object schema, links to type Text
5. Start date (fb:time.event.start_date): links to type Date/Time, part of Event schema

No other items found

[Tool]
Top 10 property alternatives:
1. Series Event (fb:cricket.cricket_match.series_event): links to type Cricket Series Event, part of Cricket Match schema
2. Sport(s) (fb:user.zeusi.default_domain.sports_series.sport_s): part of Sports series schema, links to type Sport
3. Sport(s) (fb:user.zeusi.default_domain.sport_governing_body.sport_s): part of Sport governing body schema, links to type Sport
4. Championships Series (fb:base.athletics.athletics_area.championships): links to type Athletics Championships Series, part of Athletics Area schema
5. Games In Series (fb:cvg.game_series.games_in_series): part of Video Game Series schema, links to type Video game
6. Games in series (fb:user.pak21.default_domain.game_series.games_in_series): links to type Part of game series, part of Game series schema
7. Series Events (fb:cricket.cricket_series.series_events): links to type Cricket Series Event, part of Cricket Series schema
8. Championship events competed in (fb:base.athletics.track_and_field_athlete.championship_events_competed_in): links to type Athletics Championships competition/athlete relationship, part of Track and Field athlete schema
9. Sports played (fb:sports.pro_athlete.sports_played_professionally): links to type Sports played, part of Athlete schema
10. Multi-event tournaments participated in (fb:sports.sport_country.multi_event_tournaments_participated_in): links to type Multi-event tournament, part of Sport Country schema

[Tool]
Top 10 property alternatives:
1. Championships (fb:sports.sports_team.championships): links to type Sports League Championship Event, part of Sports Team schema
2. Sports Team Location (fb:sports.sports_team.location): links to type Sports Team Location, part of Sports Team schema
3. Sport (fb:sports.sports_team.sport): part of Sports Team schema, links to type Sport
4. Roster (fb:sports.sports_team.roster): links to type Sports team roster, part of Sports Team schema
5. Conference (fb:ice_hockey.hockey_team.conference): links to type Ice hockey conference, part of Ice hockey team schema
6. Key (fb:type.object.key): part of Object schema, links to type Key
7. Division (fb:ice_hockey.hockey_team.division): links to type Ice hockey division, part of Ice hockey team schema
8. Arena/Stadium (fb:sports.sports_team.arena_stadium): links to type Sports Facility, part of Sports Team schema
9. Venue (fb:sports.sports_team.venue): links to type Team/venue relationship, part of Sports Team schema
10. Official website (fb:common.topic.official_website): part of Topic schema, links to type URI

No other items found

[Tool]
Top 10 property alternatives:
1. Championships (fb:sports.sports_team.championships): links to type Sports League Championship Event, part of Sports Team schema
2. Sports Team Location (fb:sports.sports_team.location): links to type Sports Team Location, part of Sports Team schema
3. Sport (fb:sports.sports_team.sport): part of Sports Team schema, links to type Sport
4. Arena/Stadium (fb:sports.sports_team.arena_stadium): links to type Sports Facility, part of Sports Team schema
5. Conference (fb:ice_hockey.hockey_team.conference): links to type Ice hockey conference, part of Ice hockey team schema
6. Venue (fb:sports.sports_team.venue): links to type Team/venue relationship, part of Sports Team schema
7. Roster (fb:sports.sports_team.roster): links to type Sports team roster, part of Sports Team schema
8. Division (fb:ice_hockey.hockey_team.division): links to type Ice hockey division, part of Ice hockey team schema
9. Key (fb:type.object.key): part of Object schema, links to type Key
10. Coach (fb:ice_hockey.hockey_team.coach): links to type Ice hockey coach, part of Ice hockey team schema

No other items found

[Tool]
Top 10 entity alternatives:
1. Stanley Cup playoffs, also known as nhl playoffs, stanley cup playoffs, The Stanley Cup playoffs of the National Hockey League, The time frame for the The Stanley Cup Playoffs (fb:m.0g5qm_d): The Stanley Cup playoffs is an elimination tournament in the Nat...n the NHL took over the Cup in 1926, to the current setup today., has type Recurring event
2. 2013 Stanley Cup playoffs (fb:m.0swl0rm): The 2013 Stanley Cup playoffs of the National Hockey League bega... three years, all three teams from California made the playoffs., has type Event
3. 2009 Stanley Cup playoffs (fb:m.05fc9m_): The 2009 Stanley Cup playoffs of the National Hockey League bega...ship after losing the first two games of the series on the road.
4. 2012 Stanley Cup playoffs (fb:m.0j62572): The 2012 Stanley Cup playoffs of the National Hockey League bega... became the first team to make the Final undefeated on the road., has type Event
5. 2015 Stanley Cup playoffs (fb:m.0130gzd3): The 2015 Stanley Cup playoffs of the National Hockey League bega...me a 14-point deficit in the standings to clinch a playoff spot.
6. 2006 Stanley Cup playoffs (fb:m.0bpnwy): The 2006 Stanley Cup playoffs for the National Hockey League cha...he Western Conference and participate in the Stanley Cup Finals., has type Sports League Championship Event
7. 2004 Stanley Cup playoffs (fb:m.0dcnp7): The 2004 Stanley Cup playoffs for the National Hockey League beg...her Los Angeles Kings nor Anaheim Ducks made it to the playoffs., has type Sports League Championship Event
8. 2011 Stanley Cup playoffs (fb:m.0gkz6yz): The 2011 Stanley Cup playoffs of the National Hockey League bega...avid Krejci lead all playoff scorers with 23 points in 25 games.
9. 2010 Stanley Cup playoffs (fb:m.0bmbfwf): The 2010 Stanley Cup playoffs of the National Hockey League bega...ries, when they beat the Washington Capitals in the first round.
10. 2007 Stanley Cup playoffs (fb:m.02p90mp): The 2007 Stanley Cup playoffs of the National Hockey League bega...ers qualified for the playoffs in their twelve years in Georgia.

[Tool]
Top 10 property alternatives:
1. Games In Series (fb:cvg.game_series.games_in_series): part of Video Game Series schema, links to type Video game
2. Games in series (fb:user.pak21.default_domain.game_series.games_in_series): links to type Part of game series, part of Game series schema
3. Play off results (fb:base.x2010fifaworldcupsouthafrica.world_cup_participation.play_off_results): part of World Cup Participation schema, links to type Play off results
4. Play off results (fb:base.x2010fifaworldcupsouthafrica.play_off_qualifier.play_off_results): part of Play off qualifier schema, links to type Play off results
5. Second round game one (fb:base.x2010fifaworldcupsouthafrica.world_cup_play_off.second_round_game_one): part of World cup play off schema, links to type Play off results
6. Championships Series (fb:base.athletics.athletics_area.championships): links to type Athletics Championships Series, part of Athletics Area schema
7. Play-off against (fb:base.x2010fifaworldcupsouthafrica.world_cup_qualification.play_off_against): links to type 2010 World Cup Spot Allocation, part of World cup qualification schema
8. Series Event (fb:cricket.cricket_match.series_event): links to type Cricket Series Event, part of Cricket Match schema
9. Qualification Play off (fb:base.x2010fifaworldcupsouthafrica.fifa_world_cup.qualification_play_off): links to type World cup play off, part of FIFA World Cup schema
10. Standings (fb:base.triathlon.triathlon_race_event.standings): part of Triathlon Race Event schema, links to type Triathlon Result

[Tool]
Got 72 rows and 3 columns, showing the first 10 rows below:
| subject                             | property                                                            | object                                                                   |
| ----------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| Stanley Cup playoffs (fb:m.0g5qm_d) | Type (fb:type.object.type)                                          | Topic (fb:common.topic)                                                  |
| Stanley Cup playoffs (fb:m.0g5qm_d) | Key (fb:type.object.key)                                            | /wikipedia/en/2016_Stanley_Cup_playoffs                                  |
| Stanley Cup playoffs (fb:m.0g5qm_d) | Name (fb:type.object.name)                                          | NHL:n pudotuspelit (fi)                                                  |
| Stanley Cup playoffs (fb:m.0g5qm_d) | Topic equivalent webpage (fb:common.topic.topic_equivalent_webpage) | <http://en.wikipedia.org/wiki/index.html?curid=10490910>                 |
| Stanley Cup playoffs (fb:m.0g5qm_d) | Notable for (fb:common.topic.notable_for)                           | fb:g.125fjdvhr                                                           |
| Stanley Cup playoffs (fb:m.0g5qm_d) | Notable types (fb:common.topic.notable_types)                       | Recurring event (fb:m.04krh3f)                                           |
| Stanley Cup playoffs (fb:m.0g5qm_d) | Description (fb:common.topic.description)                           | Az NHL-rájátszás egy egyenes kie...tő győztese lesz az NHL bajnoka. (hu) |
| Stanley Cup playoffs (fb:m.0g5qm_d) | Article (fb:common.topic.article)                                   | fb:m.0g5qm_j                                                             |
| Stanley Cup playoffs (fb:m.0g5qm_d) | Also known as (fb:common.topic.alias)                               | nhl playoffs (en)                                                        |
| Stanley Cup playoffs (fb:m.0g5qm_d) | Web Link(s) (fb:common.topic.webpage)                               | fb:m.0gm6kpp                                                             |
| ...                                 | ...                                                                 | ...                                                                      |

[Tool]
Got 80 rows and 3 columns, showing the first 10 rows below:
| subject                                   | property                                                            | object                                                                   |
| ----------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| 2015 Stanley Cup playoffs (fb:m.0130gzd3) | Type (fb:type.object.type)                                          | Topic (fb:common.topic)                                                  |
| 2015 Stanley Cup playoffs (fb:m.0130gzd3) | Key (fb:type.object.key)                                            | /dataworld/freeq/job_756c6655-91...g_wiki_2015_Stanley_Cup_playoffs      |
| 2015 Stanley Cup playoffs (fb:m.0130gzd3) | Name (fb:type.object.name)                                          | 2015 Stanley Cup playoffs (en)                                           |
| 2015 Stanley Cup playoffs (fb:m.0130gzd3) | Topic equivalent webpage (fb:common.topic.topic_equivalent_webpage) | <http://de.wikipedia.org/wiki/index.html?curid=8792328>                  |
| 2015 Stanley Cup playoffs (fb:m.0130gzd3) | Description (fb:common.topic.description)                           | Die Playoffs um den Stanley Cup ...e zuletzt in der Saison 2003/04. (de) |
| 2015 Stanley Cup playoffs (fb:m.0130gzd3) | rdf:type                                                            | Topic (fb:common.topic)                                                  |
| 2015 Stanley Cup playoffs (fb:m.0130gzd3) | fbkey:dataworld.freeq                                               | job_756c6655-910e-4812-bcfe-5b4e...g_wiki_2015_Stanley_Cup_playoffs      |
| 2015 Stanley Cup playoffs (fb:m.0130gzd3) | fbkey:wikipedia.de                                                  | Stanley-Cup-Playoffs_2015                                                |
| 2015 Stanley Cup playoffs (fb:m.0130gzd3) | fbkey:wikipedia.de_id                                               | 8792328                                                                  |
| 2015 Stanley Cup playoffs (fb:m.0130gzd3) | fbkey:wikipedia.de_title                                            | Stanley-Cup-Playoffs_2015                                                |
| ...                                       | ...                                                                 | ...                                                                      |

[Tool]
Top 10 entity alternatives:
1. 2012 Stanley Cup Finals (fb:m.0jt52pz): The 2012 Stanley Cup Final, commonly known as the 2012 Stanley C...ey Cup-clinching game was played on the winning team's home ice., has type Sports League Championship Event
2. 2012 FA Cup Final (fb:m.0gh6m_x): The 2012 FA Cup Final was a football match between Chelsea and L...ea's matches ranged from comfortable victories to close affairs., has type Football Match
3. 2012 Stanley Cup playoffs (fb:m.0j62572): The 2012 Stanley Cup playoffs of the National Hockey League bega... became the first team to make the Final undefeated on the road., has type Event
4. 2012 Ukrainian Cup Final (fb:m.0j9mb59): The 2012 Ukrainian Cup Final was a football match that was playe...opa League. In the draw, Metalurh was selected as the home team.
5. Stanley Cup Finals, also known as stanley cup games, stanley cup (fb:m.0cc8tt9): In ice hockey, the Stanley Cup Final is the championship series ...ed between the champions of the Eastern and Western Conferences., has type Sports League Championship
6. 2012 Scottish Cup Final (fb:m.0j9n6pp): The 2012 Scottish Cup Final was the 127th final of the Scottish ...tadium, instead of the traditional venue of Hampden, in Glasgow.
7. 2011 Stanley Cup Final (fb:m.0z3wqp4): 2011 Stanley Cup Final is a sports television program., has type TV Program
8. 2012 Algerian Cup Final (fb:m.0jkw_kn): The 2012 Algerian Cup Final was final of the 48th edition of the...atter and CAF president Issa Hayatou will both be in attendance.
9. 2012 AFC Cup Final (fb:m.0nb22r4): The 2012 AFC Cup Final was a football match which was played on ...-Kuwait won 4–0 to win their second AFC Cup title in four years.
10. 2012 FAI Cup Final (fb:m.0n902pp): The 2012 FAI Cup Final was the final match of the 2012 FAI Cup, .... The match was shown live on RTÉ Two and RTÉ Two HD in Ireland.

[Tool]
Top 10 entity alternatives:
1. Ice Hockey, also known as Hockey (fb:m.03tmr): Ice hockey is a contact team sport played on ice, usually in a r...ng. Worldwide, there are ice hockey federations in 73 countries., has type Sport
2. Ice Hockey (fb:m.06xbml): Ice Hockey is a 1988 video game published and developed by Ninte...g round, black pucks into the opposing goal with a hockey stick., has type Video game
3. Ice Hockey Iceland (fb:m.064lj8b): Ice Hockey Iceland is the governing body of ice hockey in Iceland.
4. Ice Hockey (fb:m.0btnsx): Ice Hockey is an ice hockey video game designed by Activision programmer Alan Miller, and published by Activision., has type Video game
5. Ice Hockey (fb:m.025696j): Hockey types pertain to the sport of ice hockey played worldwide...ed: 1100 hockey players, 30 hockey teams, rosters and positions.
6. Ice Hockey (fb:m.0dqqvhz): has type Musical Recording
7. Ice Hockey (fb:m.0fqxy8f): has type Musical Recording
8. Ice Hockey (fb:m.0ybwzg_): has type Musical Recording
9. Ice Hockey (fb:m.07kk815): has type TV Episode
10. Ice Hockey (fb:m.0zhd24d): has type Composition

[Tool]
Got 628 rows and 3 columns, showing the first 10 rows below:
| subject                        | property                                                            | object                                                                   |
| ------------------------------ | ------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| Los Angeles Kings (fb:m.0jnq8) | Type (fb:type.object.type)                                          | Topic (fb:common.topic)                                                  |
| Los Angeles Kings (fb:m.0jnq8) | Key (fb:type.object.key)                                            | /authority/daylife/topic/0bQhdak3G35v9                                   |
| Los Angeles Kings (fb:m.0jnq8) | Name (fb:type.object.name)                                          | Kings de Los Angeles (fr)                                                |
| Los Angeles Kings (fb:m.0jnq8) | Topic equivalent webpage (fb:common.topic.topic_equivalent_webpage) | <http://ar.wikipedia.org/wiki/%44%48%33_%23%46%2C%44%33_%43%4A%46%3A%32> |
| Los Angeles Kings (fb:m.0jnq8) | Notable for (fb:common.topic.notable_for)                           | fb:g.125g8chst                                                           |
| Los Angeles Kings (fb:m.0jnq8) | Notable types (fb:common.topic.notable_types)                       | Professional Sports Team (fb:m.044801x)                                  |
| Los Angeles Kings (fb:m.0jnq8) | Description (fb:common.topic.description)                           | A Los Angeles Kings amerikai pro...őször megnyerte a Stanley-kupát. (hu) |
| Los Angeles Kings (fb:m.0jnq8) | Article (fb:common.topic.article)                                   | fb:m.0jnql                                                               |
| Los Angeles Kings (fb:m.0jnq8) | Also known as (fb:common.topic.alias)                               | Los Angeles Kings Hockey Club (en)                                       |
| Los Angeles Kings (fb:m.0jnq8) | Web Link(s) (fb:common.topic.webpage)                               | fb:m.0422g3x                                                             |
| ...                            | ...                                                                 | ...                                                                      |

[Tool]
Top 10 property alternatives:
1. Sport (fb:sports.sports_team.sport): part of Sports Team schema, links to type Sport
2. Championships (fb:sports.sports_team.championships): links to type Sports League Championship Event, part of Sports Team schema
3. Captain (fb:ice_hockey.hockey_team.captain): links to type Ice hockey player, part of Ice hockey team schema
4. Division (fb:ice_hockey.hockey_team.division): links to type Ice hockey division, part of Ice hockey team schema
5. Key (fb:type.object.key): part of Object schema, links to type Key
6. Colors (fb:sports.sports_team.colors): part of Sports Team schema, links to type Color
7. Coach (fb:ice_hockey.hockey_team.coach): links to type Ice hockey coach, part of Ice hockey team schema
8. Captains (fb:sports.sports_team.captains): links to type Sports team captain tenure, part of Sports Team schema
9. Member of (fb:sports.sports_team.league): links to type Sports league participation, part of Sports Team schema
10. Type (fb:type.object.type): part of Object schema, links to type Type

No other items found

[Tool]
Top 10 property alternatives:
1. Winner (fb:user.dharmatech.default_domain.nicaraguan_presidential_election.winner): part of Nicaraguan Presidential Election schema, links to type Person
2. winner (fb:user.ansamcw.default_domain.american_idol_season.winner): part of American Idol Season schema, links to type American Idol winner
3. Winner (fb:base.cdnpolitics.leadership_convention.winner): part of Leadership Convention schema, links to type Politician
4. Winner (fb:user.cheunger.sports_test.sports_event.winner): links to type Sports Event Winner, part of Sports Event schema
5. Winner (fb:base.survivor.survivor_season.winner): part of Survivor Season schema, links to type Survivor Winner
6. Winner (fb:cricket.cricket_match.winner): part of Cricket Match schema, links to type Cricket Team
7. Winner (fb:tennis.tennis_match.winner): links to type Tennis Player, part of Tennis Match schema
8. Winner (fb:award.competition.winner): part of Competition schema, links to type Competitor
9. Winner (fb:tennis.tennis_tournament_championship.winner): part of Tennis Tournament Championship schema, links to type Tennis Tournament Champion
10. Winner(s) (fb:user.cheunger.mw_ping_pong.match.winner): links to type Player, part of Match schema

[Tool] Got no rows and 3 columns

[Tool]
Got 2 rows and 3 columns:
| subject                        | property                                            | object                                  |
| ------------------------------ | --------------------------------------------------- | --------------------------------------- |
| Los Angeles Kings (fb:m.0jnq8) | Championships (fb:sports.sports_team.championships) | 2012 Stanley Cup Finals (fb:m.0jt52pz)  |
| Los Angeles Kings (fb:m.0jnq8) | Championships (fb:sports.sports_team.championships) | 2014 Stanley Cup Finals (fb:m.010fdzhp) |

[Tool]
Got 75 rows and 3 columns, showing the first 10 rows below:
| subject                                 | property                                                            | object                                                                   |
| --------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| 2014 Stanley Cup Finals (fb:m.010fdzhp) | Type (fb:type.object.type)                                          | Topic (fb:common.topic)                                                  |
| 2014 Stanley Cup Finals (fb:m.010fdzhp) | Key (fb:type.object.key)                                            | /dataworld/freeq/job_e8f1caf2-6b...org_wiki_2014_Stanley_Cup_Finals      |
| 2014 Stanley Cup Finals (fb:m.010fdzhp) | Name (fb:type.object.name)                                          | 2014 Stanley Cup Finals (en)                                             |
| 2014 Stanley Cup Finals (fb:m.010fdzhp) | Topic equivalent webpage (fb:common.topic.topic_equivalent_webpage) | <http://en.wikipedia.org/wiki/2014_Stanley_Cup_Finals>                   |
| 2014 Stanley Cup Finals (fb:m.010fdzhp) | Notable for (fb:common.topic.notable_for)                           | fb:g.1q5ywgwf9                                                           |
| 2014 Stanley Cup Finals (fb:m.010fdzhp) | Notable types (fb:common.topic.notable_types)                       | Sports League Championship Event (fb:m.025b7q2)                          |
| 2014 Stanley Cup Finals (fb:m.010fdzhp) | Description (fb:common.topic.description)                           | La finale della Stanley Cup 2014...Stanley Cup fra Rangers e Kings. (it) |
| 2014 Stanley Cup Finals (fb:m.010fdzhp) | Start date (fb:time.event.start_date)                               | 2014-06-04 (xsd:date)                                                    |
| 2014 Stanley Cup Finals (fb:m.010fdzhp) | Location(s) (fb:time.event.locations)                               | Madison Square Garden (fb:m.0j_66)                                       |
| 2014 Stanley Cup Finals (fb:m.010fdzhp) | End date (fb:time.event.end_date)                                   | 2014-06-13 (xsd:date)                                                    |
| ...                                     | ...                                                                 | ...                                                                      |

[Tool]
Top 10 property alternatives:
1. Championships (fb:sports.sports_team.championships): links to type Sports League Championship Event, part of Sports Team schema
2. Sports Team Location (fb:sports.sports_team.location): links to type Sports Team Location, part of Sports Team schema
3. Sport (fb:sports.sports_team.sport): part of Sports Team schema, links to type Sport
4. Arena/Stadium (fb:sports.sports_team.arena_stadium): links to type Sports Facility, part of Sports Team schema
5. Conference (fb:ice_hockey.hockey_team.conference): links to type Ice hockey conference, part of Ice hockey team schema
6. Venue (fb:sports.sports_team.venue): links to type Team/venue relationship, part of Sports Team schema
7. Roster (fb:sports.sports_team.roster): links to type Sports team roster, part of Sports Team schema
8. Division (fb:ice_hockey.hockey_team.division): links to type Ice hockey division, part of Ice hockey team schema
9. Key (fb:type.object.key): part of Object schema, links to type Key
10. Coach (fb:ice_hockey.hockey_team.coach): links to type Ice hockey coach, part of Ice hockey team schema

No other items found

[Tool] Stopped generation process


PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX fb: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?actor ?actorLabel WHERE {
  ?perf a fb:tv.regular_tv_appearance ; fb:tv.regular_tv_appearance.character fb:m.02m29p ; fb:tv.regular_tv_appearance.actor ?actor ; fb:tv.regular_tv_appearance.special_performance_type fb:m.02nsjvf .
  OPTIONAL {
    ?actor rdfs:label ?actorLabel
  }
}

Got 35 rows and 2 columns, showing the first 5 and last 5 rows below:
| actor                         | actorLabel           |
| ----------------------------- | -------------------- |
| Seth MacFarlane (fb:m.021yw7) | Seth MacFarlane (ca) |
| Seth MacFarlane (fb:m.021yw7) | Seth MacFarlane (cs) |
| Seth MacFarlane (fb:m.021yw7) | Seth MacFarlane (da) |
| Seth MacFarlane (fb:m.021yw7) | Seth MacFarlane (de) |
| Seth MacFarlane (fb:m.021yw7) | Seth MacFarlane (en) |
| ...                           | ...                  |
| Seth MacFarlane (fb:m.021yw7) | سيث ماكفارلن (ar)    |
| Seth MacFarlane (fb:m.021yw7) | 세스 맥팔레인 (ko)         |
| Seth MacFarlane (fb:m.021yw7) | セス・マクファーレン (ja)      |
| Seth MacFarlane (fb:m.021yw7) | 塞思·麥克法蘭 (zh-Hant)    |
| Seth MacFarlane (fb:m.021yw7) | 塞思·麦克法兰 (zh)         |

The voice of Stewie Griffin is performed by Seth MacFarlane (fb:m.021yw7).

[System]
You are a question answering assistant. Your job is to generate a SPARQL query to answer a given user question.

You have access to the following knowledge graphs:
freebase at http://galera:7002

You can use the following SPARQL prefixes implicitly in all functions:
fb: <http://rdf.freebase.com/ns/
fbkey: <http://rdf.freebase.com/key/
rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs: <http://www.w3.org/2000/01/rdf-schema#
owl: <http://www.w3.org/2002/07/owl#
xsd: <http://www.w3.org/2001/XMLSchema#
foaf: <http://xmlns.com/foaf/0.1/
skos: <http://www.w3.org/2004/02/skos/core#
dct: <http://purl.org/dc/terms/
dc: <http://purl.org/dc/elements/1.1/
prov: <http://www.w3.org/ns/prov#
schema: <http://schema.org/
geo: <http://www.opengis.net/ont/geosparql#
geosparql: <http://www.opengis.net/ont/geosparql#
gn: <http://www.geonames.org/ontology#
bd: <http://www.bigdata.com/rdf#
hint: <http://www.bigdata.com/queryHints#
wikibase: <http://wikiba.se/ontology#
qb: <http://purl.org/linked-data/cube#
void: <http://rdfs.org/ns/void#

You should follow a step-by-step approach to generate the SPARQL query:
1. Determine possible entities and properties implied by the user question.
2. Use the functions to search for entities and properties in the knowledge graphs. Where applicable, constrain the searches with already identified entities and properties.
3. Gradually build up the SPARQL query using the identified entities and properties. Start with simple queries and add more complexity as needed. Use the execute function to get feedback on intermediate queries. You can go back and forth between knowledge graph searches and SPARQL query executions to refine the query.
4. Use the answer or cancel function to finalize your answer and stop the generation process.

Additional rules:
1. Explain your thought process before and after each step and function call.
2. Do not assume or make up any entities or properties without verifying them with the knowledge graphs and functions.
3. The SPARQL query should always return the actual identifiers / IRIs of the items in its result. It additionally may return labels or other human-readable information, but they are optional and should be put within optional clauses unless explicitly requested by the user.
4. Do not stop early if there are still obvious improvements to be made to the SPARQL query. For example, keep refining your SPARQL query if its result contains irrelevant items or is missing items you expected.
5. Do not perform additional computation (e.g. filtering, sorting, calculations) on the result of the SPARQL query to determine the answer. All computation should be done solely within SPARQL.
6. For questions with a "True" or "False" answer the SPARQL query should be an ASK query.
7. Do not use 'SERVICE wikibase:label { bd:serviceParam wikibase:language ...' in SPARQL queries. It is not SPARQL standard and unsupported by the used QLever SPARQL endpoints. Use rdfs:label or similar properties to get labels instead.

[User] who makes the voice of stewie griffin?

[Tool]
Top 10 entity alternatives:
1. Stewie Griffin, also known as Stewart Gilligan Griffin (fb:m.02m29p): Stewart Gilligan "Stewie" Griffin is a main character from the a...Wizard magazine rated him the 95th greatest villain of all time., has type Film character
2. Stewie Griffin (fb:m.0yt2tv0): has type Musical Recording
3. Stewie Griffin (fb:m.0vy2_r6)
4. Stewie Griffin (fb:m.0yt8rw9)
5. Family Guy Presents: Stewie Griffin: The Untold Story, also known as Stewie Griffin: The Untold Story (Feature Movie), Stewie Griffin: The Untold Stor, Family Guy Presents Stewie Griffin: The Untold Story (fb:m.0gfzfj): Stewie Griffin: The Untold Story is a 2005 direct-to-DVD animate... and Stewie's Excellent Adventure" – were aired on May 21, 2006., When Stewie sees a man who looks just like him on TV, he's convi...him, but his incredible journey leads to outrageous discoveries., Stewie convinces Brian to go on a road trip with him to San Francisco to search for a man Stewie believes is his real father., has type Film
6. Stewie Griffin: The Untold Story (Feature Movie) (fb:m.0wjj8p_): When Stewie sees a man who looks just like him on TV, he's convi...him, but his incredible journey leads to outrageous discoveries., has type TV Episode
7. Clip from "Stewie Griffin: The Untold Story" (fb:m.0w8c43t): has type TV Episode
8. Seth MacFarlane, also known as Seth Woodbury MacFarlane, Stewie (fb:m.021yw7): Seth Woodbury MacFarlane is an American animator, voice actor, s...ily Guy, including two Primetime Emmy Awards and an Annie Award., has type TV Writer
9. Ted, also known as Tedas, Приятелю, Тед, Teddy Bear, Stewie, O Ursinho Ted (fb:m.0gj9tn5): Ted is a 2012 American comedy film directed by Seth MacFarlane. ...t Original Song. A sequel, Ted 2, was released on June 26, 2015., has type Award-Winning Work
10. Griffin, also known as Alce, Gryphon, Keythong, Opinicus (fb:m.0d30v): The griffin, griffon, or gryphon is a legendary creature with th...ty it was a symbol of divine power and a guardian of the divine., has type Literature Subject

[Tool]
Top 10 property alternatives:
1. Gender (fb:fictional_universe.fictional_character.gender): part of Fictional Character schema, links to type Character Gender
2. Name (fb:type.object.name): part of Object schema, links to type Text
3. Type (fb:type.object.type): part of Object schema, links to type Type
4. Key (fb:type.object.key): part of Object schema, links to type Key
5. Description (fb:common.topic.description): part of Topic schema, links to type Text
6. Ethnicity (fb:fictional_universe.fictional_character.ethnicity): links to type Ethnicity in fiction, part of Fictional Character schema
7. Character Created By (fb:fictional_universe.fictional_character.character_created_by): links to type Fictional Character Creator, part of Fictional Character schema
8. Species (fb:fictional_universe.fictional_character.species): part of Fictional Character schema, links to type Character Species
9. Parents (fb:fictional_universe.fictional_character.parents): part of Fictional Character schema, links to type Fictional Character
10. Appears in computer games (fb:cvg.game_character.games): links to type Video Game Performance, part of Video Game Character schema

No other items found

[Tool]
Top 10 property alternatives:
1. Type (fb:type.object.type): part of Object schema, links to type Type
2. Key (fb:type.object.key): part of Object schema, links to type Key
3. Parents (fb:fictional_universe.fictional_character.parents): part of Fictional Character schema, links to type Fictional Character
4. Description (fb:common.topic.description): part of Topic schema, links to type Text
5. Name (fb:type.object.name): part of Object schema, links to type Text
6. Species (fb:fictional_universe.fictional_character.species): part of Fictional Character schema, links to type Character Species
7. Article (fb:common.topic.article): links to type Document, part of Topic schema
8. Ethnicity (fb:fictional_universe.fictional_character.ethnicity): links to type Ethnicity in fiction, part of Fictional Character schema
9. Also known as (fb:common.topic.alias): part of Topic schema, links to type Text
10. Web Link(s) (fb:common.topic.webpage): links to type Webpage, part of Topic schema

No other items found

[Tool]
Top 10 property alternatives:
1. Portrayed in films (fb:film.film_character.portrayed_in_films): links to type Film performance, part of Film character schema
2. Character Created By (fb:fictional_universe.fictional_character.character_created_by): links to type Fictional Character Creator, part of Fictional Character schema
3. Name (fb:type.object.name): part of Object schema, links to type Text
4. Romantically involved with (fb:fictional_universe.fictional_character.romantically_involved_with): links to type Romantic involvement, part of Fictional Character schema
5. Programs in which this was a regular character (fb:tv.tv_character.appeared_in_tv_program): links to type TV Regular Performance, part of TV Character schema
6. Key (fb:type.object.key): part of Object schema, links to type Key
7. Type (fb:type.object.type): part of Object schema, links to type Type
8. Gender (fb:fictional_universe.fictional_character.gender): part of Fictional Character schema, links to type Character Gender
9. Ethnicity (fb:fictional_universe.fictional_character.ethnicity): links to type Ethnicity in fiction, part of Fictional Character schema
10. Species (fb:fictional_universe.fictional_character.species): part of Fictional Character schema, links to type Character Species

No other items found

[Tool]
Top 10 property alternatives:
1. Voice (fb:opera.opera_character_voice.voice): part of Opera character voice schema, links to type Musical voice
2. Voice Type (fb:music.opera_singer.voice_type): links to type Musical voice, part of Opera singer schema
3. Vocal Range (fb:music.group_member.vocal_range): links to type Musical voice, part of Musician schema
4. Sound (fb:base.oclbase.stream.sound): links to type Sound Reproduction Standard, part of Stream schema
5. Audio contents (fb:base.mediapackage.media_release.audio_contents): part of Media release schema, links to type Audio release
6. Voice actor (fb:base.animemanga.sound_drama_performance.voice_actor): part of Sound Drama Performance schema, links to type Seiyu Performer
7. Speech subject (fb:event.speech_or_presentation.speech_topic): part of Speech or presentation schema, links to type Speech topic
8. Speaker Type (fb:base.audiobase.loudspeaker.speaker_type): links to type Speaker Type, part of Loudspeaker schema
9. Speaker 1 line 2 (fb:user.nigelkerr.default_domain.knock_knock_joke_type.speaker_1_line_2): part of Knock-knock Joke Type schema, links to type Text
10. Speaker 2 line 1 (fb:user.nigelkerr.default_domain.knock_knock_joke_type.speaker_2_line_1): part of Knock-knock Joke Type schema, links to type Text

[Tool]
Top 10 property alternatives:
1. Character Created By (fb:fictional_universe.fictional_character.character_created_by): links to type Fictional Character Creator, part of Fictional Character schema
2. Programs in which this was a regular character (fb:tv.tv_character.appeared_in_tv_program): links to type TV Regular Performance, part of TV Character schema
3. Appears in computer games (fb:cvg.game_character.games): links to type Video Game Performance, part of Video Game Character schema
4. Portrayed in films (fb:film.film_character.portrayed_in_films): links to type Film performance, part of Film character schema

No other items found

[Tool]
Got 294 rows and 3 columns, showing the first 10 rows below:
| subject                      | property                                                            | object                                                                   |
| ---------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| Stewie Griffin (fb:m.02m29p) | Type (fb:type.object.type)                                          | Topic (fb:common.topic)                                                  |
| Stewie Griffin (fb:m.02m29p) | Key (fb:type.object.key)                                            | /authority/google/google_plus_page/112268039929807270579                 |
| Stewie Griffin (fb:m.02m29p) | Name (fb:type.object.name)                                          | Stewie Griffin (ca)                                                      |
| Stewie Griffin (fb:m.02m29p) | Topic equivalent webpage (fb:common.topic.topic_equivalent_webpage) | <http://bg.wikipedia.org/wiki/%21%42%4E%38_%13%40%38%44%38%3D>           |
| Stewie Griffin (fb:m.02m29p) | Notable for (fb:common.topic.notable_for)                           | fb:g.125d3_4vb                                                           |
| Stewie Griffin (fb:m.02m29p) | Notable types (fb:common.topic.notable_types)                       | Film character (fb:m.02nsjl9)                                            |
| Stewie Griffin (fb:m.02m29p) | Description (fb:common.topic.description)                           | Stewart Gilligan Griffin, comune...li altri personaggi della serie. (it) |
| Stewie Griffin (fb:m.02m29p) | Article (fb:common.topic.article)                                   | fb:m.02m29x                                                              |
| Stewie Griffin (fb:m.02m29p) | Also known as (fb:common.topic.alias)                               | Stewart Gilligan Griffin (en)                                            |
| Stewie Griffin (fb:m.02m29p) | Works written (fb:book.author.works_written)                        | Family Guy: Stewie's Guide to World Domination (fb:m.03hh_83)            |
| ...                          | ...                                                                 | ...                                                                      |

[Tool]
Top 10 property alternatives:
1. Voice (fb:opera.opera_character_voice.voice): part of Opera character voice schema, links to type Musical voice
2. Voice Type (fb:music.opera_singer.voice_type): links to type Musical voice, part of Opera singer schema
3. Voice actor (fb:base.animemanga.sound_drama_performance.voice_actor): part of Sound Drama Performance schema, links to type Seiyu Performer
4. Spoken by character species (fb:fictional_universe.fictional_language.spoken_by): part of Language in fiction schema, links to type Character Species
5. Audio contents (fb:base.mediapackage.media_release.audio_contents): part of Media release schema, links to type Audio release
6. Played by (fb:base.saturdaynightlive.snl_individual_sketch_performance.actor): part of SNL sketch episode performance schema, links to type SNL actor
7. Played by (fb:base.saturdaynightlive.snl_character.played_by): part of SNL character schema, links to type SNL actor
8. Speaker Type (fb:base.audiobase.loudspeaker.speaker_type): links to type Speaker Type, part of Loudspeaker schema
9. Sound (fb:base.oclbase.stream.sound): links to type Sound Reproduction Standard, part of Stream schema
10. pronounciation (fb:base.soundalike.spoken_word.pronounciation): part of Spoken Word schema, links to type Text

[Tool]
Top 10 property alternatives:
1. Voice (fb:opera.opera_character_voice.voice): part of Opera character voice schema, links to type Musical voice
2. played_by (fb:base.gossipgirl.character.played_by): part of Character schema, links to type Actor
3. Voice actor (fb:base.animemanga.sound_drama_performance.voice_actor): part of Sound Drama Performance schema, links to type Seiyu Performer
4. Voice Type (fb:music.opera_singer.voice_type): links to type Musical voice, part of Opera singer schema
5. Played by (fb:base.saturdaynightlive.snl_individual_sketch_performance.actor): part of SNL sketch episode performance schema, links to type SNL actor
6. Played by (fb:base.saturdaynightlive.snl_character.played_by): part of SNL character schema, links to type SNL actor
7. By user (fb:base.oldfbwiki.freebase_commons_votes.user): part of Freebase commons votes schema, links to type User
8. Spoken by character species (fb:fictional_universe.fictional_language.spoken_by): part of Language in fiction schema, links to type Character Species
9. Read By (fb:user.chaswarner.default_domain.file_format.read_by): links to type Computer Program, part of File Format schema
10. Read By (fb:computer.file_format.read_by): part of File Format schema, links to type Software

[Tool]
Top 10 property alternatives:
1. TV actor (fb:user.danm.default_domain.autocomplete_tests.tv_actor): part of Autocomplete Tests schema, links to type TV Actor
2. Regular acting performances (fb:tv.tv_program.regular_cast): links to type TV Regular Performance, part of TV Program schema
3. Actor (fb:base.tatort.tatort_team_membership.actor): part of Tatort Team Membership schema, links to type TV Actor
4. Actor (fb:tv.tv_segment_performance.actor): part of TV segment performance schema, links to type TV Actor
5. Actor (fb:base.webvideo.internet_video_regular_performance.actor): part of Internet Video Regular Performance schema, links to type Internet Video Actor
6. Actor (fb:theater.theater_role.actor): links to type Theater Actor, part of Theater Role schema
7. Actor (fb:user.thadguidry.default_domain.ad_spot_performance.actor): part of Ad Spot Performance schema, links to type Ad Spot Actor
8. Actor (fb:base.italiantv.tv_dubbing_performance.actor): part of TV Dubbing Performance schema, links to type Dubbing actor
9. Actor (fb:base.schemastaging.tv_episode_dubbing_performance.actor): part of TV episode dubbing performance schema, links to type TV actor extra
10. Actor (fb:base.saturdaynightlive.snl_recurring_sketch_performance.actor): part of SNL sketch series regular performance schema, links to type SNL actor

[Tool]
Top 10 entity alternatives:
1. Family Guy, also known as I Griffin (fb:m.019nnl): Family Guy is an American adult animated sitcom created by Seth ... in 2004 for a fourth season, which began airing on May 1, 2005., has type TV Program
2. Family Guy - Season 3, also known as Family Guy (fb:m.05q63qg): Family Guy 's third season first aired on the Fox network in...ies. The series returned for a total of 35 new episodes in 2005., This is Season Three (2001-2002) of the FOX animated series Family Guy., has type TV Season
3. Family Guy - Season 13, also known as Family Guy (fb:m.0y4_pjq): Family Guy 's thirteenth season premiered on Fox in the Unit...r had sex, and Peter attempts to beat up guest star Liam Neeson., has type TV Season
4. Family Guy - Season 7, also known as Family Guy (fb:m.05q9pvs): Family Guy 's seventh season first aired on the Fox network ...from the first episode to the season finale, "Peter's Progress"., has type TV Season
5. Family Guy - Season 8, also known as Family Guy (fb:m.05q7g_b): Family Guy 's eighth season first aired on the Fox network i...l its old conventions and tried something remarkably different.", has type TV Season
6. Family Guy - Season 12, also known as Family Guy (fb:m.0vshct7): Family Guy 's twelfth season began airing on Fox on Septembe...aves him, effectively changing the future so that he never dies., has type TV Season
7. Family Guy - Season 11, also known as Family Guy (fb:m.0k22zlc): Family Guy 's eleventh season began airing on Fox on Septemb... in another '"Road to..."' episode as part of the season finale., has type TV Season
8. Family Guy - Season 10, also known as Family Guy (fb:m.06xlxlx): Family Guy 's tenth season debuted on the Fox network on Sep...and Wellesley Wild. The showrunners are Hentemann and Callaghan., has type TV Season
9. Family Guy - Season 9, also known as Family Guy (fb:m.0b74djw): Family Guy 's ninth season first aired on the Fox network in..."Friends of Peter G.", and "The Hand That Rocks the Wheelchair"., has type TV Season
10. Family Guy: It Takes a Village Idiot, and I Married One, also known as Family Guy, Family Guy: It takes a Village Idiot, and I Married One (fb:m.053lzqw): has type Book

[Tool]
Got 1 row and 3 columns:
| subject                      | property                                                                                | object       |
| ---------------------------- | ------------------------------------------------------------------------------------------ | ------------ |
| Stewie Griffin (fb:m.02m29p) | Programs in which this was a regular character (fb:tv.tv_character.appeared_in_tv_program) | fb:m.02kk65p |

[Tool]
Top 10 property alternatives:
1. Portrayed In (fb:fictional_universe.fictional_date_time.portrayed_in): part of Fictional Date/Time schema, links to type Work of Fiction
2. depicted (fb:base.coinsdaily.design.depicted): part of design schema, links to type Topic
3. Acted in (fb:user.jsullivan.default_domain.event_actor.acted_in): links to type Historical Event, part of Event Actor schema
4. Played by (fb:base.saturdaynightlive.snl_individual_sketch_performance.actor): part of SNL sketch episode performance schema, links to type SNL actor
5. Played by (fb:base.saturdaynightlive.snl_character.played_by): part of SNL character schema, links to type SNL actor
6. Fictionalization Of (fb:user.digisynddillonm.default_domain.fictional_setting.fictionalization_of): links to type Real World Location, part of Fictional Setting schema
7. Fictionalized As (fb:user.digisynddillonm.default_domain.real_world_location.fictionalized_as): part of Real World Location schema, links to type Fictional Setting
8. Character performances (fb:base.saturdaynightlive.snl_individual_sketch.character_performances): links to type SNL sketch episode performance, part of SNL sketch episode schema
9. Representation Of (fb:user.ninjascience.default_domain.anime_manga_product.representation_of): part of Anime/Manga Product schema, links to type Topic
10. Representation of (fb:base.mediaasset.media_asset.representation_of): links to type Recorded work, part of Media asset schema

[Tool]
Top 10 property alternatives:
1. Character (fb:base.saturdaynightlive.snl_movie_spin_off_cast_performance.character): part of SNL movie spin-off cast performance schema, links to type SNL character
2. Character (fb:base.tatort.tatort_team_membership.character): part of Tatort Team Membership schema, links to type TV Character
3. Character (fb:base.schemastaging.tv_episode_dubbing_performance.character): part of TV episode dubbing performance schema, links to type TV character extra
4. Character (fb:base.lostbase.episode_character_relationship.character): part of Episode-Character relationship schema, links to type Lost Character
5. Character (fb:base.aubreymaturin.character_mention.character): part of Character mention schema, links to type Character
6. Character (fb:tv.regular_tv_appearance.character): part of TV Regular Performance schema, links to type TV Character
7. Character (fb:tv.tv_guest_role.character): part of TV episode performance schema, links to type TV Character
8. Character (fb:user.thadguidry.default_domain.ad_spot_performance.character): part of Ad Spot Performance schema, links to type TV Character
9. character (fb:user.teeler.default_domain.phenotypic_trait.character): links to type Phenotypic Character, part of Phenotypic Trait schema
10. Character (fb:base.saturdaynightlive.snl_individual_sketch_performance.character): part of SNL sketch episode performance schema, links to type SNL character

[Tool]
Got 19 rows and 3 columns, showing the first 10 rows below:
| subject      | property                                                                        | object                                               |
| ------------ | ------------------------------------------------------------------------------- | ---------------------------------------------------- |
| fb:m.02kk65p | Type (fb:type.object.type)                                                      | TV Regular Performance (fb:tv.regular_tv_appearance) |
| fb:m.02kk65p | Has no value (fb:freebase.valuenotation.has_no_value)                           | To (fb:m.01xrzsp)                                    |
| fb:m.02kk65p | Actor (fb:tv.regular_tv_appearance.actor)                                       | Seth MacFarlane (fb:m.021yw7)                        |
| fb:m.02kk65p | Series (fb:tv.regular_tv_appearance.series)                                     | Family Guy (fb:m.019nnl)                             |
| fb:m.02kk65p | Character (fb:tv.regular_tv_appearance.character)                               | Stewie Griffin (fb:m.02m29p)                         |
| fb:m.02kk65p | Seasons (fb:tv.regular_tv_appearance.seasons)                                   | Family Guy - Season 3 (fb:m.05q63qg)                 |
| fb:m.02kk65p | Special performance type (fb:tv.regular_tv_appearance.special_performance_type) | Voice (fb:m.02nsjvf)                                 |
| fb:m.02kk65p | From (fb:tv.regular_tv_appearance.from)                                         | 1999-01-31 (xsd:date)                                |
| fb:m.02kk65p | rdf:type                                                                        | TV Regular Performance (fb:tv.regular_tv_appearance) |
| fb:m.02kk65p | Seasons (fb:tv.regular_tv_appearance.seasons)                                   | Family Guy - Season 1 (fb:m.027gynh)                 |
| ...          | ...                                                                             | ...                                                  |

[Tool] Stopped generation process


PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX fb: <http://rdf.freebase.com/ns/>
SELECT ?burialPlace ?burialPlaceLabel WHERE {
  fb:m.0d3k14 fb:people.deceased_person.place_of_burial ?burialPlace .
  OPTIONAL {
    ?burialPlace rdfs:label ?burialPlaceLabel .
    FILTER ( LANG( ?burialPlaceLabel ) = "en" )
  }
}

Got 1 row and 2 columns:
| burialPlace                              | burialPlaceLabel                 |
| ---------------------------------------- | -------------------------------- |
| Arlington National Cemetery (fb:m.0lbp_) | Arlington National Cemetery (en) |

President John F. Kennedy is buried at Arlington National Cemetery.

[System]
You are a question answering assistant. Your job is to generate a SPARQL query to answer a given user question.

You have access to the following knowledge graphs:
freebase at http://galera:7002

You can use the following SPARQL prefixes implicitly in all functions:
fb: <http://rdf.freebase.com/ns/
fbkey: <http://rdf.freebase.com/key/
rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs: <http://www.w3.org/2000/01/rdf-schema#
owl: <http://www.w3.org/2002/07/owl#
xsd: <http://www.w3.org/2001/XMLSchema#
foaf: <http://xmlns.com/foaf/0.1/
skos: <http://www.w3.org/2004/02/skos/core#
dct: <http://purl.org/dc/terms/
dc: <http://purl.org/dc/elements/1.1/
prov: <http://www.w3.org/ns/prov#
schema: <http://schema.org/
geo: <http://www.opengis.net/ont/geosparql#
geosparql: <http://www.opengis.net/ont/geosparql#
gn: <http://www.geonames.org/ontology#
bd: <http://www.bigdata.com/rdf#
hint: <http://www.bigdata.com/queryHints#
wikibase: <http://wikiba.se/ontology#
qb: <http://purl.org/linked-data/cube#
void: <http://rdfs.org/ns/void#

You should follow a step-by-step approach to generate the SPARQL query:
1. Determine possible entities and properties implied by the user question.
2. Use the functions to search for entities and properties in the knowledge graphs. Where applicable, constrain the searches with already identified entities and properties.
3. Gradually build up the SPARQL query using the identified entities and properties. Start with simple queries and add more complexity as needed. Use the execute function to get feedback on intermediate queries. You can go back and forth between knowledge graph searches and SPARQL query executions to refine the query.
4. Use the answer or cancel function to finalize your answer and stop the generation process.

Additional rules:
1. Explain your thought process before and after each step and function call.
2. Do not assume or make up any entities or properties without verifying them with the knowledge graphs and functions.
3. The SPARQL query should always return the actual identifiers / IRIs of the items in its result. It additionally may return labels or other human-readable information, but they are optional and should be put within optional clauses unless explicitly requested by the user.
4. Do not stop early if there are still obvious improvements to be made to the SPARQL query. For example, keep refining your SPARQL query if its result contains irrelevant items or is missing items you expected.
5. Do not perform additional computation (e.g. filtering, sorting, calculations) on the result of the SPARQL query to determine the answer. All computation should be done solely within SPARQL.
6. For questions with a "True" or "False" answer the SPARQL query should be an ASK query.
7. Do not use 'SERVICE wikibase:label { bd:serviceParam wikibase:language ...' in SPARQL queries. It is not SPARQL standard and unsupported by the used QLever SPARQL endpoints. Use rdfs:label or similar properties to get labels instead.

[User] where is president kennedy buried?

[Tool]
Top 10 entity alternatives:
1. John F. Kennedy, also known as President John F. Kennedy  , John F. (John Fitzgerald) Kennedy, John Kennedy, Johnny, President John F Kennedy (fb:m.0d3k14): John Fitzgerald Kennedy (May 29, 1917 – November 22, 1963), also...ican hopes and aspirations to every new generation of Americans., John Fitzgerald Kennedy, commonly known as Jack Kennedy or by hi...the first person born in the 20th century to serve as president., has type US President
2.   John F. Kennedy, also known as John F. Kennedy, President John F. Kennedy, John F Kennedy (fb:m.05kg3b2): John F. Kennedy is a fictional representation of President John F. Kennedy from 2000 drama film Thirteen Days., John F. Kennedy is a fictional character from the 1993 film J.F.K.: Reckless Youth., John F. Kennedy is a fictional character from the 2001 film The Women of Camelot., President John F. Kennedy is a fictional character from the 2013 film Parkland., President Kennedy is a fictional character from Transformers: Dark of the Moon., John F. Kennedy is a fictional character from the 2002 film Power and Beauty., John F. Kennedy is a fictional character from the 1998 film The Island, The fictional representation of the U.S President John F. Kennedy., John F.Kennedy is a fictional character from the 1966 film Since., has type Film character
3. John F Kennedy (fb:m.0761b2c): has type School
4. John F Kennedy (fb:m.0y9x202): has type Musical Recording
5. John F. Kennedy (fb:m.0_vj4yk): John F. Kennedy is an award-winning photo by Warren K. Leffler., has type Award-Winning Work
6. John F. Kennedy (fb:m.059vwvb): "John F. Kennedy" (1963) is a painting by American artist Elaine de Kooning., has type Artwork
7. John F. Kennedy (fb:m.07618sw): has type School
8. John F Kennedy (fb:m.07609qy): has type School
9. John F Kennedy (fb:m.076215t): has type School
10. John F Kennedy (fb:m.07659h7): has type School

[Tool]
Top 10 property alternatives:
1. Place of burial (fb:people.deceased_person.place_of_burial): links to type Place of interment, part of Deceased Person schema
2. Place of death (fb:people.deceased_person.place_of_death): part of Deceased Person schema, links to type Location
3. Date of death (fb:people.deceased_person.date_of_death): part of Deceased Person schema, links to type Date/Time
4. Cause of death (fb:people.deceased_person.cause_of_death): part of Deceased Person schema, links to type Cause Of Death
5. Religion (fb:base.popstra.celebrity.religion): links to type Religion Choice, part of Celebrity schema
6. Religion (fb:people.person.religion): links to type Religion, part of Person schema
7. Family (fb:people.family_member.family): part of Family member schema, links to type Family
8. Service (fb:military.military_person.service): links to type Military Service, part of Military Person schema
9. entry (fb:user.tsegaran.random.taxonomy_subject.entry): part of Taxonomy Subject schema, links to type Taxonomy Entry
10. Condition (fb:medicine.notable_person_with_medical_condition.condition): part of Public figure with medical condition schema, links to type Disease or medical condition

No other items found

[Tool]
Got 1 row and 2 columns:
| burialPlace                              | burialPlaceLabel                 |
| ---------------------------------------- | -------------------------------- |
| Arlington National Cemetery (fb:m.0lbp_) | Arlington National Cemetery (en) |

[Tool] Stopped generation process


The question "what is the best currency to take to turkey?" is subjective travel advice rather than a factual query that can be answered with structured data in Freebase. There is no explicit property or entity in Freebase indicating the "best currency to take" to Turkey, so a SPARQL query cannot retrieve an objective answer.

[System]
You are a question answering assistant. Your job is to generate a SPARQL query to answer a given user question.

You have access to the following knowledge graphs:
freebase at http://galera:7002

You can use the following SPARQL prefixes implicitly in all functions:
fb: <http://rdf.freebase.com/ns/
fbkey: <http://rdf.freebase.com/key/
rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs: <http://www.w3.org/2000/01/rdf-schema#
owl: <http://www.w3.org/2002/07/owl#
xsd: <http://www.w3.org/2001/XMLSchema#
foaf: <http://xmlns.com/foaf/0.1/
skos: <http://www.w3.org/2004/02/skos/core#
dct: <http://purl.org/dc/terms/
dc: <http://purl.org/dc/elements/1.1/
prov: <http://www.w3.org/ns/prov#
schema: <http://schema.org/
geo: <http://www.opengis.net/ont/geosparql#
geosparql: <http://www.opengis.net/ont/geosparql#
gn: <http://www.geonames.org/ontology#
bd: <http://www.bigdata.com/rdf#
hint: <http://www.bigdata.com/queryHints#
wikibase: <http://wikiba.se/ontology#
qb: <http://purl.org/linked-data/cube#
void: <http://rdfs.org/ns/void#

You should follow a step-by-step approach to generate the SPARQL query:
1. Determine possible entities and properties implied by the user question.
2. Use the functions to search for entities and properties in the knowledge graphs. Where applicable, constrain the searches with already identified entities and properties.
3. Gradually build up the SPARQL query using the identified entities and properties. Start with simple queries and add more complexity as needed. Use the execute function to get feedback on intermediate queries. You can go back and forth between knowledge graph searches and SPARQL query executions to refine the query.
4. Use the answer or cancel function to finalize your answer and stop the generation process.

Additional rules:
1. Explain your thought process before and after each step and function call.
2. Do not assume or make up any entities or properties without verifying them with the knowledge graphs and functions.
3. The SPARQL query should always return the actual identifiers / IRIs of the items in its result. It additionally may return labels or other human-readable information, but they are optional and should be put within optional clauses unless explicitly requested by the user.
4. Do not stop early if there are still obvious improvements to be made to the SPARQL query. For example, keep refining your SPARQL query if its result contains irrelevant items or is missing items you expected.
5. Do not perform additional computation (e.g. filtering, sorting, calculations) on the result of the SPARQL query to determine the answer. All computation should be done solely within SPARQL.
6. For questions with a "True" or "False" answer the SPARQL query should be an ASK query.
7. Do not use 'SERVICE wikibase:label { bd:serviceParam wikibase:language ...' in SPARQL queries. It is not SPARQL standard and unsupported by the used QLever SPARQL endpoints. Use rdfs:label or similar properties to get labels instead.

[User] what is the best currency to take to turkey?

[Tool] Stopped generation process


PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX fb: <http://rdf.freebase.com/ns/>
SELECT ?location ?locationLabel WHERE {
  fb:m.0ccd96 fb:time.event.locations ?location .
  OPTIONAL {
    ?location rdfs:label ?locationLabel FILTER ( lang( ?locationLabel ) = "en" )
  }
}

Got 1 row and 2 columns:
| location                     | locationLabel      |
| ---------------------------- | ------------------ |
| Boston Harbor (fb:m.04n7kgz) | Boston Harbor (en) |

The Boston Tea Party (1773) took place at Boston Harbor (fb:m.04n7kgz).

[System]
You are a question answering assistant. Your job is to generate a SPARQL query to answer a given user question.

You have access to the following knowledge graphs:
freebase at http://galera:7002

You can use the following SPARQL prefixes implicitly in all functions:
fb: <http://rdf.freebase.com/ns/
fbkey: <http://rdf.freebase.com/key/
rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs: <http://www.w3.org/2000/01/rdf-schema#
owl: <http://www.w3.org/2002/07/owl#
xsd: <http://www.w3.org/2001/XMLSchema#
foaf: <http://xmlns.com/foaf/0.1/
skos: <http://www.w3.org/2004/02/skos/core#
dct: <http://purl.org/dc/terms/
dc: <http://purl.org/dc/elements/1.1/
prov: <http://www.w3.org/ns/prov#
schema: <http://schema.org/
geo: <http://www.opengis.net/ont/geosparql#
geosparql: <http://www.opengis.net/ont/geosparql#
gn: <http://www.geonames.org/ontology#
bd: <http://www.bigdata.com/rdf#
hint: <http://www.bigdata.com/queryHints#
wikibase: <http://wikiba.se/ontology#
qb: <http://purl.org/linked-data/cube#
void: <http://rdfs.org/ns/void#

You should follow a step-by-step approach to generate the SPARQL query:
1. Determine possible entities and properties implied by the user question.
2. Use the functions to search for entities and properties in the knowledge graphs. Where applicable, constrain the searches with already identified entities and properties.
3. Gradually build up the SPARQL query using the identified entities and properties. Start with simple queries and add more complexity as needed. Use the execute function to get feedback on intermediate queries. You can go back and forth between knowledge graph searches and SPARQL query executions to refine the query.
4. Use the answer or cancel function to finalize your answer and stop the generation process.

Additional rules:
1. Explain your thought process before and after each step and function call.
2. Do not assume or make up any entities or properties without verifying them with the knowledge graphs and functions.
3. The SPARQL query should always return the actual identifiers / IRIs of the items in its result. It additionally may return labels or other human-readable information, but they are optional and should be put within optional clauses unless explicitly requested by the user.
4. Do not stop early if there are still obvious improvements to be made to the SPARQL query. For example, keep refining your SPARQL query if its result contains irrelevant items or is missing items you expected.
5. Do not perform additional computation (e.g. filtering, sorting, calculations) on the result of the SPARQL query to determine the answer. All computation should be done solely within SPARQL.
6. For questions with a "True" or "False" answer the SPARQL query should be an ASK query.
7. Do not use 'SERVICE wikibase:label { bd:serviceParam wikibase:language ...' in SPARQL queries. It is not SPARQL standard and unsupported by the used QLever SPARQL endpoints. Use rdfs:label or similar properties to get labels instead.

[User] where was the boston tea party 1773?

[Tool]
Top 10 entity alternatives:
1. Boston Tea Party (fb:m.0ccd96): The Boston Tea Party was a political protest by the Sons of Libe... not by a British parliament in which they were not represented., has type Event
2. Boston Tea Party (fb:m.0gfw557): Boston Tea Party is a Swedish infotainment television program is...adcast on Kanal 5 hosted by Fredrik Wikingsson and Filip Hammar., Boston Tea Party is a Swedish TV program., has type TV Program
3. Boston Tea Party (fb:m.0fj7lw): The Boston Tea Party was a U.S. political party named after the ... issues of today". The party effectively disbanded in July 2012., has type Political party
4. Boston Tea Party (fb:m.0flmtw6): has type Musical Release
5. Boston Tea Party (fb:m.010btx4): has type Musical Recording
6. Boston Tea Party (fb:m.03c_g3t): The Boston Tea Party was a concert venue located at 53 Berkeley ... Francisco's Fillmore West, and Philadelphia's Electric Factory., has type Structure
7. Boston Tea Party (fb:m.0kw1p8t): Zack dreams that he has gone back in time to the Boston Tea Part...torical park in Boston that's being threatened to be demolished., has type TV Episode
8. Boston Tea Party (fb:m.049g2rf): has type Musical Group
9. Boston Tea Party (fb:m.0tgtn7): has type Musical Recording
10. Boston Tea Party (fb:m.0_6kqs5): has type Composition

[Tool]
Top 10 property alternatives:
1. Location(s) (fb:time.event.locations): links to type Location, part of Event schema
2. Name (fb:type.object.name): part of Object schema, links to type Text
3. Description (fb:common.topic.description): part of Topic schema, links to type Text
4. Image (fb:common.topic.image): part of Topic schema, links to type Image
5. Key (fb:type.object.key): part of Object schema, links to type Key
6. Article (fb:common.topic.article): links to type Document, part of Topic schema
7. Type (fb:type.object.type): part of Object schema, links to type Type
8. Start date (fb:time.event.start_date): links to type Date/Time, part of Event schema
9. Web Link(s) (fb:common.topic.webpage): links to type Webpage, part of Topic schema
10. End date (fb:time.event.end_date): links to type Date/Time, part of Event schema

No other items found

[Tool]
Got 1 row and 2 columns:
| location                     | locationLabel      |
| ---------------------------- | ------------------ |
| Boston Harbor (fb:m.04n7kgz) | Boston Harbor (en) |

[Tool] Stopped generation process


PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX fb: <http://rdf.freebase.com/ns/>
SELECT ?form ?formLabel WHERE {
  fb:m.06qd3 fb:location.country.form_of_government ?form .
  OPTIONAL {
    ?form rdfs:label ?formLabel .
    FILTER ( LANG( ?formLabel ) = "en" )
  }
}

Got 3 rows and 2 columns:
| form                                  | formLabel                    |
| ------------------------------------- | ---------------------------- |
| Presidential system (fb:m.01d9r3)     | Presidential system (en)     |
| Unitary state (fb:m.01fpfn)           | Unitary state (en)           |
| Constitutional republic (fb:m.0c9rw5) | Constitutional republic (en) |

South Korea’s form of government is described by three values: Presidential system; Unitary state; and Constitutional republic.

[System]
You are a question answering assistant. Your job is to generate a SPARQL query to answer a given user question.

You have access to the following knowledge graphs:
freebase at http://galera:7002

You can use the following SPARQL prefixes implicitly in all functions:
fb: <http://rdf.freebase.com/ns/
fbkey: <http://rdf.freebase.com/key/
rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs: <http://www.w3.org/2000/01/rdf-schema#
owl: <http://www.w3.org/2002/07/owl#
xsd: <http://www.w3.org/2001/XMLSchema#
foaf: <http://xmlns.com/foaf/0.1/
skos: <http://www.w3.org/2004/02/skos/core#
dct: <http://purl.org/dc/terms/
dc: <http://purl.org/dc/elements/1.1/
prov: <http://www.w3.org/ns/prov#
schema: <http://schema.org/
geo: <http://www.opengis.net/ont/geosparql#
geosparql: <http://www.opengis.net/ont/geosparql#
gn: <http://www.geonames.org/ontology#
bd: <http://www.bigdata.com/rdf#
hint: <http://www.bigdata.com/queryHints#
wikibase: <http://wikiba.se/ontology#
qb: <http://purl.org/linked-data/cube#
void: <http://rdfs.org/ns/void#

You should follow a step-by-step approach to generate the SPARQL query:
1. Determine possible entities and properties implied by the user question.
2. Use the functions to search for entities and properties in the knowledge graphs. Where applicable, constrain the searches with already identified entities and properties.
3. Gradually build up the SPARQL query using the identified entities and properties. Start with simple queries and add more complexity as needed. Use the execute function to get feedback on intermediate queries. You can go back and forth between knowledge graph searches and SPARQL query executions to refine the query.
4. Use the answer or cancel function to finalize your answer and stop the generation process.

Additional rules:
1. Explain your thought process before and after each step and function call.
2. Do not assume or make up any entities or properties without verifying them with the knowledge graphs and functions.
3. The SPARQL query should always return the actual identifiers / IRIs of the items in its result. It additionally may return labels or other human-readable information, but they are optional and should be put within optional clauses unless explicitly requested by the user.
4. Do not stop early if there are still obvious improvements to be made to the SPARQL query. For example, keep refining your SPARQL query if its result contains irrelevant items or is missing items you expected.
5. Do not perform additional computation (e.g. filtering, sorting, calculations) on the result of the SPARQL query to determine the answer. All computation should be done solely within SPARQL.
6. For questions with a "True" or "False" answer the SPARQL query should be an ASK query.
7. Do not use 'SERVICE wikibase:label { bd:serviceParam wikibase:language ...' in SPARQL queries. It is not SPARQL standard and unsupported by the used QLever SPARQL endpoints. Use rdfs:label or similar properties to get labels instead.

[User] what kind of government is south korea?

[Tool]
Top 10 entity alternatives:
1. South Korea, also known as Daehan Minguk, Korea, Republic of Korea, ROK (fb:m.06qd3): South Korea, officially the Republic of Korea, and commonly refe..., with the latter becoming the Republic of Korea in August 1948., has type Country
2. South Korea (fb:m.0c8ctxs): has type Book Edition
3. South Korea (fb:m.05dlwwn): The hectic, vibrant streets of Seoul are teeming with spectacula...eaming bowl of spicy soup, and you're wise to follow their lead., has type TV Episode
4. South Korea (fb:m.0gfylzl): has type TV Episode
5. South Korea (fb:m.079j7yh): Is there anything wrong with eating dogs?  Stefan visits a farm ...red to death.  But when it comes to the crunch, will he tuck in?, has type TV Episode
6. South Korea (fb:m.013p64h): has type Musical Recording
7. South Korea, also known as Korea, Cuba (fb:m.0k0367n): The story of Cullen Thomas, a university graduate from New York ...t extend his arms above his head and a toilet that did not flush, has type TV Episode
8. Korea, South (fb:m.0nlgxpc): has type Musical Recording
9. South Korea (fb:m.0wd6p77): has type Musical Recording
10. South Korea (fb:m.0f1vdzn): has type Musical Recording

[Tool]
Top 10 property alternatives:
1. Government bodies (fb:government.governmental_jurisdiction.government_bodies): part of Governmental Jurisdiction schema, links to type Governmental Body
2. Form of Government (fb:location.country.form_of_government): links to type Form of Government, part of Country schema
3. Government positions (fb:government.governmental_jurisdiction.government_positions): links to type Government Office or Title, part of Governmental Jurisdiction schema
4. Governing officials (fb:government.governmental_jurisdiction.governing_officials): part of Governmental Jurisdiction schema, links to type Government Position Held
5. Official Language (fb:location.country.official_language): links to type Human Language, part of Country schema
6. Agencies (fb:government.governmental_jurisdiction.agencies): part of Governmental Jurisdiction schema, links to type Government Agency
7. Administrative Divisions (fb:location.country.administrative_divisions): links to type Administrative Division, part of Country schema
8. Official website (fb:common.topic.official_website): part of Topic schema, links to type URI
9. Official development assistance (fb:location.statistical_region.official_development_assistance): part of Statistical region schema, links to type Dated Money Value
10. Flag (fb:symbols.flag_referent.flag): part of Flag referent schema, links to type Flag use

No other items found

[Tool]
Got 3 rows and 3 columns:
| subject                  | property                                                    | object                                |
| ------------------------ | ----------------------------------------------------------- | ------------------------------------- |
| South Korea (fb:m.06qd3) | Form of Government (fb:location.country.form_of_government) | Presidential system (fb:m.01d9r3)     |
| South Korea (fb:m.06qd3) | Form of Government (fb:location.country.form_of_government) | Unitary state (fb:m.01fpfn)           |
| South Korea (fb:m.06qd3) | Form of Government (fb:location.country.form_of_government) | Constitutional republic (fb:m.0c9rw5) |

[Tool] Stopped generation process