Simple Question (Direct)
Simple Question
Q4709829
P641
Q349
USER
What was the sport that Albert Buick was a part of ?
(Q4709829,P641,c(Q349))
action filter_type
action find
entity Q4709829
relation P641
type Q349
['Q4709829', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { resource:Q4709829 property:P641 ?n . ?n rdf:type ontology:Q349 }
Albert Buick
action filter_type
action find
entity Albert Buick
relation sport
type sport
['Albert Buick', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { resource:Albert_Buick property:sport ?n . ?n rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q4709829,P641,c(Q349))
action filter_type
action find
entity Q4709829
relation P641
type Q349
The sport that Albert Buick was a part of was the [ANSWER]
['Q4709829', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { resource:Q4709829 property:P641 ?n . ?n rdf:type ontology:Q349 }
association football
The sport that Albert Buick was a part of was the association football
association football
action filter_type
action find
entity Albert Buick
relation sport
type sport
['Albert Buick', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { resource:Albert_Buick property:sport ?n . ?n rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2736
P805
Q838948
USER
Which work of art was dedicated to that sport ?
(c(Q838948),P805,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P805
type Q838948
[{'concept': 'Q838948'}, 'P805', 'Q2736']
SELECT DISTINCT ?z WHERE { ?z property:P805 resource:Q2736 . ?z rdf:type ontology:Q838948 }
association football
action filter_type
action find_reverse
entity association football
relation subject of
type work of art
[{'concept': 'work of art'}, 'subject of', 'association football']
SELECT DISTINCT ?z WHERE { ?z property:subject_of resource:association_football . ?z rdf:type ontology:work_of_art }
[]
work of art
Q869862
SYSTEM
Goal!
Q869862
(c(Q838948),P805,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P805
type Q838948
Was [ANSWER] was dedicated to that sport
[{'concept': 'Q838948'}, 'P805', 'Q2736']
SELECT DISTINCT ?z WHERE { ?z property:P805 resource:Q2736 . ?z rdf:type ontology:Q838948 }
Goal!
Was Goal! was dedicated to that sport
Goal!
action filter_type
action find_reverse
entity association football
relation subject of
type work of art
[{'concept': 'work of art'}, 'subject of', 'association football']
SELECT DISTINCT ?z WHERE { ?z property:subject_of resource:association_football . ?z rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q869862
P1040
Q502895
USER
Who has editted that work of art ?
(Q869862,P1040,c(Q502895))
action filter_type
action find
entity Q869862
relation P1040
type Q502895
['Q869862', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q869862 property:P1040 ?u . ?u rdf:type ontology:Q502895 }
Goal!
action filter_type
action find
entity Goal!
relation film editor
type common name
['Goal!', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Goal! property:film_editor ?u . ?u rdf:type ontology:common_name }
[]
common name
Q436125
SYSTEM
Chris Dickens
Q436125
(Q869862,P1040,c(Q502895))
action filter_type
action find
entity Q869862
relation P1040
type Q502895
[ANSWER] has editted that work of art
['Q869862', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q869862 property:P1040 ?u . ?u rdf:type ontology:Q502895 }
Chris Dickens
Chris Dickens has editted that work of art
Chris Dickens
action filter_type
action find
entity Goal!
relation film editor
type common name
['Goal!', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Goal! property:film_editor ?u . ?u rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q436125 Q145
P27
Q15617994
USER
Is Chris Dickens an inhabitant of United Kingdom ?
(Q436125,P27,Q145)
action is_in
entity Q145
action find
entity Q436125
relation P27
['Q436125', 'P27', 'Q145']
ASK WHERE { resource:Q436125 property:P27 resource:Q145 }
Chris Dickens United Kingdom
action is_in
entity United Kingdom
action find
entity Chris Dickens
relation country of citizenship
['Chris Dickens', 'country of citizenship', 'United Kingdom']
ASK WHERE { resource:Chris_Dickens property:country_of_citizenship resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q436125,P27,Q145)
action is_in
entity Q145
action find
entity Q436125
relation P27
[ANSWER]
['Q436125', 'P27', 'Q145']
ASK WHERE { resource:Q436125 property:P27 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity Chris Dickens
relation country of citizenship
['Chris Dickens', 'country of citizenship', 'United Kingdom']
ASK WHERE { resource:Chris_Dickens property:country_of_citizenship resource:United_Kingdom }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q95074 Q56061 Q838948
USER
Which works of art are the eponym of max number of fictional characters and administrative territories ?
(c(Q838948),P138,c(Q95074)|c(Q56061))
action argmax
action union
action find_tuple_counts
relation P138
type Q838948
type Q95074
action find_tuple_counts
relation P138
type Q838948
type Q56061
[{'concept': 'Q838948'}, 'P138', [{'concept': 'Q95074'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?m ) WHERE { ?b rdf:type ?d . VALUES ( ?d ) { ( ontology:Q56061 ) ( ontology:Q95074 ) } } GROUP BY ?o } . FILTER ( ?m = ?p ) . { SELECT DISTINCT ( MAX ( ?i ) AS ?p ) { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?i ) WHERE { VALUES ( ?e ) { ( ontology:Q95074 ) ( ontology:Q56061 ) } . ?t rdf:type ?e } GROUP BY ?c } } }
action argmax
action union
action find_tuple_counts
relation named after
type work of art
type fictional character
action find_tuple_counts
relation named after
type work of art
type administrative territorial entity
[{'concept': 'work of art'}, 'named after', [{'concept': 'fictional character'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?m ) WHERE { ?b rdf:type ?d . VALUES ( ?d ) { ( ontology:administrative_territorial_entity ) ( ontology:fictional_character ) } } GROUP BY ?o } . FILTER ( ?m = ?p ) . { SELECT DISTINCT ( MAX ( ?i ) AS ?p ) { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?i ) WHERE { VALUES ( ?e ) { ( ontology:fictional_character ) ( ontology:administrative_territorial_entity ) } . ?t rdf:type ?e } GROUP BY ?c } } }
[]
fictional character administrative territorial entity work of art
Q24871 Q14775069 Q160946
SYSTEM
Avatar, Clouds of Sils Maria, Paris, Texas
Q806450 Q2115110 Q160946 Q14775069 Q131397 Q24871 Q26233899 Q152402 Q13033442
(c(Q838948),P138,c(Q95074)|c(Q56061))
action argmax
action union
action find_tuple_counts
relation P138
type Q838948
type Q95074
action find_tuple_counts
relation P138
type Q838948
type Q56061
[ANSWERS]
[{'concept': 'Q838948'}, 'P138', [{'concept': 'Q95074'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?m ) WHERE { ?b rdf:type ?d . VALUES ( ?d ) { ( ontology:Q56061 ) ( ontology:Q95074 ) } } GROUP BY ?o } . FILTER ( ?m = ?p ) . { SELECT DISTINCT ( MAX ( ?i ) AS ?p ) { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?i ) WHERE { VALUES ( ?e ) { ( ontology:Q95074 ) ( ontology:Q56061 ) } . ?t rdf:type ?e } GROUP BY ?c } } }
Bang Rajan Mystery Play of Elche Paris, Texas Clouds of Sils Maria Venus of Willendorf Avatar Trst avatar Škloŭ Idol
Avatar, Clouds of Sils Maria and Paris, Texas are the eponym of max number of fictional characters and administrative territories
Avatar Clouds of Sils Maria Paris, Texas
action argmax
action union
action find_tuple_counts
relation named after
type work of art
type fictional character
action find_tuple_counts
relation named after
type work of art
type administrative territorial entity
[{'concept': 'work of art'}, 'named after', [{'concept': 'fictional character'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?m ) WHERE { ?b rdf:type ?d . VALUES ( ?d ) { ( ontology:administrative_territorial_entity ) ( ontology:fictional_character ) } } GROUP BY ?o } . FILTER ( ?m = ?p ) . { SELECT DISTINCT ( MAX ( ?i ) AS ?p ) { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?i ) WHERE { VALUES ( ?e ) { ( ontology:fictional_character ) ( ontology:administrative_territorial_entity ) } . ?t rdf:type ?e } GROUP BY ?c } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1804046 Q436125
P27
Q15617994
USER
Which administrative territories are Chris Dickens or Mona Santoso an inhabitant of ?
OR((Q436125,P27,c(Q15617994)), (Q1804046,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q436125
relation P27
action find
entity Q1804046
relation P27
type Q15617994
{'OR': [['Q436125', 'P27', {'concept': 'Q15617994'}], ['Q1804046', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?f ) { ( resource:Q1804046 ) ( resource:Q436125 ) } . ?f property:P27 ?e } . ?e rdf:type ontology:Q15617994 }
Mona Santoso Chris Dickens
action filter_type
action union
action find
entity Chris Dickens
relation country of citizenship
action find
entity Mona Santoso
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Chris Dickens', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mona Santoso', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?f ) { ( resource:Mona_Santoso ) ( resource:Chris_Dickens ) } . ?f property:country_of_citizenship ?e } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q252 Q145
SYSTEM
United States of America, Indonesia, United Kingdom
Q30 Q252 Q145
OR((Q436125,P27,c(Q15617994)), (Q1804046,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q436125
relation P27
action find
entity Q1804046
relation P27
type Q15617994
[ANSWERS] are Chris Dickens or Mona Santoso an inhabitant of
{'OR': [['Q436125', 'P27', {'concept': 'Q15617994'}], ['Q1804046', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?f ) { ( resource:Q1804046 ) ( resource:Q436125 ) } . ?f property:P27 ?e } . ?e rdf:type ontology:Q15617994 }
United States of America Indonesia United Kingdom
United States of America, Indonesia and United Kingdom are Chris Dickens or Mona Santoso an inhabitant of
United States of America Indonesia United Kingdom
action filter_type
action union
action find
entity Chris Dickens
relation country of citizenship
action find
entity Mona Santoso
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Chris Dickens', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mona Santoso', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?f ) { ( resource:Mona_Santoso ) ( resource:Chris_Dickens ) } . ?f property:country_of_citizenship ?e } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2604022
P530
Q15617994
USER
Do Zhili have ambassadorial relations with those ones ?
(Q2604022,P530,Q30) (Q2604022,P530,Q252) (Q2604022,P530,Q145)
action is_in
entity prev_answer
action find
entity Q2604022
relation P530
['Q2604022', 'P530', 'Q30'] ['Q2604022', 'P530', 'Q252'] ['Q2604022', 'P530', 'Q145']
ASK WHERE { resource:Q2604022 property:P530 ?q . VALUES ( ?q ) { ( resource:Q30 ) ( resource:Q252 ) ( resource:Q145 ) } }
Zhili
action is_in
entity prev_answer
action find
entity Zhili
relation diplomatic relation
['Zhili', 'diplomatic relation', 'United States of America'] ['Zhili', 'diplomatic relation', 'Indonesia'] ['Zhili', 'diplomatic relation', 'United Kingdom']
ASK WHERE { resource:Zhili property:diplomatic_relation ?q . VALUES ( ?q ) { ( resource:United_States_of_America ) ( resource:Indonesia ) ( resource:United_Kingdom ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q2604022,P530,Q30) (Q2604022,P530,Q252) (Q2604022,P530,Q145)
action is_in
entity prev_answer
action find
entity Q2604022
relation P530
[ANSWER]
['Q2604022', 'P530', 'Q30'] ['Q2604022', 'P530', 'Q252'] ['Q2604022', 'P530', 'Q145']
ASK WHERE { resource:Q2604022 property:P530 ?q . VALUES ( ?q ) { ( resource:Q30 ) ( resource:Q252 ) ( resource:Q145 ) } }
No
action is_in
entity prev_answer
action find
entity Zhili
relation diplomatic relation
['Zhili', 'diplomatic relation', 'United States of America'] ['Zhili', 'diplomatic relation', 'Indonesia'] ['Zhili', 'diplomatic relation', 'United Kingdom']
ASK WHERE { resource:Zhili property:diplomatic_relation ?q . VALUES ( ?q ) { ( resource:United_States_of_America ) ( resource:Indonesia ) ( resource:United_Kingdom ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P1313
Q895526
USER
What is the authority organ held by United Kingdom ?
(Q145,P1313,c(Q895526))
action filter_type
action find
entity Q145
relation P1313
type Q895526
['Q145', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?j WHERE { resource:Q145 property:P1313 ?j . ?j rdf:type ontology:Q895526 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation office held by head of government
type authority organ
['United Kingdom', 'office held by head of government', {'concept': 'authority organ'}]
SELECT DISTINCT ?j WHERE { resource:United_Kingdom property:office_held_by_head_of_government ?j . ?j rdf:type ontology:authority_organ }
[]
authority organ
Q14211
SYSTEM
Prime Minister of the United Kingdom
Q14211
(Q145,P1313,c(Q895526))
action filter_type
action find
entity Q145
relation P1313
type Q895526
The authority organ held by United Kingdom is the [ANSWER]
['Q145', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?j WHERE { resource:Q145 property:P1313 ?j . ?j rdf:type ontology:Q895526 }
Prime Minister of the United Kingdom
The authority organ held by United Kingdom is the Prime Minister of the United Kingdom
Prime Minister of the United Kingdom
action filter_type
action find
entity United Kingdom
relation office held by head of government
type authority organ
['United Kingdom', 'office held by head of government', {'concept': 'authority organ'}]
SELECT DISTINCT ?j WHERE { resource:United_Kingdom property:office_held_by_head_of_government ?j . ?j rdf:type ontology:authority_organ }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q20937
Q895526
USER
And what about Gyeonggi Province?
(Q20937,P1313,c(Q895526))
action filter_type
action find
entity Q20937
relation P1313
type Q895526
['Q20937', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?d WHERE { resource:Q20937 property:P1313 ?d . ?d rdf:type ontology:Q895526 }
Gyeonggi Province
action filter_type
action find
entity Gyeonggi Province
relation office held by head of government
type authority organ
['Gyeonggi Province', 'office held by head of government', {'concept': 'authority organ'}]
SELECT DISTINCT ?d WHERE { resource:Gyeonggi_Province property:office_held_by_head_of_government ?d . ?d rdf:type ontology:authority_organ }
[]
authority organ
Q12583545
SYSTEM
Governor of Gyeonggi Province
Q12583545
(Q20937,P1313,c(Q895526))
action filter_type
action find
entity Q20937
relation P1313
type Q895526
[ANSWER]
['Q20937', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?d WHERE { resource:Q20937 property:P1313 ?d . ?d rdf:type ontology:Q895526 }
Governor of Gyeonggi Province
Governor of Gyeonggi Province
action filter_type
action find
entity Gyeonggi Province
relation office held by head of government
type authority organ
['Gyeonggi Province', 'office held by head of government', {'concept': 'authority organ'}]
SELECT DISTINCT ?d WHERE { resource:Gyeonggi_Province property:office_held_by_head_of_government ?d . ?d rdf:type ontology:authority_organ }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q12583545 Q4443999 Q20937
P1001
Q1048835
USER
Does that authority organ presides the jurisdiction over Stryzhivka and Gyeonggi Province ?
(Q12583545,P1001,Q4443999) (Q12583545,P1001,Q20937)
action is_in
entity Q12583545
action intersection
action find_reverse
entity Q4443999
relation P1001
action find_reverse
entity Q20937
relation P1001
['Q12583545', 'P1001', 'Q4443999'] ['Q12583545', 'P1001', 'Q20937']
ASK WHERE { resource:Q12583545 property:P1001 resource:Q4443999 . resource:Q12583545 property:P1001 resource:Q20937 }
Governor of Gyeonggi Province Stryzhivka Gyeonggi Province
action is_in
entity Governor of Gyeonggi Province
action intersection
action find_reverse
entity Stryzhivka
relation applies to jurisdiction
action find_reverse
entity Gyeonggi Province
relation applies to jurisdiction
['Governor of Gyeonggi Province', 'applies to jurisdiction', 'Stryzhivka'] ['Governor of Gyeonggi Province', 'applies to jurisdiction', 'Gyeonggi Province']
ASK WHERE { resource:Governor_of_Gyeonggi_Province property:applies_to_jurisdiction resource:Stryzhivka . resource:Governor_of_Gyeonggi_Province property:applies_to_jurisdiction resource:Gyeonggi_Province }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q12583545,P1001,Q4443999) (Q12583545,P1001,Q20937)
action is_in
entity Q12583545
action intersection
action find_reverse
entity Q4443999
relation P1001
action find_reverse
entity Q20937
relation P1001
[ANSWER]
['Q12583545', 'P1001', 'Q4443999'] ['Q12583545', 'P1001', 'Q20937']
ASK WHERE { resource:Q12583545 property:P1001 resource:Q4443999 . resource:Q12583545 property:P1001 resource:Q20937 }
NO and YES respectively
action is_in
entity Governor of Gyeonggi Province
action intersection
action find_reverse
entity Stryzhivka
relation applies to jurisdiction
action find_reverse
entity Gyeonggi Province
relation applies to jurisdiction
['Governor of Gyeonggi Province', 'applies to jurisdiction', 'Stryzhivka'] ['Governor of Gyeonggi Province', 'applies to jurisdiction', 'Gyeonggi Province']
ASK WHERE { resource:Governor_of_Gyeonggi_Province property:applies_to_jurisdiction resource:Stryzhivka . resource:Governor_of_Gyeonggi_Province property:applies_to_jurisdiction resource:Gyeonggi_Province }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4548723 Q14775069
P840
Q56061
USER
Which administrative territories are the narrative locations of Clouds of Sils Maria or 12 Miles of Bad Road ?
OR((Q14775069,P840,c(Q56061)), (Q4548723,P840,c(Q56061)))
action filter_type
action union
action find
entity Q14775069
relation P840
action find
entity Q4548723
relation P840
type Q56061
{'OR': [['Q14775069', 'P840', {'concept': 'Q56061'}], ['Q4548723', 'P840', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q56061 . { { resource:Q4548723 property:P840 ?y } UNION { resource:Q14775069 property:P840 ?y } } }
12 Miles of Bad Road Clouds of Sils Maria
action filter_type
action union
action find
entity Clouds of Sils Maria
relation narrative location
action find
entity 12 Miles of Bad Road
relation narrative location
type administrative territorial entity
{'OR': [['Clouds of Sils Maria', 'narrative location', {'concept': 'administrative territorial entity'}], ['12 Miles of Bad Road', 'narrative location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:administrative_territorial_entity . { { resource:12_Miles_of_Bad_Road property:narrative_location ?y } UNION { resource:Clouds_of_Sils_Maria property:narrative_location ?y } } }
[]
administrative territorial entity
Q3483936 Q72 Q84 Q16557
SYSTEM
Sils Maria, Zürich, London, Dallas
Q3483936 Q72 Q84 Q16557
OR((Q14775069,P840,c(Q56061)), (Q4548723,P840,c(Q56061)))
action filter_type
action union
action find
entity Q14775069
relation P840
action find
entity Q4548723
relation P840
type Q56061
[ANSWERS] are the narrative locations of Clouds of Sils Maria or 12 Miles of Bad Road
{'OR': [['Q14775069', 'P840', {'concept': 'Q56061'}], ['Q4548723', 'P840', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q56061 . { { resource:Q4548723 property:P840 ?y } UNION { resource:Q14775069 property:P840 ?y } } }
Sils Maria Zürich London Dallas
Sils Maria, Zürich, London and Dallas are the narrative locations of Clouds of Sils Maria or 12 Miles of Bad Road
Sils Maria Zürich London Dallas
action filter_type
action union
action find
entity Clouds of Sils Maria
relation narrative location
action find
entity 12 Miles of Bad Road
relation narrative location
type administrative territorial entity
{'OR': [['Clouds of Sils Maria', 'narrative location', {'concept': 'administrative territorial entity'}], ['12 Miles of Bad Road', 'narrative location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:administrative_territorial_entity . { { resource:12_Miles_of_Bad_Road property:narrative_location ?y } UNION { resource:Clouds_of_Sils_Maria property:narrative_location ?y } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q72
P190
Q515 Q13220204
USER
How many cities and administrative country subdivisions are the sister cities of Zürich ?
(Q72,P190,c(Q515)) (Q72,P190,c(Q13220204))
action count
action union
action filter_type
action find
entity Q72
relation P190
type Q515
action filter_type
action find
entity Q72
relation P190
type Q13220204
['Q72', 'P190', {'concept': 'Q515'}] ['Q72', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { VALUES ( ?u ) { ( ontology:Q515 ) ( ontology:Q13220204 ) } . ?e rdf:type ?u }
Zürich
action count
action union
action filter_type
action find
entity Zürich
relation sister city
type city
action filter_type
action find
entity Zürich
relation sister city
type second-level administrative country subdivision
['Zürich', 'sister city', {'concept': 'city'}] ['Zürich', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { VALUES ( ?u ) { ( ontology:city ) ( ontology:second-level_administrative_country_subdivision ) } . ?e rdf:type ?u }
[]
city second-level administrative country subdivision
SYSTEM
1 cities and 1 administrative country subdivisions
Q182852 Q157144
(Q72,P190,c(Q515)) (Q72,P190,c(Q13220204))
action count
action union
action filter_type
action find
entity Q72
relation P190
type Q515
action filter_type
action find
entity Q72
relation P190
type Q13220204
[ANSWER]
['Q72', 'P190', {'concept': 'Q515'}] ['Q72', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { VALUES ( ?u ) { ( ontology:Q515 ) ( ontology:Q13220204 ) } . ?e rdf:type ?u }
Kunming Vinnytsia
1 cities and 1 administrative country subdivisions
action count
action union
action filter_type
action find
entity Zürich
relation sister city
type city
action filter_type
action find
entity Zürich
relation sister city
type second-level administrative country subdivision
['Zürich', 'sister city', {'concept': 'city'}] ['Zürich', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { VALUES ( ?u ) { ( ontology:city ) ( ontology:second-level_administrative_country_subdivision ) } . ?e rdf:type ?u }
[]