Simple Question (Direct)
Simple Question
Q728338
P27
Q15617994
USER
Which administrative territory is Alberto Cisolla a civilian of ?
(Q728338,P27,c(Q15617994))
action filter_type
action find
entity Q728338
relation P27
type Q15617994
['Q728338', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q728338 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
Alberto Cisolla
action filter_type
action find
entity Alberto Cisolla
relation country of citizenship
type designation for an administrative territorial entity
['Alberto Cisolla', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Alberto_Cisolla property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q728338,P27,c(Q15617994))
action filter_type
action find
entity Q728338
relation P27
type Q15617994
[ANSWER] is Alberto Cisolla a civilian of
['Q728338', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q728338 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
Italy
Italy is Alberto Cisolla a civilian of
Italy
action filter_type
action find
entity Alberto Cisolla
relation country of citizenship
type designation for an administrative territorial entity
['Alberto Cisolla', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Alberto_Cisolla property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q728338
P19
Q15617994
USER
Which administrative territory was that person born in ?
(Q38,P19,c(Q15617994))
action filter_type
action find
entity Q728338
relation P19
type Q15617994
['Q38', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q728338 property:P19 ?j . ?j rdf:type ontology:Q15617994 }
Alberto Cisolla
action filter_type
action find
entity Alberto Cisolla
relation place of birth
type designation for an administrative territorial entity
['Italy', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Alberto_Cisolla property:place_of_birth ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q5475
SYSTEM
Treviso
Q5475
(Q38,P19,c(Q15617994))
action filter_type
action find
entity Q728338
relation P19
type Q15617994
That person was born in [ANSWER]
['Q38', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q728338 property:P19 ?j . ?j rdf:type ontology:Q15617994 }
Treviso
That person was born in Treviso
Treviso
action filter_type
action find
entity Alberto Cisolla
relation place of birth
type designation for an administrative territorial entity
['Italy', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Alberto_Cisolla property:place_of_birth ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1593318 Q728338
P19
Q15617994
USER
Or Hedwig Bender?
OR((Q728338,P19,c(Q15617994)), (Q1593318,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q728338
relation P19
action find
entity Q1593318
relation P19
type Q15617994
{'OR': [['Q728338', 'P19', {'concept': 'Q15617994'}], ['Q1593318', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?d ) { ( resource:Q728338 ) ( resource:Q1593318 ) } . ?d property:P19 ?e } . ?e rdf:type ontology:Q15617994 }
Hedwig Bender Alberto Cisolla
action filter_type
action union
action find
entity Alberto Cisolla
relation place of birth
action find
entity Hedwig Bender
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Alberto Cisolla', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Hedwig Bender', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?d ) { ( resource:Alberto_Cisolla ) ( resource:Hedwig_Bender ) } . ?d property:place_of_birth ?e } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q32 Q5475
SYSTEM
Luxembourg, Treviso
Q32 Q5475
OR((Q728338,P19,c(Q15617994)), (Q1593318,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q728338
relation P19
action find
entity Q1593318
relation P19
type Q15617994
[ANSWERS]
{'OR': [['Q728338', 'P19', {'concept': 'Q15617994'}], ['Q1593318', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?d ) { ( resource:Q728338 ) ( resource:Q1593318 ) } . ?d property:P19 ?e } . ?e rdf:type ontology:Q15617994 }
Luxembourg Treviso
Luxembourg Treviso
action filter_type
action union
action find
entity Alberto Cisolla
relation place of birth
action find
entity Hedwig Bender
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Alberto Cisolla', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Hedwig Bender', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?d ) { ( resource:Alberto_Cisolla ) ( resource:Hedwig_Bender ) } . ?d property:place_of_birth ?e } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q32
P127
Q43229
USER
Which organization is under posessision of that administrative territory ?
(c(Q43229),P127,Q32)
action filter_type
action find_reverse
entity Q32
relation P127
type Q43229
[{'concept': 'Q43229'}, 'P127', 'Q32']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q43229 . ?o property:P127 resource:Q32 }
Luxembourg
action filter_type
action find_reverse
entity Luxembourg
relation owned by
type organization
[{'concept': 'organization'}, 'owned by', 'Luxembourg']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:organization . ?o property:owned_by resource:Luxembourg }
[]
organization
Clarification for simple ques.
Q32
SYSTEM
Did you mean Luxembourg ?
Q32 Q5475
(c(Q43229),P127,Q32) (c(Q43229),P127,Q5475)
[ANSWER]
[{'concept': 'Q43229'}, 'P127', 'Q32'] [{'concept': 'Q43229'}, 'P127', 'Q5475']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q43229 . ?o property:P127 resource:Q32 }
Luxembourg Treviso
Did you mean Luxembourg ?
Luxembourg
[{'concept': 'organization'}, 'owned by', 'Luxembourg'] [{'concept': 'organization'}, 'owned by', 'Treviso']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:organization . ?o property:owned_by resource:Luxembourg }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q43229),P127,Q32)
[{'concept': 'Q43229'}, 'P127', 'Q32']
[{'concept': 'organization'}, 'owned by', 'Luxembourg']
[]
Q27893
SYSTEM
ArcelorMittal
Q27893
(c(Q43229),P127,Q32)
action filter_type
action find_reverse
entity Q32
relation P127
type Q43229
[ANSWER] is under posessision of that administrative territory
[{'concept': 'Q43229'}, 'P127', 'Q32']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q43229 . ?o property:P127 resource:Q32 }
ArcelorMittal
ArcelorMittal is under posessision of that administrative territory
ArcelorMittal
action filter_type
action find_reverse
entity Luxembourg
relation owned by
type organization
[{'concept': 'organization'}, 'owned by', 'Luxembourg']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:organization . ?o property:owned_by resource:Luxembourg }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q27893 Q32
P127
Q15617994
USER
Did Luxembourg own that organization ?
(Q27893,P127,Q32)
action is_in
entity Q32
action find
entity Q27893
relation P127
['Q27893', 'P127', 'Q32']
ASK WHERE { resource:Q27893 property:P127 resource:Q32 }
ArcelorMittal Luxembourg
action is_in
entity Luxembourg
action find
entity ArcelorMittal
relation owned by
['ArcelorMittal', 'owned by', 'Luxembourg']
ASK WHERE { resource:ArcelorMittal property:owned_by resource:Luxembourg }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q27893,P127,Q32)
action is_in
entity Q32
action find
entity Q27893
relation P127
[ANSWER]
['Q27893', 'P127', 'Q32']
ASK WHERE { resource:Q27893 property:P127 resource:Q32 }
Yes
action is_in
entity Luxembourg
action find
entity ArcelorMittal
relation owned by
['ArcelorMittal', 'owned by', 'Luxembourg']
ASK WHERE { resource:ArcelorMittal property:owned_by resource:Luxembourg }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q5475 Q38 Q622164
P17
Q15617994
USER
Is Treviso situated in Italy and Hohenahr ?
(Q5475,P17,Q38) (Q5475,P17,Q622164)
action is_in
entity Q5475
action intersection
action find_reverse
entity Q38
relation P17
action find_reverse
entity Q622164
relation P17
['Q5475', 'P17', 'Q38'] ['Q5475', 'P17', 'Q622164']
ASK WHERE { resource:Q5475 property:P17 resource:Q38 . resource:Q5475 property:P17 resource:Q622164 }
Treviso Italy Hohenahr
action is_in
entity Treviso
action intersection
action find_reverse
entity Italy
relation country
action find_reverse
entity Hohenahr
relation country
['Treviso', 'country', 'Italy'] ['Treviso', 'country', 'Hohenahr']
ASK WHERE { resource:Treviso property:country resource:Italy . resource:Treviso property:country resource:Hohenahr }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q5475,P17,Q38) (Q5475,P17,Q622164)
action is_in
entity Q5475
action intersection
action find_reverse
entity Q38
relation P17
action find_reverse
entity Q622164
relation P17
[ANSWER]
['Q5475', 'P17', 'Q38'] ['Q5475', 'P17', 'Q622164']
ASK WHERE { resource:Q5475 property:P17 resource:Q38 . resource:Q5475 property:P17 resource:Q622164 }
YES and NO respectively
action is_in
entity Treviso
action intersection
action find_reverse
entity Italy
relation country
action find_reverse
entity Hohenahr
relation country
['Treviso', 'country', 'Italy'] ['Treviso', 'country', 'Hohenahr']
ASK WHERE { resource:Treviso property:country resource:Italy . resource:Treviso property:country resource:Hohenahr }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q728338 Q23766510 Q15117302
P106
Q12737077
USER
Does Alberto Cisolla have the profession of Leader of Welsh Labour and volleyball player ?
(Q728338,P106,Q23766510) (Q728338,P106,Q15117302)
action is_in
entity Q728338
action intersection
action find_reverse
entity Q23766510
relation P106
action find_reverse
entity Q15117302
relation P106
['Q728338', 'P106', 'Q23766510'] ['Q728338', 'P106', 'Q15117302']
ASK WHERE { resource:Q728338 property:P106 resource:Q23766510 . resource:Q728338 property:P106 resource:Q15117302 }
Alberto Cisolla Leader of Welsh Labour volleyball player
action is_in
entity Alberto Cisolla
action intersection
action find_reverse
entity Leader of Welsh Labour
relation occupation
action find_reverse
entity volleyball player
relation occupation
['Alberto Cisolla', 'occupation', 'Leader of Welsh Labour'] ['Alberto Cisolla', 'occupation', 'volleyball player']
ASK WHERE { resource:Alberto_Cisolla property:occupation resource:Leader_of_Welsh_Labour . resource:Alberto_Cisolla property:occupation resource:volleyball_player }
[]
occupation
SYSTEM
NO and YES respectively
(Q728338,P106,Q23766510) (Q728338,P106,Q15117302)
action is_in
entity Q728338
action intersection
action find_reverse
entity Q23766510
relation P106
action find_reverse
entity Q15117302
relation P106
[ANSWER]
['Q728338', 'P106', 'Q23766510'] ['Q728338', 'P106', 'Q15117302']
ASK WHERE { resource:Q728338 property:P106 resource:Q23766510 . resource:Q728338 property:P106 resource:Q15117302 }
NO and YES respectively
action is_in
entity Alberto Cisolla
action intersection
action find_reverse
entity Leader of Welsh Labour
relation occupation
action find_reverse
entity volleyball player
relation occupation
['Alberto Cisolla', 'occupation', 'Leader of Welsh Labour'] ['Alberto Cisolla', 'occupation', 'volleyball player']
ASK WHERE { resource:Alberto_Cisolla property:occupation resource:Leader_of_Welsh_Labour . resource:Alberto_Cisolla property:occupation resource:volleyball_player }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q32
P463
Q1048835 Q56061
USER
How many political territories or administrative territories were Luxembourg a member of ?
(Q32,P463,c(Q1048835)) (Q32,P463,c(Q56061))
action count
action union
action filter_type
action find
entity Q32
relation P463
type Q1048835
action filter_type
action find
entity Q32
relation P463
type Q56061
['Q32', 'P463', {'concept': 'Q1048835'}] ['Q32', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { { resource:Q32 property:P463 ?v . ?v rdf:type ontology:Q56061 } UNION { resource:Q32 property:P463 ?v . ?v rdf:type ontology:Q1048835 } }
Luxembourg
action count
action union
action filter_type
action find
entity Luxembourg
relation member of
type political territorial entity
action filter_type
action find
entity Luxembourg
relation member of
type administrative territorial entity
['Luxembourg', 'member of', {'concept': 'political territorial entity'}] ['Luxembourg', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { { resource:Luxembourg property:member_of ?v . ?v rdf:type ontology:administrative_territorial_entity } UNION { resource:Luxembourg property:member_of ?v . ?v rdf:type ontology:political_territorial_entity } }
[]
political territorial entity administrative territorial entity
SYSTEM
2
Q13116 Q458
(Q32,P463,c(Q1048835)) (Q32,P463,c(Q56061))
action count
action union
action filter_type
action find
entity Q32
relation P463
type Q1048835
action filter_type
action find
entity Q32
relation P463
type Q56061
[ANSWER]
['Q32', 'P463', {'concept': 'Q1048835'}] ['Q32', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { { resource:Q32 property:P463 ?v . ?v rdf:type ontology:Q56061 } UNION { resource:Q32 property:P463 ?v . ?v rdf:type ontology:Q1048835 } }
Benelux European Union
2
action count
action union
action filter_type
action find
entity Luxembourg
relation member of
type political territorial entity
action filter_type
action find
entity Luxembourg
relation member of
type administrative territorial entity
['Luxembourg', 'member of', {'concept': 'political territorial entity'}] ['Luxembourg', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { { resource:Luxembourg property:member_of ?v . ?v rdf:type ontology:administrative_territorial_entity } UNION { resource:Luxembourg property:member_of ?v . ?v rdf:type ontology:political_territorial_entity } }
[]