Simple Question (Direct)
Simple Question
Q944910
P607
Q198
USER
What battle was Alexey Kaledin a part of ?
(Q944910,P607,c(Q198))
action filter_type
action find
entity Q944910
relation P607
type Q198
['Q944910', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?c WHERE { resource:Q944910 property:P607 ?c . ?c rdf:type ontology:Q198 }
Alexey Kaledin
action filter_type
action find
entity Alexey Kaledin
relation conflict
type war
['Alexey Kaledin', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?c WHERE { resource:Alexey_Kaledin property:conflict ?c . ?c rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(Q944910,P607,c(Q198))
action filter_type
action find
entity Q944910
relation P607
type Q198
Alexey Kaledin was in [ANSWER]
['Q944910', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?c WHERE { resource:Q944910 property:P607 ?c . ?c rdf:type ontology:Q198 }
World War I
Alexey Kaledin was in World War I
World War I
action filter_type
action find
entity Alexey Kaledin
relation conflict
type war
['Alexey Kaledin', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?c WHERE { resource:Alexey_Kaledin property:conflict ?c . ?c rdf:type ontology:war }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q944910
P19
Q56061
USER
Which administrative territory is the place of birth of Alexey Kaledin ?
(Q944910,P19,c(Q56061))
action filter_type
action find
entity Q944910
relation P19
type Q56061
['Q944910', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q944910 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Alexey Kaledin
action filter_type
action find
entity Alexey Kaledin
relation place of birth
type administrative territorial entity
['Alexey Kaledin', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Alexey_Kaledin property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q914
SYSTEM
Volgograd
Q914
(Q944910,P19,c(Q56061))
action filter_type
action find
entity Q944910
relation P19
type Q56061
[ANSWER] is the place of birth of Alexey Kaledin
['Q944910', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q944910 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Volgograd
Volgograd is the place of birth of Alexey Kaledin
Volgograd
action filter_type
action find
entity Alexey Kaledin
relation place of birth
type administrative territorial entity
['Alexey Kaledin', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Alexey_Kaledin property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1275214
Q56061
USER
And what about Harland Williams?
(Q1275214,P19,c(Q56061))
action filter_type
action find
entity Q1275214
relation P19
type Q56061
['Q1275214', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . resource:Q1275214 property:P19 ?t }
Harland Williams
action filter_type
action find
entity Harland Williams
relation place of birth
type administrative territorial entity
['Harland Williams', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . resource:Harland_Williams property:place_of_birth ?t }
[]
administrative territorial entity
Q172
SYSTEM
Toronto
Q172
(Q1275214,P19,c(Q56061))
action filter_type
action find
entity Q1275214
relation P19
type Q56061
[ANSWER]
['Q1275214', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . resource:Q1275214 property:P19 ?t }
Toronto
Toronto
action filter_type
action find
entity Harland Williams
relation place of birth
type administrative territorial entity
['Harland Williams', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . resource:Harland_Williams property:place_of_birth ?t }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q172 Q1899 Q2900
P190
Q515
USER
Is that administrative territory a sister city of Kyiv and Quito ?
(Q172,P190,Q1899) (Q172,P190,Q2900)
action is_in
entity Q172
action intersection
action find_reverse
entity Q1899
relation P190
action find_reverse
entity Q2900
relation P190
['Q172', 'P190', 'Q1899'] ['Q172', 'P190', 'Q2900']
ASK WHERE { resource:Q172 property:P190 resource:Q1899 . resource:Q172 property:P190 resource:Q2900 }
Toronto Kyiv Quito
action is_in
entity Toronto
action intersection
action find_reverse
entity Kyiv
relation sister city
action find_reverse
entity Quito
relation sister city
['Toronto', 'sister city', 'Kyiv'] ['Toronto', 'sister city', 'Quito']
ASK WHERE { resource:Toronto property:sister_city resource:Kyiv . resource:Toronto property:sister_city resource:Quito }
[]
city
SYSTEM
YES
(Q172,P190,Q1899) (Q172,P190,Q2900)
action is_in
entity Q172
action intersection
action find_reverse
entity Q1899
relation P190
action find_reverse
entity Q2900
relation P190
[ANSWER]
['Q172', 'P190', 'Q1899'] ['Q172', 'P190', 'Q2900']
ASK WHERE { resource:Q172 property:P190 resource:Q1899 . resource:Q172 property:P190 resource:Q2900 }
Yes
action is_in
entity Toronto
action intersection
action find_reverse
entity Kyiv
relation sister city
action find_reverse
entity Quito
relation sister city
['Toronto', 'sister city', 'Kyiv'] ['Toronto', 'sister city', 'Quito']
ASK WHERE { resource:Toronto property:sister_city resource:Kyiv . resource:Toronto property:sister_city resource:Quito }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4540 Q1275214
P47 P27
Q1048835
USER
Which political territories are Harland Williams a civilian of or have a shared border with Eschen ?
OR((Q1275214,P27,c(Q1048835)), (Q4540,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1275214
relation P27
action find
entity Q4540
relation P47
type Q1048835
{'OR': [['Q1275214', 'P27', {'concept': 'Q1048835'}], ['Q4540', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1275214 property:P27 ?s } UNION { resource:Q4540 property:P47 ?s } } . ?s rdf:type ontology:Q1048835 }
Eschen Harland Williams
action filter_type
action union
action find
entity Harland Williams
relation country of citizenship
action find
entity Eschen
relation shares border with
type political territorial entity
{'OR': [['Harland Williams', 'country of citizenship', {'concept': 'political territorial entity'}], ['Eschen', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Harland_Williams property:country_of_citizenship ?s } UNION { resource:Eschen property:shares_border_with ?s } } . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q49662 Q49660 Q49661 Q49657 Q49655
SYSTEM
Canada, Gamprin, Planken, Mauren, Schaan, Schellenberg
Q16 Q49662 Q49660 Q49661 Q49657 Q49655
OR((Q1275214,P27,c(Q1048835)), (Q4540,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1275214
relation P27
action find
entity Q4540
relation P47
type Q1048835
[ANSWERS] are Harland Williams a civilian of or have a shared border with Eschen
{'OR': [['Q1275214', 'P27', {'concept': 'Q1048835'}], ['Q4540', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1275214 property:P27 ?s } UNION { resource:Q4540 property:P47 ?s } } . ?s rdf:type ontology:Q1048835 }
Canada Gamprin Planken Mauren Schaan Schellenberg
Canada, Gamprin, Planken, Mauren, Schaan and Schellenberg are Harland Williams a civilian of or have a shared border with Eschen
Canada Gamprin Planken Mauren Schaan Schellenberg
action filter_type
action union
action find
entity Harland Williams
relation country of citizenship
action find
entity Eschen
relation shares border with
type political territorial entity
{'OR': [['Harland Williams', 'country of citizenship', {'concept': 'political territorial entity'}], ['Eschen', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Harland_Williams property:country_of_citizenship ?s } UNION { resource:Eschen property:shares_border_with ?s } } . ?s rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1770837 Q49662
P47
Q1048835
USER
Which political territories have an adjacent border with Gamprin or Algerri ?
OR((c(Q1048835),P47,Q49662), (c(Q1048835),P47,Q1770837))
action filter_type
action union
action find_reverse
entity Q49662
relation P47
action find_reverse
entity Q1770837
relation P47
type Q1048835
{'OR': [[{'concept': 'Q1048835'}, 'P47', 'Q49662'], [{'concept': 'Q1048835'}, 'P47', 'Q1770837']]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?m ) { ( resource:Q1770837 ) ( resource:Q49662 ) } . ?q property:P47 ?m } . ?q rdf:type ontology:Q1048835 }
Algerri Gamprin
action filter_type
action union
action find_reverse
entity Gamprin
relation shares border with
action find_reverse
entity Algerri
relation shares border with
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'shares border with', 'Gamprin'], [{'concept': 'political territorial entity'}, 'shares border with', 'Algerri']]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?m ) { ( resource:Algerri ) ( resource:Gamprin ) } . ?q property:shares_border_with ?m } . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1646906 Q1770851 Q49655 Q1770869 Q1646865 Q1646570 Q1646756 Q4540 Q49657 Q49660
SYSTEM
Some of them are Os de Balaguer, Castelló de Farfanya, Schellenberg, Albesa, Alfarràs, Almenar, Ivars de Noguera, Eschen, Schaan, Planken
Q1646865 Q1646756 Q49659 Q1770869 Q4540 Q1770851 Q1646906 Q49660 Q49657 Q49655 Q1646570
OR((c(Q1048835),P47,Q49662), (c(Q1048835),P47,Q1770837))
action filter_type
action union
action find_reverse
entity Q49662
relation P47
action find_reverse
entity Q1770837
relation P47
type Q1048835
[ANSWERS] have an adjacent border with Gamprin or Algerri
{'OR': [[{'concept': 'Q1048835'}, 'P47', 'Q49662'], [{'concept': 'Q1048835'}, 'P47', 'Q1770837']]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?m ) { ( resource:Q1770837 ) ( resource:Q49662 ) } . ?q property:P47 ?m } . ?q rdf:type ontology:Q1048835 }
Alfarràs Ivars de Noguera Ruggell Albesa Eschen Castelló de Farfanya Os de Balaguer Planken Schaan Schellenberg Almenar
Os de Balaguer, Castelló de Farfanya, Schellenberg, Albesa, Alfarràs, Almenar, Ivars de Noguera, Eschen, Schaan and Planken have an adjacent border with Gamprin or Algerri
Os de Balaguer Castelló de Farfanya Schellenberg Albesa Alfarràs Almenar Ivars de Noguera Eschen Schaan Planken
action filter_type
action union
action find_reverse
entity Gamprin
relation shares border with
action find_reverse
entity Algerri
relation shares border with
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'shares border with', 'Gamprin'], [{'concept': 'political territorial entity'}, 'shares border with', 'Algerri']]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?m ) { ( resource:Algerri ) ( resource:Gamprin ) } . ?q property:shares_border_with ?m } . ?q rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1646906 Q1770851 Q49655 Q1770869 Q1646865 Q1646570 Q1646756 Q4540 Q49657 Q49660
P47
Q1048835
USER
Which political territories share border with Os de Balaguer, Castelló de Farfanya, Schellenberg, Albesa, Alfarràs, Almenar, Ivars de Noguera, Eschen, Schaan and Planken ?
(Q1646906,P47,c(Q1048835)) (Q1770851,P47,c(Q1048835)) (Q49655,P47,c(Q1048835)) (Q1770869,P47,c(Q1048835)) (Q1646865,P47,c(Q1048835)) (Q1646570,P47,c(Q1048835)) (Q1646756,P47,c(Q1048835)) (Q4540,P47,c(Q1048835)) (Q49657,P47,c(Q1048835)) (Q49660,P47,c(Q1048835))
action union
action filter_type
action find
entity Q1646906
relation P47
type Q1048835
action filter_type
action find
entity Q1770851
relation P47
type Q1048835
action filter_type
action find
entity Q49655
relation P47
type Q1048835
action filter_type
action find
entity Q1770869
relation P47
type Q1048835
action filter_type
action find
entity Q1646865
relation P47
type Q1048835
action filter_type
action find
entity Q1646570
relation P47
type Q1048835
action filter_type
action find
entity Q1646756
relation P47
type Q1048835
action filter_type
action find
entity Q4540
relation P47
type Q1048835
action filter_type
action find
entity Q49657
relation P47
type Q1048835
action filter_type
action find
entity Q49660
relation P47
type Q1048835
['Q1646906', 'P47', {'concept': 'Q1048835'}] ['Q1770851', 'P47', {'concept': 'Q1048835'}] ['Q49655', 'P47', {'concept': 'Q1048835'}] ['Q1770869', 'P47', {'concept': 'Q1048835'}] ['Q1646865', 'P47', {'concept': 'Q1048835'}] ['Q1646570', 'P47', {'concept': 'Q1048835'}] ['Q1646756', 'P47', {'concept': 'Q1048835'}] ['Q4540', 'P47', {'concept': 'Q1048835'}] ['Q49657', 'P47', {'concept': 'Q1048835'}] ['Q49660', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { { resource:Q1770851 property:P47 ?z . ?z rdf:type ontology:Q1048835 } UNION { resource:Q1646906 property:P47 ?z . ?z rdf:type ontology:Q1048835 } }
Os de Balaguer Castelló de Farfanya Schellenberg Albesa Alfarràs Almenar Ivars de Noguera Eschen Schaan Planken
action union
action filter_type
action find
entity Os de Balaguer
relation shares border with
type political territorial entity
action filter_type
action find
entity Castelló de Farfanya
relation shares border with
type political territorial entity
action filter_type
action find
entity Schellenberg
relation shares border with
type political territorial entity
action filter_type
action find
entity Albesa
relation shares border with
type political territorial entity
action filter_type
action find
entity Alfarràs
relation shares border with
type political territorial entity
action filter_type
action find
entity Almenar
relation shares border with
type political territorial entity
action filter_type
action find
entity Ivars de Noguera
relation shares border with
type political territorial entity
action filter_type
action find
entity Eschen
relation shares border with
type political territorial entity
action filter_type
action find
entity Schaan
relation shares border with
type political territorial entity
action filter_type
action find
entity Planken
relation shares border with
type political territorial entity
['Os de Balaguer', 'shares border with', {'concept': 'political territorial entity'}] ['Castelló de Farfanya', 'shares border with', {'concept': 'political territorial entity'}] ['Schellenberg', 'shares border with', {'concept': 'political territorial entity'}] ['Albesa', 'shares border with', {'concept': 'political territorial entity'}] ['Alfarràs', 'shares border with', {'concept': 'political territorial entity'}] ['Almenar', 'shares border with', {'concept': 'political territorial entity'}] ['Ivars de Noguera', 'shares border with', {'concept': 'political territorial entity'}] ['Eschen', 'shares border with', {'concept': 'political territorial entity'}] ['Schaan', 'shares border with', {'concept': 'political territorial entity'}] ['Planken', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { { resource:Castelló_de_Farfanya property:shares_border_with ?z . ?z rdf:type ontology:political_territorial_entity } UNION { resource:Os_de_Balaguer property:shares_border_with ?z . ?z rdf:type ontology:political_territorial_entity } }
[]
political territorial entity
Q696797 Q696797 Q1646906
SYSTEM
Balaguer for 1st, 2nd, Os de Balaguer for 3rd
Q804776 Q1646756 Q984673 Q1995286 Q1770851 Q1648087 Q426376 Q696797 Q372127 Q1770837 Q985141 Q696797 Q1646906 Q1770837 Q1770869 Q1769588 Q4540 Q49662 Q49659 Q49661 Q1769588 Q1133160 Q1770851 Q1765384 Q1902101 Q1770837 Q1646570 Q987426 Q1770837 Q956462 Q1646756 Q1646570 Q1646865 Q1626921 Q1770869 Q1133160 Q984400 Q1770837 Q956462 Q987426 Q1646906 Q1770837 Q804776 Q1646865 Q49662 Q49660 Q49661 Q49657 Q49655 Q4540 Q49662 Q49663 Q49660 Q49654 Q49651 Q4540 Q49662 Q49663 Q49657 Q49651
(Q1646906,P47,c(Q1048835)) (Q1770851,P47,c(Q1048835)) (Q49655,P47,c(Q1048835)) (Q1770869,P47,c(Q1048835)) (Q1646865,P47,c(Q1048835)) (Q1646570,P47,c(Q1048835)) (Q1646756,P47,c(Q1048835)) (Q4540,P47,c(Q1048835)) (Q49657,P47,c(Q1048835)) (Q49660,P47,c(Q1048835))
action union
action filter_type
action find
entity Q1646906
relation P47
type Q1048835
action filter_type
action find
entity Q1770851
relation P47
type Q1048835
action filter_type
action find
entity Q49655
relation P47
type Q1048835
action filter_type
action find
entity Q1770869
relation P47
type Q1048835
action filter_type
action find
entity Q1646865
relation P47
type Q1048835
action filter_type
action find
entity Q1646570
relation P47
type Q1048835
action filter_type
action find
entity Q1646756
relation P47
type Q1048835
action filter_type
action find
entity Q4540
relation P47
type Q1048835
action filter_type
action find
entity Q49657
relation P47
type Q1048835
action filter_type
action find
entity Q49660
relation P47
type Q1048835
[ANSWERS]
['Q1646906', 'P47', {'concept': 'Q1048835'}] ['Q1770851', 'P47', {'concept': 'Q1048835'}] ['Q49655', 'P47', {'concept': 'Q1048835'}] ['Q1770869', 'P47', {'concept': 'Q1048835'}] ['Q1646865', 'P47', {'concept': 'Q1048835'}] ['Q1646570', 'P47', {'concept': 'Q1048835'}] ['Q1646756', 'P47', {'concept': 'Q1048835'}] ['Q4540', 'P47', {'concept': 'Q1048835'}] ['Q49657', 'P47', {'concept': 'Q1048835'}] ['Q49660', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { { resource:Q1770851 property:P47 ?z . ?z rdf:type ontology:Q1048835 } UNION { resource:Q1646906 property:P47 ?z . ?z rdf:type ontology:Q1048835 } }
Baldellou Ivars de Noguera Viacamp y Litera Camarasa Castelló de Farfanya Les Avellanes i Santa Linya Estopiñán del Castillo Balaguer Àger Algerri Camporrélls Balaguer Os de Balaguer Algerri Albesa Menàrguens Eschen Gamprin Ruggell Mauren Menàrguens Alguaire Castelló de Farfanya Torrelameu La Portella Algerri Almenar Castillonroy Algerri Albelda Ivars de Noguera Almenar Alfarràs Almacelles Albesa Alguaire Alcampell Algerri Albelda Castillonroy Os de Balaguer Algerri Baldellou Alfarràs Gamprin Planken Mauren Schaan Schellenberg Eschen Gamprin Balzers Planken Triesen Triesenberg Eschen Gamprin Balzers Schaan Triesenberg
Balaguer, Balaguer and Os de Balaguer share border with Os de Balaguer, Castelló de Farfanya, Schellenberg, Albesa, Alfarràs, Almenar, Ivars de Noguera, Eschen, Schaan and Planken
Balaguer Balaguer Os de Balaguer
action union
action filter_type
action find
entity Os de Balaguer
relation shares border with
type political territorial entity
action filter_type
action find
entity Castelló de Farfanya
relation shares border with
type political territorial entity
action filter_type
action find
entity Schellenberg
relation shares border with
type political territorial entity
action filter_type
action find
entity Albesa
relation shares border with
type political territorial entity
action filter_type
action find
entity Alfarràs
relation shares border with
type political territorial entity
action filter_type
action find
entity Almenar
relation shares border with
type political territorial entity
action filter_type
action find
entity Ivars de Noguera
relation shares border with
type political territorial entity
action filter_type
action find
entity Eschen
relation shares border with
type political territorial entity
action filter_type
action find
entity Schaan
relation shares border with
type political territorial entity
action filter_type
action find
entity Planken
relation shares border with
type political territorial entity
['Os de Balaguer', 'shares border with', {'concept': 'political territorial entity'}] ['Castelló de Farfanya', 'shares border with', {'concept': 'political territorial entity'}] ['Schellenberg', 'shares border with', {'concept': 'political territorial entity'}] ['Albesa', 'shares border with', {'concept': 'political territorial entity'}] ['Alfarràs', 'shares border with', {'concept': 'political territorial entity'}] ['Almenar', 'shares border with', {'concept': 'political territorial entity'}] ['Ivars de Noguera', 'shares border with', {'concept': 'political territorial entity'}] ['Eschen', 'shares border with', {'concept': 'political territorial entity'}] ['Schaan', 'shares border with', {'concept': 'political territorial entity'}] ['Planken', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { { resource:Castelló_de_Farfanya property:shares_border_with ?z . ?z rdf:type ontology:political_territorial_entity } UNION { resource:Os_de_Balaguer property:shares_border_with ?z . ?z rdf:type ontology:political_territorial_entity } }
[]