Simple Question (Direct)
Simple Question
Q923505
P641
Q349
USER
Which sport did Mike Keane participate in ?
(Q923505,P641,c(Q349))
action filter_type
action find
entity Q923505
relation P641
type Q349
['Q923505', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { resource:Q923505 property:P641 ?c . ?c rdf:type ontology:Q349 }
Mike Keane
action filter_type
action find
entity Mike Keane
relation sport
type sport
['Mike Keane', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { resource:Mike_Keane property:sport ?c . ?c rdf:type ontology:sport }
[]
sport
Q41466
SYSTEM
ice hockey
Q41466
(Q923505,P641,c(Q349))
action filter_type
action find
entity Q923505
relation P641
type Q349
Mike Keane participated in [ANSWER]
['Q923505', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { resource:Q923505 property:P641 ?c . ?c rdf:type ontology:Q349 }
ice hockey
Mike Keane participated in ice hockey
ice hockey
action filter_type
action find
entity Mike Keane
relation sport
type sport
['Mike Keane', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { resource:Mike_Keane property:sport ?c . ?c rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q923505
P54
Q12973014
USER
Which sports teams are Mike Keane a member of ?
(Q923505,P54,c(Q12973014))
action filter_type
action find
entity Q923505
relation P54
type Q12973014
['Q923505', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?q WHERE { resource:Q923505 property:P54 ?q . ?q rdf:type ontology:Q12973014 }
Mike Keane
action filter_type
action find
entity Mike Keane
relation member of sports team
type sports team
['Mike Keane', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?q WHERE { resource:Mike_Keane property:member_of_sports_team ?q . ?q rdf:type ontology:sports_team }
[]
sports team
Q188143 Q192890 Q206297
SYSTEM
Montreal Canadiens, Vancouver Canucks, Colorado Avalanche
Q8025773 Q192890 Q188143 Q206297 Q208652 Q188984 Q207735
(Q923505,P54,c(Q12973014))
action filter_type
action find
entity Q923505
relation P54
type Q12973014
The [ANSWERS] are Mike Keane a member of
['Q923505', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?q WHERE { resource:Q923505 property:P54 ?q . ?q rdf:type ontology:Q12973014 }
Winnipeg Monarchs Vancouver Canucks Montreal Canadiens Colorado Avalanche Dallas Stars New York Rangers St. Louis Blues
The Montreal Canadiens, Vancouver Canucks and Colorado Avalanche are Mike Keane a member of
Montreal Canadiens Vancouver Canucks Colorado Avalanche
action filter_type
action find
entity Mike Keane
relation member of sports team
type sports team
['Mike Keane', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?q WHERE { resource:Mike_Keane property:member_of_sports_team ?q . ?q rdf:type ontology:sports_team }
[]
Clarification
Simple Question|Single Entity|Indirect
Q192890
P463
Q502895
USER
Which person is a member of that sports team ?
(c(Q502895),P463,Q192890)
action filter_type
action find_reverse
entity Q192890
relation P463
type Q502895
[{'concept': 'Q502895'}, 'P463', 'Q192890']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P463 resource:Q192890 }
Vancouver Canucks
action filter_type
action find_reverse
entity Vancouver Canucks
relation member of
type common name
[{'concept': 'common name'}, 'member of', 'Vancouver Canucks']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:member_of resource:Vancouver_Canucks }
[]
common name
Clarification for simple ques.
Q188143
SYSTEM
Did you mean Montreal Canadiens ?
Q188143 Q192890 Q206297
(c(Q502895),P463,Q188143) (c(Q502895),P463,Q192890) (c(Q502895),P463,Q206297)
[ANSWER]
[{'concept': 'Q502895'}, 'P463', 'Q188143'] [{'concept': 'Q502895'}, 'P463', 'Q192890'] [{'concept': 'Q502895'}, 'P463', 'Q206297']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P463 resource:Q192890 }
Montreal Canadiens Vancouver Canucks Colorado Avalanche
Did you mean Montreal Canadiens ?
Montreal Canadiens
[{'concept': 'common name'}, 'member of', 'Montreal Canadiens'] [{'concept': 'common name'}, 'member of', 'Vancouver Canucks'] [{'concept': 'common name'}, 'member of', 'Colorado Avalanche']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:member_of resource:Vancouver_Canucks }
[]
Simple Question (Coreferenced)
USER
No, I meant Vancouver Canucks. Could you tell me the answer for that?
(c(Q502895),P463,Q192890)
Q192890
[{'concept': 'Q502895'}, 'P463', 'Q192890']
[{'concept': 'common name'}, 'member of', 'Vancouver Canucks']
[]
Q2522521
SYSTEM
Victor Oreskovich
Q2522521
(c(Q502895),P463,Q192890)
action filter_type
action find_reverse
entity Q192890
relation P463
type Q502895
[ANSWER] is a member of that sports team
[{'concept': 'Q502895'}, 'P463', 'Q192890']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P463 resource:Q192890 }
Victor Oreskovich
Victor Oreskovich is a member of that sports team
Victor Oreskovich
action filter_type
action find_reverse
entity Vancouver Canucks
relation member of
type common name
[{'concept': 'common name'}, 'member of', 'Vancouver Canucks']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:member_of resource:Vancouver_Canucks }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q21869773 Q192890
P1444 P17
Q1048835
USER
Which political territories are Vancouver Canucks a part of or are the destination points for 2016 Clásica de Almería ?
OR((Q192890,P17,c(Q1048835)), (Q21869773,P1444,c(Q1048835)))
action filter_type
action union
action find
entity Q192890
relation P17
action find
entity Q21869773
relation P1444
type Q1048835
{'OR': [['Q192890', 'P17', {'concept': 'Q1048835'}], ['Q21869773', 'P1444', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q21869773 property:P1444 ?n } UNION { resource:Q192890 property:P17 ?n } } . ?n rdf:type ontology:Q1048835 }
2016 Clásica de Almería Vancouver Canucks
action filter_type
action union
action find
entity Vancouver Canucks
relation country
action find
entity 2016 Clásica de Almería
relation destination point
type political territorial entity
{'OR': [['Vancouver Canucks', 'country', {'concept': 'political territorial entity'}], ['2016 Clásica de Almería', 'destination point', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:2016_Clásica_de_Almería property:destination_point ?n } UNION { resource:Vancouver_Canucks property:country ?n } } . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q499184
SYSTEM
Canada, Roquetas de Mar
Q16 Q499184
OR((Q192890,P17,c(Q1048835)), (Q21869773,P1444,c(Q1048835)))
action filter_type
action union
action find
entity Q192890
relation P17
action find
entity Q21869773
relation P1444
type Q1048835
[ANSWERS] are Vancouver Canucks a part of or are the destination points for 2016 Clásica de Almería
{'OR': [['Q192890', 'P17', {'concept': 'Q1048835'}], ['Q21869773', 'P1444', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q21869773 property:P1444 ?n } UNION { resource:Q192890 property:P17 ?n } } . ?n rdf:type ontology:Q1048835 }
Canada Roquetas de Mar
Canada and Roquetas de Mar are Vancouver Canucks a part of or are the destination points for 2016 Clásica de Almería
Canada Roquetas de Mar
action filter_type
action union
action find
entity Vancouver Canucks
relation country
action find
entity 2016 Clásica de Almería
relation destination point
type political territorial entity
{'OR': [['Vancouver Canucks', 'country', {'concept': 'political territorial entity'}], ['2016 Clásica de Almería', 'destination point', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:2016_Clásica_de_Almería property:destination_point ?n } UNION { resource:Vancouver_Canucks property:country ?n } } . ?n rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q16 Q499184
P47
Q1048835
USER
Which political territories do Canada and Roquetas de Mar share a border with ?
(c(Q1048835),P47,Q16) (c(Q1048835),P47,Q499184)
action union
action filter_type
action find
entity Q16
relation P47
type Q1048835
action filter_type
action find
entity Q499184
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q16'] [{'concept': 'Q1048835'}, 'P47', 'Q499184']
SELECT DISTINCT ?p WHERE { VALUES ( ?i ) { ( resource:Q16 ) ( resource:Q499184 ) } . ?i property:P47 ?p }
Canada Roquetas de Mar
action union
action filter_type
action find
entity Canada
relation shares border with
type political territorial entity
action filter_type
action find
entity Roquetas de Mar
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Canada'] [{'concept': 'political territorial entity'}, 'shares border with', 'Roquetas de Mar']
SELECT DISTINCT ?p WHERE { VALUES ( ?i ) { ( resource:Canada ) ( resource:Roquetas_de_Mar ) } . ?i property:shares_border_with ?p }
[]
political territorial entity
Q947285 Q34617 Q1110397
SYSTEM
Enix, Spain, Saint Pierre and Miquelon, Vícar
Q4969463 Q38610 Q34617 Q493933 Q1407170 Q947285 Q1110397
(c(Q1048835),P47,Q16) (c(Q1048835),P47,Q499184)
action union
action filter_type
action find
entity Q16
relation P47
type Q1048835
action filter_type
action find
entity Q499184
relation P47
type Q1048835
Canada and Roquetas de Mar share a border with Sant [ANSWERS]
[{'concept': 'Q1048835'}, 'P47', 'Q16'] [{'concept': 'Q1048835'}, 'P47', 'Q499184']
SELECT DISTINCT ?p WHERE { VALUES ( ?i ) { ( resource:Q16 ) ( resource:Q499184 ) } . ?i property:P47 ?p }
British Arctic Territories Dominion of Newfoundland Saint Pierre and Miquelon El Ejido La Mojonera Enix, Spain Vícar
Canada and Roquetas de Mar share a border with Sant Enix, Spain, Saint Pierre and Miquelon and Vícar
Enix, Spain Saint Pierre and Miquelon Vícar
action union
action filter_type
action find
entity Canada
relation shares border with
type political territorial entity
action filter_type
action find
entity Roquetas de Mar
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Canada'] [{'concept': 'political territorial entity'}, 'shares border with', 'Roquetas de Mar']
SELECT DISTINCT ?p WHERE { VALUES ( ?i ) { ( resource:Canada ) ( resource:Roquetas_de_Mar ) } . ?i property:shares_border_with ?p }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1110397
P1313
Q12737077
USER
Which occupation is fulfilled by that political territory ?
(Q1110397,P1313,c(Q12737077))
action filter_type
action find
entity Q1110397
relation P1313
type Q12737077
['Q1110397', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . resource:Q1110397 property:P1313 ?s }
Vícar
action filter_type
action find
entity Vícar
relation office held by head of government
type occupation
['Vícar', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . resource:Vícar property:office_held_by_head_of_government ?s }
[]
occupation
Clarification for simple ques.
Q1110397
SYSTEM
Did you mean Vícar ?
Q947285 Q34617 Q1110397
(Q947285,P1313,c(Q12737077)) (Q34617,P1313,c(Q12737077)) (Q1110397,P1313,c(Q12737077))
[ANSWER]
['Q947285', 'P1313', {'concept': 'Q12737077'}] ['Q34617', 'P1313', {'concept': 'Q12737077'}] ['Q1110397', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . resource:Q1110397 property:P1313 ?s }
Enix, Spain Saint Pierre and Miquelon Vícar
Did you mean Vícar ?
Vícar
['Enix, Spain', 'office held by head of government', {'concept': 'occupation'}] ['Saint Pierre and Miquelon', 'office held by head of government', {'concept': 'occupation'}] ['Vícar', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . resource:Vícar property:office_held_by_head_of_government ?s }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1110397,P1313,c(Q12737077))
['Q1110397', 'P1313', {'concept': 'Q12737077'}]
['Vícar', 'office held by head of government', {'concept': 'occupation'}]
[]
Q26690313
SYSTEM
mayor of Vícar
Q26690313
(Q1110397,P1313,c(Q12737077))
action filter_type
action find
entity Q1110397
relation P1313
type Q12737077
The [ANSWER] is fulfilled by that political territory
['Q1110397', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . resource:Q1110397 property:P1313 ?s }
mayor of Vícar
The mayor of Vícar is fulfilled by that political territory
mayor of Vícar
action filter_type
action find
entity Vícar
relation office held by head of government
type occupation
['Vícar', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . resource:Vícar property:office_held_by_head_of_government ?s }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1110397 Q36091
P1313
Q12737077
USER
How many occupations serve as the political office that are fulfilled by the head of the government of Vícar or Minneapolis ?
(Q1110397,P1313,c(Q12737077)) (Q36091,P1313,c(Q12737077))
action count
action union
action filter_type
action find
entity Q1110397
relation P1313
type Q12737077
action filter_type
action find
entity Q36091
relation P1313
type Q12737077
['Q1110397', 'P1313', {'concept': 'Q12737077'}] ['Q36091', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { { resource:Q1110397 property:P1313 ?s . ?s rdf:type ontology:Q12737077 } UNION { resource:Q36091 property:P1313 ?s . ?s rdf:type ontology:Q12737077 } }
Vícar Minneapolis
action count
action union
action filter_type
action find
entity Vícar
relation office held by head of government
type occupation
action filter_type
action find
entity Minneapolis
relation office held by head of government
type occupation
['Vícar', 'office held by head of government', {'concept': 'occupation'}] ['Minneapolis', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { { resource:Vícar property:office_held_by_head_of_government ?s . ?s rdf:type ontology:occupation } UNION { resource:Minneapolis property:office_held_by_head_of_government ?s . ?s rdf:type ontology:occupation } }
[]
occupation
SYSTEM
2
Q30185 Q26690313
(Q1110397,P1313,c(Q12737077)) (Q36091,P1313,c(Q12737077))
action count
action union
action filter_type
action find
entity Q1110397
relation P1313
type Q12737077
action filter_type
action find
entity Q36091
relation P1313
type Q12737077
[ANSWER]
['Q1110397', 'P1313', {'concept': 'Q12737077'}] ['Q36091', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { { resource:Q1110397 property:P1313 ?s . ?s rdf:type ontology:Q12737077 } UNION { resource:Q36091 property:P1313 ?s . ?s rdf:type ontology:Q12737077 } }
mayor mayor of Vícar
2
action count
action union
action filter_type
action find
entity Vícar
relation office held by head of government
type occupation
action filter_type
action find
entity Minneapolis
relation office held by head of government
type occupation
['Vícar', 'office held by head of government', {'concept': 'occupation'}] ['Minneapolis', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { { resource:Vícar property:office_held_by_head_of_government ?s . ?s rdf:type ontology:occupation } UNION { resource:Minneapolis property:office_held_by_head_of_government ?s . ?s rdf:type ontology:occupation } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q2896341 Q499184
P27 P17
Q15617994
USER
Which administrative territories are Roquetas de Mar a part of and do Jan Martín belong to ?
AND((Q499184,P17,c(Q15617994)), (Q2896341,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q499184
relation P17
action find
entity Q2896341
relation P27
type Q15617994
{'AND': [['Q499184', 'P17', {'concept': 'Q15617994'}], ['Q2896341', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { resource:Q499184 property:P17 ?e . resource:Q2896341 property:P27 ?e . ?e rdf:type ontology:Q15617994 }
Jan Martín Roquetas de Mar
action filter_type
action intersection
action find
entity Roquetas de Mar
relation country
action find
entity Jan Martín
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Roquetas de Mar', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Jan Martín', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { resource:Roquetas_de_Mar property:country ?e . resource:Jan_Martín property:country_of_citizenship ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
AND((Q499184,P17,c(Q15617994)), (Q2896341,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q499184
relation P17
action find
entity Q2896341
relation P27
type Q15617994
[ANSWER] is Roquetas de Mar a part of and do Jan Martín belong to
{'AND': [['Q499184', 'P17', {'concept': 'Q15617994'}], ['Q2896341', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { resource:Q499184 property:P17 ?e . resource:Q2896341 property:P27 ?e . ?e rdf:type ontology:Q15617994 }
Spain
Spain is Roquetas de Mar a part of and do Jan Martín belong to
Spain
action filter_type
action intersection
action find
entity Roquetas de Mar
relation country
action find
entity Jan Martín
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Roquetas de Mar', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Jan Martín', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { resource:Roquetas_de_Mar property:country ?e . resource:Jan_Martín property:country_of_citizenship ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q7725634 Q2088357
USER
Which administrative territories are the countries of origin of approximately the same number of literary works or musical ensembles as that administrative territory ?
(c(Q7725634)|c(Q2088357),P495,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q29
relation P495
type Q7725634
type Q2088357
[[{'concept': 'Q7725634'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?x ) WHERE { { ?i property:P495 ?s . ?s rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q7725634 } UNION { ?s rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q2088357 . ?i property:P495 ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:P495 resource:Q29 . { { ?r rdf:type ontology:Q7725634 } UNION { ?r rdf:type ontology:Q2088357 } } } } . FILTER ( ?x = ?j ) }
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity Spain
relation country of origin
type literary work
type musical ensemble
[[{'concept': 'literary work'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?x ) WHERE { { ?i property:country_of_origin ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:literary_work } UNION { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:musical_ensemble . ?i property:country_of_origin ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:country_of_origin resource:Spain . { { ?r rdf:type ontology:literary_work } UNION { ?r rdf:type ontology:musical_ensemble } } } } . FILTER ( ?x = ?j ) }
[]
designation for an administrative territorial entity literary work musical ensemble
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q145 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q7725634)|c(Q2088357),P495,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q29
relation P495
type Q7725634
type Q2088357
[ANSWERS] are the countries of origin of approximately the same number of literary works or musical ensembles as that administrative territory
[[{'concept': 'Q7725634'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?x ) WHERE { { ?i property:P495 ?s . ?s rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q7725634 } UNION { ?s rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q2088357 . ?i property:P495 ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:P495 resource:Q29 . { { ?r rdf:type ontology:Q7725634 } UNION { ?r rdf:type ontology:Q2088357 } } } } . FILTER ( ?x = ?j ) }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands United Kingdom Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
Italy, Brazil and Georgia are the countries of origin of approximately the same number of literary works or musical ensembles as that administrative territory
Italy Brazil Georgia
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity Spain
relation country of origin
type literary work
type musical ensemble
[[{'concept': 'literary work'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?x ) WHERE { { ?i property:country_of_origin ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:literary_work } UNION { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:musical_ensemble . ?i property:country_of_origin ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:country_of_origin resource:Spain . { { ?r rdf:type ontology:literary_work } UNION { ?r rdf:type ontology:musical_ensemble } } } } . FILTER ( ?x = ?j ) }
[]