Simple Question (Direct)
Simple Question
Q1779128
P27
Q15617994
USER
Which administrative territory does Anja Breien belong to ?
(Q1779128,P27,c(Q15617994))
action filter_type
action find
entity Q1779128
relation P27
type Q15617994
['Q1779128', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q1779128 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Anja Breien
action filter_type
action find
entity Anja Breien
relation country of citizenship
type designation for an administrative territorial entity
['Anja Breien', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Anja_Breien property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20
SYSTEM
Norway
Q20
(Q1779128,P27,c(Q15617994))
action filter_type
action find
entity Q1779128
relation P27
type Q15617994
Anja Breien belongs to [ANSWER]
['Q1779128', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q1779128 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Norway
Anja Breien belongs to Norway
Norway
action filter_type
action find
entity Anja Breien
relation country of citizenship
type designation for an administrative territorial entity
['Anja Breien', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Anja_Breien property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1779128
P19
Q56061
USER
Which administrative territory is the place of birth of that person ?
(Q20,P19,c(Q56061))
action filter_type
action find
entity Q1779128
relation P19
type Q56061
['Q20', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q1779128 property:P19 ?e }
Anja Breien
action filter_type
action find
entity Anja Breien
relation place of birth
type administrative territorial entity
['Norway', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Anja_Breien property:place_of_birth ?e }
[]
administrative territorial entity
Q585
SYSTEM
Oslo
Q585
(Q20,P19,c(Q56061))
action filter_type
action find
entity Q1779128
relation P19
type Q56061
[ANSWER] is the place of birth of that person
['Q20', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q1779128 property:P19 ?e }
Oslo
Oslo is the place of birth of that person
Oslo
action filter_type
action find
entity Anja Breien
relation place of birth
type administrative territorial entity
['Norway', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Anja_Breien property:place_of_birth ?e }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q585 Q270 Q1947
P190
Q56061
USER
Is Oslo sister town of Warsaw and Juba ?
(Q585,P190,Q270) (Q585,P190,Q1947)
action is_in
entity Q585
action intersection
action find_reverse
entity Q270
relation P190
action find_reverse
entity Q1947
relation P190
['Q585', 'P190', 'Q270'] ['Q585', 'P190', 'Q1947']
ASK WHERE { resource:Q585 property:P190 resource:Q1947 . resource:Q585 property:P190 resource:Q270 }
Oslo Warsaw Juba
action is_in
entity Oslo
action intersection
action find_reverse
entity Warsaw
relation sister city
action find_reverse
entity Juba
relation sister city
['Oslo', 'sister city', 'Warsaw'] ['Oslo', 'sister city', 'Juba']
ASK WHERE { resource:Oslo property:sister_city resource:Juba . resource:Oslo property:sister_city resource:Warsaw }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q585,P190,Q270) (Q585,P190,Q1947)
action is_in
entity Q585
action intersection
action find_reverse
entity Q270
relation P190
action find_reverse
entity Q1947
relation P190
[ANSWER]
['Q585', 'P190', 'Q270'] ['Q585', 'P190', 'Q1947']
ASK WHERE { resource:Q585 property:P190 resource:Q1947 . resource:Q585 property:P190 resource:Q270 }
YES and NO respectively
action is_in
entity Oslo
action intersection
action find_reverse
entity Warsaw
relation sister city
action find_reverse
entity Juba
relation sister city
['Oslo', 'sister city', 'Warsaw'] ['Oslo', 'sister city', 'Juba']
ASK WHERE { resource:Oslo property:sister_city resource:Juba . resource:Oslo property:sister_city resource:Warsaw }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20
P206
Q15324
USER
Which body of water is located next to Norway ?
(Q20,P206,c(Q15324))
action filter_type
action find
entity Q20
relation P206
type Q15324
['Q20', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ?z WHERE { resource:Q20 property:P206 ?z . ?z rdf:type ontology:Q15324 }
Norway
action filter_type
action find
entity Norway
relation located next to body of water
type body of water
['Norway', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ?z WHERE { resource:Norway property:located_next_to_body_of_water ?z . ?z rdf:type ontology:body_of_water }
[]
body of water
Q1693
SYSTEM
North Sea
Q1693
(Q20,P206,c(Q15324))
action filter_type
action find
entity Q20
relation P206
type Q15324
Sea [ANSWER] is located next to Norway
['Q20', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ?z WHERE { resource:Q20 property:P206 ?z . ?z rdf:type ontology:Q15324 }
North Sea
Sea North Sea is located next to Norway
North Sea
action filter_type
action find
entity Norway
relation located next to body of water
type body of water
['Norway', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ?z WHERE { resource:Norway property:located_next_to_body_of_water ?z . ?z rdf:type ontology:body_of_water }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q4759693 Q585
P190 P20
Q56061
USER
Which administrative territories are the sister cities of Oslo and are not the places of death of Andrzej Przeworski ?
AND((Q585,P190,c(Q56061)), NOT((Q4759693,P20,c(Q56061))))
action filter_type
action difference
action find
entity Q585
relation P190
action find
entity Q4759693
relation P20
type Q56061
{'AND': [['Q585', 'P190', {'concept': 'Q56061'}], {'NOT': [['Q4759693', 'P20', {'concept': 'Q56061'}]]}]}
SELECT DISTINCT ?b WHERE { resource:Q585 property:P190 ?b . FILTER NOT EXISTS { resource:Q4759693 property:P20 ?b } . ?b rdf:type ontology:Q56061 }
Andrzej Przeworski Oslo
action filter_type
action difference
action find
entity Oslo
relation sister city
action find
entity Andrzej Przeworski
relation place of death
type administrative territorial entity
{'AND': [['Oslo', 'sister city', {'concept': 'administrative territorial entity'}], {'NOT': [['Andrzej Przeworski', 'place of death', {'concept': 'administrative territorial entity'}]]}]}
SELECT DISTINCT ?b WHERE { resource:Oslo property:sister_city ?b . FILTER NOT EXISTS { resource:Andrzej_Przeworski property:place_of_death ?b } . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q216 Q61 Q34370 Q10704 Q33935 Q60 Q1757 Q8686 Q12892 Q1764
SYSTEM
Some of them are Vilnius, Washington, D.C., Rotterdam, Tórshavn, Tel Aviv, New York City, Helsinki, Shanghai, Antwerp, Reykjavík
Q1757 Q226 Q1754 Q8686 Q1748 Q33935 Q12892 Q3711 Q193445 Q84 Q34370 Q216 Q43788 Q60 Q61 Q1764 Q10704
AND((Q585,P190,c(Q56061)), NOT((Q4759693,P20,c(Q56061))))
action filter_type
action difference
action find
entity Q585
relation P190
action find
entity Q4759693
relation P20
type Q56061
[ANSWERS] are the sister cities of Oslo and are not the places of death of Andrzej Przeworski
{'AND': [['Q585', 'P190', {'concept': 'Q56061'}], {'NOT': [['Q4759693', 'P20', {'concept': 'Q56061'}]]}]}
SELECT DISTINCT ?b WHERE { resource:Q585 property:P190 ?b . FILTER NOT EXISTS { resource:Q4759693 property:P20 ?b } . ?b rdf:type ontology:Q56061 }
Helsinki Nuuk Stockholm Shanghai Copenhagen Tel Aviv Antwerp Belgrade Artvin London Rotterdam Vilnius Madison New York City Washington, D.C. Reykjavík Tórshavn
Vilnius, Washington, D.C., Rotterdam, Tórshavn, Tel Aviv, New York City, Helsinki, Shanghai, Antwerp and Reykjavík are the sister cities of Oslo and are not the places of death of Andrzej Przeworski
Vilnius Washington, D.C. Rotterdam Tórshavn Tel Aviv New York City Helsinki Shanghai Antwerp Reykjavík
action filter_type
action difference
action find
entity Oslo
relation sister city
action find
entity Andrzej Przeworski
relation place of death
type administrative territorial entity
{'AND': [['Oslo', 'sister city', {'concept': 'administrative territorial entity'}], {'NOT': [['Andrzej Przeworski', 'place of death', {'concept': 'administrative territorial entity'}]]}]}
SELECT DISTINCT ?b WHERE { resource:Oslo property:sister_city ?b . FILTER NOT EXISTS { resource:Andrzej_Przeworski property:place_of_death ?b } . ?b rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q740853 Q34370
P190
Q56061
USER
Which administrative territories are sister towns of Rotterdam or Szigetszentmiklós ?
OR((Q34370,P190,c(Q56061)), (Q740853,P190,c(Q56061)))
action filter_type
action union
action find
entity Q34370
relation P190
action find
entity Q740853
relation P190
type Q56061
{'OR': [['Q34370', 'P190', {'concept': 'Q56061'}], ['Q740853', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q34370 property:P190 ?r } UNION { resource:Q740853 property:P190 ?r } } . ?r rdf:type ontology:Q56061 }
Szigetszentmiklós Rotterdam
action filter_type
action union
action find
entity Rotterdam
relation sister city
action find
entity Szigetszentmiklós
relation sister city
type administrative territorial entity
{'OR': [['Rotterdam', 'sister city', {'concept': 'administrative territorial entity'}], ['Szigetszentmiklós', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Rotterdam property:sister_city ?r } UNION { resource:Szigetszentmiklós property:sister_city ?r } } . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q5168 Q1780 Q6509 Q495 Q648 Q11974 Q3630 Q8686 Q24826 Q256782
SYSTEM
Some of them are Makhachkala, Bratislava, Burgas, Turin, Lille, Las Palmas de Gran Canaria, Jakarta, Shanghai, Liverpool, Busko-Zdrój
Q5168 Q3992 Q214344 Q1563 Q8686 Q16010 Q3630 Q5092 Q648 Q585 Q81581 Q365 Q1780 Q495 Q6509 Q115998 Q11974 Q406 Q256782 Q24826
OR((Q34370,P190,c(Q56061)), (Q740853,P190,c(Q56061)))
action filter_type
action union
action find
entity Q34370
relation P190
action find
entity Q740853
relation P190
type Q56061
[ANSWERS] are sister towns of Rotterdam or Szigetszentmiklós
{'OR': [['Q34370', 'P190', {'concept': 'Q56061'}], ['Q740853', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q34370 property:P190 ?r } UNION { resource:Q740853 property:P190 ?r } } . ?r rdf:type ontology:Q56061 }
Makhachkala Liège Kočani Havana Shanghai Esch-sur-Alzette Jakarta Baltimore Lille Oslo Szeged Cologne Bratislava Turin Burgas Gorna Oryahovitsa Las Palmas de Gran Canaria Istanbul Busko-Zdrój Liverpool
Makhachkala, Bratislava, Burgas, Turin, Lille, Las Palmas de Gran Canaria, Jakarta, Shanghai, Liverpool and Busko-Zdrój are sister towns of Rotterdam or Szigetszentmiklós
Makhachkala Bratislava Burgas Turin Lille Las Palmas de Gran Canaria Jakarta Shanghai Liverpool Busko-Zdrój
action filter_type
action union
action find
entity Rotterdam
relation sister city
action find
entity Szigetszentmiklós
relation sister city
type administrative territorial entity
{'OR': [['Rotterdam', 'sister city', {'concept': 'administrative territorial entity'}], ['Szigetszentmiklós', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Rotterdam property:sister_city ?r } UNION { resource:Szigetszentmiklós property:sister_city ?r } } . ?r rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q24826
P17
Q15617994
USER
Which administrative territory is Liverpool situated in ?
(Q24826,P17,c(Q15617994))
action filter_type
action find
entity Q24826
relation P17
type Q15617994
['Q24826', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q24826 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
Liverpool
action filter_type
action find
entity Liverpool
relation country
type designation for an administrative territorial entity
['Liverpool', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Liverpool property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q24826,P17,c(Q15617994))
action filter_type
action find
entity Q24826
relation P17
type Q15617994
Liverpool is situated in [ANSWER]
['Q24826', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q24826 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
United Kingdom
Liverpool is situated in United Kingdom
United Kingdom
action filter_type
action find
entity Liverpool
relation country
type designation for an administrative territorial entity
['Liverpool', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Liverpool property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q26457567
Q15617994
USER
And what about 41 And 43, Station Road?
(Q26457567,P17,c(Q15617994))
action filter_type
action find
entity Q26457567
relation P17
type Q15617994
['Q26457567', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q26457567 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
41 And 43, Station Road
action filter_type
action find
entity 41 And 43, Station Road
relation country
type designation for an administrative territorial entity
['41 And 43, Station Road', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:41_And_43,_Station_Road property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q26457567,P17,c(Q15617994))
action filter_type
action find
entity Q26457567
relation P17
type Q15617994
[ANSWER]
['Q26457567', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q26457567 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom
action filter_type
action find
entity 41 And 43, Station Road
relation country
type designation for an administrative territorial entity
['41 And 43, Station Road', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:41_And_43,_Station_Road property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q145 Q805 Q142
P530
Q15617994
USER
Does that administrative territory have diplomatic relations with Yemen and France ?
(Q145,P530,Q805) (Q145,P530,Q142)
action is_in
entity Q145
action intersection
action find_reverse
entity Q805
relation P530
action find_reverse
entity Q142
relation P530
['Q145', 'P530', 'Q805'] ['Q145', 'P530', 'Q142']
ASK WHERE { resource:Q145 property:P530 resource:Q805 . resource:Q145 property:P530 resource:Q142 }
United Kingdom Yemen France
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Yemen
relation diplomatic relation
action find_reverse
entity France
relation diplomatic relation
['United Kingdom', 'diplomatic relation', 'Yemen'] ['United Kingdom', 'diplomatic relation', 'France']
ASK WHERE { resource:United_Kingdom property:diplomatic_relation resource:Yemen . resource:United_Kingdom property:diplomatic_relation resource:France }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q145,P530,Q805) (Q145,P530,Q142)
action is_in
entity Q145
action intersection
action find_reverse
entity Q805
relation P530
action find_reverse
entity Q142
relation P530
[ANSWER]
['Q145', 'P530', 'Q805'] ['Q145', 'P530', 'Q142']
ASK WHERE { resource:Q145 property:P530 resource:Q805 . resource:Q145 property:P530 resource:Q142 }
Yes
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Yemen
relation diplomatic relation
action find_reverse
entity France
relation diplomatic relation
['United Kingdom', 'diplomatic relation', 'Yemen'] ['United Kingdom', 'diplomatic relation', 'France']
ASK WHERE { resource:United_Kingdom property:diplomatic_relation resource:Yemen . resource:United_Kingdom property:diplomatic_relation resource:France }
[]