Simple Question (Direct)
Simple Question
Q1338077
P106
Q12737077
USER
What are the professions of Emma Pressmar ?
(Q1338077,P106,c(Q12737077))
action filter_type
action find
entity Q1338077
relation P106
type Q12737077
['Q1338077', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q1338077 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
Emma Pressmar
action filter_type
action find
entity Emma Pressmar
relation occupation
type occupation
['Emma Pressmar', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Emma_Pressmar property:occupation ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q3621491 Q17488316
SYSTEM
archaeologist, prehistorian
Q3621491 Q17488316
(Q1338077,P106,c(Q12737077))
action filter_type
action find
entity Q1338077
relation P106
type Q12737077
The professions of Emma Pressmar are the [ANSWERS]
['Q1338077', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q1338077 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
archaeologist prehistorian
The professions of Emma Pressmar are the archaeologist and prehistorian
archaeologist prehistorian
action filter_type
action find
entity Emma Pressmar
relation occupation
type occupation
['Emma Pressmar', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Emma_Pressmar property:occupation ?x . ?x rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1338077
P27
Q1048835
USER
Which political territory does Emma Pressmar belong to ?
(Q1338077,P27,c(Q1048835))
action filter_type
action find
entity Q1338077
relation P27
type Q1048835
['Q1338077', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q1338077 property:P27 ?q . ?q rdf:type ontology:Q1048835 }
Emma Pressmar
action filter_type
action find
entity Emma Pressmar
relation country of citizenship
type political territorial entity
['Emma Pressmar', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Emma_Pressmar property:country_of_citizenship ?q . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1338077,P27,c(Q1048835))
action filter_type
action find
entity Q1338077
relation P27
type Q1048835
Emma Pressmar belongs to [ANSWER]
['Q1338077', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q1338077 property:P27 ?q . ?q rdf:type ontology:Q1048835 }
Germany
Emma Pressmar belongs to Germany
Germany
action filter_type
action find
entity Emma Pressmar
relation country of citizenship
type political territorial entity
['Emma Pressmar', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Emma_Pressmar property:country_of_citizenship ?q . ?q rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1338077
P19
Q56061
USER
Where was that person born ?
(Q183,P19,c(Q56061))
action filter_type
action find
entity Q1338077
relation P19
type Q56061
['Q183', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . resource:Q1338077 property:P19 ?l }
Emma Pressmar
action filter_type
action find
entity Emma Pressmar
relation place of birth
type administrative territorial entity
['Germany', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . resource:Emma_Pressmar property:place_of_birth ?l }
[]
administrative territorial entity
Q3012
SYSTEM
Ulm
Q3012
(Q183,P19,c(Q56061))
action filter_type
action find
entity Q1338077
relation P19
type Q56061
That person was born in [ANSWER]
['Q183', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . resource:Q1338077 property:P19 ?l }
Ulm
That person was born in Ulm
Ulm
action filter_type
action find
entity Emma Pressmar
relation place of birth
type administrative territorial entity
['Germany', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . resource:Emma_Pressmar property:place_of_birth ?l }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q3012 Q4711467 Q17560771
P206
Q355304
USER
Is Ulm situated in the neighbourhood of Cașolț River and Mouse Water ?
(Q3012,P206,Q4711467) (Q3012,P206,Q17560771)
action is_in
entity Q3012
action intersection
action find_reverse
entity Q4711467
relation P206
action find_reverse
entity Q17560771
relation P206
['Q3012', 'P206', 'Q4711467'] ['Q3012', 'P206', 'Q17560771']
ASK WHERE { resource:Q3012 property:P206 resource:Q4711467 . resource:Q3012 property:P206 resource:Q17560771 }
Ulm Cașolț River Mouse Water
action is_in
entity Ulm
action intersection
action find_reverse
entity Cașolț River
relation located next to body of water
action find_reverse
entity Mouse Water
relation located next to body of water
['Ulm', 'located next to body of water', 'Cașolț River'] ['Ulm', 'located next to body of water', 'Mouse Water']
ASK WHERE { resource:Ulm property:located_next_to_body_of_water resource:Cașolț_River . resource:Ulm property:located_next_to_body_of_water resource:Mouse_Water }
[]
watercourse
SYSTEM
NO
(Q3012,P206,Q4711467) (Q3012,P206,Q17560771)
action is_in
entity Q3012
action intersection
action find_reverse
entity Q4711467
relation P206
action find_reverse
entity Q17560771
relation P206
[ANSWER]
['Q3012', 'P206', 'Q4711467'] ['Q3012', 'P206', 'Q17560771']
ASK WHERE { resource:Q3012 property:P206 resource:Q4711467 . resource:Q3012 property:P206 resource:Q17560771 }
No
action is_in
entity Ulm
action intersection
action find_reverse
entity Cașolț River
relation located next to body of water
action find_reverse
entity Mouse Water
relation located next to body of water
['Ulm', 'located next to body of water', 'Cașolț River'] ['Ulm', 'located next to body of water', 'Mouse Water']
ASK WHERE { resource:Ulm property:located_next_to_body_of_water resource:Cașolț_River . resource:Ulm property:located_next_to_body_of_water resource:Mouse_Water }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q7358
P180
Q12737077 Q15709879 Q3305213
USER
Which occupations are depicted in more number of artwork series or paintings than clown ?
(c(Q15709879)|c(Q3305213),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q7358
relation P180
type Q15709879
type Q3305213
[[{'concept': 'Q15709879'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) ?m WHERE { ?f rdf:type ?w . VALUES ( ?w ) { ( ontology:Q15709879 ) ( ontology:Q3305213 ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { ?j property:P180 resource:Q7358 . { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:Q15709879 ) ( ontology:Q3305213 ) } } } } . FILTER ( ?d > ?o ) }
clown
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type artwork series
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity clown
relation depicts
type artwork series
type painting
[[{'concept': 'artwork series'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) ?m WHERE { ?f rdf:type ?w . VALUES ( ?w ) { ( ontology:artwork_series ) ( ontology:painting ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { ?j property:depicts resource:clown . { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:artwork_series ) ( ontology:painting ) } } } } . FILTER ( ?d > ?o ) }
[]
occupation artwork series painting
Q131512 Q1401609 Q4991371
SYSTEM
farmer, vaquero, soldier
Q131512 Q1401609 Q1124183 Q81710 Q1259917 Q4504549 Q842782 Q47064 Q486748 Q483501 Q215536 Q19723482 Q1139055 Q1028181 Q733786 Q805221 Q12097 Q12059906 Q622630 Q14009165 Q10833314 Q1318187 Q4991371 Q250867 Q10873124 Q2730732 Q103163 Q207651 Q5716684 Q833860 Q2191547 Q838811 Q331432 Q639669 Q49757 Q15296811 Q1281618 Q811122 Q42603 Q1630100 Q39631
(c(Q15709879)|c(Q3305213),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q7358
relation P180
type Q15709879
type Q3305213
[ANSWERS] are depicted in more number of artwork series or paintings than clown
[[{'concept': 'Q15709879'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) ?m WHERE { ?f rdf:type ?w . VALUES ( ?w ) { ( ontology:Q15709879 ) ( ontology:Q3305213 ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { ?j property:P180 resource:Q7358 . { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:Q15709879 ) ( ontology:Q3305213 ) } } } } . FILTER ( ?d > ?o ) }
farmer vaquero lumberjack shepherd violinist religious servant detective military personnel pianist artist merchant mandolinist tax collector painter monk ballet dancer king herder odalisque trapper tennis player scrivener soldier Catholic priest chess player equestrian abbot executioner dancer maid picador peasant fisherman musician poet draughtsperson sculptor construction worker priest art model physician
Farmer, vaquero and soldier are depicted in more number of artwork series or paintings than clown
farmer vaquero soldier
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type artwork series
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity clown
relation depicts
type artwork series
type painting
[[{'concept': 'artwork series'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) ?m WHERE { ?f rdf:type ?w . VALUES ( ?w ) { ( ontology:artwork_series ) ( ontology:painting ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { ?j property:depicts resource:clown . { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:artwork_series ) ( ontology:painting ) } } } } . FILTER ( ?d > ?o ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q13219637
P180
Q12737077 Q15709879 Q3305213
USER
And also tell me about cellist?
(c(Q15709879)|c(Q3305213),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q13219637
relation P180
type Q15709879
type Q3305213
[[{'concept': 'Q15709879'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?h ) WHERE { { ?e property:P180 ?j . ?j rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q15709879 } UNION { ?e rdf:type ontology:Q3305213 . ?j rdf:type ontology:Q12737077 . ?e property:P180 ?j } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { ?p property:P180 resource:Q13219637 . { { ?p rdf:type ontology:Q15709879 } UNION { ?p rdf:type ontology:Q3305213 } } } } . FILTER ( ?h > ?y ) }
cellist
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type artwork series
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity cellist
relation depicts
type artwork series
type painting
[[{'concept': 'artwork series'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?h ) WHERE { { ?e property:depicts ?j . ?j rdf:type ontology:occupation . ?e rdf:type ontology:artwork_series } UNION { ?e rdf:type ontology:painting . ?j rdf:type ontology:occupation . ?e property:depicts ?j } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { ?p property:depicts resource:cellist . { { ?p rdf:type ontology:artwork_series } UNION { ?p rdf:type ontology:painting } } } } . FILTER ( ?h > ?y ) }
[]
occupation artwork series painting
Q131512 Q1401609 Q4991371
SYSTEM
farmer, vaquero, soldier
Q131512 Q1401609 Q1124183 Q81710 Q1259917 Q4504549 Q842782 Q47064 Q486748 Q483501 Q215536 Q19723482 Q1139055 Q1028181 Q733786 Q805221 Q12097 Q12059906 Q622630 Q14009165 Q10833314 Q1318187 Q4991371 Q250867 Q10873124 Q2730732 Q103163 Q207651 Q5716684 Q833860 Q2191547 Q838811 Q331432 Q639669 Q49757 Q15296811 Q1281618 Q811122 Q42603 Q1630100 Q39631
(c(Q15709879)|c(Q3305213),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q13219637
relation P180
type Q15709879
type Q3305213
[ANSWERS]
[[{'concept': 'Q15709879'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?h ) WHERE { { ?e property:P180 ?j . ?j rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q15709879 } UNION { ?e rdf:type ontology:Q3305213 . ?j rdf:type ontology:Q12737077 . ?e property:P180 ?j } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { ?p property:P180 resource:Q13219637 . { { ?p rdf:type ontology:Q15709879 } UNION { ?p rdf:type ontology:Q3305213 } } } } . FILTER ( ?h > ?y ) }
farmer vaquero lumberjack shepherd violinist religious servant detective military personnel pianist artist merchant mandolinist tax collector painter monk ballet dancer king herder odalisque trapper tennis player scrivener soldier Catholic priest chess player equestrian abbot executioner dancer maid picador peasant fisherman musician poet draughtsperson sculptor construction worker priest art model physician
farmer vaquero soldier
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type artwork series
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity cellist
relation depicts
type artwork series
type painting
[[{'concept': 'artwork series'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?h ) WHERE { { ?e property:depicts ?j . ?j rdf:type ontology:occupation . ?e rdf:type ontology:artwork_series } UNION { ?e rdf:type ontology:painting . ?j rdf:type ontology:occupation . ?e property:depicts ?j } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { ?p property:depicts resource:cellist . { { ?p rdf:type ontology:artwork_series } UNION { ?p rdf:type ontology:painting } } } } . FILTER ( ?h > ?y ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3012
P190
Q56061
USER
Which administrative territories are twin town of Ulm ?
(c(Q56061),P190,Q3012)
action filter_type
action find
entity Q3012
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q3012']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . resource:Q3012 property:P190 ?r }
Ulm
action filter_type
action find
entity Ulm
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Ulm']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . resource:Ulm property:sister_city ?r }
[]
administrative territorial entity
Q1780 Q1026296
SYSTEM
Bratislava, Jinotega
Q1780 Q1026296
(c(Q56061),P190,Q3012)
action filter_type
action find
entity Q3012
relation P190
type Q56061
[ANSWERS] are twin town of Ulm
[{'concept': 'Q56061'}, 'P190', 'Q3012']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . resource:Q3012 property:P190 ?r }
Bratislava Jinotega
Bratislava and Jinotega are twin town of Ulm
Bratislava Jinotega
action filter_type
action find
entity Ulm
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Ulm']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . resource:Ulm property:sister_city ?r }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3012
P276
Q1190554
USER
Which event is situated at Ulm ?
(c(Q1190554),P276,Q3012)
action filter_type
action find_reverse
entity Q3012
relation P276
type Q1190554
[{'concept': 'Q1190554'}, 'P276', 'Q3012']
SELECT DISTINCT ?w WHERE { ?w property:P276 resource:Q3012 . ?w rdf:type ontology:Q1190554 }
Ulm
action filter_type
action find_reverse
entity Ulm
relation location
type event
[{'concept': 'event'}, 'location', 'Ulm']
SELECT DISTINCT ?w WHERE { ?w property:location resource:Ulm . ?w rdf:type ontology:event }
[]
event
Q159072
SYSTEM
Battle of Ulm
Q159072
(c(Q1190554),P276,Q3012)
action filter_type
action find_reverse
entity Q3012
relation P276
type Q1190554
At [ANSWER] is situated at Ulm
[{'concept': 'Q1190554'}, 'P276', 'Q3012']
SELECT DISTINCT ?w WHERE { ?w property:P276 resource:Q3012 . ?w rdf:type ontology:Q1190554 }
Battle of Ulm
At Battle of Ulm is situated at Ulm
Battle of Ulm
action filter_type
action find_reverse
entity Ulm
relation location
type event
[{'concept': 'event'}, 'location', 'Ulm']
SELECT DISTINCT ?w WHERE { ?w property:location resource:Ulm . ?w rdf:type ontology:event }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q159072
P138
Q34442
USER
Which road has that event as its toponym ?
(c(Q34442),P138,Q159072)
action filter_type
action find_reverse
entity Q159072
relation P138
type Q34442
[{'concept': 'Q34442'}, 'P138', 'Q159072']
SELECT DISTINCT ?u WHERE { ?u property:P138 resource:Q159072 . ?u rdf:type ontology:Q34442 }
Battle of Ulm
action filter_type
action find_reverse
entity Battle of Ulm
relation named after
type road
[{'concept': 'road'}, 'named after', 'Battle of Ulm']
SELECT DISTINCT ?u WHERE { ?u property:named_after resource:Battle_of_Ulm . ?u rdf:type ontology:road }
[]
road
Q3450545
SYSTEM
rue d'Ulm
Q3450545
(c(Q34442),P138,Q159072)
action filter_type
action find_reverse
entity Q159072
relation P138
type Q34442
[ANSWER] has that event as its toponym
[{'concept': 'Q34442'}, 'P138', 'Q159072']
SELECT DISTINCT ?u WHERE { ?u property:P138 resource:Q159072 . ?u rdf:type ontology:Q34442 }
rue d'Ulm
Rue d'Ulm has that event as its toponym
rue d'Ulm
action filter_type
action find_reverse
entity Battle of Ulm
relation named after
type road
[{'concept': 'road'}, 'named after', 'Battle of Ulm']
SELECT DISTINCT ?u WHERE { ?u property:named_after resource:Battle_of_Ulm . ?u rdf:type ontology:road }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1606550 Q3012
P47 P17
Q1048835
USER
Which political territories are Ulm a part of or have a shared border with Bárcena de Pie de Concha ?
OR((Q3012,P17,c(Q1048835)), (Q1606550,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q3012
relation P17
action find
entity Q1606550
relation P47
type Q1048835
{'OR': [['Q3012', 'P17', {'concept': 'Q1048835'}], ['Q1606550', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1048835 . { { resource:Q3012 property:P17 ?d } UNION { resource:Q1606550 property:P47 ?d } } }
Bárcena de Pie de Concha Ulm
action filter_type
action union
action find
entity Ulm
relation country
action find
entity Bárcena de Pie de Concha
relation shares border with
type political territorial entity
{'OR': [['Ulm', 'country', {'concept': 'political territorial entity'}], ['Bárcena de Pie de Concha', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:political_territorial_entity . { { resource:Ulm property:country ?d } UNION { resource:Bárcena_de_Pie_de_Concha property:shares_border_with ?d } } }
[]
political territorial entity
Q1904340 Q782638 Q183 Q1641160 Q1637435 Q1635164 Q1751777 Q1648774
SYSTEM
Pesquera, Arenas de Iguña, Germany, Los Tojos, Molledo, Hermandad de Campoo de Suso, Santiurde de Reinosa, San Miguel de Aguayo
Q1904340 Q782638 Q183 Q1641160 Q1637435 Q1635164 Q1751777 Q1648774
OR((Q3012,P17,c(Q1048835)), (Q1606550,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q3012
relation P17
action find
entity Q1606550
relation P47
type Q1048835
[ANSWERS] are Ulm a part of or have a shared border with Bárcena de Pie de Concha
{'OR': [['Q3012', 'P17', {'concept': 'Q1048835'}], ['Q1606550', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1048835 . { { resource:Q3012 property:P17 ?d } UNION { resource:Q1606550 property:P47 ?d } } }
Pesquera Arenas de Iguña Germany Los Tojos Molledo Hermandad de Campoo de Suso Santiurde de Reinosa San Miguel de Aguayo
Pesquera, Arenas de Iguña, Germany, Los Tojos, Molledo, Hermandad de Campoo de Suso, Santiurde de Reinosa and San Miguel de Aguayo are Ulm a part of or have a shared border with Bárcena de Pie de Concha
Pesquera Arenas de Iguña Germany Los Tojos Molledo Hermandad de Campoo de Suso Santiurde de Reinosa San Miguel de Aguayo
action filter_type
action union
action find
entity Ulm
relation country
action find
entity Bárcena de Pie de Concha
relation shares border with
type political territorial entity
{'OR': [['Ulm', 'country', {'concept': 'political territorial entity'}], ['Bárcena de Pie de Concha', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:political_territorial_entity . { { resource:Ulm property:country ?d } UNION { resource:Bárcena_de_Pie_de_Concha property:shares_border_with ?d } } }
[]