Simple Question (Direct)
Simple Question
Q5392534
P39
Q12737077
USER
Which occupation was a position held by Ermolao Barbaro ?
(Q5392534,P39,c(Q12737077))
action filter_type
action find
entity Q5392534
relation P39
type Q12737077
['Q5392534', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q5392534 property:P39 ?h . ?h rdf:type ontology:Q12737077 }
Ermolao Barbaro
action filter_type
action find
entity Ermolao Barbaro
relation position held
type occupation
['Ermolao Barbaro', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Ermolao_Barbaro property:position_held ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q29182
SYSTEM
bishop
Q29182
(Q5392534,P39,c(Q12737077))
action filter_type
action find
entity Q5392534
relation P39
type Q12737077
[ANSWER] was a position held by Ermolao Barbaro
['Q5392534', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q5392534 property:P39 ?h . ?h rdf:type ontology:Q12737077 }
bishop
Bishop was a position held by Ermolao Barbaro
bishop
action filter_type
action find
entity Ermolao Barbaro
relation position held
type occupation
['Ermolao Barbaro', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Ermolao_Barbaro property:position_held ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5392534
P19
Q56061
USER
Which administrative territory is the birthplace of that person ?
(Q29182,P19,c(Q56061))
action filter_type
action find
entity Q5392534
relation P19
type Q56061
['Q29182', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . resource:Q5392534 property:P19 ?z }
Ermolao Barbaro
action filter_type
action find
entity Ermolao Barbaro
relation place of birth
type administrative territorial entity
['bishop', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Ermolao_Barbaro property:place_of_birth ?z }
[]
administrative territorial entity
Q641
SYSTEM
Venice
Q641
(Q29182,P19,c(Q56061))
action filter_type
action find
entity Q5392534
relation P19
type Q56061
[ANSWER] is the birthplace of that person
['Q29182', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . resource:Q5392534 property:P19 ?z }
Venice
Venice is the birthplace of that person
Venice
action filter_type
action find
entity Ermolao Barbaro
relation place of birth
type administrative territorial entity
['bishop', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Ermolao_Barbaro property:place_of_birth ?z }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q641
P840
Q838948
USER
Which works of art have their narrative set in that administrative territory ?
(c(Q838948),P840,Q641)
action filter_type
action find_reverse
entity Q641
relation P840
type Q838948
[{'concept': 'Q838948'}, 'P840', 'Q641']
SELECT DISTINCT ?s WHERE { ?s property:P840 resource:Q641 . ?s rdf:type ontology:Q838948 }
Venice
action filter_type
action find_reverse
entity Venice
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Venice']
SELECT DISTINCT ?s WHERE { ?s property:narrative_location resource:Venice . ?s rdf:type ontology:work_of_art }
[]
work of art
Q106571 Q151904 Q334780
SYSTEM
From Russia with Love, Casino Royale, Moonraker
Q643268 Q26833 Q151904 Q3032583 Q334780 Q106571
(c(Q838948),P840,Q641)
action filter_type
action find_reverse
entity Q641
relation P840
type Q838948
[ANSWERS] have their narrative set in that administrative territory
[{'concept': 'Q838948'}, 'P840', 'Q641']
SELECT DISTINCT ?s WHERE { ?s property:P840 resource:Q641 . ?s rdf:type ontology:Q838948 }
Italian for Beginners Othello Casino Royale Dieci inverni Moonraker From Russia with Love
From Russia with Love, Casino Royale and Moonraker have their narrative set in that administrative territory
From Russia with Love Casino Royale Moonraker
action filter_type
action find_reverse
entity Venice
relation narrative location
type work of art
[{'concept': 'work of art'}, 'narrative location', 'Venice']
SELECT DISTINCT ?s WHERE { ?s property:narrative_location resource:Venice . ?s rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q727 Q641
P840
Q838948
USER
Or Amsterdam?
OR((c(Q838948),P840,Q641), (c(Q838948),P840,Q727))
action filter_type
action union
action find_reverse
entity Q641
relation P840
action find_reverse
entity Q727
relation P840
type Q838948
{'OR': [[{'concept': 'Q838948'}, 'P840', 'Q641'], [{'concept': 'Q838948'}, 'P840', 'Q727']]}
SELECT DISTINCT ?u WHERE { { { ?u property:P840 resource:Q641 } UNION { ?u property:P840 resource:Q727 } } . ?u rdf:type ontology:Q838948 }
Amsterdam Venice
action filter_type
action union
action find_reverse
entity Venice
relation narrative location
action find_reverse
entity Amsterdam
relation narrative location
type work of art
{'OR': [[{'concept': 'work of art'}, 'narrative location', 'Venice'], [{'concept': 'work of art'}, 'narrative location', 'Amsterdam']]}
SELECT DISTINCT ?u WHERE { { { ?u property:narrative_location resource:Venice } UNION { ?u property:narrative_location resource:Amsterdam } } . ?u rdf:type ontology:work_of_art }
[]
work of art
Q258389 Q3032583 Q15873873 Q106571 Q745281 Q26833 Q151904 Q21986478 Q643268 Q3246496
SYSTEM
Some of them are Summer in the City, Dieci inverni, Chez Nous, From Russia with Love, Broken Mirrors, Othello, Casino Royale, Das Tagebuch der Anne Frank, Italian for Beginners, House of Boys
Q643268 Q15873873 Q3246496 Q151904 Q3032583 Q728499 Q334780 Q106571 Q258389 Q26833 Q745281 Q21986478
OR((c(Q838948),P840,Q641), (c(Q838948),P840,Q727))
action filter_type
action union
action find_reverse
entity Q641
relation P840
action find_reverse
entity Q727
relation P840
type Q838948
[ANSWERS]
{'OR': [[{'concept': 'Q838948'}, 'P840', 'Q641'], [{'concept': 'Q838948'}, 'P840', 'Q727']]}
SELECT DISTINCT ?u WHERE { { { ?u property:P840 resource:Q641 } UNION { ?u property:P840 resource:Q727 } } . ?u rdf:type ontology:Q838948 }
Italian for Beginners Chez Nous House of Boys Casino Royale Dieci inverni Amsterdamned Moonraker From Russia with Love Summer in the City Othello Broken Mirrors Das Tagebuch der Anne Frank
Summer in the City Dieci inverni Chez Nous From Russia with Love Broken Mirrors Othello Casino Royale Das Tagebuch der Anne Frank Italian for Beginners House of Boys
action filter_type
action union
action find_reverse
entity Venice
relation narrative location
action find_reverse
entity Amsterdam
relation narrative location
type work of art
{'OR': [[{'concept': 'work of art'}, 'narrative location', 'Venice'], [{'concept': 'work of art'}, 'narrative location', 'Amsterdam']]}
SELECT DISTINCT ?u WHERE { { { ?u property:narrative_location resource:Venice } UNION { ?u property:narrative_location resource:Amsterdam } } . ?u rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q727
P138
Q34442
USER
Which roads are the eponym of Amsterdam ?
(c(Q34442),P138,Q727)
action filter_type
action find_reverse
entity Q727
relation P138
type Q34442
[{'concept': 'Q34442'}, 'P138', 'Q727']
SELECT DISTINCT ?e WHERE { ?e property:P138 resource:Q727 . ?e rdf:type ontology:Q34442 }
Amsterdam
action filter_type
action find_reverse
entity Amsterdam
relation named after
type road
[{'concept': 'road'}, 'named after', 'Amsterdam']
SELECT DISTINCT ?e WHERE { ?e property:named_after resource:Amsterdam . ?e rdf:type ontology:road }
[]
road
Q3450470 Q18935305 Q18935280
SYSTEM
rue d'Amsterdam, Amsterdamseweg, Amsterdamsestraatweg
Q18935280 Q18935287 Q18935285 Q3450470 Q18935272 Q18935270 Q18935277 Q18935275 Q18935255 Q18935257 Q17370252 Q18935318 Q18935314 Q18935316 Q4748864 Q18935312 Q18935299 Q18935291 Q2020081 Q18935292 Q18935295 Q2693255 Q4528777 Q18935266 Q18935268 Q18935308 Q18935303 Q18935301 Q18935305
(c(Q34442),P138,Q727)
action filter_type
action find_reverse
entity Q727
relation P138
type Q34442
[ANSWERS] the eponym of Amsterdam
[{'concept': 'Q34442'}, 'P138', 'Q727']
SELECT DISTINCT ?e WHERE { ?e property:P138 resource:Q727 . ?e rdf:type ontology:Q34442 }
Amsterdamsestraatweg Amsterdamsestraatweg Amsterdamsestraatweg rue d'Amsterdam Amsterdamsestraat Amsterdamsepoort Amsterdamsestraat Amsterdamsestraat Amsterdamlaan Amsterdamlaan Amsterdamseweg Amsterdamweg Amsterdamstraat Amsterdamstraat Amsterdamseweg Amsterdamstraat Amsterdamseweg Amsterdamsestraatweg Amsterdamsestraatweg Amsterdamsestraatweg Amsterdamsevaart Amsterdamse Veerkade Amsterdamsestraatweg Amsterdamsehof Amsterdamselaan Amsterdamstraat Amsterdamseweg Amsterdamseweg Amsterdamseweg
Rue d'Amsterdam, Amsterdamseweg and Amsterdamsestraatweg the eponym of Amsterdam
rue d'Amsterdam Amsterdamseweg Amsterdamsestraatweg
action filter_type
action find_reverse
entity Amsterdam
relation named after
type road
[{'concept': 'road'}, 'named after', 'Amsterdam']
SELECT DISTINCT ?e WHERE { ?e property:named_after resource:Amsterdam . ?e rdf:type ontology:road }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q3450470 Q18935305 Q18935280
P138
Q56061
USER
Which administrative territories are those roads named after ?
(Q3450470,P138,c(Q56061)) (Q18935305,P138,c(Q56061)) (Q18935280,P138,c(Q56061))
action filter_type
action find
entity prev_answer
relation P138
type Q56061
['Q3450470', 'P138', {'concept': 'Q56061'}] ['Q18935305', 'P138', {'concept': 'Q56061'}] ['Q18935280', 'P138', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . ?j property:P138 ?u . VALUES ( ?j ) { ( resource:Q18935280 ) ( resource:Q18935287 ) ( resource:Q18935285 ) } }
rue d'Amsterdam Amsterdamseweg Amsterdamsestraatweg
action filter_type
action find
entity prev_answer
relation named after
type administrative territorial entity
["rue d'Amsterdam", 'named after', {'concept': 'administrative territorial entity'}] ['Amsterdamseweg', 'named after', {'concept': 'administrative territorial entity'}] ['Amsterdamsestraatweg', 'named after', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . ?j property:named_after ?u . VALUES ( ?j ) { ( resource:Amsterdamsestraatweg ) ( resource:Amsterdamsestraatweg ) ( resource:Amsterdamsestraatweg ) } }
[]
administrative territorial entity
Q727 Q727 Q727
SYSTEM
Amsterdam
Q727 Q727 Q727
(Q3450470,P138,c(Q56061)) (Q18935305,P138,c(Q56061)) (Q18935280,P138,c(Q56061))
action filter_type
action find
entity prev_answer
relation P138
type Q56061
Named [ANSWER], [ANSWER] and [ANSWER] after
['Q3450470', 'P138', {'concept': 'Q56061'}] ['Q18935305', 'P138', {'concept': 'Q56061'}] ['Q18935280', 'P138', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . ?j property:P138 ?u . VALUES ( ?j ) { ( resource:Q18935280 ) ( resource:Q18935287 ) ( resource:Q18935285 ) } }
Amsterdam Amsterdam Amsterdam
Named Amsterdam, Amsterdam and Amsterdam after
Amsterdam Amsterdam Amsterdam
action filter_type
action find
entity prev_answer
relation named after
type administrative territorial entity
["rue d'Amsterdam", 'named after', {'concept': 'administrative territorial entity'}] ['Amsterdamseweg', 'named after', {'concept': 'administrative territorial entity'}] ['Amsterdamsestraatweg', 'named after', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . ?j property:named_after ?u . VALUES ( ?j ) { ( resource:Amsterdamsestraatweg ) ( resource:Amsterdamsestraatweg ) ( resource:Amsterdamsestraatweg ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3450470
P47
Q34442
USER
Who share the border with rue d'Amsterdam ?
(Q3450470,P47,c(Q34442))
action filter_type
action find
entity Q3450470
relation P47
type Q34442
['Q3450470', 'P47', {'concept': 'Q34442'}]
SELECT DISTINCT ?l WHERE { resource:Q3450470 property:P47 ?l . ?l rdf:type ontology:Q34442 }
rue d'Amsterdam
action filter_type
action find
entity rue d'Amsterdam
relation shares border with
type road
["rue d'Amsterdam", 'shares border with', {'concept': 'road'}]
SELECT DISTINCT ?l WHERE { resource:rue_d'Amsterdam property:shares_border_with ?l . ?l rdf:type ontology:road }
[]
road
Q3449920 Q962082 Q3452382
SYSTEM
rue Saint-Lazare, rue de Moscou, rue du Havre
Q3448629 Q962082 Q3450878 Q3450612 Q3450945 Q3449920 Q3450609 Q3450820 Q3452382 Q952990 Q3450501
(Q3450470,P47,c(Q34442))
action filter_type
action find
entity Q3450470
relation P47
type Q34442
[ANSWERS] share the border with rue d'Amsterdam
['Q3450470', 'P47', {'concept': 'Q34442'}]
SELECT DISTINCT ?l WHERE { resource:Q3450470 property:P47 ?l . ?l rdf:type ontology:Q34442 }
rue Jules-Lefebvre rue de Moscou rue de Milan rue de Budapest rue de Parme rue Saint-Lazare rue de Bucarest rue de Liège rue du Havre rue de Londres rue d'Athènes
Rue Saint-Lazare, rue de Moscou and rue du Havre share the border with rue d'Amsterdam
rue Saint-Lazare rue de Moscou rue du Havre
action filter_type
action find
entity rue d'Amsterdam
relation shares border with
type road
["rue d'Amsterdam", 'shares border with', {'concept': 'road'}]
SELECT DISTINCT ?l WHERE { resource:rue_d'Amsterdam property:shares_border_with ?l . ?l rdf:type ontology:road }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3449920
P669
Q44539
USER
Which temple is located on that road ?
(c(Q44539),P669,Q3449920)
action filter_type
action find_reverse
entity Q3449920
relation P669
type Q44539
[{'concept': 'Q44539'}, 'P669', 'Q3449920']
SELECT DISTINCT ?h WHERE { ?h property:P669 resource:Q3449920 . ?h rdf:type ontology:Q44539 }
rue Saint-Lazare
action filter_type
action find_reverse
entity rue Saint-Lazare
relation located on street
type temple
[{'concept': 'temple'}, 'located on street', 'rue Saint-Lazare']
SELECT DISTINCT ?h WHERE { ?h property:located_on_street resource:rue_Saint-Lazare . ?h rdf:type ontology:temple }
[]
temple
Clarification for simple ques.
Q962082
SYSTEM
Did you mean rue de Moscou ?
Q3449920 Q962082 Q3452382
(c(Q44539),P669,Q3449920) (c(Q44539),P669,Q962082) (c(Q44539),P669,Q3452382)
[ANSWER]
[{'concept': 'Q44539'}, 'P669', 'Q3449920'] [{'concept': 'Q44539'}, 'P669', 'Q962082'] [{'concept': 'Q44539'}, 'P669', 'Q3452382']
SELECT DISTINCT ?h WHERE { ?h property:P669 resource:Q3449920 . ?h rdf:type ontology:Q44539 }
rue Saint-Lazare rue de Moscou rue du Havre
Did you mean rue de Moscou ?
rue de Moscou
[{'concept': 'temple'}, 'located on street', 'rue Saint-Lazare'] [{'concept': 'temple'}, 'located on street', 'rue de Moscou'] [{'concept': 'temple'}, 'located on street', 'rue du Havre']
SELECT DISTINCT ?h WHERE { ?h property:located_on_street resource:rue_Saint-Lazare . ?h rdf:type ontology:temple }
[]
Simple Question (Coreferenced)
USER
No, I meant rue Saint-Lazare. Could you tell me the answer for that?
(c(Q44539),P669,Q3449920)
Q3449920
[{'concept': 'Q44539'}, 'P669', 'Q3449920']
[{'concept': 'temple'}, 'located on street', 'rue Saint-Lazare']
[]
Q1710369
SYSTEM
Notre-Dame-de-Lorette
Q1710369
(c(Q44539),P669,Q3449920)
action filter_type
action find_reverse
entity Q3449920
relation P669
type Q44539
[ANSWER] is located on that road
[{'concept': 'Q44539'}, 'P669', 'Q3449920']
SELECT DISTINCT ?h WHERE { ?h property:P669 resource:Q3449920 . ?h rdf:type ontology:Q44539 }
Notre-Dame-de-Lorette
Notre-Dame-de-Lorette is located on that road
Notre-Dame-de-Lorette
action filter_type
action find_reverse
entity rue Saint-Lazare
relation located on street
type temple
[{'concept': 'temple'}, 'located on street', 'rue Saint-Lazare']
SELECT DISTINCT ?h WHERE { ?h property:located_on_street resource:rue_Saint-Lazare . ?h rdf:type ontology:temple }
[]