Simple Question (Direct)
Simple Question
Q6709053
P106
Q12737077
USER
Which occupation is the profession of Lynn Hemingway ?
(Q6709053,P106,c(Q12737077))
action filter_type
action find
entity Q6709053
relation P106
type Q12737077
['Q6709053', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q6709053 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Lynn Hemingway
action filter_type
action find
entity Lynn Hemingway
relation occupation
type occupation
['Lynn Hemingway', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Lynn_Hemingway property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q6709053,P106,c(Q12737077))
action filter_type
action find
entity Q6709053
relation P106
type Q12737077
So [ANSWER] is the profession of Lynn Hemingway
['Q6709053', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q6709053 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
politician
So politician is the profession of Lynn Hemingway
politician
action filter_type
action find
entity Lynn Hemingway
relation occupation
type occupation
['Lynn Hemingway', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Lynn_Hemingway property:occupation ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6709053
P102
Q7210356
USER
Which political organizations are Lynn Hemingway a member of ?
(Q6709053,P102,c(Q7210356))
action filter_type
action find
entity Q6709053
relation P102
type Q7210356
['Q6709053', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q6709053 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Lynn Hemingway
action filter_type
action find
entity Lynn Hemingway
relation member of political party
type political organization
['Lynn Hemingway', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Lynn_Hemingway property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
political organization
Q29552 Q7902341
SYSTEM
Democratic Party, Utah Democratic Party
Q29552 Q7902341
(Q6709053,P102,c(Q7210356))
action filter_type
action find
entity Q6709053
relation P102
type Q7210356
Party [ANSWERS] are Lynn Hemingway a member of
['Q6709053', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q6709053 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Democratic Party Utah Democratic Party
Party Democratic Party and Utah Democratic Party are Lynn Hemingway a member of
Democratic Party Utah Democratic Party
action filter_type
action find
entity Lynn Hemingway
relation member of political party
type political organization
['Lynn Hemingway', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Lynn_Hemingway property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6709053
P39
Q12737077
USER
What was the position held by that person ?
(Q29552,P39,c(Q12737077)) (Q7902341,P39,c(Q12737077))
action filter_type
action find
entity Q6709053
relation P39
type Q12737077
['Q29552', 'P39', {'concept': 'Q12737077'}] ['Q7902341', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q6709053 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
Lynn Hemingway
action filter_type
action find
entity Lynn Hemingway
relation position held
type occupation
['Democratic Party', 'position held', {'concept': 'occupation'}] ['Utah Democratic Party', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Lynn_Hemingway property:position_held ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q18810381
SYSTEM
member of the Utah House of Representatives
Q18810381
(Q29552,P39,c(Q12737077)) (Q7902341,P39,c(Q12737077))
action filter_type
action find
entity Q6709053
relation P39
type Q12737077
The position held by that person was a [ANSWER]
['Q29552', 'P39', {'concept': 'Q12737077'}] ['Q7902341', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q6709053 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
member of the Utah House of Representatives
The position held by that person was a member of the Utah House of Representatives
member of the Utah House of Representatives
action filter_type
action find
entity Lynn Hemingway
relation position held
type occupation
['Democratic Party', 'position held', {'concept': 'occupation'}] ['Utah Democratic Party', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Lynn_Hemingway property:position_held ?z . ?z rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18810381
P1001
Q852446
USER
Which US administrative territory applies to jurisdiction of that occupation ?
(Q18810381,P1001,c(Q852446))
action filter_type
action find
entity Q18810381
relation P1001
type Q852446
['Q18810381', 'P1001', {'concept': 'Q852446'}]
SELECT DISTINCT ?e WHERE { resource:Q18810381 property:P1001 ?e . ?e rdf:type ontology:Q852446 }
member of the Utah House of Representatives
action filter_type
action find
entity member of the Utah House of Representatives
relation applies to jurisdiction
type administrative territorial entity of the United States
['member of the Utah House of Representatives', 'applies to jurisdiction', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?e WHERE { resource:member_of_the_Utah_House_of_Representatives property:applies_to_jurisdiction ?e . ?e rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
administrative territorial entity of the United States
Q829
SYSTEM
Utah
Q829
(Q18810381,P1001,c(Q852446))
action filter_type
action find
entity Q18810381
relation P1001
type Q852446
The [ANSWER] applies to jurisdiction of that occupation
['Q18810381', 'P1001', {'concept': 'Q852446'}]
SELECT DISTINCT ?e WHERE { resource:Q18810381 property:P1001 ?e . ?e rdf:type ontology:Q852446 }
Utah
The Utah applies to jurisdiction of that occupation
Utah
action filter_type
action find
entity member of the Utah House of Representatives
relation applies to jurisdiction
type administrative territorial entity of the United States
['member of the Utah House of Representatives', 'applies to jurisdiction', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?e WHERE { resource:member_of_the_Utah_House_of_Representatives property:applies_to_jurisdiction ?e . ?e rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q829
P36
Q56061
USER
Which administrative territory is the capital of that US administrative territory ?
(Q829,P36,c(Q56061))
action filter_type
action find
entity Q829
relation P36
type Q56061
['Q829', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q829 property:P36 ?e }
Utah
action filter_type
action find
entity Utah
relation capital
type administrative territorial entity
['Utah', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Utah property:capital ?e }
[]
administrative territorial entity
Q23337
SYSTEM
Salt Lake City
Q23337
(Q829,P36,c(Q56061))
action filter_type
action find
entity Q829
relation P36
type Q56061
[ANSWER] is the capital of that US administrative territory
['Q829', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q829 property:P36 ?e }
Salt Lake City
Salt Lake City is the capital of that US administrative territory
Salt Lake City
action filter_type
action find
entity Utah
relation capital
type administrative territorial entity
['Utah', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Utah property:capital ?e }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q2538977
P841
Q186081 Q573 Q502895
USER
How many people have less number of time intervals and days as principal feast day than Joseph of Leonessa ?
(c(Q502895),P841,c(Q186081)|c(Q573))
action count
action less
action union
action find_tuple_counts
relation P841
type Q502895
type Q186081
action find_tuple_counts
relation P841
type Q502895
type Q573
action count
action filter_multi_types
action find
entity Q2538977
relation P841
type Q186081
type Q573
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q186081'}, {'concept': 'Q573'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?v ) AS ?q ) WHERE { VALUES ( ?x ) { ( ontology:Q573 ) ( ontology:Q186081 ) } . ?v rdf:type ?x } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { { { ?e rdf:type ontology:Q186081 } UNION { ?e rdf:type ontology:Q573 } } . resource:Q2538977 property:P841 ?e } } . FILTER ( ?q < ?n ) }
Joseph of Leonessa
action count
action less
action union
action find_tuple_counts
relation feast day
type common name
type time interval
action find_tuple_counts
relation feast day
type common name
type day
action count
action filter_multi_types
action find
entity Joseph of Leonessa
relation feast day
type time interval
type day
[{'concept': 'common name'}, 'feast day', [{'concept': 'time interval'}, {'concept': 'day'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?v ) AS ?q ) WHERE { VALUES ( ?x ) { ( ontology:day ) ( ontology:time_interval ) } . ?v rdf:type ?x } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { { { ?e rdf:type ontology:time_interval } UNION { ?e rdf:type ontology:day } } . resource:Joseph_of_Leonessa property:feast_day ?e } } . FILTER ( ?q < ?n ) }
[]
time interval day common name
SYSTEM
11
Q384117 Q365797 Q3483257 Q679784 Q3483161 Q3483259 Q3483263 Q167477 Q3047912 Q269889 Q2701365
(c(Q502895),P841,c(Q186081)|c(Q573))
action count
action less
action union
action find_tuple_counts
relation P841
type Q502895
type Q186081
action find_tuple_counts
relation P841
type Q502895
type Q573
action count
action filter_multi_types
action find
entity Q2538977
relation P841
type Q186081
type Q573
[ANSWER]
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q186081'}, {'concept': 'Q573'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?v ) AS ?q ) WHERE { VALUES ( ?x ) { ( ontology:Q573 ) ( ontology:Q186081 ) } . ?v rdf:type ?x } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { { { ?e rdf:type ontology:Q186081 } UNION { ?e rdf:type ontology:Q573 } } . resource:Q2538977 property:P841 ?e } } . FILTER ( ?q < ?n ) }
Aignan of Orleans Ahmad al-Tijani Sidi M'hamed Bou Qobrine Pier Giorgio Frassati Sidi Abder Rahman El Thaelebi Sidi M'hand Oumalek Sidi Mansour Anthony of Padua Seraphina Sforza Joanna, wife of Chuza Thomas Percy, 7th Earl of Northumberland
11
action count
action less
action union
action find_tuple_counts
relation feast day
type common name
type time interval
action find_tuple_counts
relation feast day
type common name
type day
action count
action filter_multi_types
action find
entity Joseph of Leonessa
relation feast day
type time interval
type day
[{'concept': 'common name'}, 'feast day', [{'concept': 'time interval'}, {'concept': 'day'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?v ) AS ?q ) WHERE { VALUES ( ?x ) { ( ontology:day ) ( ontology:time_interval ) } . ?v rdf:type ?x } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { { { ?e rdf:type ontology:time_interval } UNION { ?e rdf:type ontology:day } } . resource:Joseph_of_Leonessa property:feast_day ?e } } . FILTER ( ?q < ?n ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q17631505 Q6709053
P27
Q15617994
USER
Which administrative territories are Lynn Hemingway or Kizito Mihigo a civilian of ?
OR((Q6709053,P27,c(Q15617994)), (Q17631505,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6709053
relation P27
action find
entity Q17631505
relation P27
type Q15617994
{'OR': [['Q6709053', 'P27', {'concept': 'Q15617994'}], ['Q17631505', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q6709053 property:P27 ?o } UNION { resource:Q17631505 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
Kizito Mihigo Lynn Hemingway
action filter_type
action union
action find
entity Lynn Hemingway
relation country of citizenship
action find
entity Kizito Mihigo
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Lynn Hemingway', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kizito Mihigo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Lynn_Hemingway property:country_of_citizenship ?o } UNION { resource:Kizito_Mihigo property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1037 Q30
SYSTEM
Rwanda, United States of America
Q1037 Q30
OR((Q6709053,P27,c(Q15617994)), (Q17631505,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6709053
relation P27
action find
entity Q17631505
relation P27
type Q15617994
[ANSWERS] are Lynn Hemingway or Kizito Mihigo a civilian of
{'OR': [['Q6709053', 'P27', {'concept': 'Q15617994'}], ['Q17631505', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q6709053 property:P27 ?o } UNION { resource:Q17631505 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
Rwanda United States of America
Rwanda and United States of America are Lynn Hemingway or Kizito Mihigo a civilian of
Rwanda United States of America
action filter_type
action union
action find
entity Lynn Hemingway
relation country of citizenship
action find
entity Kizito Mihigo
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Lynn Hemingway', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kizito Mihigo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Lynn_Hemingway property:country_of_citizenship ?o } UNION { resource:Kizito_Mihigo property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6503481
P495
Q838948
USER
Did Law of the Lash originate in those administrative territories ?
(Q6503481,P495,Q1037) (Q6503481,P495,Q30)
action is_in
entity prev_answer
action find
entity Q6503481
relation P495
['Q6503481', 'P495', 'Q1037'] ['Q6503481', 'P495', 'Q30']
ASK WHERE { resource:Q6503481 property:P495 ?o . VALUES ( ?o ) { ( resource:Q1037 ) ( resource:Q30 ) } }
Law of the Lash
action is_in
entity prev_answer
action find
entity Law of the Lash
relation country of origin
['Law of the Lash', 'country of origin', 'Rwanda'] ['Law of the Lash', 'country of origin', 'United States of America']
ASK WHERE { resource:Law_of_the_Lash property:country_of_origin ?o . VALUES ( ?o ) { ( resource:Rwanda ) ( resource:United_States_of_America ) } }
[]
work of art
SYSTEM
NO
(Q6503481,P495,Q1037) (Q6503481,P495,Q30)
action is_in
entity prev_answer
action find
entity Q6503481
relation P495
[ANSWER]
['Q6503481', 'P495', 'Q1037'] ['Q6503481', 'P495', 'Q30']
ASK WHERE { resource:Q6503481 property:P495 ?o . VALUES ( ?o ) { ( resource:Q1037 ) ( resource:Q30 ) } }
No
action is_in
entity prev_answer
action find
entity Law of the Lash
relation country of origin
['Law of the Lash', 'country of origin', 'Rwanda'] ['Law of the Lash', 'country of origin', 'United States of America']
ASK WHERE { resource:Law_of_the_Lash property:country_of_origin ?o . VALUES ( ?o ) { ( resource:Rwanda ) ( resource:United_States_of_America ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q6709053 Q16995884 Q30
P27
Q15617994
USER
Is Lynn Hemingway a citizen of Horseheads Central School District and United States of America ?
(Q6709053,P27,Q16995884) (Q6709053,P27,Q30)
action is_in
entity Q6709053
action intersection
action find_reverse
entity Q16995884
relation P27
action find_reverse
entity Q30
relation P27
['Q6709053', 'P27', 'Q16995884'] ['Q6709053', 'P27', 'Q30']
ASK WHERE { resource:Q6709053 property:P27 resource:Q16995884 . resource:Q6709053 property:P27 resource:Q30 }
Lynn Hemingway Horseheads Central School District United States of America
action is_in
entity Lynn Hemingway
action intersection
action find_reverse
entity Horseheads Central School District
relation country of citizenship
action find_reverse
entity United States of America
relation country of citizenship
['Lynn Hemingway', 'country of citizenship', 'Horseheads Central School District'] ['Lynn Hemingway', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Lynn_Hemingway property:country_of_citizenship resource:Horseheads_Central_School_District . resource:Lynn_Hemingway property:country_of_citizenship resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q6709053,P27,Q16995884) (Q6709053,P27,Q30)
action is_in
entity Q6709053
action intersection
action find_reverse
entity Q16995884
relation P27
action find_reverse
entity Q30
relation P27
[ANSWER]
['Q6709053', 'P27', 'Q16995884'] ['Q6709053', 'P27', 'Q30']
ASK WHERE { resource:Q6709053 property:P27 resource:Q16995884 . resource:Q6709053 property:P27 resource:Q30 }
NO and YES respectively
action is_in
entity Lynn Hemingway
action intersection
action find_reverse
entity Horseheads Central School District
relation country of citizenship
action find_reverse
entity United States of America
relation country of citizenship
['Lynn Hemingway', 'country of citizenship', 'Horseheads Central School District'] ['Lynn Hemingway', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Lynn_Hemingway property:country_of_citizenship resource:Horseheads_Central_School_District . resource:Lynn_Hemingway property:country_of_citizenship resource:United_States_of_America }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P840
Q852446 Q838948 Q15416
USER
How many US administrative territories are around 145 works of art or television programs set in ?
(c(Q838948)|c(Q15416),P840,c(Q852446))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q838948
action find_reverse_tuple_counts
relation P840
type Q852446
type Q15416
value 145
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { FILTER ( ?j = 145 ) . { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?j ) WHERE { { ?q property:P840 ?e . ?e rdf:type ontology:Q852446 . ?q rdf:type ontology:Q838948 } UNION { ?q property:P840 ?e . ?q rdf:type ontology:Q15416 . ?e rdf:type ontology:Q852446 } } GROUP BY ?e } }
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type work of art
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type television program
value 145
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { FILTER ( ?j = 145 ) . { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?j ) WHERE { { ?q property:narrative_location ?e . ?e rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?q rdf:type ontology:work_of_art } UNION { ?q property:narrative_location ?e . ?q rdf:type ontology:television_program . ?e rdf:type ontology:administrative_territorial_entity_of_the_United_States } } GROUP BY ?e } }
[]
administrative territorial entity of the United States work of art television program
SYSTEM
20
Q829 Q1603 Q724 Q1581 Q1537 Q1384 Q1522 Q824 Q1223 Q1166 Q816 Q771 Q812 Q1509 Q1261 Q779 Q1408 Q1558 Q173 Q1553
(c(Q838948)|c(Q15416),P840,c(Q852446))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q838948
action find_reverse_tuple_counts
relation P840
type Q852446
type Q15416
value 145
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { FILTER ( ?j = 145 ) . { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?j ) WHERE { { ?q property:P840 ?e . ?e rdf:type ontology:Q852446 . ?q rdf:type ontology:Q838948 } UNION { ?q property:P840 ?e . ?q rdf:type ontology:Q15416 . ?e rdf:type ontology:Q852446 } } GROUP BY ?e } }
Utah Kentucky Maine Missouri Wisconsin New York New Mexico Oregon Washington Michigan Arizona Massachusetts Florida Tennessee Colorado Connecticut New Jersey Kansas Alabama Nebraska
20
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type work of art
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type television program
value 145
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { FILTER ( ?j = 145 ) . { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?j ) WHERE { { ?q property:narrative_location ?e . ?e rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?q rdf:type ontology:work_of_art } UNION { ?q property:narrative_location ?e . ?q rdf:type ontology:television_program . ?e rdf:type ontology:administrative_territorial_entity_of_the_United_States } } GROUP BY ?e } }
[]