Simple Question (Direct)
Simple Question
Q3383520
P166
Q618779
USER
Which award was received by Pierre-Thomas Rambaud ?
(Q3383520,P166,c(Q618779))
action filter_type
action find
entity Q3383520
relation P166
type Q618779
['Q3383520', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q618779 . resource:Q3383520 property:P166 ?p }
Pierre-Thomas Rambaud
action filter_type
action find
entity Pierre-Thomas Rambaud
relation award received
type award
['Pierre-Thomas Rambaud', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:award . resource:Pierre-Thomas_Rambaud property:award_received ?p }
[]
award
Q10855195
SYSTEM
Officer of the Legion of Honour
Q10855195
(Q3383520,P166,c(Q618779))
action filter_type
action find
entity Q3383520
relation P166
type Q618779
The [ANSWER] was received by Pierre-Thomas Rambaud
['Q3383520', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q618779 . resource:Q3383520 property:P166 ?p }
Officer of the Legion of Honour
The Officer of the Legion of Honour was received by Pierre-Thomas Rambaud
Officer of the Legion of Honour
action filter_type
action find
entity Pierre-Thomas Rambaud
relation award received
type award
['Pierre-Thomas Rambaud', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:award . resource:Pierre-Thomas_Rambaud property:award_received ?p }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q10855195
P361
Q5127848
USER
What is that award a portion of ?
(Q10855195,P361,c(Q5127848))
action filter_type
action find
entity Q10855195
relation P361
type Q5127848
['Q10855195', 'P361', {'concept': 'Q5127848'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q5127848 . resource:Q10855195 property:P361 ?o }
Officer of the Legion of Honour
action filter_type
action find
entity Officer of the Legion of Honour
relation part of
type class
['Officer of the Legion of Honour', 'part of', {'concept': 'class'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:class . resource:Officer_of_the_Legion_of_Honour property:part_of ?o }
[]
class
Q163700
SYSTEM
Legion of Honour
Q163700
(Q10855195,P361,c(Q5127848))
action filter_type
action find
entity Q10855195
relation P361
type Q5127848
That award a portion of is a [ANSWER]
['Q10855195', 'P361', {'concept': 'Q5127848'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q5127848 . resource:Q10855195 property:P361 ?o }
Legion of Honour
That award a portion of is a Legion of Honour
Legion of Honour
action filter_type
action find
entity Officer of the Legion of Honour
relation part of
type class
['Officer of the Legion of Honour', 'part of', {'concept': 'class'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:class . resource:Officer_of_the_Legion_of_Honour property:part_of ?o }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q163700 Q3189797
P166
Q502895
USER
Did Julio Aparicio Martínez receive the award titled that class ?
(Q3189797,P166,Q163700)
action is_in
entity Q3189797
action find
entity Q163700
relation P166
['Q3189797', 'P166', 'Q163700']
ASK WHERE { resource:Q163700 property:P166 resource:Q3189797 }
Legion of Honour Julio Aparicio Martínez
action is_in
entity Julio Aparicio Martínez
action find
entity Legion of Honour
relation award received
['Julio Aparicio Martínez', 'award received', 'Legion of Honour']
ASK WHERE { resource:Legion_of_Honour property:award_received resource:Julio_Aparicio_Martínez }
[]
common name
SYSTEM
NO
(Q3189797,P166,Q163700)
action is_in
entity Q3189797
action find
entity Q163700
relation P166
[ANSWER]
['Q3189797', 'P166', 'Q163700']
ASK WHERE { resource:Q163700 property:P166 resource:Q3189797 }
No
action is_in
entity Julio Aparicio Martínez
action find
entity Legion of Honour
relation award received
['Julio Aparicio Martínez', 'award received', 'Legion of Honour']
ASK WHERE { resource:Legion_of_Honour property:award_received resource:Julio_Aparicio_Martínez }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q67332 Q163700
P47 P17
Q15617994
USER
Which administrative territories are Legion of Honour a part of or are bordered by Grengiols ?
OR((Q163700,P17,c(Q15617994)), (Q67332,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q163700
relation P17
action find
entity Q67332
relation P47
type Q15617994
{'OR': [['Q163700', 'P17', {'concept': 'Q15617994'}], ['Q67332', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q163700 property:P17 ?f } UNION { resource:Q67332 property:P47 ?f } } . ?f rdf:type ontology:Q15617994 }
Grengiols Legion of Honour
action filter_type
action union
action find
entity Legion of Honour
relation country
action find
entity Grengiols
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Legion of Honour', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Grengiols', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Legion_of_Honour property:country ?f } UNION { resource:Grengiols property:shares_border_with ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q23713 Q23226
SYSTEM
France, Varzo, Baceno
Q142 Q23713 Q23226
OR((Q163700,P17,c(Q15617994)), (Q67332,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q163700
relation P17
action find
entity Q67332
relation P47
type Q15617994
[ANSWERS] are Legion of Honour a part of or are bordered by Grengiols
{'OR': [['Q163700', 'P17', {'concept': 'Q15617994'}], ['Q67332', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q163700 property:P17 ?f } UNION { resource:Q67332 property:P47 ?f } } . ?f rdf:type ontology:Q15617994 }
France Varzo Baceno
France, Varzo and Baceno are Legion of Honour a part of or are bordered by Grengiols
France Varzo Baceno
action filter_type
action union
action find
entity Legion of Honour
relation country
action find
entity Grengiols
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Legion of Honour', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Grengiols', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Legion_of_Honour property:country ?f } UNION { resource:Grengiols property:shares_border_with ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q67332
P47
Q13220204 Q15617994
USER
How many administrative country subdivisions or administrative territories do Grengiols share a border with ?
(c(Q13220204),P47,Q67332) (c(Q15617994),P47,Q67332)
action count
action union
action filter_type
action find_reverse
entity Q67332
relation P47
type Q13220204
action filter_type
action find_reverse
entity Q67332
relation P47
type Q15617994
[{'concept': 'Q13220204'}, 'P47', 'Q67332'] [{'concept': 'Q15617994'}, 'P47', 'Q67332']
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { ?y property:P47 resource:Q67332 . ?y rdf:type ontology:Q13220204 } UNION { ?y property:P47 resource:Q67332 . ?y rdf:type ontology:Q15617994 } }
Grengiols
action count
action union
action filter_type
action find_reverse
entity Grengiols
relation shares border with
type second-level administrative country subdivision
action filter_type
action find_reverse
entity Grengiols
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Grengiols'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Grengiols']
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { ?y property:shares_border_with resource:Grengiols . ?y rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?y property:shares_border_with resource:Grengiols . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
second-level administrative country subdivision designation for an administrative territorial entity
SYSTEM
8
Q70345 Q70347 Q70643 Q70351 Q23713 Q23226 Q67151 Q68474
(c(Q13220204),P47,Q67332) (c(Q15617994),P47,Q67332)
action count
action union
action filter_type
action find_reverse
entity Q67332
relation P47
type Q13220204
action filter_type
action find_reverse
entity Q67332
relation P47
type Q15617994
[ANSWER]
[{'concept': 'Q13220204'}, 'P47', 'Q67332'] [{'concept': 'Q15617994'}, 'P47', 'Q67332']
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { ?y property:P47 resource:Q67332 . ?y rdf:type ontology:Q13220204 } UNION { ?y property:P47 resource:Q67332 . ?y rdf:type ontology:Q15617994 } }
Martisberg Ernen Mörel-Filet Bister Varzo Baceno Termen Betten
8
action count
action union
action filter_type
action find_reverse
entity Grengiols
relation shares border with
type second-level administrative country subdivision
action filter_type
action find_reverse
entity Grengiols
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Grengiols'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Grengiols']
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { ?y property:shares_border_with resource:Grengiols . ?y rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?y property:shares_border_with resource:Grengiols . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1466051 Q3383520
P27
Q15617994
USER
Which administrative territories do Pierre-Thomas Rambaud or Edoardo Braiati belong to ?
OR((Q3383520,P27,c(Q15617994)), (Q1466051,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3383520
relation P27
action find
entity Q1466051
relation P27
type Q15617994
{'OR': [['Q3383520', 'P27', {'concept': 'Q15617994'}], ['Q1466051', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q3383520 property:P27 ?u } UNION { resource:Q1466051 property:P27 ?u } } . ?u rdf:type ontology:Q15617994 }
Edoardo Braiati Pierre-Thomas Rambaud
action filter_type
action union
action find
entity Pierre-Thomas Rambaud
relation country of citizenship
action find
entity Edoardo Braiati
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Pierre-Thomas Rambaud', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Edoardo Braiati', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Pierre-Thomas_Rambaud property:country_of_citizenship ?u } UNION { resource:Edoardo_Braiati property:country_of_citizenship ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q38
SYSTEM
France, Italy
Q142 Q38
OR((Q3383520,P27,c(Q15617994)), (Q1466051,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3383520
relation P27
action find
entity Q1466051
relation P27
type Q15617994
Pierre-Thomas Rambaud or Edoardo Braiati belong to the [ANSWERS]
{'OR': [['Q3383520', 'P27', {'concept': 'Q15617994'}], ['Q1466051', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q3383520 property:P27 ?u } UNION { resource:Q1466051 property:P27 ?u } } . ?u rdf:type ontology:Q15617994 }
France Italy
Pierre-Thomas Rambaud or Edoardo Braiati belong to the France and Italy
France Italy
action filter_type
action union
action find
entity Pierre-Thomas Rambaud
relation country of citizenship
action find
entity Edoardo Braiati
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Pierre-Thomas Rambaud', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Edoardo Braiati', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Pierre-Thomas_Rambaud property:country_of_citizenship ?u } UNION { resource:Edoardo_Braiati property:country_of_citizenship ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q38
P194
Q1752346
USER
Which assembly governs that administrative territory ?
(Q38,P194,c(Q1752346))
action filter_type
action find
entity Q38
relation P194
type Q1752346
['Q38', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?y WHERE { resource:Q38 property:P194 ?y . ?y rdf:type ontology:Q1752346 }
Italy
action filter_type
action find
entity Italy
relation legislative body
type assembly
['Italy', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?y WHERE { resource:Italy property:legislative_body ?y . ?y rdf:type ontology:assembly }
[]
assembly
Clarification for simple ques.
Q142
SYSTEM
Did you mean France ?
Q142 Q38
(Q142,P194,c(Q1752346)) (Q38,P194,c(Q1752346))
[ANSWER]
['Q142', 'P194', {'concept': 'Q1752346'}] ['Q38', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?y WHERE { resource:Q38 property:P194 ?y . ?y rdf:type ontology:Q1752346 }
France Italy
Did you mean France ?
France
['France', 'legislative body', {'concept': 'assembly'}] ['Italy', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?y WHERE { resource:Italy property:legislative_body ?y . ?y rdf:type ontology:assembly }
[]
Simple Question (Coreferenced)
USER
No, I meant Italy. Could you tell me the answer for that?
(Q38,P194,c(Q1752346))
Q38
['Q38', 'P194', {'concept': 'Q1752346'}]
['Italy', 'legislative body', {'concept': 'assembly'}]
[]
Q1117578
SYSTEM
Italian Parliament
Q1117578
(Q38,P194,c(Q1752346))
action filter_type
action find
entity Q38
relation P194
type Q1752346
[ANSWER] governs that administrative territory
['Q38', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?y WHERE { resource:Q38 property:P194 ?y . ?y rdf:type ontology:Q1752346 }
Italian Parliament
Italian Parliament governs that administrative territory
Italian Parliament
action filter_type
action find
entity Italy
relation legislative body
type assembly
['Italy', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?y WHERE { resource:Italy property:legislative_body ?y . ?y rdf:type ontology:assembly }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1117578 Q504251 Q242133
P17
Q15617994
USER
Is that assembly located in Sonnen and Cervara di Roma ?
(Q1117578,P17,Q504251) (Q1117578,P17,Q242133)
action is_in
entity Q1117578
action intersection
action find_reverse
entity Q504251
relation P17
action find_reverse
entity Q242133
relation P17
['Q1117578', 'P17', 'Q504251'] ['Q1117578', 'P17', 'Q242133']
ASK WHERE { resource:Q1117578 property:P17 resource:Q504251 . resource:Q1117578 property:P17 resource:Q242133 }
Italian Parliament Sonnen Cervara di Roma
action is_in
entity Italian Parliament
action intersection
action find_reverse
entity Sonnen
relation country
action find_reverse
entity Cervara di Roma
relation country
['Italian Parliament', 'country', 'Sonnen'] ['Italian Parliament', 'country', 'Cervara di Roma']
ASK WHERE { resource:Italian_Parliament property:country resource:Sonnen . resource:Italian_Parliament property:country resource:Cervara_di_Roma }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1117578,P17,Q504251) (Q1117578,P17,Q242133)
action is_in
entity Q1117578
action intersection
action find_reverse
entity Q504251
relation P17
action find_reverse
entity Q242133
relation P17
[ANSWER]
['Q1117578', 'P17', 'Q504251'] ['Q1117578', 'P17', 'Q242133']
ASK WHERE { resource:Q1117578 property:P17 resource:Q504251 . resource:Q1117578 property:P17 resource:Q242133 }
No
action is_in
entity Italian Parliament
action intersection
action find_reverse
entity Sonnen
relation country
action find_reverse
entity Cervara di Roma
relation country
['Italian Parliament', 'country', 'Sonnen'] ['Italian Parliament', 'country', 'Cervara di Roma']
ASK WHERE { resource:Italian_Parliament property:country resource:Sonnen . resource:Italian_Parliament property:country resource:Cervara_di_Roma }
[]