Simple Question (Direct)
Simple Question
Q1282285
P241
Q781132
USER
Which military branch was Ed Bethune a part of ?
(Q1282285,P241,c(Q781132))
action filter_type
action find
entity Q1282285
relation P241
type Q781132
['Q1282285', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q781132 . resource:Q1282285 property:P241 ?r }
Ed Bethune
action filter_type
action find
entity Ed Bethune
relation military branch
type military branch
['Ed Bethune', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:military_branch . resource:Ed_Bethune property:military_branch ?r }
[]
military branch
Q11218
SYSTEM
United States Marine Corps
Q11218
(Q1282285,P241,c(Q781132))
action filter_type
action find
entity Q1282285
relation P241
type Q781132
N [ANSWER] was Ed Bethune a part of
['Q1282285', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q781132 . resource:Q1282285 property:P241 ?r }
United States Marine Corps
N United States Marine Corps was Ed Bethune a part of
United States Marine Corps
action filter_type
action find
entity Ed Bethune
relation military branch
type military branch
['Ed Bethune', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:military_branch . resource:Ed_Bethune property:military_branch ?r }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11218
P121
Q11436
USER
What is operated by that military branch ?
(Q11218,P121,c(Q11436))
action filter_type
action find
entity Q11218
relation P121
type Q11436
['Q11218', 'P121', {'concept': 'Q11436'}]
SELECT DISTINCT ?b WHERE { resource:Q11218 property:P121 ?b . ?b rdf:type ontology:Q11436 }
United States Marine Corps
action filter_type
action find
entity United States Marine Corps
relation item operated
type aircraft
['United States Marine Corps', 'item operated', {'concept': 'aircraft'}]
SELECT DISTINCT ?b WHERE { resource:United_States_Marine_Corps property:item_operated ?b . ?b rdf:type ontology:aircraft }
[]
aircraft
Q11436
SYSTEM
aircraft
Q11436
(Q11218,P121,c(Q11436))
action filter_type
action find
entity Q11218
relation P121
type Q11436
[ANSWER] is operated by that military branch
['Q11218', 'P121', {'concept': 'Q11436'}]
SELECT DISTINCT ?b WHERE { resource:Q11218 property:P121 ?b . ?b rdf:type ontology:Q11436 }
aircraft
Aircraft is operated by that military branch
aircraft
action filter_type
action find
entity United States Marine Corps
relation item operated
type aircraft
['United States Marine Corps', 'item operated', {'concept': 'aircraft'}]
SELECT DISTINCT ?b WHERE { resource:United_States_Marine_Corps property:item_operated ?b . ?b rdf:type ontology:aircraft }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11218
P159
Q486972
USER
Which human settlement is the HQ of that military branch ?
(Q11436,P159,c(Q486972))
action filter_type
action find
entity Q11218
relation P159
type Q486972
['Q11436', 'P159', {'concept': 'Q486972'}]
SELECT DISTINCT ?q WHERE { resource:Q11218 property:P159 ?q . ?q rdf:type ontology:Q486972 }
United States Marine Corps
action filter_type
action find
entity United States Marine Corps
relation headquarters location
type human settlement
['aircraft', 'headquarters location', {'concept': 'human settlement'}]
SELECT DISTINCT ?q WHERE { resource:United_States_Marine_Corps property:headquarters_location ?q . ?q rdf:type ontology:human_settlement }
[]
human settlement
Q1782664
SYSTEM
Marine Corps Base Quantico
Q1782664
(Q11436,P159,c(Q486972))
action filter_type
action find
entity Q11218
relation P159
type Q486972
[ANSWER] is the HQ of that military branch
['Q11436', 'P159', {'concept': 'Q486972'}]
SELECT DISTINCT ?q WHERE { resource:Q11218 property:P159 ?q . ?q rdf:type ontology:Q486972 }
Marine Corps Base Quantico
Marine Corps Base Quantico is the HQ of that military branch
Marine Corps Base Quantico
action filter_type
action find
entity United States Marine Corps
relation headquarters location
type human settlement
['aircraft', 'headquarters location', {'concept': 'human settlement'}]
SELECT DISTINCT ?q WHERE { resource:United_States_Marine_Corps property:headquarters_location ?q . ?q rdf:type ontology:human_settlement }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1782664 Q30 Q244607
P17
Q15617994
USER
Is Marine Corps Base Quantico present in United States of America and Laives ?
(Q1782664,P17,Q30) (Q1782664,P17,Q244607)
action is_in
entity Q1782664
action intersection
action find_reverse
entity Q30
relation P17
action find_reverse
entity Q244607
relation P17
['Q1782664', 'P17', 'Q30'] ['Q1782664', 'P17', 'Q244607']
ASK WHERE { resource:Q1782664 property:P17 resource:Q30 . resource:Q1782664 property:P17 resource:Q244607 }
Marine Corps Base Quantico United States of America Laives
action is_in
entity Marine Corps Base Quantico
action intersection
action find_reverse
entity United States of America
relation country
action find_reverse
entity Laives
relation country
['Marine Corps Base Quantico', 'country', 'United States of America'] ['Marine Corps Base Quantico', 'country', 'Laives']
ASK WHERE { resource:Marine_Corps_Base_Quantico property:country resource:United_States_of_America . resource:Marine_Corps_Base_Quantico property:country resource:Laives }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q1782664,P17,Q30) (Q1782664,P17,Q244607)
action is_in
entity Q1782664
action intersection
action find_reverse
entity Q30
relation P17
action find_reverse
entity Q244607
relation P17
[ANSWER]
['Q1782664', 'P17', 'Q30'] ['Q1782664', 'P17', 'Q244607']
ASK WHERE { resource:Q1782664 property:P17 resource:Q30 . resource:Q1782664 property:P17 resource:Q244607 }
YES and NO respectively
action is_in
entity Marine Corps Base Quantico
action intersection
action find_reverse
entity United States of America
relation country
action find_reverse
entity Laives
relation country
['Marine Corps Base Quantico', 'country', 'United States of America'] ['Marine Corps Base Quantico', 'country', 'Laives']
ASK WHERE { resource:Marine_Corps_Base_Quantico property:country resource:United_States_of_America . resource:Marine_Corps_Base_Quantico property:country resource:Laives }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P609
Q486972 Q34442 Q12280
USER
Which human settlements are the terminus locations of exactly 2 roads and bridges ?
(c(Q34442)|c(Q12280),P609,c(Q486972))
action equal
action union
action find_reverse_tuple_counts
relation P609
type Q486972
type Q34442
action find_reverse_tuple_counts
relation P609
type Q486972
type Q12280
value 2
[[{'concept': 'Q34442'}, {'concept': 'Q12280'}], 'P609', {'concept': 'Q486972'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?c ) WHERE { ?d rdf:type ?b . VALUES ( ?b ) { ( ontology:Q34442 ) ( ontology:Q12280 ) } } GROUP BY ?v } . FILTER ( ?c = 2 ) }
action equal
action union
action find_reverse_tuple_counts
relation terminus location
type human settlement
type road
action find_reverse_tuple_counts
relation terminus location
type human settlement
type bridge
value 2
[[{'concept': 'road'}, {'concept': 'bridge'}], 'terminus location', {'concept': 'human settlement'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?c ) WHERE { ?d rdf:type ?b . VALUES ( ?b ) { ( ontology:road ) ( ontology:bridge ) } } GROUP BY ?v } . FILTER ( ?c = 2 ) }
[]
human settlement road bridge
Q10667344 Q465833
SYSTEM
Sickla udde, Schagen
Q10667344 Q465833
(c(Q34442)|c(Q12280),P609,c(Q486972))
action equal
action union
action find_reverse_tuple_counts
relation P609
type Q486972
type Q34442
action find_reverse_tuple_counts
relation P609
type Q486972
type Q12280
value 2
[ANSWERS] are the terminus locations of exactly 2 roads and bridges
[[{'concept': 'Q34442'}, {'concept': 'Q12280'}], 'P609', {'concept': 'Q486972'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?c ) WHERE { ?d rdf:type ?b . VALUES ( ?b ) { ( ontology:Q34442 ) ( ontology:Q12280 ) } } GROUP BY ?v } . FILTER ( ?c = 2 ) }
Sickla udde Schagen
Sickla udde and Schagen are the terminus locations of exactly 2 roads and bridges
Sickla udde Schagen
action equal
action union
action find_reverse_tuple_counts
relation terminus location
type human settlement
type road
action find_reverse_tuple_counts
relation terminus location
type human settlement
type bridge
value 2
[[{'concept': 'road'}, {'concept': 'bridge'}], 'terminus location', {'concept': 'human settlement'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?c ) WHERE { ?d rdf:type ?b . VALUES ( ?b ) { ( ontology:road ) ( ontology:bridge ) } } GROUP BY ?v } . FILTER ( ?c = 2 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q465833 Q294362
P17
Q1048835
USER
How many political territories are Schagen or urban and regional transportation present in ?
(Q465833,P17,c(Q1048835)) (Q294362,P17,c(Q1048835))
action count
action union
action filter_type
action find
entity Q465833
relation P17
type Q1048835
action filter_type
action find
entity Q294362
relation P17
type Q1048835
['Q465833', 'P17', {'concept': 'Q1048835'}] ['Q294362', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { VALUES ( ?a ) { ( resource:Q465833 ) ( resource:Q294362 ) } . ?a property:P17 ?e }
Schagen urban and regional transportation
action count
action union
action filter_type
action find
entity Schagen
relation country
type political territorial entity
action filter_type
action find
entity urban and regional transportation
relation country
type political territorial entity
['Schagen', 'country', {'concept': 'political territorial entity'}] ['urban and regional transportation', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { VALUES ( ?a ) { ( resource:Schagen ) ( resource:urban_and_regional_transportation ) } . ?a property:country ?e }
[]
political territorial entity
SYSTEM
2
Q183 Q40
(Q465833,P17,c(Q1048835)) (Q294362,P17,c(Q1048835))
action count
action union
action filter_type
action find
entity Q465833
relation P17
type Q1048835
action filter_type
action find
entity Q294362
relation P17
type Q1048835
[ANSWER]
['Q465833', 'P17', {'concept': 'Q1048835'}] ['Q294362', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { VALUES ( ?a ) { ( resource:Q465833 ) ( resource:Q294362 ) } . ?a property:P17 ?e }
Germany Austria
2
action count
action union
action filter_type
action find
entity Schagen
relation country
type political territorial entity
action filter_type
action find
entity urban and regional transportation
relation country
type political territorial entity
['Schagen', 'country', {'concept': 'political territorial entity'}] ['urban and regional transportation', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { VALUES ( ?a ) { ( resource:Schagen ) ( resource:urban_and_regional_transportation ) } . ?a property:country ?e }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P159
Q486972 Q334453 Q1269299
USER
Which human settlements are the headquarter locations of exactly 2 divisions and business organizations ?
(c(Q334453)|c(Q1269299),P159,c(Q486972))
action equal
action union
action find_reverse_tuple_counts
relation P159
type Q486972
type Q334453
action find_reverse_tuple_counts
relation P159
type Q486972
type Q1269299
value 2
[[{'concept': 'Q334453'}, {'concept': 'Q1269299'}], 'P159', {'concept': 'Q486972'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?f WHERE { { ?i property:P159 ?f . ?f rdf:type ontology:Q486972 . ?i rdf:type ontology:Q334453 } UNION { ?i property:P159 ?f . ?f rdf:type ontology:Q486972 . ?i rdf:type ontology:Q1269299 } } GROUP BY ?f } . FILTER ( ?r = 2 ) }
action equal
action union
action find_reverse_tuple_counts
relation headquarters location
type human settlement
type division
action find_reverse_tuple_counts
relation headquarters location
type human settlement
type type of business entity
value 2
[[{'concept': 'division'}, {'concept': 'type of business entity'}], 'headquarters location', {'concept': 'human settlement'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?f WHERE { { ?i property:headquarters_location ?f . ?f rdf:type ontology:human_settlement . ?i rdf:type ontology:division } UNION { ?i property:headquarters_location ?f . ?f rdf:type ontology:human_settlement . ?i rdf:type ontology:type_of_business_entity } } GROUP BY ?f } . FILTER ( ?r = 2 ) }
[]
human settlement division type of business entity
Q1792 Q268 Q769446
SYSTEM
Gdańsk, Poznań, Van Nuys
Q1792 Q1337818 Q769446 Q217234 Q268
(c(Q334453)|c(Q1269299),P159,c(Q486972))
action equal
action union
action find_reverse_tuple_counts
relation P159
type Q486972
type Q334453
action find_reverse_tuple_counts
relation P159
type Q486972
type Q1269299
value 2
[ANSWERS] are the headquarter locations of exactly 2 divisions and business organizations
[[{'concept': 'Q334453'}, {'concept': 'Q1269299'}], 'P159', {'concept': 'Q486972'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?f WHERE { { ?i property:P159 ?f . ?f rdf:type ontology:Q486972 . ?i rdf:type ontology:Q334453 } UNION { ?i property:P159 ?f . ?f rdf:type ontology:Q486972 . ?i rdf:type ontology:Q1269299 } } GROUP BY ?f } . FILTER ( ?r = 2 ) }
Gdańsk Woodland Hills Van Nuys Ōta-ku Poznań
Gdańsk, Poznań and Van Nuys are the headquarter locations of exactly 2 divisions and business organizations
Gdańsk Poznań Van Nuys
action equal
action union
action find_reverse_tuple_counts
relation headquarters location
type human settlement
type division
action find_reverse_tuple_counts
relation headquarters location
type human settlement
type type of business entity
value 2
[[{'concept': 'division'}, {'concept': 'type of business entity'}], 'headquarters location', {'concept': 'human settlement'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?f WHERE { { ?i property:headquarters_location ?f . ?f rdf:type ontology:human_settlement . ?i rdf:type ontology:division } UNION { ?i property:headquarters_location ?f . ?f rdf:type ontology:human_settlement . ?i rdf:type ontology:type_of_business_entity } } GROUP BY ?f } . FILTER ( ?r = 2 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q13571426
P206
Q355304 Q337567 Q486972
USER
How many human settlements are situated close to greater number of watercourses and still waterss than De Vaart ?
(c(Q486972),P206,c(Q355304)|c(Q337567))
action count
action greater
action union
action find_tuple_counts
relation P206
type Q486972
type Q355304
action find_tuple_counts
relation P206
type Q486972
type Q337567
action count
action filter_multi_types
action find
entity Q13571426
relation P206
type Q355304
type Q337567
[{'concept': 'Q486972'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?o ) WHERE { { ?a property:P206 ?v . ?a rdf:type ontology:Q486972 . ?v rdf:type ontology:Q355304 } UNION { ?a property:P206 ?v . ?a rdf:type ontology:Q486972 . ?v rdf:type ontology:Q337567 } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { resource:Q13571426 property:P206 ?e . { { ?e rdf:type ontology:Q355304 } UNION { ?e rdf:type ontology:Q337567 } } } } . FILTER ( ?o > ?y ) }
De Vaart
action count
action greater
action union
action find_tuple_counts
relation located next to body of water
type human settlement
type watercourse
action find_tuple_counts
relation located next to body of water
type human settlement
type still waters
action count
action filter_multi_types
action find
entity De Vaart
relation located next to body of water
type watercourse
type still waters
[{'concept': 'human settlement'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?o ) WHERE { { ?a property:located_next_to_body_of_water ?v . ?a rdf:type ontology:human_settlement . ?v rdf:type ontology:watercourse } UNION { ?a property:located_next_to_body_of_water ?v . ?a rdf:type ontology:human_settlement . ?v rdf:type ontology:still_waters } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { resource:De_Vaart property:located_next_to_body_of_water ?e . { { ?e rdf:type ontology:watercourse } UNION { ?e rdf:type ontology:still_waters } } } } . FILTER ( ?o > ?y ) }
[]
watercourse still waters human settlement
SYSTEM
11
Q19963830 Q2498834 Q19308844 Q47554 Q1055 Q106681 Q18668390 Q2916 Q6827682 Q573294 Q2843
(c(Q486972),P206,c(Q355304)|c(Q337567))
action count
action greater
action union
action find_tuple_counts
relation P206
type Q486972
type Q355304
action find_tuple_counts
relation P206
type Q486972
type Q337567
action count
action filter_multi_types
action find
entity Q13571426
relation P206
type Q355304
type Q337567
[ANSWER]
[{'concept': 'Q486972'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?o ) WHERE { { ?a property:P206 ?v . ?a rdf:type ontology:Q486972 . ?v rdf:type ontology:Q355304 } UNION { ?a property:P206 ?v . ?a rdf:type ontology:Q486972 . ?v rdf:type ontology:Q337567 } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { resource:Q13571426 property:P206 ?e . { { ?e rdf:type ontology:Q355304 } UNION { ?e rdf:type ontology:Q337567 } } } } . FILTER ( ?o > ?y ) }
Leibi Unterriexingen Schwarzach Toruń Hamburg Włocławek Le Carnet Osnabrück Mianowo, Ostrów Mazowiecka County Mühlburg Lübeck
11
action count
action greater
action union
action find_tuple_counts
relation located next to body of water
type human settlement
type watercourse
action find_tuple_counts
relation located next to body of water
type human settlement
type still waters
action count
action filter_multi_types
action find
entity De Vaart
relation located next to body of water
type watercourse
type still waters
[{'concept': 'human settlement'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?o ) WHERE { { ?a property:located_next_to_body_of_water ?v . ?a rdf:type ontology:human_settlement . ?v rdf:type ontology:watercourse } UNION { ?a property:located_next_to_body_of_water ?v . ?a rdf:type ontology:human_settlement . ?v rdf:type ontology:still_waters } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { resource:De_Vaart property:located_next_to_body_of_water ?e . { { ?e rdf:type ontology:watercourse } UNION { ?e rdf:type ontology:still_waters } } } } . FILTER ( ?o > ?y ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q28516
P206
Q355304 Q337567 Q486972
USER
And what about Tarnobrzeg?
(c(Q486972),P206,c(Q355304)|c(Q337567))
action count
action greater
action union
action find_tuple_counts
relation P206
type Q486972
type Q355304
action find_tuple_counts
relation P206
type Q486972
type Q337567
action count
action filter_multi_types
action find
entity Q28516
relation P206
type Q355304
type Q337567
[{'concept': 'Q486972'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?n ) WHERE { ?b rdf:type ?w . VALUES ( ?w ) { ( ontology:Q355304 ) ( ontology:Q337567 ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { resource:Q28516 property:P206 ?u . { { ?u rdf:type ontology:Q355304 } UNION { ?u rdf:type ontology:Q337567 } } } } . FILTER ( ?n > ?e ) }
Tarnobrzeg
action count
action greater
action union
action find_tuple_counts
relation located next to body of water
type human settlement
type watercourse
action find_tuple_counts
relation located next to body of water
type human settlement
type still waters
action count
action filter_multi_types
action find
entity Tarnobrzeg
relation located next to body of water
type watercourse
type still waters
[{'concept': 'human settlement'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?n ) WHERE { ?b rdf:type ?w . VALUES ( ?w ) { ( ontology:watercourse ) ( ontology:still_waters ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { resource:Tarnobrzeg property:located_next_to_body_of_water ?u . { { ?u rdf:type ontology:watercourse } UNION { ?u rdf:type ontology:still_waters } } } } . FILTER ( ?n > ?e ) }
[]
watercourse still waters human settlement
SYSTEM
11
Q19963830 Q2498834 Q19308844 Q47554 Q1055 Q106681 Q18668390 Q2916 Q6827682 Q573294 Q2843
(c(Q486972),P206,c(Q355304)|c(Q337567))
action count
action greater
action union
action find_tuple_counts
relation P206
type Q486972
type Q355304
action find_tuple_counts
relation P206
type Q486972
type Q337567
action count
action filter_multi_types
action find
entity Q28516
relation P206
type Q355304
type Q337567
[ANSWER]
[{'concept': 'Q486972'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?n ) WHERE { ?b rdf:type ?w . VALUES ( ?w ) { ( ontology:Q355304 ) ( ontology:Q337567 ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { resource:Q28516 property:P206 ?u . { { ?u rdf:type ontology:Q355304 } UNION { ?u rdf:type ontology:Q337567 } } } } . FILTER ( ?n > ?e ) }
Leibi Unterriexingen Schwarzach Toruń Hamburg Włocławek Le Carnet Osnabrück Mianowo, Ostrów Mazowiecka County Mühlburg Lübeck
11
action count
action greater
action union
action find_tuple_counts
relation located next to body of water
type human settlement
type watercourse
action find_tuple_counts
relation located next to body of water
type human settlement
type still waters
action count
action filter_multi_types
action find
entity Tarnobrzeg
relation located next to body of water
type watercourse
type still waters
[{'concept': 'human settlement'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?n ) WHERE { ?b rdf:type ?w . VALUES ( ?w ) { ( ontology:watercourse ) ( ontology:still_waters ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { resource:Tarnobrzeg property:located_next_to_body_of_water ?u . { { ?u rdf:type ontology:watercourse } UNION { ?u rdf:type ontology:still_waters } } } } . FILTER ( ?n > ?e ) }
[]