Simple Question (Direct)
Simple Question
Q6759413
P19
Q852446
USER
Which US administrative territory is the birthplace of Margaret Flory ?
(Q6759413,P19,c(Q852446))
action filter_type
action find
entity Q6759413
relation P19
type Q852446
['Q6759413', 'P19', {'concept': 'Q852446'}]
SELECT DISTINCT ?p WHERE { resource:Q6759413 property:P19 ?p . ?p rdf:type ontology:Q852446 }
Margaret Flory
action filter_type
action find
entity Margaret Flory
relation place of birth
type administrative territorial entity of the United States
['Margaret Flory', 'place of birth', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?p WHERE { resource:Margaret_Flory property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
administrative territorial entity of the United States
Q978718
SYSTEM
Colchester
Q978718
(Q6759413,P19,c(Q852446))
action filter_type
action find
entity Q6759413
relation P19
type Q852446
In [ANSWER] is the birthplace of Margaret Flory
['Q6759413', 'P19', {'concept': 'Q852446'}]
SELECT DISTINCT ?p WHERE { resource:Q6759413 property:P19 ?p . ?p rdf:type ontology:Q852446 }
Colchester
In Colchester is the birthplace of Margaret Flory
Colchester
action filter_type
action find
entity Margaret Flory
relation place of birth
type administrative territorial entity of the United States
['Margaret Flory', 'place of birth', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?p WHERE { resource:Margaret_Flory property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q978718
P20
Q502895
USER
Which person expired at that US administrative territory ?
(c(Q502895),P20,Q978718)
action filter_type
action find_reverse
entity Q978718
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q978718']
SELECT DISTINCT ?p WHERE { ?p property:P20 resource:Q978718 . ?p rdf:type ontology:Q502895 }
Colchester
action filter_type
action find_reverse
entity Colchester
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Colchester']
SELECT DISTINCT ?p WHERE { ?p property:place_of_death resource:Colchester . ?p rdf:type ontology:common_name }
[]
common name
Q6695052
SYSTEM
Luba Lisa
Q6695052
(c(Q502895),P20,Q978718)
action filter_type
action find_reverse
entity Q978718
relation P20
type Q502895
[ANSWER] expired at that US administrative territory
[{'concept': 'Q502895'}, 'P20', 'Q978718']
SELECT DISTINCT ?p WHERE { ?p property:P20 resource:Q978718 . ?p rdf:type ontology:Q502895 }
Luba Lisa
Luba Lisa expired at that US administrative territory
Luba Lisa
action filter_type
action find_reverse
entity Colchester
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Colchester']
SELECT DISTINCT ?p WHERE { ?p property:place_of_death resource:Colchester . ?p rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6695052
P106
Q12737077
USER
Which occupation has that person as his/her 's career ?
(Q6695052,P106,c(Q12737077))
action filter_type
action find
entity Q6695052
relation P106
type Q12737077
['Q6695052', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q6695052 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
Luba Lisa
action filter_type
action find
entity Luba Lisa
relation occupation
type occupation
['Luba Lisa', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Luba_Lisa property:occupation ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q33999
SYSTEM
actor
Q33999
(Q6695052,P106,c(Q12737077))
action filter_type
action find
entity Q6695052
relation P106
type Q12737077
[ANSWER] has that person as his/her 's career
['Q6695052', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q6695052 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
actor
Actor has that person as his/her 's career
actor
action filter_type
action find
entity Luba Lisa
relation occupation
type occupation
['Luba Lisa', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Luba_Lisa property:occupation ?a . ?a rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q6695052 Q312849
P21
Q290
USER
How many sexes are the sex of Luba Lisa or Mongkut ?
(Q6695052,P21,c(Q290)) (Q312849,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q6695052
relation P21
type Q290
action filter_type
action find
entity Q312849
relation P21
type Q290
['Q6695052', 'P21', {'concept': 'Q290'}] ['Q312849', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { VALUES ( ?c ) { ( resource:Q6695052 ) ( resource:Q312849 ) } . ?c property:P21 ?w }
Luba Lisa Mongkut
action count
action union
action filter_type
action find
entity Luba Lisa
relation gender
type sex
action filter_type
action find
entity Mongkut
relation gender
type sex
['Luba Lisa', 'gender', {'concept': 'sex'}] ['Mongkut', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { VALUES ( ?c ) { ( resource:Luba_Lisa ) ( resource:Mongkut ) } . ?c property:gender ?w }
[]
sex
SYSTEM
2
Q6581097 Q6581072
(Q6695052,P21,c(Q290)) (Q312849,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q6695052
relation P21
type Q290
action filter_type
action find
entity Q312849
relation P21
type Q290
[ANSWER]
['Q6695052', 'P21', {'concept': 'Q290'}] ['Q312849', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { VALUES ( ?c ) { ( resource:Q6695052 ) ( resource:Q312849 ) } . ?c property:P21 ?w }
male female
2
action count
action union
action filter_type
action find
entity Luba Lisa
relation gender
type sex
action filter_type
action find
entity Mongkut
relation gender
type sex
['Luba Lisa', 'gender', {'concept': 'sex'}] ['Mongkut', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { VALUES ( ?c ) { ( resource:Luba_Lisa ) ( resource:Mongkut ) } . ?c property:gender ?w }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6759413
P27
Q15617994
USER
Which administrative territory does Margaret Flory belong to ?
(Q6759413,P27,c(Q15617994))
action filter_type
action find
entity Q6759413
relation P27
type Q15617994
['Q6759413', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . resource:Q6759413 property:P27 ?h }
Margaret Flory
action filter_type
action find
entity Margaret Flory
relation country of citizenship
type designation for an administrative territorial entity
['Margaret Flory', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Margaret_Flory property:country_of_citizenship ?h }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q6759413,P27,c(Q15617994))
action filter_type
action find
entity Q6759413
relation P27
type Q15617994
Margaret Flory belongs to [ANSWER]
['Q6759413', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . resource:Q6759413 property:P27 ?h }
United States of America
Margaret Flory belongs to United States of America
United States of America
action filter_type
action find
entity Margaret Flory
relation country of citizenship
type designation for an administrative territorial entity
['Margaret Flory', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Margaret_Flory property:country_of_citizenship ?h }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4319903
Q15617994
USER
And also tell me about Viktor Nikitushkin?
(Q4319903,P27,c(Q15617994))
action filter_type
action find
entity Q4319903
relation P27
type Q15617994
['Q4319903', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . resource:Q4319903 property:P27 ?p }
Viktor Nikitushkin
action filter_type
action find
entity Viktor Nikitushkin
relation country of citizenship
type designation for an administrative territorial entity
['Viktor Nikitushkin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Viktor_Nikitushkin property:country_of_citizenship ?p }
[]
designation for an administrative territorial entity
Q159
SYSTEM
Russia
Q159
(Q4319903,P27,c(Q15617994))
action filter_type
action find
entity Q4319903
relation P27
type Q15617994
[ANSWER]
['Q4319903', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . resource:Q4319903 property:P27 ?p }
Russia
Russia
action filter_type
action find
entity Viktor Nikitushkin
relation country of citizenship
type designation for an administrative territorial entity
['Viktor Nikitushkin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Viktor_Nikitushkin property:country_of_citizenship ?p }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q159 Q541873
P530
Q15617994
USER
Does Rehburg-Loccum have a diplomatic relationship with Russia ?
(Q159,P530,Q541873)
action is_in
entity Q541873
action find
entity Q159
relation P530
['Q159', 'P530', 'Q541873']
ASK WHERE { resource:Q159 property:P530 resource:Q541873 }
Russia Rehburg-Loccum
action is_in
entity Rehburg-Loccum
action find
entity Russia
relation diplomatic relation
['Russia', 'diplomatic relation', 'Rehburg-Loccum']
ASK WHERE { resource:Russia property:diplomatic_relation resource:Rehburg-Loccum }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q159,P530,Q541873)
action is_in
entity Q541873
action find
entity Q159
relation P530
[ANSWER]
['Q159', 'P530', 'Q541873']
ASK WHERE { resource:Q159 property:P530 resource:Q541873 }
No
action is_in
entity Rehburg-Loccum
action find
entity Russia
relation diplomatic relation
['Russia', 'diplomatic relation', 'Rehburg-Loccum']
ASK WHERE { resource:Russia property:diplomatic_relation resource:Rehburg-Loccum }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6759413
P39
Q12737077
USER
What was the position held by Margaret Flory ?
(Q6759413,P39,c(Q12737077))
action filter_type
action find
entity Q6759413
relation P39
type Q12737077
['Q6759413', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q12737077 . resource:Q6759413 property:P39 ?l }
Margaret Flory
action filter_type
action find
entity Margaret Flory
relation position held
type occupation
['Margaret Flory', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:occupation . resource:Margaret_Flory property:position_held ?l }
[]
occupation
Q17484018
SYSTEM
member of the Vermont House of Representatives
Q17484018
(Q6759413,P39,c(Q12737077))
action filter_type
action find
entity Q6759413
relation P39
type Q12737077
The position held by Margaret Flory was a [ANSWER]
['Q6759413', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q12737077 . resource:Q6759413 property:P39 ?l }
member of the Vermont House of Representatives
The position held by Margaret Flory was a member of the Vermont House of Representatives
member of the Vermont House of Representatives
action filter_type
action find
entity Margaret Flory
relation position held
type occupation
['Margaret Flory', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:occupation . resource:Margaret_Flory property:position_held ?l }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6759413
P937
Q852446
USER
Which US administrative territory is the work location of that person ?
(Q17484018,P937,c(Q852446))
action filter_type
action find
entity Q6759413
relation P937
type Q852446
['Q17484018', 'P937', {'concept': 'Q852446'}]
SELECT DISTINCT ?e WHERE { resource:Q6759413 property:P937 ?e . ?e rdf:type ontology:Q852446 }
Margaret Flory
action filter_type
action find
entity Margaret Flory
relation work location
type administrative territorial entity of the United States
['member of the Vermont House of Representatives', 'work location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?e WHERE { resource:Margaret_Flory property:work_location ?e . ?e rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
administrative territorial entity of the United States
Q26426
SYSTEM
Montpelier
Q26426
(Q17484018,P937,c(Q852446))
action filter_type
action find
entity Q6759413
relation P937
type Q852446
[ANSWER] is the work location of that person
['Q17484018', 'P937', {'concept': 'Q852446'}]
SELECT DISTINCT ?e WHERE { resource:Q6759413 property:P937 ?e . ?e rdf:type ontology:Q852446 }
Montpelier
Montpelier is the work location of that person
Montpelier
action filter_type
action find
entity Margaret Flory
relation work location
type administrative territorial entity of the United States
['member of the Vermont House of Representatives', 'work location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?e WHERE { resource:Margaret_Flory property:work_location ?e . ?e rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1558
P840
Q852446 Q838948 Q2342494
USER
How many US administrative territories are lesser number of works of art or collectables set in than Kansas ?
(c(Q838948)|c(Q2342494),P840,c(Q852446))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q838948
action find_reverse_tuple_counts
relation P840
type Q852446
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q1558
relation P840
type Q838948
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { ?c property:P840 resource:Q1558 . { { ?c rdf:type ontology:Q838948 } UNION { ?c rdf:type ontology:Q2342494 } } } } . FILTER ( ?r < ?f ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?h WHERE { VALUES ( ?g ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } . ?i rdf:type ?g } GROUP BY ?h } }
Kansas
action count
action less
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 collectable
action count
action filter_multi_types
action find_reverse
entity Kansas
relation narrative location
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { ?c property:narrative_location resource:Kansas . { { ?c rdf:type ontology:work_of_art } UNION { ?c rdf:type ontology:collectable } } } } . FILTER ( ?r < ?f ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?h WHERE { VALUES ( ?g ) { ( ontology:work_of_art ) ( ontology:collectable ) } . ?i rdf:type ?g } GROUP BY ?h } }
[]
administrative territorial entity of the United States work of art collectable
SYSTEM
30
Q1397 Q43421 Q1603 Q1391 Q7886863 Q5000330 Q1370 Q1612 Q1454 Q3474463 Q1415 Q782 Q1527 Q1546 Q1204 Q1227 Q771 Q1207 Q1371 Q1428 Q38555 Q759 Q14710458 Q1588 Q523606 Q797 Q4705487 Q1212 Q1211 Q16551
(c(Q838948)|c(Q2342494),P840,c(Q852446))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q838948
action find_reverse_tuple_counts
relation P840
type Q852446
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q1558
relation P840
type Q838948
type Q2342494
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { ?c property:P840 resource:Q1558 . { { ?c rdf:type ontology:Q838948 } UNION { ?c rdf:type ontology:Q2342494 } } } } . FILTER ( ?r < ?f ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?h WHERE { VALUES ( ?g ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } . ?i rdf:type ?g } GROUP BY ?h } }
Ohio Richmond Kentucky Maryland Unionville Burr Oak, Iowa Virginia Arkansas North Carolina South Troy Indiana Hawaii Minnesota Iowa Illinois Nevada Massachusetts North Dakota West Virginia Georgia Santa Fe New Hampshire Esperanza Louisiana Langley Alaska Aladdin, Wyoming Montana South Dakota Vermont
30
action count
action less
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 collectable
action count
action filter_multi_types
action find_reverse
entity Kansas
relation narrative location
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { ?c property:narrative_location resource:Kansas . { { ?c rdf:type ontology:work_of_art } UNION { ?c rdf:type ontology:collectable } } } } . FILTER ( ?r < ?f ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?h WHERE { VALUES ( ?g ) { ( ontology:work_of_art ) ( ontology:collectable ) } . ?i rdf:type ?g } GROUP BY ?h } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1227
P840
Q852446 Q838948 Q2342494
USER
And how about Nevada?
(c(Q838948)|c(Q2342494),P840,c(Q852446))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q838948
action find_reverse_tuple_counts
relation P840
type Q852446
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q1227
relation P840
type Q838948
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?o ) WHERE { { ?c property:P840 ?e . ?e rdf:type ontology:Q852446 . ?c rdf:type ontology:Q838948 } UNION { ?c property:P840 ?e . ?e rdf:type ontology:Q852446 . ?c rdf:type ontology:Q2342494 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { ?f property:P840 resource:Q1227 . { ?f rdf:type ?a . VALUES ( ?a ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } } } . FILTER ( ?o < ?y ) }
Nevada
action count
action less
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 collectable
action count
action filter_multi_types
action find_reverse
entity Nevada
relation narrative location
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?o ) WHERE { { ?c property:narrative_location ?e . ?e rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?c rdf:type ontology:work_of_art } UNION { ?c property:narrative_location ?e . ?e rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?c rdf:type ontology:collectable } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { ?f property:narrative_location resource:Nevada . { ?f rdf:type ?a . VALUES ( ?a ) { ( ontology:collectable ) ( ontology:work_of_art ) } } } } . FILTER ( ?o < ?y ) }
[]
administrative territorial entity of the United States work of art collectable
SYSTEM
22
Q1397 Q43421 Q1391 Q7886863 Q5000330 Q1454 Q3474463 Q1415 Q782 Q1546 Q1204 Q771 Q1371 Q1428 Q38555 Q759 Q14710458 Q1588 Q523606 Q4705487 Q1212 Q16551
(c(Q838948)|c(Q2342494),P840,c(Q852446))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q838948
action find_reverse_tuple_counts
relation P840
type Q852446
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q1227
relation P840
type Q838948
type Q2342494
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?o ) WHERE { { ?c property:P840 ?e . ?e rdf:type ontology:Q852446 . ?c rdf:type ontology:Q838948 } UNION { ?c property:P840 ?e . ?e rdf:type ontology:Q852446 . ?c rdf:type ontology:Q2342494 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { ?f property:P840 resource:Q1227 . { ?f rdf:type ?a . VALUES ( ?a ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } } } . FILTER ( ?o < ?y ) }
Ohio Richmond Maryland Unionville Burr Oak, Iowa North Carolina South Troy Indiana Hawaii Iowa Illinois Massachusetts West Virginia Georgia Santa Fe New Hampshire Esperanza Louisiana Langley Aladdin, Wyoming Montana Vermont
22
action count
action less
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 collectable
action count
action filter_multi_types
action find_reverse
entity Nevada
relation narrative location
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?c ) AS ?o ) WHERE { { ?c property:narrative_location ?e . ?e rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?c rdf:type ontology:work_of_art } UNION { ?c property:narrative_location ?e . ?e rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?c rdf:type ontology:collectable } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { ?f property:narrative_location resource:Nevada . { ?f rdf:type ?a . VALUES ( ?a ) { ( ontology:collectable ) ( ontology:work_of_art ) } } } } . FILTER ( ?o < ?y ) }
[]