Simple Question (Direct)
Simple Question
Q272518
P166
Q2003221
USER
What was won by Juliet Stevenson ?
(Q272518,P166,c(Q2003221))
action filter_type
action find
entity Q272518
relation P166
type Q2003221
['Q272518', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?l WHERE { resource:Q272518 property:P166 ?l . ?l rdf:type ontology:Q2003221 }
Juliet Stevenson
action filter_type
action find
entity Juliet Stevenson
relation award received
type chivalric order
['Juliet Stevenson', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?l WHERE { resource:Juliet_Stevenson property:award_received ?l . ?l rdf:type ontology:chivalric_order }
[]
chivalric order
Q12201477
SYSTEM
Commander of the Order of the British Empire
Q12201477
(Q272518,P166,c(Q2003221))
action filter_type
action find
entity Q272518
relation P166
type Q2003221
The [ANSWER] was won by Juliet Stevenson
['Q272518', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?l WHERE { resource:Q272518 property:P166 ?l . ?l rdf:type ontology:Q2003221 }
Commander of the Order of the British Empire
The Commander of the Order of the British Empire was won by Juliet Stevenson
Commander of the Order of the British Empire
action filter_type
action find
entity Juliet Stevenson
relation award received
type chivalric order
['Juliet Stevenson', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?l WHERE { resource:Juliet_Stevenson property:award_received ?l . ?l rdf:type ontology:chivalric_order }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q12201477 Q54032
P17
Q15617994
USER
Is that chivalric order situated in Trebisacce ?
(Q12201477,P17,Q54032)
action is_in
entity Q54032
action find
entity Q12201477
relation P17
['Q12201477', 'P17', 'Q54032']
ASK WHERE { resource:Q12201477 property:P17 resource:Q54032 }
Commander of the Order of the British Empire Trebisacce
action is_in
entity Trebisacce
action find
entity Commander of the Order of the British Empire
relation country
['Commander of the Order of the British Empire', 'country', 'Trebisacce']
ASK WHERE { resource:Commander_of_the_Order_of_the_British_Empire property:country resource:Trebisacce }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q12201477,P17,Q54032)
action is_in
entity Q54032
action find
entity Q12201477
relation P17
[ANSWER]
['Q12201477', 'P17', 'Q54032']
ASK WHERE { resource:Q12201477 property:P17 resource:Q54032 }
No
action is_in
entity Trebisacce
action find
entity Commander of the Order of the British Empire
relation country
['Commander of the Order of the British Empire', 'country', 'Trebisacce']
ASK WHERE { resource:Commander_of_the_Order_of_the_British_Empire property:country resource:Trebisacce }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q272518 Q371560 Q5118274
P27
Q15617994
USER
Is Juliet Stevenson a native of Hambühren and Churchville-Chili Central School District ?
(Q272518,P27,Q371560) (Q272518,P27,Q5118274)
action is_in
entity Q272518
action intersection
action find_reverse
entity Q371560
relation P27
action find_reverse
entity Q5118274
relation P27
['Q272518', 'P27', 'Q371560'] ['Q272518', 'P27', 'Q5118274']
ASK WHERE { resource:Q272518 property:P27 resource:Q371560 . resource:Q272518 property:P27 resource:Q5118274 }
Juliet Stevenson Hambühren Churchville-Chili Central School District
action is_in
entity Juliet Stevenson
action intersection
action find_reverse
entity Hambühren
relation country of citizenship
action find_reverse
entity Churchville-Chili Central School District
relation country of citizenship
['Juliet Stevenson', 'country of citizenship', 'Hambühren'] ['Juliet Stevenson', 'country of citizenship', 'Churchville-Chili Central School District']
ASK WHERE { resource:Juliet_Stevenson property:country_of_citizenship resource:Hambühren . resource:Juliet_Stevenson property:country_of_citizenship resource:Churchville-Chili_Central_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q272518,P27,Q371560) (Q272518,P27,Q5118274)
action is_in
entity Q272518
action intersection
action find_reverse
entity Q371560
relation P27
action find_reverse
entity Q5118274
relation P27
[ANSWER]
['Q272518', 'P27', 'Q371560'] ['Q272518', 'P27', 'Q5118274']
ASK WHERE { resource:Q272518 property:P27 resource:Q371560 . resource:Q272518 property:P27 resource:Q5118274 }
No
action is_in
entity Juliet Stevenson
action intersection
action find_reverse
entity Hambühren
relation country of citizenship
action find_reverse
entity Churchville-Chili Central School District
relation country of citizenship
['Juliet Stevenson', 'country of citizenship', 'Hambühren'] ['Juliet Stevenson', 'country of citizenship', 'Churchville-Chili Central School District']
ASK WHERE { resource:Juliet_Stevenson property:country_of_citizenship resource:Hambühren . resource:Juliet_Stevenson property:country_of_citizenship resource:Churchville-Chili_Central_School_District }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q10309097 Q272518
P27
Q15617994
USER
Which administrative territories are Juliet Stevenson or José Carlos Machado a civilian of ?
OR((Q272518,P27,c(Q15617994)), (Q10309097,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q272518
relation P27
action find
entity Q10309097
relation P27
type Q15617994
{'OR': [['Q272518', 'P27', {'concept': 'Q15617994'}], ['Q10309097', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?u ) { ( resource:Q272518 ) ( resource:Q10309097 ) } . ?u property:P27 ?c } . ?c rdf:type ontology:Q15617994 }
José Carlos Machado Juliet Stevenson
action filter_type
action union
action find
entity Juliet Stevenson
relation country of citizenship
action find
entity José Carlos Machado
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Juliet Stevenson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['José Carlos Machado', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?u ) { ( resource:Juliet_Stevenson ) ( resource:José_Carlos_Machado ) } . ?u property:country_of_citizenship ?c } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q145
SYSTEM
Brazil, United Kingdom
Q155 Q145
OR((Q272518,P27,c(Q15617994)), (Q10309097,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q272518
relation P27
action find
entity Q10309097
relation P27
type Q15617994
[ANSWERS] are Juliet Stevenson or José Carlos Machado a civilian of
{'OR': [['Q272518', 'P27', {'concept': 'Q15617994'}], ['Q10309097', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?u ) { ( resource:Q272518 ) ( resource:Q10309097 ) } . ?u property:P27 ?c } . ?c rdf:type ontology:Q15617994 }
Brazil United Kingdom
Brazil and United Kingdom are Juliet Stevenson or José Carlos Machado a civilian of
Brazil United Kingdom
action filter_type
action union
action find
entity Juliet Stevenson
relation country of citizenship
action find
entity José Carlos Machado
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Juliet Stevenson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['José Carlos Machado', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?u ) { ( resource:Juliet_Stevenson ) ( resource:José_Carlos_Machado ) } . ?u property:country_of_citizenship ?c } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5000039
P530
Q15617994
USER
Do Burnrigg have diplomatic relations with those ones ?
(Q5000039,P530,Q155) (Q5000039,P530,Q145)
action is_in
entity prev_answer
action find
entity Q5000039
relation P530
['Q5000039', 'P530', 'Q155'] ['Q5000039', 'P530', 'Q145']
ASK WHERE { VALUES ( ?a ) { ( resource:Q155 ) ( resource:Q145 ) } . resource:Q5000039 property:P530 ?a }
Burnrigg
action is_in
entity prev_answer
action find
entity Burnrigg
relation diplomatic relation
['Burnrigg', 'diplomatic relation', 'Brazil'] ['Burnrigg', 'diplomatic relation', 'United Kingdom']
ASK WHERE { VALUES ( ?a ) { ( resource:Brazil ) ( resource:United_Kingdom ) } . resource:Burnrigg property:diplomatic_relation ?a }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q5000039,P530,Q155) (Q5000039,P530,Q145)
action is_in
entity prev_answer
action find
entity Q5000039
relation P530
[ANSWER]
['Q5000039', 'P530', 'Q155'] ['Q5000039', 'P530', 'Q145']
ASK WHERE { VALUES ( ?a ) { ( resource:Q155 ) ( resource:Q145 ) } . resource:Q5000039 property:P530 ?a }
No
action is_in
entity prev_answer
action find
entity Burnrigg
relation diplomatic relation
['Burnrigg', 'diplomatic relation', 'Brazil'] ['Burnrigg', 'diplomatic relation', 'United Kingdom']
ASK WHERE { VALUES ( ?a ) { ( resource:Brazil ) ( resource:United_Kingdom ) } . resource:Burnrigg property:diplomatic_relation ?a }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q155 Q408
P530
Q1048835
USER
How many political territories are known to have diplomatic connections with Brazil and Australia ?
(c(Q1048835),P530,Q155) (c(Q1048835),P530,Q408)
action count
action intersection
action filter_type
action find_reverse
entity Q155
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q408
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q155'] [{'concept': 'Q1048835'}, 'P530', 'Q408']
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:P530 resource:Q155 . ?z rdf:type ontology:Q1048835 . ?z property:P530 resource:Q408 . ?z rdf:type ontology:Q1048835 }
Brazil Australia
action count
action intersection
action filter_type
action find_reverse
entity Brazil
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Australia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Brazil'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Australia']
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:diplomatic_relation resource:Brazil . ?z rdf:type ontology:political_territorial_entity . ?z property:diplomatic_relation resource:Australia . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
4
Q16 Q766 Q183 Q35
(c(Q1048835),P530,Q155) (c(Q1048835),P530,Q408)
action count
action intersection
action filter_type
action find_reverse
entity Q155
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q408
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q155'] [{'concept': 'Q1048835'}, 'P530', 'Q408']
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:P530 resource:Q155 . ?z rdf:type ontology:Q1048835 . ?z property:P530 resource:Q408 . ?z rdf:type ontology:Q1048835 }
Canada Jamaica Germany Denmark
4
action count
action intersection
action filter_type
action find_reverse
entity Brazil
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Australia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Brazil'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Australia']
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:diplomatic_relation resource:Brazil . ?z rdf:type ontology:political_territorial_entity . ?z property:diplomatic_relation resource:Australia . ?z rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q40980 Q54032
P47
Q15617994
USER
Which administrative territories share border with Trebisacce or Renate ?
OR((c(Q15617994),P47,Q54032), (c(Q15617994),P47,Q40980))
action filter_type
action union
action find_reverse
entity Q54032
relation P47
action find_reverse
entity Q40980
relation P47
type Q15617994
{'OR': [[{'concept': 'Q15617994'}, 'P47', 'Q54032'], [{'concept': 'Q15617994'}, 'P47', 'Q40980']]}
SELECT DISTINCT ?h WHERE { { { ?h property:P47 resource:Q54032 } UNION { ?h property:P47 resource:Q40980 } } . ?h rdf:type ontology:Q15617994 }
Renate Trebisacce
action filter_type
action union
action find_reverse
entity Trebisacce
relation shares border with
action find_reverse
entity Renate
relation shares border with
type designation for an administrative territorial entity
{'OR': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Trebisacce'], [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Renate']]}
SELECT DISTINCT ?h WHERE { { { ?h property:shares_border_with resource:Trebisacce } UNION { ?h property:shares_border_with resource:Renate } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q53937 Q39535 Q53823 Q54037 Q42281 Q40502 Q39423 Q42928
SYSTEM
Plataci, Veduggio con Colzano, Albidona, Villapiana, Monticello Brianza, Besana in Brianza, Briosco, Cassago Brianza
Q53937 Q39535 Q53823 Q54037 Q42281 Q40502 Q39423 Q42928
OR((c(Q15617994),P47,Q54032), (c(Q15617994),P47,Q40980))
action filter_type
action union
action find_reverse
entity Q54032
relation P47
action find_reverse
entity Q40980
relation P47
type Q15617994
[ANSWERS] share border with Trebisacce or Renate
{'OR': [[{'concept': 'Q15617994'}, 'P47', 'Q54032'], [{'concept': 'Q15617994'}, 'P47', 'Q40980']]}
SELECT DISTINCT ?h WHERE { { { ?h property:P47 resource:Q54032 } UNION { ?h property:P47 resource:Q40980 } } . ?h rdf:type ontology:Q15617994 }
Plataci Veduggio con Colzano Albidona Villapiana Monticello Brianza Besana in Brianza Briosco Cassago Brianza
Plataci, Veduggio con Colzano, Albidona, Villapiana, Monticello Brianza, Besana in Brianza, Briosco and Cassago Brianza share border with Trebisacce or Renate
Plataci Veduggio con Colzano Albidona Villapiana Monticello Brianza Besana in Brianza Briosco Cassago Brianza
action filter_type
action union
action find_reverse
entity Trebisacce
relation shares border with
action find_reverse
entity Renate
relation shares border with
type designation for an administrative territorial entity
{'OR': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Trebisacce'], [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Renate']]}
SELECT DISTINCT ?h WHERE { { { ?h property:shares_border_with resource:Trebisacce } UNION { ?h property:shares_border_with resource:Renate } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q53937
P19
Q502895
USER
Which person was born at that administrative territory ?
(c(Q502895),P19,Q53937)
action filter_type
action find_reverse
entity Q53937
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q53937']
SELECT DISTINCT ?c WHERE { ?c property:P19 resource:Q53937 . ?c rdf:type ontology:Q502895 }
Plataci
action filter_type
action find_reverse
entity Plataci
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Plataci']
SELECT DISTINCT ?c WHERE { ?c property:place_of_birth resource:Plataci . ?c rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q40502
SYSTEM
Did you mean Besana in Brianza ?
Q53937 Q39535 Q53823 Q54037 Q42281 Q40502 Q39423 Q42928
(c(Q502895),P19,Q53937) (c(Q502895),P19,Q39535) (c(Q502895),P19,Q53823) (c(Q502895),P19,Q54037) (c(Q502895),P19,Q42281) (c(Q502895),P19,Q40502) (c(Q502895),P19,Q39423) (c(Q502895),P19,Q42928)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q53937'] [{'concept': 'Q502895'}, 'P19', 'Q39535'] [{'concept': 'Q502895'}, 'P19', 'Q53823'] [{'concept': 'Q502895'}, 'P19', 'Q54037'] [{'concept': 'Q502895'}, 'P19', 'Q42281'] [{'concept': 'Q502895'}, 'P19', 'Q40502'] [{'concept': 'Q502895'}, 'P19', 'Q39423'] [{'concept': 'Q502895'}, 'P19', 'Q42928']
SELECT DISTINCT ?c WHERE { ?c property:P19 resource:Q53937 . ?c rdf:type ontology:Q502895 }
Plataci Veduggio con Colzano Albidona Villapiana Monticello Brianza Besana in Brianza Briosco Cassago Brianza
Did you mean Besana in Brianza ?
Besana in Brianza
[{'concept': 'common name'}, 'place of birth', 'Plataci'] [{'concept': 'common name'}, 'place of birth', 'Veduggio con Colzano'] [{'concept': 'common name'}, 'place of birth', 'Albidona'] [{'concept': 'common name'}, 'place of birth', 'Villapiana'] [{'concept': 'common name'}, 'place of birth', 'Monticello Brianza'] [{'concept': 'common name'}, 'place of birth', 'Besana in Brianza'] [{'concept': 'common name'}, 'place of birth', 'Briosco'] [{'concept': 'common name'}, 'place of birth', 'Cassago Brianza']
SELECT DISTINCT ?c WHERE { ?c property:place_of_birth resource:Plataci . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Plataci. Could you tell me the answer for that?
(c(Q502895),P19,Q53937)
Q53937
[{'concept': 'Q502895'}, 'P19', 'Q53937']
[{'concept': 'common name'}, 'place of birth', 'Plataci']
[]
Q3848377
SYSTEM
Mario Brunetti
Q3848377
(c(Q502895),P19,Q53937)
action filter_type
action find_reverse
entity Q53937
relation P19
type Q502895
[ANSWER] was born at that administrative territory
[{'concept': 'Q502895'}, 'P19', 'Q53937']
SELECT DISTINCT ?c WHERE { ?c property:P19 resource:Q53937 . ?c rdf:type ontology:Q502895 }
Mario Brunetti
Mario Brunetti was born at that administrative territory
Mario Brunetti
action filter_type
action find_reverse
entity Plataci
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Plataci']
SELECT DISTINCT ?c WHERE { ?c property:place_of_birth resource:Plataci . ?c rdf:type ontology:common_name }
[]