Simple Question (Direct)
Simple Question
Q6202236
P27
Q15617994
USER
Which administrative territory is Bo Södersten an inhabitant of ?
(Q6202236,P27,c(Q15617994))
action filter_type
action find
entity Q6202236
relation P27
type Q15617994
['Q6202236', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q6202236 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Bo Södersten
action filter_type
action find
entity Bo Södersten
relation country of citizenship
type designation for an administrative territorial entity
['Bo Södersten', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Bo_Södersten property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q6202236,P27,c(Q15617994))
action filter_type
action find
entity Q6202236
relation P27
type Q15617994
[ANSWER] is Bo Södersten an inhabitant of
['Q6202236', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q6202236 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Sweden
Sweden is Bo Södersten an inhabitant of
Sweden
action filter_type
action find
entity Bo Södersten
relation country of citizenship
type designation for an administrative territorial entity
['Bo Södersten', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Bo_Södersten property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q34
P163
Q14660
USER
Which flag is associated with that administrative territory ?
(Q34,P163,c(Q14660))
action filter_type
action find
entity Q34
relation P163
type Q14660
['Q34', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?p WHERE { resource:Q34 property:P163 ?p . ?p rdf:type ontology:Q14660 }
Sweden
action filter_type
action find
entity Sweden
relation flag
type flag
['Sweden', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?p WHERE { resource:Sweden property:flag ?p . ?p rdf:type ontology:flag }
[]
flag
Q81286
SYSTEM
flag of Sweden
Q81286
(Q34,P163,c(Q14660))
action filter_type
action find
entity Q34
relation P163
type Q14660
The [ANSWER] is associated with that administrative territory
['Q34', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?p WHERE { resource:Q34 property:P163 ?p . ?p rdf:type ontology:Q14660 }
flag of Sweden
The flag of Sweden is associated with that administrative territory
flag of Sweden
action filter_type
action find
entity Sweden
relation flag
type flag
['Sweden', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?p WHERE { resource:Sweden property:flag ?p . ?p rdf:type ontology:flag }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1013
Q14660
USER
And how about Lesotho?
(Q1013,P163,c(Q14660))
action filter_type
action find
entity Q1013
relation P163
type Q14660
['Q1013', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?p WHERE { resource:Q1013 property:P163 ?p . ?p rdf:type ontology:Q14660 }
Lesotho
action filter_type
action find
entity Lesotho
relation flag
type flag
['Lesotho', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?p WHERE { resource:Lesotho property:flag ?p . ?p rdf:type ontology:flag }
[]
flag
Q104969
SYSTEM
Flag of Lesotho
Q104969
(Q1013,P163,c(Q14660))
action filter_type
action find
entity Q1013
relation P163
type Q14660
[ANSWER]
['Q1013', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?p WHERE { resource:Q1013 property:P163 ?p . ?p rdf:type ontology:Q14660 }
Flag of Lesotho
Flag of Lesotho
action filter_type
action find
entity Lesotho
relation flag
type flag
['Lesotho', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?p WHERE { resource:Lesotho property:flag ?p . ?p rdf:type ontology:flag }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1013
P37
Q34770
USER
What is recognized as the official language of that administrative territory ?
(Q104969,P37,c(Q34770))
action filter_type
action find
entity Q1013
relation P37
type Q34770
['Q104969', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { resource:Q1013 property:P37 ?s . ?s rdf:type ontology:Q34770 }
Lesotho
action filter_type
action find
entity Lesotho
relation official language
type language
['Flag of Lesotho', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { resource:Lesotho property:official_language ?s . ?s rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q104969,P37,c(Q34770))
action filter_type
action find
entity Q1013
relation P37
type Q34770
Of [ANSWER] is recognized as the official language of that administrative territory
['Q104969', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { resource:Q1013 property:P37 ?s . ?s rdf:type ontology:Q34770 }
English
Of English is recognized as the official language of that administrative territory
English
action filter_type
action find
entity Lesotho
relation official language
type language
['Flag of Lesotho', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { resource:Lesotho property:official_language ?s . ?s rdf:type ontology:language }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q26477028 Q34
P47 P17
Q15617994
USER
Which administrative territories share the border with Sweden or are Virginia Lodge located in ?
OR((Q34,P47,c(Q15617994)), (Q26477028,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q34
relation P47
action find
entity Q26477028
relation P17
type Q15617994
{'OR': [['Q34', 'P47', {'concept': 'Q15617994'}], ['Q26477028', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q26477028 property:P17 ?k } UNION { resource:Q34 property:P47 ?k } } . ?k rdf:type ontology:Q15617994 }
Virginia Lodge Sweden
action filter_type
action union
action find
entity Sweden
relation shares border with
action find
entity Virginia Lodge
relation country
type designation for an administrative territorial entity
{'OR': [['Sweden', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Virginia Lodge', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Virginia_Lodge property:country ?k } UNION { resource:Sweden property:shares_border_with ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33 Q20 Q145
SYSTEM
Finland, Norway, United Kingdom
Q33 Q20 Q145
OR((Q34,P47,c(Q15617994)), (Q26477028,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q34
relation P47
action find
entity Q26477028
relation P17
type Q15617994
[ANSWERS] share the border with Sweden or are Virginia Lodge located in
{'OR': [['Q34', 'P47', {'concept': 'Q15617994'}], ['Q26477028', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q26477028 property:P17 ?k } UNION { resource:Q34 property:P47 ?k } } . ?k rdf:type ontology:Q15617994 }
Finland Norway United Kingdom
Finland, Norway and United Kingdom share the border with Sweden or are Virginia Lodge located in
Finland Norway United Kingdom
action filter_type
action union
action find
entity Sweden
relation shares border with
action find
entity Virginia Lodge
relation country
type designation for an administrative territorial entity
{'OR': [['Sweden', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Virginia Lodge', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Virginia_Lodge property:country ?k } UNION { resource:Sweden property:shares_border_with ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q20
P1376
Q56061
USER
What is the capital of that administrative territory ?
(c(Q56061),P1376,Q20)
action filter_type
action find_reverse
entity Q20
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q20']
SELECT DISTINCT ?x WHERE { ?x property:P1376 resource:Q20 . ?x rdf:type ontology:Q56061 }
Norway
action filter_type
action find_reverse
entity Norway
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Norway']
SELECT DISTINCT ?x WHERE { ?x property:capital_of resource:Norway . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q33
SYSTEM
Did you mean Finland ?
Q33 Q20 Q145
(c(Q56061),P1376,Q33) (c(Q56061),P1376,Q20) (c(Q56061),P1376,Q145)
[ANSWER]
[{'concept': 'Q56061'}, 'P1376', 'Q33'] [{'concept': 'Q56061'}, 'P1376', 'Q20'] [{'concept': 'Q56061'}, 'P1376', 'Q145']
SELECT DISTINCT ?x WHERE { ?x property:P1376 resource:Q20 . ?x rdf:type ontology:Q56061 }
Finland Norway United Kingdom
Did you mean Finland ?
Finland
[{'concept': 'administrative territorial entity'}, 'capital of', 'Finland'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Norway'] [{'concept': 'administrative territorial entity'}, 'capital of', 'United Kingdom']
SELECT DISTINCT ?x WHERE { ?x property:capital_of resource:Norway . ?x rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Norway. Could you tell me the answer for that?
(c(Q56061),P1376,Q20)
Q20
[{'concept': 'Q56061'}, 'P1376', 'Q20']
[{'concept': 'administrative territorial entity'}, 'capital of', 'Norway']
[]
Q585
SYSTEM
Oslo
Q585
(c(Q56061),P1376,Q20)
action filter_type
action find_reverse
entity Q20
relation P1376
type Q56061
The capital of that administrative territory is [ANSWER]
[{'concept': 'Q56061'}, 'P1376', 'Q20']
SELECT DISTINCT ?x WHERE { ?x property:P1376 resource:Q20 . ?x rdf:type ontology:Q56061 }
Oslo
The capital of that administrative territory is Oslo
Oslo
action filter_type
action find_reverse
entity Norway
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Norway']
SELECT DISTINCT ?x WHERE { ?x property:capital_of resource:Norway . ?x rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q585 Q7461896 Q7415847
P190
Q56061
USER
Is that administrative territory a sister city of Shahr Jadid-e Golbahar and Sand Point, Guysborough County ?
(Q585,P190,Q7461896) (Q585,P190,Q7415847)
action is_in
entity Q585
action intersection
action find_reverse
entity Q7461896
relation P190
action find_reverse
entity Q7415847
relation P190
['Q585', 'P190', 'Q7461896'] ['Q585', 'P190', 'Q7415847']
ASK WHERE { resource:Q585 property:P190 resource:Q7461896 . resource:Q585 property:P190 resource:Q7415847 }
Oslo Shahr Jadid-e Golbahar Sand Point, Guysborough County
action is_in
entity Oslo
action intersection
action find_reverse
entity Shahr Jadid-e Golbahar
relation sister city
action find_reverse
entity Sand Point, Guysborough County
relation sister city
['Oslo', 'sister city', 'Shahr Jadid-e Golbahar'] ['Oslo', 'sister city', 'Sand Point, Guysborough County']
ASK WHERE { resource:Oslo property:sister_city resource:Shahr_Jadid-e_Golbahar . resource:Oslo property:sister_city resource:Sand_Point,_Guysborough_County }
[]
administrative territorial entity
SYSTEM
NO
(Q585,P190,Q7461896) (Q585,P190,Q7415847)
action is_in
entity Q585
action intersection
action find_reverse
entity Q7461896
relation P190
action find_reverse
entity Q7415847
relation P190
[ANSWER]
['Q585', 'P190', 'Q7461896'] ['Q585', 'P190', 'Q7415847']
ASK WHERE { resource:Q585 property:P190 resource:Q7461896 . resource:Q585 property:P190 resource:Q7415847 }
No
action is_in
entity Oslo
action intersection
action find_reverse
entity Shahr Jadid-e Golbahar
relation sister city
action find_reverse
entity Sand Point, Guysborough County
relation sister city
['Oslo', 'sister city', 'Shahr Jadid-e Golbahar'] ['Oslo', 'sister city', 'Sand Point, Guysborough County']
ASK WHERE { resource:Oslo property:sister_city resource:Shahr_Jadid-e_Golbahar . resource:Oslo property:sister_city resource:Sand_Point,_Guysborough_County }
[]