Simple Question (Direct)
Simple Question
Q953320
P19
Q56061
USER
Where was Patrick Saussois born ?
(Q953320,P19,c(Q56061))
action filter_type
action find
entity Q953320
relation P19
type Q56061
['Q953320', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . resource:Q953320 property:P19 ?h }
Patrick Saussois
action filter_type
action find
entity Patrick Saussois
relation place of birth
type administrative territorial entity
['Patrick Saussois', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:Patrick_Saussois property:place_of_birth ?h }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q953320,P19,c(Q56061))
action filter_type
action find
entity Q953320
relation P19
type Q56061
Patrick Saussois was born [ANSWER]
['Q953320', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . resource:Q953320 property:P19 ?h }
Paris
Patrick Saussois was born Paris
Paris
action filter_type
action find
entity Patrick Saussois
relation place of birth
type administrative territorial entity
['Patrick Saussois', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:Patrick_Saussois property:place_of_birth ?h }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q953320
P20
Q56061
USER
Where did the demise of Patrick Saussois occur ?
(Q953320,P20,c(Q56061))
action filter_type
action find
entity Q953320
relation P20
type Q56061
['Q953320', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q953320 property:P20 ?n . ?n rdf:type ontology:Q56061 }
Patrick Saussois
action filter_type
action find
entity Patrick Saussois
relation place of death
type administrative territorial entity
['Patrick Saussois', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Patrick_Saussois property:place_of_death ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q953320,P20,c(Q56061))
action filter_type
action find
entity Q953320
relation P20
type Q56061
The demise of Patrick Saussois occurred in [ANSWER]
['Q953320', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q953320 property:P20 ?n . ?n rdf:type ontology:Q56061 }
Paris
The demise of Patrick Saussois occurred in Paris
Paris
action filter_type
action find
entity Patrick Saussois
relation place of death
type administrative territorial entity
['Patrick Saussois', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Patrick_Saussois property:place_of_death ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2425065
Q56061
USER
And how about Thomas Jefferson Hudson?
(Q2425065,P20,c(Q56061))
action filter_type
action find
entity Q2425065
relation P20
type Q56061
['Q2425065', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q2425065 property:P20 ?c . ?c rdf:type ontology:Q56061 }
Thomas Jefferson Hudson
action filter_type
action find
entity Thomas Jefferson Hudson
relation place of death
type administrative territorial entity
['Thomas Jefferson Hudson', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Thomas_Jefferson_Hudson property:place_of_death ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q49266
SYSTEM
Wichita
Q49266
(Q2425065,P20,c(Q56061))
action filter_type
action find
entity Q2425065
relation P20
type Q56061
[ANSWER]
['Q2425065', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q2425065 property:P20 ?c . ?c rdf:type ontology:Q56061 }
Wichita
Wichita
action filter_type
action find
entity Thomas Jefferson Hudson
relation place of death
type administrative territorial entity
['Thomas Jefferson Hudson', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Thomas_Jefferson_Hudson property:place_of_death ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q56061 Q2235308
USER
Which ship types have around 2 administrative territories as registry port ?
(c(Q2235308),P532,c(Q56061))
action approx
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 2
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?y ) AS ?j ) WHERE { ?f property:P532 ?y . ?f rdf:type ontology:Q2235308 . ?y rdf:type ontology:Q56061 } GROUP BY ?f } . FILTER ( ?j = 2 ) }
action approx
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 2
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?y ) AS ?j ) WHERE { ?f property:port_of_registry ?y . ?f rdf:type ontology:ship_type . ?y rdf:type ontology:administrative_territorial_entity } GROUP BY ?f } . FILTER ( ?j = 2 ) }
[]
administrative territorial entity ship type
Q2596850 Q468026 Q33209
SYSTEM
MS Azura, SS Maxim Gorkiy, Mary Celeste
Q33209 Q1514518 Q2596850 Q468026
(c(Q2235308),P532,c(Q56061))
action approx
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 2
[ANSWERS] have around 2 administrative territories as registry port
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?y ) AS ?j ) WHERE { ?f property:P532 ?y . ?f rdf:type ontology:Q2235308 . ?y rdf:type ontology:Q56061 } GROUP BY ?f } . FILTER ( ?j = 2 ) }
Mary Celeste Sapphire Princess MS Azura SS Maxim Gorkiy
MS Azura, SS Maxim Gorkiy and Mary Celeste have around 2 administrative territories as registry port
MS Azura SS Maxim Gorkiy Mary Celeste
action approx
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 2
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?y ) AS ?j ) WHERE { ?f property:port_of_registry ?y . ?f rdf:type ontology:ship_type . ?y rdf:type ontology:administrative_territorial_entity } GROUP BY ?f } . FILTER ( ?j = 2 ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q2596850 Q468026 Q33209
P532
Q56061
USER
What serves as the ports of registry of MS Azura, SS Maxim Gorkiy and Mary Celeste ?
(Q2596850,P532,c(Q56061)) (Q468026,P532,c(Q56061)) (Q33209,P532,c(Q56061))
action union
action filter_type
action find
entity Q2596850
relation P532
type Q56061
action filter_type
action find
entity Q468026
relation P532
type Q56061
action filter_type
action find
entity Q33209
relation P532
type Q56061
['Q2596850', 'P532', {'concept': 'Q56061'}] ['Q468026', 'P532', {'concept': 'Q56061'}] ['Q33209', 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { { resource:Q2596850 property:P532 ?a . ?a rdf:type ontology:Q56061 } UNION { resource:Q468026 property:P532 ?a . ?a rdf:type ontology:Q56061 } }
MS Azura SS Maxim Gorkiy Mary Celeste
action union
action filter_type
action find
entity MS Azura
relation port of registry
type administrative territorial entity
action filter_type
action find
entity SS Maxim Gorkiy
relation port of registry
type administrative territorial entity
action filter_type
action find
entity Mary Celeste
relation port of registry
type administrative territorial entity
['MS Azura', 'port of registry', {'concept': 'administrative territorial entity'}] ['SS Maxim Gorkiy', 'port of registry', {'concept': 'administrative territorial entity'}] ['Mary Celeste', 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { resource:MS_Azura property:port_of_registry ?a . ?a rdf:type ontology:administrative_territorial_entity } UNION { resource:SS_Maxim_Gorkiy property:port_of_registry ?a . ?a rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q1874 Q60 Q79848
SYSTEM
Odessa, New York City, Southampton
Q30985 Q79848 Q2467 Q1874 Q499355 Q60
(Q2596850,P532,c(Q56061)) (Q468026,P532,c(Q56061)) (Q33209,P532,c(Q56061))
action union
action filter_type
action find
entity Q2596850
relation P532
type Q56061
action filter_type
action find
entity Q468026
relation P532
type Q56061
action filter_type
action find
entity Q33209
relation P532
type Q56061
[ANSWERS] serve as the ports of registry of MS Azura, SS Maxim Gorkiy and Mary Celeste
['Q2596850', 'P532', {'concept': 'Q56061'}] ['Q468026', 'P532', {'concept': 'Q56061'}] ['Q33209', 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { { resource:Q2596850 property:P532 ?a . ?a rdf:type ontology:Q56061 } UNION { resource:Q468026 property:P532 ?a . ?a rdf:type ontology:Q56061 } }
Hamilton Southampton Nassau Odessa Parrsboro New York City
Odessa, New York City and Southampton serve as the ports of registry of MS Azura, SS Maxim Gorkiy and Mary Celeste
Odessa New York City Southampton
action union
action filter_type
action find
entity MS Azura
relation port of registry
type administrative territorial entity
action filter_type
action find
entity SS Maxim Gorkiy
relation port of registry
type administrative territorial entity
action filter_type
action find
entity Mary Celeste
relation port of registry
type administrative territorial entity
['MS Azura', 'port of registry', {'concept': 'administrative territorial entity'}] ['SS Maxim Gorkiy', 'port of registry', {'concept': 'administrative territorial entity'}] ['Mary Celeste', 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { resource:MS_Azura property:port_of_registry ?a . ?a rdf:type ontology:administrative_territorial_entity } UNION { resource:SS_Maxim_Gorkiy property:port_of_registry ?a . ?a rdf:type ontology:administrative_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2596850
P289
Q2235308
USER
Which ship type does that one possess as its vessel class ?
(Q2596850,P289,c(Q2235308))
action filter_type
action find
entity Q2596850
relation P289
type Q2235308
['Q2596850', 'P289', {'concept': 'Q2235308'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q2235308 . resource:Q2596850 property:P289 ?j }
MS Azura
action filter_type
action find
entity MS Azura
relation vessel class
type ship type
['MS Azura', 'vessel class', {'concept': 'ship type'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:ship_type . resource:MS_Azura property:vessel_class ?j }
[]
ship type
Clarification for simple ques.
Q2596850
SYSTEM
Did you mean MS Azura ?
Q1874 Q60 Q79848
(Q1874,P289,c(Q2235308)) (Q60,P289,c(Q2235308)) (Q79848,P289,c(Q2235308))
[ANSWER]
['Q1874', 'P289', {'concept': 'Q2235308'}] ['Q60', 'P289', {'concept': 'Q2235308'}] ['Q79848', 'P289', {'concept': 'Q2235308'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q2235308 . resource:Q2596850 property:P289 ?j }
Odessa New York City Southampton
Did you mean MS Azura ?
MS Azura
['Odessa', 'vessel class', {'concept': 'ship type'}] ['New York City', 'vessel class', {'concept': 'ship type'}] ['Southampton', 'vessel class', {'concept': 'ship type'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:ship_type . resource:MS_Azura property:vessel_class ?j }
[]
Simple Question (Coreferenced)
USER
Yes
(Q2596850,P289,c(Q2235308))
['Q2596850', 'P289', {'concept': 'Q2235308'}]
['MS Azura', 'vessel class', {'concept': 'ship type'}]
[]
Q3114654
SYSTEM
Grand-class cruise ship
Q3114654
(Q2596850,P289,c(Q2235308))
action filter_type
action find
entity Q2596850
relation P289
type Q2235308
[ANSWER] that one possesses as its vessel class
['Q2596850', 'P289', {'concept': 'Q2235308'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q2235308 . resource:Q2596850 property:P289 ?j }
Grand-class cruise ship
Grand-class cruise ship that one possesses as its vessel class
Grand-class cruise ship
action filter_type
action find
entity MS Azura
relation vessel class
type ship type
['MS Azura', 'vessel class', {'concept': 'ship type'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:ship_type . resource:MS_Azura property:vessel_class ?j }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q3114654 Q636666
P289
Q2235308
USER
Does MV Ventura have a vessel class called that one ?
(Q636666,P289,Q3114654)
action is_in
entity Q3114654
action find
entity Q636666
relation P289
['Q636666', 'P289', 'Q3114654']
ASK WHERE { resource:Q636666 property:P289 resource:Q3114654 }
Grand-class cruise ship MV Ventura
action is_in
entity Grand-class cruise ship
action find
entity MV Ventura
relation vessel class
['MV Ventura', 'vessel class', 'Grand-class cruise ship']
ASK WHERE { resource:MV_Ventura property:vessel_class resource:Grand-class_cruise_ship }
[]
ship type
SYSTEM
YES
(Q636666,P289,Q3114654)
action is_in
entity Q3114654
action find
entity Q636666
relation P289
[ANSWER]
['Q636666', 'P289', 'Q3114654']
ASK WHERE { resource:Q636666 property:P289 resource:Q3114654 }
Yes
action is_in
entity Grand-class cruise ship
action find
entity MV Ventura
relation vessel class
['MV Ventura', 'vessel class', 'Grand-class cruise ship']
ASK WHERE { resource:MV_Ventura property:vessel_class resource:Grand-class_cruise_ship }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q924151 Q2596850
P793
Q2245405
USER
Which key events are the significant events associated with MS Azura and USS Maine ?
AND((Q2596850,P793,c(Q2245405)), (Q924151,P793,c(Q2245405)))
action filter_type
action intersection
action find
entity Q2596850
relation P793
action find
entity Q924151
relation P793
type Q2245405
{'AND': [['Q2596850', 'P793', {'concept': 'Q2245405'}], ['Q924151', 'P793', {'concept': 'Q2245405'}]]}
SELECT DISTINCT ?y WHERE { resource:Q2596850 property:P793 ?y . resource:Q924151 property:P793 ?y . ?y rdf:type ontology:Q2245405 }
USS Maine MS Azura
action filter_type
action intersection
action find
entity MS Azura
relation significant event
action find
entity USS Maine
relation significant event
type key event
{'AND': [['MS Azura', 'significant event', {'concept': 'key event'}], ['USS Maine', 'significant event', {'concept': 'key event'}]]}
SELECT DISTINCT ?y WHERE { resource:MS_Azura property:significant_event ?y . resource:USS_Maine property:significant_event ?y . ?y rdf:type ontology:key_event }
[]
key event
Q14713606 Q14592615
SYSTEM
ship launch, keel laying
Q14713606 Q14592615
AND((Q2596850,P793,c(Q2245405)), (Q924151,P793,c(Q2245405)))
action filter_type
action intersection
action find
entity Q2596850
relation P793
action find
entity Q924151
relation P793
type Q2245405
[ANSWERS] are the significant events associated with MS Azura and USS Maine
{'AND': [['Q2596850', 'P793', {'concept': 'Q2245405'}], ['Q924151', 'P793', {'concept': 'Q2245405'}]]}
SELECT DISTINCT ?y WHERE { resource:Q2596850 property:P793 ?y . resource:Q924151 property:P793 ?y . ?y rdf:type ontology:Q2245405 }
ship launch keel laying
Ship launch and keel laying are the significant events associated with MS Azura and USS Maine
ship launch keel laying
action filter_type
action intersection
action find
entity MS Azura
relation significant event
action find
entity USS Maine
relation significant event
type key event
{'AND': [['MS Azura', 'significant event', {'concept': 'key event'}], ['USS Maine', 'significant event', {'concept': 'key event'}]]}
SELECT DISTINCT ?y WHERE { resource:MS_Azura property:significant_event ?y . resource:USS_Maine property:significant_event ?y . ?y rdf:type ontology:key_event }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q653860
P793
Q2235308
USER
Are those ones a significant event of USS Dwight D. Eisenhower ?
(Q653860,P793,Q14713606) (Q653860,P793,Q14592615)
action is_in
entity prev_answer
action find
entity Q653860
relation P793
['Q653860', 'P793', 'Q14713606'] ['Q653860', 'P793', 'Q14592615']
ASK WHERE { resource:Q653860 property:P793 ?n . VALUES ( ?n ) { ( resource:Q14713606 ) ( resource:Q14592615 ) } }
USS Dwight D. Eisenhower
action is_in
entity prev_answer
action find
entity USS Dwight D. Eisenhower
relation significant event
['USS Dwight D. Eisenhower', 'significant event', 'ship launch'] ['USS Dwight D. Eisenhower', 'significant event', 'keel laying']
ASK WHERE { resource:USS_Dwight_D._Eisenhower property:significant_event ?n . VALUES ( ?n ) { ( resource:ship_launch ) ( resource:keel_laying ) } }
[]
ship type
SYSTEM
YES
(Q653860,P793,Q14713606) (Q653860,P793,Q14592615)
action is_in
entity prev_answer
action find
entity Q653860
relation P793
[ANSWER]
['Q653860', 'P793', 'Q14713606'] ['Q653860', 'P793', 'Q14592615']
ASK WHERE { resource:Q653860 property:P793 ?n . VALUES ( ?n ) { ( resource:Q14713606 ) ( resource:Q14592615 ) } }
Yes
action is_in
entity prev_answer
action find
entity USS Dwight D. Eisenhower
relation significant event
['USS Dwight D. Eisenhower', 'significant event', 'ship launch'] ['USS Dwight D. Eisenhower', 'significant event', 'keel laying']
ASK WHERE { resource:USS_Dwight_D._Eisenhower property:significant_event ?n . VALUES ( ?n ) { ( resource:ship_launch ) ( resource:keel_laying ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q33209 Q14713606
P793
Q2245405
USER
Is ship launch a significant event associated with Mary Celeste ?
(Q33209,P793,Q14713606)
action is_in
entity Q14713606
action find
entity Q33209
relation P793
['Q33209', 'P793', 'Q14713606']
ASK WHERE { resource:Q33209 property:P793 resource:Q14713606 }
Mary Celeste ship launch
action is_in
entity ship launch
action find
entity Mary Celeste
relation significant event
['Mary Celeste', 'significant event', 'ship launch']
ASK WHERE { resource:Mary_Celeste property:significant_event resource:ship_launch }
[]
key event
SYSTEM
YES
(Q33209,P793,Q14713606)
action is_in
entity Q14713606
action find
entity Q33209
relation P793
[ANSWER]
['Q33209', 'P793', 'Q14713606']
ASK WHERE { resource:Q33209 property:P793 resource:Q14713606 }
Yes
action is_in
entity ship launch
action find
entity Mary Celeste
relation significant event
['Mary Celeste', 'significant event', 'ship launch']
ASK WHERE { resource:Mary_Celeste property:significant_event resource:ship_launch }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q355304 Q337567 Q56061
USER
Which administrative territories are situated in the neighbourhood of exactly 2 watercourses or still waterss ?
(c(Q56061),P206,c(Q355304)|c(Q337567))
action equal
action union
action find_tuple_counts
relation P206
type Q56061
type Q355304
action find_tuple_counts
relation P206
type Q56061
type Q337567
value 2
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?g WHERE { { ?g property:P206 ?z . ?g rdf:type ontology:Q56061 . ?z rdf:type ontology:Q355304 } UNION { ?g property:P206 ?z . ?g rdf:type ontology:Q56061 . ?z rdf:type ontology:Q337567 } } GROUP BY ?g } . FILTER ( ?y = 2 ) }
action equal
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type still waters
value 2
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?g WHERE { { ?g property:located_next_to_body_of_water ?z . ?g rdf:type ontology:administrative_territorial_entity . ?z rdf:type ontology:watercourse } UNION { ?g property:located_next_to_body_of_water ?z . ?g rdf:type ontology:administrative_territorial_entity . ?z rdf:type ontology:still_waters } } GROUP BY ?g } . FILTER ( ?y = 2 ) }
[]
watercourse still waters administrative territorial entity
Q216 Q647 Q220
SYSTEM
Vilnius, Rennes, Rome
Q1718 Q305067 Q898 Q3711 Q83178 Q895123 Q934511 Q387502 Q1022 Q251091 Q103255 Q2599767 Q379531 Q793407 Q903595 Q925506 Q13403152 Q1842 Q740066 Q988658 Q995806 Q3037 Q987797 Q2090 Q23564 Q3828 Q134620 Q1025014 Q1737 Q14945 Q503640 Q569804 Q1729 Q61 Q1567437 Q1591499 Q3640 Q647 Q727 Q140147 Q79848 Q820024 Q220 Q2235 Q216 Q615732
(c(Q56061),P206,c(Q355304)|c(Q337567))
action equal
action union
action find_tuple_counts
relation P206
type Q56061
type Q355304
action find_tuple_counts
relation P206
type Q56061
type Q337567
value 2
[ANSWERS] are situated in the neighbourhood of exactly 2 watercourses or still waterss
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?g WHERE { { ?g property:P206 ?z . ?g rdf:type ontology:Q56061 . ?z rdf:type ontology:Q355304 } UNION { ?g property:P206 ?z . ?g rdf:type ontology:Q56061 . ?z rdf:type ontology:Q337567 } } GROUP BY ?g } . FILTER ( ?y = 2 ) }
Düsseldorf Gniew Omsk Belgrade Almere Boumba Papendrecht Świecie Stuttgart Athy Alatyr Yatakala Heiligenstadt Ayourou Volendam Brok Loenen aan de Vecht Luxembourg Kinderdijk Połaniec Dobrzyń nad Wisłą Kathmandu Leixlip Nuremberg Podgorica Dessau-Roßlau Jyväskylä Inari Bregenz Merseburg Gunzenhausen Wyszogród Erfurt Washington, D.C. Hadersdorf-Weidlingau Havelse Ankara Rennes Amsterdam Brest Southampton Kupiškis Rome Veliky Novgorod Vilnius Breukelen
Vilnius, Rennes and Rome are situated in the neighbourhood of exactly 2 watercourses or still waterss
Vilnius Rennes Rome
action equal
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type still waters
value 2
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?g WHERE { { ?g property:located_next_to_body_of_water ?z . ?g rdf:type ontology:administrative_territorial_entity . ?z rdf:type ontology:watercourse } UNION { ?g property:located_next_to_body_of_water ?z . ?g rdf:type ontology:administrative_territorial_entity . ?z rdf:type ontology:still_waters } } GROUP BY ?g } . FILTER ( ?y = 2 ) }
[]