Simple Question (Direct)
Simple Question
Q6100105
P27
Q15617994
USER
Which administrative territory is Ramón Vargas-Machuca a civilian of ?
(Q6100105,P27,c(Q15617994))
action filter_type
action find
entity Q6100105
relation P27
type Q15617994
['Q6100105', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q6100105 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
Ramón Vargas-Machuca
action filter_type
action find
entity Ramón Vargas-Machuca
relation country of citizenship
type designation for an administrative territorial entity
['Ramón Vargas-Machuca', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Ramón_Vargas-Machuca property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q6100105,P27,c(Q15617994))
action filter_type
action find
entity Q6100105
relation P27
type Q15617994
[ANSWER] is Ramón Vargas-Machuca a civilian of
['Q6100105', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q6100105 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
Spain
Spain is Ramón Vargas-Machuca a civilian of
Spain
action filter_type
action find
entity Ramón Vargas-Machuca
relation country of citizenship
type designation for an administrative territorial entity
['Ramón Vargas-Machuca', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Ramón_Vargas-Machuca property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q29
P159
Q4830453
USER
Which business enterprises have headquarters located at that administrative territory ?
(c(Q4830453),P159,Q29)
action filter_type
action find_reverse
entity Q29
relation P159
type Q4830453
[{'concept': 'Q4830453'}, 'P159', 'Q29']
SELECT DISTINCT ?c WHERE { ?c property:P159 resource:Q29 . ?c rdf:type ontology:Q4830453 }
Spain
action filter_type
action find_reverse
entity Spain
relation headquarters location
type business enterprise
[{'concept': 'business enterprise'}, 'headquarters location', 'Spain']
SELECT DISTINCT ?c WHERE { ?c property:headquarters_location resource:Spain . ?c rdf:type ontology:business_enterprise }
[]
business enterprise
Q17064788 Q1946170
SYSTEM
CASA, Montesa Honda
Q17064788 Q1946170
(c(Q4830453),P159,Q29)
action filter_type
action find_reverse
entity Q29
relation P159
type Q4830453
[ANSWERS] have headquarters located at that administrative territory
[{'concept': 'Q4830453'}, 'P159', 'Q29']
SELECT DISTINCT ?c WHERE { ?c property:P159 resource:Q29 . ?c rdf:type ontology:Q4830453 }
CASA Montesa Honda
CASA and Montesa Honda have headquarters located at that administrative territory
CASA Montesa Honda
action filter_type
action find_reverse
entity Spain
relation headquarters location
type business enterprise
[{'concept': 'business enterprise'}, 'headquarters location', 'Spain']
SELECT DISTINCT ?c WHERE { ?c property:headquarters_location resource:Spain . ?c rdf:type ontology:business_enterprise }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q29
P840
Q15416
USER
Which television program has a setting location of that administrative territory ?
(c(Q15416),P840,Q17064788) (c(Q15416),P840,Q1946170)
action filter_type
action find_reverse
entity Q29
relation P840
type Q15416
[{'concept': 'Q15416'}, 'P840', 'Q17064788'] [{'concept': 'Q15416'}, 'P840', 'Q1946170']
SELECT DISTINCT ?k WHERE { ?k property:P840 resource:Q29 . ?k rdf:type ontology:Q15416 }
Spain
action filter_type
action find_reverse
entity Spain
relation narrative location
type television program
[{'concept': 'television program'}, 'narrative location', 'CASA'] [{'concept': 'television program'}, 'narrative location', 'Montesa Honda']
SELECT DISTINCT ?k WHERE { ?k property:narrative_location resource:Spain . ?k rdf:type ontology:television_program }
[]
television program
Q5431827
SYSTEM
Falcón
Q5431827
(c(Q15416),P840,Q17064788) (c(Q15416),P840,Q1946170)
action filter_type
action find_reverse
entity Q29
relation P840
type Q15416
[ANSWER] has a setting location of that administrative territory
[{'concept': 'Q15416'}, 'P840', 'Q17064788'] [{'concept': 'Q15416'}, 'P840', 'Q1946170']
SELECT DISTINCT ?k WHERE { ?k property:P840 resource:Q29 . ?k rdf:type ontology:Q15416 }
Falcón
Falcón has a setting location of that administrative territory
Falcón
action filter_type
action find_reverse
entity Spain
relation narrative location
type television program
[{'concept': 'television program'}, 'narrative location', 'CASA'] [{'concept': 'television program'}, 'narrative location', 'Montesa Honda']
SELECT DISTINCT ?k WHERE { ?k property:narrative_location resource:Spain . ?k rdf:type ontology:television_program }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5431827
P449
Q4830453
USER
Which business enterprise is the original network that television program was aired on ?
(Q5431827,P449,c(Q4830453))
action filter_type
action find
entity Q5431827
relation P449
type Q4830453
['Q5431827', 'P449', {'concept': 'Q4830453'}]
SELECT DISTINCT ?k WHERE { resource:Q5431827 property:P449 ?k . ?k rdf:type ontology:Q4830453 }
Falcón
action filter_type
action find
entity Falcón
relation original network
type business enterprise
['Falcón', 'original network', {'concept': 'business enterprise'}]
SELECT DISTINCT ?k WHERE { resource:Falcón property:original_network ?k . ?k rdf:type ontology:business_enterprise }
[]
business enterprise
Q3510971
SYSTEM
Sky Atlantic
Q3510971
(Q5431827,P449,c(Q4830453))
action filter_type
action find
entity Q5431827
relation P449
type Q4830453
The [ANSWER] is the original network that television program was aired on
['Q5431827', 'P449', {'concept': 'Q4830453'}]
SELECT DISTINCT ?k WHERE { resource:Q5431827 property:P449 ?k . ?k rdf:type ontology:Q4830453 }
Sky Atlantic
The Sky Atlantic is the original network that television program was aired on
Sky Atlantic
action filter_type
action find
entity Falcón
relation original network
type business enterprise
['Falcón', 'original network', {'concept': 'business enterprise'}]
SELECT DISTINCT ?k WHERE { resource:Falcón property:original_network ?k . ?k rdf:type ontology:business_enterprise }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q3510971 Q7798364
P449
Q15416
USER
Does Thronecast the show that was originally telecasted on that business enterprise ?
(Q7798364,P449,Q3510971)
action is_in
entity Q3510971
action find
entity Q7798364
relation P449
['Q7798364', 'P449', 'Q3510971']
ASK WHERE { resource:Q7798364 property:P449 resource:Q3510971 }
Sky Atlantic Thronecast
action is_in
entity Sky Atlantic
action find
entity Thronecast
relation original network
['Thronecast', 'original network', 'Sky Atlantic']
ASK WHERE { resource:Thronecast property:original_network resource:Sky_Atlantic }
[]
television program
SYSTEM
YES
(Q7798364,P449,Q3510971)
action is_in
entity Q3510971
action find
entity Q7798364
relation P449
[ANSWER]
['Q7798364', 'P449', 'Q3510971']
ASK WHERE { resource:Q7798364 property:P449 resource:Q3510971 }
Yes
action is_in
entity Sky Atlantic
action find
entity Thronecast
relation original network
['Thronecast', 'original network', 'Sky Atlantic']
ASK WHERE { resource:Thronecast property:original_network resource:Sky_Atlantic }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q7201608
P1408
Q486972 Q4830453
USER
Which human settlements did lesser number of business enterprises get a license to broadcast to than Plantation Key ?
(c(Q4830453),P1408,c(Q486972))
action less
action find_reverse_tuple_counts
relation P1408
type Q486972
type Q4830453
action count
action filter_type
action find_reverse
entity Q7201608
relation P1408
type Q4830453
[{'concept': 'Q4830453'}, 'P1408', {'concept': 'Q486972'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:P1408 resource:Q7201608 . ?v rdf:type ontology:Q4830453 } } . FILTER ( ?b < ?q ) . { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?b ) WHERE { ?c property:P1408 ?e . ?e rdf:type ontology:Q486972 . ?c rdf:type ontology:Q4830453 } GROUP BY ?e } }
Plantation Key
action less
action find_reverse_tuple_counts
relation licensed to broadcast to
type human settlement
type business enterprise
action count
action filter_type
action find_reverse
entity Plantation Key
relation licensed to broadcast to
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', {'concept': 'human settlement'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:licensed_to_broadcast_to resource:Plantation_Key . ?v rdf:type ontology:business_enterprise } } . FILTER ( ?b < ?q ) . { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?b ) WHERE { ?c property:licensed_to_broadcast_to ?e . ?e rdf:type ontology:human_settlement . ?c rdf:type ontology:business_enterprise } GROUP BY ?e } }
[]
human settlement business enterprise
Q31487 Q204271 Q4570781
SYSTEM
Kraków, San Luis Potosí, Lincoln University
Q2228038 Q1006574 Q851806 Q675521 Q1085227 Q2131187 Q955773 Q1376378 Q2375262 Q2321558 Q3155671 Q1876120 Q2892388 Q988827 Q2797405 Q3470764 Q249224 Q859187 Q2402910 Q2443721 Q2088307 Q1613686 Q3460058 Q1413686 Q2362234 Q1375929 Q6686011 Q2429075 Q1928157 Q754578 Q2428769 Q3472295 Q4570781 Q204271 Q53077 Q3344111 Q970773 Q1393019 Q1022776 Q1573469 Q774319 Q3460450 Q1898562 Q3476984 Q1942119 Q2443522 Q2271504 Q3461320 Q1510586 Q755020 Q1636815 Q938100 Q5582373 Q498773 Q2706524 Q3460208 Q1183709 Q1785340 Q3452472 Q1376943 Q5645655 Q985486 Q3306176 Q630260 Q79546 Q2459183 Q2638406 Q2588367 Q3459304 Q3612349 Q690991 Q2429119 Q744198 Q1734955 Q5680397 Q650694 Q2277678 Q31487 Q898109 Q2740714 Q1377121 Q2040930 Q7987027 Q254221 Q520499 Q2005156 Q2101741 Q2272266 Q1376974 Q7570941 Q3462028 Q984542 Q2320197 Q1920378 Q638180 Q282266 Q2100117 Q2323152 Q2150258 Q1515408 Q2638417 Q1847338 Q2514220 Q1514432 Q1086841 Q981581 Q3313526 Q673772 Q1375703 Q1012971 Q2016119 Q2570502 Q7991947 Q2443480 Q1959298 Q630253 Q3458617 Q2453592 Q1484530 Q2891920 Q2126669 Q1024100 Q3056724 Q2025717 Q3267916 Q5091036 Q931331 Q1028196 Q3130627 Q949709 Q1535079 Q2093034 Q1866955 Q1943133 Q2377992 Q1013162 Q1376559 Q2271711 Q2443708 Q2461671 Q19818341 Q3294011 Q3473949 Q2230206 Q2637332 Q532459 Q1845421 Q1835270 Q542794 Q1012668 Q2375832 Q589958 Q1183907 Q423505 Q3052790 Q2361035 Q1513007 Q2925171 Q3459533 Q2375999 Q2033190 Q1560792 Q1845155 Q2425873 Q969173 Q1131479 Q2877571 Q1089064 Q1374602 Q755880 Q868666 Q2165777 Q1368039 Q2392574 Q5430744 Q756573 Q1006586 Q2650031 Q2429053 Q584451 Q1850538 Q628771 Q2356400 Q1787293 Q2573670 Q11703248 Q2049822 Q1374369 Q513757 Q880153 Q2189258 Q2745135 Q384692 Q1261675 Q2691345 Q1376781 Q3460473 Q2111166 Q2796218 Q2656942
(c(Q4830453),P1408,c(Q486972))
action less
action find_reverse_tuple_counts
relation P1408
type Q486972
type Q4830453
action count
action filter_type
action find_reverse
entity Q7201608
relation P1408
type Q4830453
[ANSWERS] lesser number of business enterprises got a license to broadcast to than Plantation Key
[{'concept': 'Q4830453'}, 'P1408', {'concept': 'Q486972'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:P1408 resource:Q7201608 . ?v rdf:type ontology:Q4830453 } } . FILTER ( ?b < ?q ) . { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?b ) WHERE { ?c property:P1408 ?e . ?e rdf:type ontology:Q486972 . ?c rdf:type ontology:Q4830453 } GROUP BY ?e } }
Norco Carmichael Beverly Hills Arlington Villas Galliano Lonepine Collinsville Mayer Spring Hill Reserve Oak View Houghton Lake Tonopah Chualar Navarre Campo Big Pine Key Cutten Gifford Bainbridge Hernando Westhampton Waianae Valhalla Woodbridge Loudonville Miramar Beach Sterling Grasonville Volcano Miamitown Lincoln University San Luis Potosí Saltillo North Creek Manahawkin Fair Oaks Port Charlotte Hamilton City Wakefield-Peacedale Highland White River Junction Plainview Fort Bridger Leisure City Middleburg Hampton Bays Opportunity Pikesville Orcutt Indian Springs Goochland Montauk Sans Souci Manorville Oliver Lázaro Cárdenas Irondequoit Ettrick Deltaville Pahrump Planada Hebbronville Haines Forestbrook Hanalei Eleele Lake Ronkonkoma University, Mississippi East Los Angeles Orlo Vista Kaunakakai Kasilof Marble Lexington Park Angwin Kraków Brandon Oracle Bassett Hemlock West Yarmouth Schladming Cypress Quarters Rosamond Holualoa Aloha Lakeside Southport Center Moriches Paradise Lacombe Mendocino New Market North Fort Myers Garyville Moapa Valley Seffner Silverdale Kalaheo Kealakekua Concow Fall City North Cape May Ranchitos Las Lomas Homeland Park Bon Air Mechanicsville Lahaina Wahiawa Tice Wheaton Goulds Strasburg Garden City Carnelian Bay Watertown Kaneohe Cannonsburg Holiday Sun City West Syosset Fairview Lanai City Chenango Bridge Dolan Springs Cambria Lithia Springs Fruit Cove Golden Valley, Arizona Pine Island Center Wilberforce Mojave Newburg Tuba City Stony Brook Colonial Heights San Carlos Park Hobe Sound Mesilla Park Pine Hills Heathsville Bridgeport Monte Rio Kailua Pine Castle Hope Valley Big Bear City Window Rock Estero Pollock Pines Levittown Aiea Indian River Kendall Dishman Bridgehampton Sunriver Jensen Beach Freedom Vail Cypress Gardens Makawao Mirando City Beaver Springs Calverton Blackwood Forest Maugansville Hershey Blountville Esparto Port Sulphur Fairview, Erie County, Pennsylvania Ocean Pines Sun City Narragansett Pier Bithlo Bethesda Tse Bonito Charlotte Harbor Empire Santa Ynez Medford Riverhead (CDP), New York Punta Rassa Fieldale Sun Valley Black Canyon City St. Andrews Cordes Lakes Bay Shore Meridianville Socastee Fairview Beach Endwell Evergreen El Rio Mableton
Kraków, San Luis Potosí and Lincoln University lesser number of business enterprises got a license to broadcast to than Plantation Key
Kraków San Luis Potosí Lincoln University
action less
action find_reverse_tuple_counts
relation licensed to broadcast to
type human settlement
type business enterprise
action count
action filter_type
action find_reverse
entity Plantation Key
relation licensed to broadcast to
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', {'concept': 'human settlement'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:licensed_to_broadcast_to resource:Plantation_Key . ?v rdf:type ontology:business_enterprise } } . FILTER ( ?b < ?q ) . { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?b ) WHERE { ?c property:licensed_to_broadcast_to ?e . ?e rdf:type ontology:human_settlement . ?c rdf:type ontology:business_enterprise } GROUP BY ?e } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q960225
P1408
Q486972 Q4830453
USER
And also tell me about Lehigh Acres?
(c(Q4830453),P1408,c(Q486972))
action less
action find_reverse_tuple_counts
relation P1408
type Q486972
type Q4830453
action count
action filter_type
action find_reverse
entity Q960225
relation P1408
type Q4830453
[{'concept': 'Q4830453'}, 'P1408', {'concept': 'Q486972'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?j ) WHERE { ?h property:P1408 ?g . ?g rdf:type ontology:Q486972 . ?h rdf:type ontology:Q4830453 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { ?r property:P1408 resource:Q960225 . ?r rdf:type ontology:Q4830453 } } . FILTER ( ?j < ?l ) }
Lehigh Acres
action less
action find_reverse_tuple_counts
relation licensed to broadcast to
type human settlement
type business enterprise
action count
action filter_type
action find_reverse
entity Lehigh Acres
relation licensed to broadcast to
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', {'concept': 'human settlement'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?j ) WHERE { ?h property:licensed_to_broadcast_to ?g . ?g rdf:type ontology:human_settlement . ?h rdf:type ontology:business_enterprise } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { ?r property:licensed_to_broadcast_to resource:Lehigh_Acres . ?r rdf:type ontology:business_enterprise } } . FILTER ( ?j < ?l ) }
[]
human settlement business enterprise
Q31487 Q204271 Q4570781
SYSTEM
Kraków, San Luis Potosí, Lincoln University
Q2228038 Q1006574 Q851806 Q675521 Q1085227 Q2131187 Q955773 Q1376378 Q2375262 Q2321558 Q3155671 Q1876120 Q2892388 Q988827 Q2797405 Q3470764 Q249224 Q859187 Q2402910 Q2443721 Q2088307 Q1613686 Q3460058 Q1413686 Q2362234 Q1375929 Q6686011 Q2429075 Q1928157 Q754578 Q2428769 Q3472295 Q4570781 Q204271 Q53077 Q3344111 Q970773 Q1393019 Q1022776 Q1573469 Q774319 Q3460450 Q1898562 Q3476984 Q1942119 Q2443522 Q2271504 Q3461320 Q1510586 Q755020 Q1636815 Q938100 Q5582373 Q498773 Q2706524 Q3460208 Q1183709 Q1785340 Q3452472 Q1376943 Q5645655 Q985486 Q3306176 Q630260 Q79546 Q2459183 Q2638406 Q2588367 Q3459304 Q3612349 Q690991 Q2429119 Q744198 Q1734955 Q5680397 Q650694 Q2277678 Q31487 Q898109 Q2740714 Q1377121 Q2040930 Q7987027 Q254221 Q520499 Q2005156 Q2101741 Q2272266 Q1376974 Q7570941 Q3462028 Q984542 Q2320197 Q1920378 Q638180 Q282266 Q2100117 Q2323152 Q2150258 Q1515408 Q2638417 Q1847338 Q2514220 Q1514432 Q1086841 Q981581 Q3313526 Q673772 Q1375703 Q1012971 Q2016119 Q2570502 Q7991947 Q2443480 Q1959298 Q630253 Q3458617 Q2453592 Q1484530 Q2891920 Q2126669 Q1024100 Q3056724 Q2025717 Q3267916 Q5091036 Q931331 Q1028196 Q3130627 Q949709 Q1535079 Q2093034 Q1866955 Q1943133 Q2377992 Q1013162 Q1376559 Q2271711 Q2443708 Q2461671 Q19818341 Q3294011 Q3473949 Q2230206 Q2637332 Q532459 Q1845421 Q1835270 Q542794 Q1012668 Q2375832 Q589958 Q1183907 Q423505 Q3052790 Q2361035 Q1513007 Q2925171 Q3459533 Q2375999 Q2033190 Q1560792 Q1845155 Q2425873 Q969173 Q1131479 Q2877571 Q1089064 Q1374602 Q755880 Q868666 Q2165777 Q1368039 Q2392574 Q5430744 Q756573 Q1006586 Q2650031 Q2429053 Q584451 Q1850538 Q628771 Q2356400 Q1787293 Q2573670 Q11703248 Q2049822 Q1374369 Q513757 Q880153 Q2189258 Q2745135 Q384692 Q1261675 Q2691345 Q1376781 Q3460473 Q2111166 Q2796218 Q2656942
(c(Q4830453),P1408,c(Q486972))
action less
action find_reverse_tuple_counts
relation P1408
type Q486972
type Q4830453
action count
action filter_type
action find_reverse
entity Q960225
relation P1408
type Q4830453
[ANSWERS]
[{'concept': 'Q4830453'}, 'P1408', {'concept': 'Q486972'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?j ) WHERE { ?h property:P1408 ?g . ?g rdf:type ontology:Q486972 . ?h rdf:type ontology:Q4830453 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { ?r property:P1408 resource:Q960225 . ?r rdf:type ontology:Q4830453 } } . FILTER ( ?j < ?l ) }
Norco Carmichael Beverly Hills Arlington Villas Galliano Lonepine Collinsville Mayer Spring Hill Reserve Oak View Houghton Lake Tonopah Chualar Navarre Campo Big Pine Key Cutten Gifford Bainbridge Hernando Westhampton Waianae Valhalla Woodbridge Loudonville Miramar Beach Sterling Grasonville Volcano Miamitown Lincoln University San Luis Potosí Saltillo North Creek Manahawkin Fair Oaks Port Charlotte Hamilton City Wakefield-Peacedale Highland White River Junction Plainview Fort Bridger Leisure City Middleburg Hampton Bays Opportunity Pikesville Orcutt Indian Springs Goochland Montauk Sans Souci Manorville Oliver Lázaro Cárdenas Irondequoit Ettrick Deltaville Pahrump Planada Hebbronville Haines Forestbrook Hanalei Eleele Lake Ronkonkoma University, Mississippi East Los Angeles Orlo Vista Kaunakakai Kasilof Marble Lexington Park Angwin Kraków Brandon Oracle Bassett Hemlock West Yarmouth Schladming Cypress Quarters Rosamond Holualoa Aloha Lakeside Southport Center Moriches Paradise Lacombe Mendocino New Market North Fort Myers Garyville Moapa Valley Seffner Silverdale Kalaheo Kealakekua Concow Fall City North Cape May Ranchitos Las Lomas Homeland Park Bon Air Mechanicsville Lahaina Wahiawa Tice Wheaton Goulds Strasburg Garden City Carnelian Bay Watertown Kaneohe Cannonsburg Holiday Sun City West Syosset Fairview Lanai City Chenango Bridge Dolan Springs Cambria Lithia Springs Fruit Cove Golden Valley, Arizona Pine Island Center Wilberforce Mojave Newburg Tuba City Stony Brook Colonial Heights San Carlos Park Hobe Sound Mesilla Park Pine Hills Heathsville Bridgeport Monte Rio Kailua Pine Castle Hope Valley Big Bear City Window Rock Estero Pollock Pines Levittown Aiea Indian River Kendall Dishman Bridgehampton Sunriver Jensen Beach Freedom Vail Cypress Gardens Makawao Mirando City Beaver Springs Calverton Blackwood Forest Maugansville Hershey Blountville Esparto Port Sulphur Fairview, Erie County, Pennsylvania Ocean Pines Sun City Narragansett Pier Bithlo Bethesda Tse Bonito Charlotte Harbor Empire Santa Ynez Medford Riverhead (CDP), New York Punta Rassa Fieldale Sun Valley Black Canyon City St. Andrews Cordes Lakes Bay Shore Meridianville Socastee Fairview Beach Endwell Evergreen El Rio Mableton
Kraków San Luis Potosí Lincoln University
action less
action find_reverse_tuple_counts
relation licensed to broadcast to
type human settlement
type business enterprise
action count
action filter_type
action find_reverse
entity Lehigh Acres
relation licensed to broadcast to
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', {'concept': 'human settlement'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?j ) WHERE { ?h property:licensed_to_broadcast_to ?g . ?g rdf:type ontology:human_settlement . ?h rdf:type ontology:business_enterprise } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { ?r property:licensed_to_broadcast_to resource:Lehigh_Acres . ?r rdf:type ontology:business_enterprise } } . FILTER ( ?j < ?l ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P190
Q486972 Q1048835
USER
Which political territories are partner town of exactly 1 human settlement ?
(c(Q1048835),P190,c(Q486972))
action equal
action find_tuple_counts
relation P190
type Q1048835
type Q486972
value 1
[{'concept': 'Q1048835'}, 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?y = 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?y ) WHERE { ?x property:P190 ?s . ?x rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q486972 } GROUP BY ?x } }
action equal
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
value 1
[{'concept': 'political territorial entity'}, 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?y = 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?y ) WHERE { ?x property:sister_city ?s . ?x rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:human_settlement } GROUP BY ?x } }
[]
human settlement political territorial entity
Q436491 Q5826 Q42956
SYSTEM
Altea, Xi'an, Harbin
Q5963 Q1312654 Q496588 Q12339 Q11746 Q13521 Q4970 Q1769167 Q485129 Q15174 Q12587 Q10436 Q748078 Q8184 Q188905 Q42956 Q281272 Q436491 Q221749 Q639422 Q465085 Q943431 Q695456 Q11720 Q353618 Q10445 Q984821 Q74881 Q5826 Q203040
(c(Q1048835),P190,c(Q486972))
action equal
action find_tuple_counts
relation P190
type Q1048835
type Q486972
value 1
[ANSWERS] are partner town of exactly 1 human settlement
[{'concept': 'Q1048835'}, 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?y = 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?y ) WHERE { ?x property:P190 ?s . ?x rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q486972 } GROUP BY ?x } }
Hanover region Carlet Oñati Sant Joan de les Abadesses Wuhan Sant Feliu de Guíxols Hangzhou Cigales Burgo de Osma-Ciudad de Osma Shenzhen Santa Susanna Kulmbach Neath Port Talbot County Borough Enz Ouro Preto Harbin Linares Altea Torrevieja Pozuelo de Alarcón Almadén Granadilla de Abona Bailén Shenyang Adeje Forchheim Onda Dalian Xi'an El Puerto de Santa María
Altea, Xi'an and Harbin are partner town of exactly 1 human settlement
Altea Xi'an Harbin
action equal
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
value 1
[{'concept': 'political territorial entity'}, 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?y = 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?y ) WHERE { ?x property:sister_city ?s . ?x rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:human_settlement } GROUP BY ?x } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q443440 Q960225
P27 P17
Q15617994
USER
Which administrative territories are Lehigh Acres a part of and do Carlton Cuse belong to ?
AND((Q960225,P17,c(Q15617994)), (Q443440,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q960225
relation P17
action find
entity Q443440
relation P27
type Q15617994
{'AND': [['Q960225', 'P17', {'concept': 'Q15617994'}], ['Q443440', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { resource:Q960225 property:P17 ?w . resource:Q443440 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Carlton Cuse Lehigh Acres
action filter_type
action intersection
action find
entity Lehigh Acres
relation country
action find
entity Carlton Cuse
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Lehigh Acres', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Carlton Cuse', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { resource:Lehigh_Acres property:country ?w . resource:Carlton_Cuse property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q960225,P17,c(Q15617994)), (Q443440,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q960225
relation P17
action find
entity Q443440
relation P27
type Q15617994
[ANSWER] is Lehigh Acres a part of and do Carlton Cuse belong to
{'AND': [['Q960225', 'P17', {'concept': 'Q15617994'}], ['Q443440', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { resource:Q960225 property:P17 ?w . resource:Q443440 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
United States of America
United States of America is Lehigh Acres a part of and do Carlton Cuse belong to
United States of America
action filter_type
action intersection
action find
entity Lehigh Acres
relation country
action find
entity Carlton Cuse
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Lehigh Acres', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Carlton Cuse', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { resource:Lehigh_Acres property:country ?w . resource:Carlton_Cuse property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19689 Q204271
P190
Q56061
USER
Which administrative territories are twin city of San Luis Potosí or Tirana ?
OR((c(Q56061),P190,Q204271), (c(Q56061),P190,Q19689))
action filter_type
action union
action find_reverse
entity Q204271
relation P190
action find_reverse
entity Q19689
relation P190
type Q56061
{'OR': [[{'concept': 'Q56061'}, 'P190', 'Q204271'], [{'concept': 'Q56061'}, 'P190', 'Q19689']]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?t ) { ( resource:Q204271 ) ( resource:Q19689 ) } . ?c property:P190 ?t } . ?c rdf:type ontology:Q56061 }
Tirana San Luis Potosí
action filter_type
action union
action find_reverse
entity San Luis Potosí
relation sister city
action find_reverse
entity Tirana
relation sister city
type administrative territorial entity
{'OR': [[{'concept': 'administrative territorial entity'}, 'sister city', 'San Luis Potosí'], [{'concept': 'administrative territorial entity'}, 'sister city', 'Tirana']]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?t ) { ( resource:San_Luis_Potosí ) ( resource:Tirana ) } . ?c property:sister_city ?t } . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2044 Q956 Q828706 Q1492 Q25270 Q10305 Q17151 Q472 Q23564 Q38022
SYSTEM
Some of them are Florence, Beijing, Pico Rivera, Barcelona, Prishtina, Zaragoza, Thessaloniki, Sofia, Podgorica, St. Louis
Q1754 Q641 Q982364 Q649 Q472 Q44989 Q184587 Q25270 Q1524 Q200061 Q10305 Q495 Q1007418 Q178168 Q17151 Q15875 Q35045 Q38022 Q40738 Q406 Q12233 Q216 Q239 Q2807 Q956 Q828706 Q2044 Q3640 Q23564 Q1492 Q1085
OR((c(Q56061),P190,Q204271), (c(Q56061),P190,Q19689))
action filter_type
action union
action find_reverse
entity Q204271
relation P190
action find_reverse
entity Q19689
relation P190
type Q56061
[ANSWERS] are twin city of San Luis Potosí or Tirana
{'OR': [[{'concept': 'Q56061'}, 'P190', 'Q204271'], [{'concept': 'Q56061'}, 'P190', 'Q19689']]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?t ) { ( resource:Q204271 ) ( resource:Q19689 ) } . ?c property:P190 ?t } . ?c rdf:type ontology:Q56061 }
Stockholm Venice Pharr Moscow Sofia Tulsa Grand Rapids Prishtina Athens Prizren Zaragoza Turin Cobourg Mitrovica Thessaloniki Idrija Potosí St. Louis Bursa Istanbul Santander Vilnius Brussels Madrid Beijing Pico Rivera Florence Ankara Podgorica Barcelona Prague
Florence, Beijing, Pico Rivera, Barcelona, Prishtina, Zaragoza, Thessaloniki, Sofia, Podgorica and St. Louis are twin city of San Luis Potosí or Tirana
Florence Beijing Pico Rivera Barcelona Prishtina Zaragoza Thessaloniki Sofia Podgorica St. Louis
action filter_type
action union
action find_reverse
entity San Luis Potosí
relation sister city
action find_reverse
entity Tirana
relation sister city
type administrative territorial entity
{'OR': [[{'concept': 'administrative territorial entity'}, 'sister city', 'San Luis Potosí'], [{'concept': 'administrative territorial entity'}, 'sister city', 'Tirana']]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?t ) { ( resource:San_Luis_Potosí ) ( resource:Tirana ) } . ?c property:sister_city ?t } . ?c rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4784446 Q3510971
P17
Q1048835
USER
Which political territories do Sky Atlantic or Zadié River belong to ?
OR((Q3510971,P17,c(Q1048835)), (Q4784446,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q3510971
relation P17
action find
entity Q4784446
relation P17
type Q1048835
{'OR': [['Q3510971', 'P17', {'concept': 'Q1048835'}], ['Q4784446', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q3510971 property:P17 ?x } UNION { resource:Q4784446 property:P17 ?x } } . ?x rdf:type ontology:Q1048835 }
Zadié River Sky Atlantic
action filter_type
action union
action find
entity Sky Atlantic
relation country
action find
entity Zadié River
relation country
type political territorial entity
{'OR': [['Sky Atlantic', 'country', {'concept': 'political territorial entity'}], ['Zadié River', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Sky_Atlantic property:country ?x } UNION { resource:Zadié_River property:country ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1000 Q183
SYSTEM
Gabon, Germany
Q1000 Q183
OR((Q3510971,P17,c(Q1048835)), (Q4784446,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q3510971
relation P17
action find
entity Q4784446
relation P17
type Q1048835
[ANSWERS] Sky Atlantic or Zadié River belong to
{'OR': [['Q3510971', 'P17', {'concept': 'Q1048835'}], ['Q4784446', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q3510971 property:P17 ?x } UNION { resource:Q4784446 property:P17 ?x } } . ?x rdf:type ontology:Q1048835 }
Gabon Germany
Gabon and Germany Sky Atlantic or Zadié River belong to
Gabon Germany
action filter_type
action union
action find
entity Sky Atlantic
relation country
action find
entity Zadié River
relation country
type political territorial entity
{'OR': [['Sky Atlantic', 'country', {'concept': 'political territorial entity'}], ['Zadié River', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Sky_Atlantic property:country ?x } UNION { resource:Zadié_River property:country ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q56061 Q3305213 Q838948
USER
Which administrative territories are depicted in approximately 3 paintings and works of art ?
(c(Q3305213)|c(Q838948),P180,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q56061
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q56061
type Q838948
value 3
[[{'concept': 'Q3305213'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?d ) WHERE { { ?e property:P180 ?j . ?j rdf:type ontology:Q56061 . ?e rdf:type ontology:Q3305213 } UNION { ?j rdf:type ontology:Q56061 . ?e rdf:type ontology:Q838948 . ?e property:P180 ?j } } GROUP BY ?j } . FILTER ( ?d = 3 ) }
action approx
action union
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type work of art
value 3
[[{'concept': 'painting'}, {'concept': 'work of art'}], 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?d ) WHERE { { ?e property:depicts ?j . ?j rdf:type ontology:administrative_territorial_entity . ?e rdf:type ontology:painting } UNION { ?j rdf:type ontology:administrative_territorial_entity . ?e rdf:type ontology:work_of_art . ?e property:depicts ?j } } GROUP BY ?j } . FILTER ( ?d = 3 ) }
[]
administrative territorial entity painting work of art
Q139564 Q515
SYSTEM
Atlantic City, city
Q139564 Q515
(c(Q3305213)|c(Q838948),P180,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q56061
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q56061
type Q838948
value 3
City [ANSWERS] are depicted in approximately 3 paintings and works of art
[[{'concept': 'Q3305213'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?d ) WHERE { { ?e property:P180 ?j . ?j rdf:type ontology:Q56061 . ?e rdf:type ontology:Q3305213 } UNION { ?j rdf:type ontology:Q56061 . ?e rdf:type ontology:Q838948 . ?e property:P180 ?j } } GROUP BY ?j } . FILTER ( ?d = 3 ) }
Atlantic City city
City Atlantic City and city are depicted in approximately 3 paintings and works of art
Atlantic City city
action approx
action union
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type work of art
value 3
[[{'concept': 'painting'}, {'concept': 'work of art'}], 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?d ) WHERE { { ?e property:depicts ?j . ?j rdf:type ontology:administrative_territorial_entity . ?e rdf:type ontology:painting } UNION { ?j rdf:type ontology:administrative_territorial_entity . ?e rdf:type ontology:work_of_art . ?e property:depicts ?j } } GROUP BY ?j } . FILTER ( ?d = 3 ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P361
Q1496967 Q486972
USER
How many territories or human settlements are a component of that administrative territory ?
(c(Q1496967),P361,Q515) (c(Q486972),P361,Q515) (c(Q1496967),P361,Q139564) (c(Q486972),P361,Q139564) (c(Q1496967),P361,Q515) (c(Q486972),P361,Q515)
[{'concept': 'Q1496967'}, 'P361', 'Q515'] [{'concept': 'Q486972'}, 'P361', 'Q515'] [{'concept': 'Q1496967'}, 'P361', 'Q139564'] [{'concept': 'Q486972'}, 'P361', 'Q139564'] [{'concept': 'Q1496967'}, 'P361', 'Q515'] [{'concept': 'Q486972'}, 'P361', 'Q515']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P361 resource:Q7930989 } UNION { ?y property:P361 resource:Q7930989 } UNION { ?z property:P361 resource:Q756329 } UNION { ?y property:P361 resource:Q756329 } UNION { ?z property:P361 resource:Q7930989 } UNION { ?y property:P361 resource:Q7930989 } } . ?z rdf:type ontology:Q1496967 . ?y rdf:type ontology:Q486972 }
[{'concept': 'territorial entity'}, 'part of', 'city'] [{'concept': 'human settlement'}, 'part of', 'city'] [{'concept': 'territorial entity'}, 'part of', 'Atlantic City'] [{'concept': 'human settlement'}, 'part of', 'Atlantic City'] [{'concept': 'territorial entity'}, 'part of', 'city'] [{'concept': 'human settlement'}, 'part of', 'city']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:part_of resource:city } UNION { ?y property:part_of resource:city } UNION { ?z property:part_of resource:Atlantic_City } UNION { ?y property:part_of resource:Atlantic_City } UNION { ?z property:part_of resource:city } UNION { ?y property:part_of resource:city } } . ?z rdf:type ontology:territorial_entity . ?y rdf:type ontology:human_settlement }
[]
territorial entity human settlement
Quantitative|Count|Mult. entity type|Clarification
Q515
SYSTEM
Did you mean city ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P361 resource:Q7930989 } UNION { ?y property:P361 resource:Q7930989 } UNION { ?z property:P361 resource:Q756329 } UNION { ?y property:P361 resource:Q756329 } UNION { ?z property:P361 resource:Q7930989 } UNION { ?y property:P361 resource:Q7930989 } } . ?z rdf:type ontology:Q1496967 . ?y rdf:type ontology:Q486972 }
Did you mean city ?
city
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:part_of resource:city } UNION { ?y property:part_of resource:city } UNION { ?z property:part_of resource:Atlantic_City } UNION { ?y property:part_of resource:Atlantic_City } UNION { ?z property:part_of resource:city } UNION { ?y property:part_of resource:city } } . ?z rdf:type ontology:territorial_entity . ?y rdf:type ontology:human_settlement }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q1496967),P361,Q515) (c(Q486972),P361,Q515) (c(Q1496967),P361,Q139564) (c(Q486972),P361,Q139564) (c(Q1496967),P361,Q515) (c(Q486972),P361,Q515)
[{'concept': 'Q1496967'}, 'P361', 'Q515'] [{'concept': 'Q486972'}, 'P361', 'Q515'] [{'concept': 'Q1496967'}, 'P361', 'Q139564'] [{'concept': 'Q486972'}, 'P361', 'Q139564'] [{'concept': 'Q1496967'}, 'P361', 'Q515'] [{'concept': 'Q486972'}, 'P361', 'Q515']
[{'concept': 'territorial entity'}, 'part of', 'city'] [{'concept': 'human settlement'}, 'part of', 'city'] [{'concept': 'territorial entity'}, 'part of', 'Atlantic City'] [{'concept': 'human settlement'}, 'part of', 'Atlantic City'] [{'concept': 'territorial entity'}, 'part of', 'city'] [{'concept': 'human settlement'}, 'part of', 'city']
[]
SYSTEM
2
Q893555 Q738570
(c(Q1496967),P361,Q515) (c(Q486972),P361,Q515) (c(Q1496967),P361,Q139564) (c(Q486972),P361,Q139564) (c(Q1496967),P361,Q515) (c(Q486972),P361,Q515)
[ANSWER]
[{'concept': 'Q1496967'}, 'P361', 'Q515'] [{'concept': 'Q486972'}, 'P361', 'Q515'] [{'concept': 'Q1496967'}, 'P361', 'Q139564'] [{'concept': 'Q486972'}, 'P361', 'Q139564'] [{'concept': 'Q1496967'}, 'P361', 'Q515'] [{'concept': 'Q486972'}, 'P361', 'Q515']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P361 resource:Q7930989 } UNION { ?y property:P361 resource:Q7930989 } UNION { ?z property:P361 resource:Q756329 } UNION { ?y property:P361 resource:Q756329 } UNION { ?z property:P361 resource:Q7930989 } UNION { ?y property:P361 resource:Q7930989 } } . ?z rdf:type ontology:Q1496967 . ?y rdf:type ontology:Q486972 }
borgo central business district
2
[{'concept': 'territorial entity'}, 'part of', 'city'] [{'concept': 'human settlement'}, 'part of', 'city'] [{'concept': 'territorial entity'}, 'part of', 'Atlantic City'] [{'concept': 'human settlement'}, 'part of', 'Atlantic City'] [{'concept': 'territorial entity'}, 'part of', 'city'] [{'concept': 'human settlement'}, 'part of', 'city']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:part_of resource:city } UNION { ?y property:part_of resource:city } UNION { ?z property:part_of resource:Atlantic_City } UNION { ?y property:part_of resource:Atlantic_City } UNION { ?z property:part_of resource:city } UNION { ?y property:part_of resource:city } } . ?z rdf:type ontology:territorial_entity . ?y rdf:type ontology:human_settlement }
[]