Simple Question (Direct)
Simple Question
Q1791114
P26
Q502895
USER
Which person is the life partner of Hélio Pellegrino ?
(Q1791114,P26,c(Q502895))
action filter_type
action find
entity Q1791114
relation P26
type Q502895
['Q1791114', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q1791114 property:P26 ?e . ?e rdf:type ontology:Q502895 }
Hélio Pellegrino
action filter_type
action find
entity Hélio Pellegrino
relation spouse
type common name
['Hélio Pellegrino', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Hélio_Pellegrino property:spouse ?e . ?e rdf:type ontology:common_name }
[]
common name
Q545476
SYSTEM
Lya Luft
Q545476
(Q1791114,P26,c(Q502895))
action filter_type
action find
entity Q1791114
relation P26
type Q502895
[ANSWER] is the life partner of Hélio Pellegrino
['Q1791114', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q1791114 property:P26 ?e . ?e rdf:type ontology:Q502895 }
Lya Luft
Lya Luft is the life partner of Hélio Pellegrino
Lya Luft
action filter_type
action find
entity Hélio Pellegrino
relation spouse
type common name
['Hélio Pellegrino', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Hélio_Pellegrino property:spouse ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q545476
P19
Q1048835
USER
Which political territory was that person born in ?
(Q545476,P19,c(Q1048835))
action filter_type
action find
entity Q545476
relation P19
type Q1048835
['Q545476', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { resource:Q545476 property:P19 ?x . ?x rdf:type ontology:Q1048835 }
Lya Luft
action filter_type
action find
entity Lya Luft
relation place of birth
type political territorial entity
['Lya Luft', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Lya_Luft property:place_of_birth ?x . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q781510
SYSTEM
Santa Cruz do Sul
Q781510
(Q545476,P19,c(Q1048835))
action filter_type
action find
entity Q545476
relation P19
type Q1048835
That person was born in [ANSWER]
['Q545476', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { resource:Q545476 property:P19 ?x . ?x rdf:type ontology:Q1048835 }
Santa Cruz do Sul
That person was born in Santa Cruz do Sul
Santa Cruz do Sul
action filter_type
action find
entity Lya Luft
relation place of birth
type political territorial entity
['Lya Luft', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Lya_Luft property:place_of_birth ?x . ?x rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1791114
P27
Q15617994
USER
How many administrative territories are the countries of citizenship of Hélio Pellegrino ?
(Q1791114,P27,c(Q15617994))
action count
action filter_type
action find
entity Q1791114
relation P27
type Q15617994
['Q1791114', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { resource:Q1791114 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Hélio Pellegrino
action count
action filter_type
action find
entity Hélio Pellegrino
relation country of citizenship
type designation for an administrative territorial entity
['Hélio Pellegrino', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { resource:Hélio_Pellegrino property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q155
(Q1791114,P27,c(Q15617994))
action count
action filter_type
action find
entity Q1791114
relation P27
type Q15617994
[ANSWER]
['Q1791114', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { resource:Q1791114 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Brazil
1
action count
action filter_type
action find
entity Hélio Pellegrino
relation country of citizenship
type designation for an administrative territorial entity
['Hélio Pellegrino', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { resource:Hélio_Pellegrino property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q14117399
P27
Q15617994
USER
Which administrative territory is the native country of Lorenzo Crespo Reig ?
(Q14117399,P27,c(Q15617994))
action filter_type
action find
entity Q14117399
relation P27
type Q15617994
['Q14117399', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q14117399 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
Lorenzo Crespo Reig
action filter_type
action find
entity Lorenzo Crespo Reig
relation country of citizenship
type designation for an administrative territorial entity
['Lorenzo Crespo Reig', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Lorenzo_Crespo_Reig property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q14117399,P27,c(Q15617994))
action filter_type
action find
entity Q14117399
relation P27
type Q15617994
[ANSWER] is the native country of Lorenzo Crespo Reig
['Q14117399', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q14117399 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
Spain
Spain is the native country of Lorenzo Crespo Reig
Spain
action filter_type
action find
entity Lorenzo Crespo Reig
relation country of citizenship
type designation for an administrative territorial entity
['Lorenzo Crespo Reig', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Lorenzo_Crespo_Reig property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6288427
Q15617994
USER
And how about Josephine Premice?
(Q6288427,P27,c(Q15617994))
action filter_type
action find
entity Q6288427
relation P27
type Q15617994
['Q6288427', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q6288427 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
Josephine Premice
action filter_type
action find
entity Josephine Premice
relation country of citizenship
type designation for an administrative territorial entity
['Josephine Premice', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Josephine_Premice property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q6288427,P27,c(Q15617994))
action filter_type
action find
entity Q6288427
relation P27
type Q15617994
[ANSWER]
['Q6288427', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q6288427 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action find
entity Josephine Premice
relation country of citizenship
type designation for an administrative territorial entity
['Josephine Premice', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Josephine_Premice property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q30 Q17
P47
Q15617994
USER
Is Japan adjacent to that one ?
(Q30,P47,Q17)
action is_in
entity Q17
action find
entity Q30
relation P47
['Q30', 'P47', 'Q17']
ASK WHERE { resource:Q30 property:P47 resource:Q17 }
United States of America Japan
action is_in
entity Japan
action find
entity United States of America
relation shares border with
['United States of America', 'shares border with', 'Japan']
ASK WHERE { resource:United_States_of_America property:shares_border_with resource:Japan }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q30,P47,Q17)
action is_in
entity Q17
action find
entity Q30
relation P47
[ANSWER]
['Q30', 'P47', 'Q17']
ASK WHERE { resource:Q30 property:P47 resource:Q17 }
Yes
action is_in
entity Japan
action find
entity United States of America
relation shares border with
['United States of America', 'shares border with', 'Japan']
ASK WHERE { resource:United_States_of_America property:shares_border_with resource:Japan }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q781510
P20
Q502895
USER
Which person has Santa Cruz do Sul as the location of death ?
(c(Q502895),P20,Q781510)
action filter_type
action find_reverse
entity Q781510
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q781510']
SELECT DISTINCT ?j WHERE { ?j property:P20 resource:Q781510 . ?j rdf:type ontology:Q502895 }
Santa Cruz do Sul
action filter_type
action find_reverse
entity Santa Cruz do Sul
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Santa Cruz do Sul']
SELECT DISTINCT ?j WHERE { ?j property:place_of_death resource:Santa_Cruz_do_Sul . ?j rdf:type ontology:common_name }
[]
common name
Q438442
SYSTEM
Everaldo
Q438442
(c(Q502895),P20,Q781510)
action filter_type
action find_reverse
entity Q781510
relation P20
type Q502895
[ANSWER] has Santa Cruz do Sul as the location of death
[{'concept': 'Q502895'}, 'P20', 'Q781510']
SELECT DISTINCT ?j WHERE { ?j property:P20 resource:Q781510 . ?j rdf:type ontology:Q502895 }
Everaldo
Everaldo has Santa Cruz do Sul as the location of death
Everaldo
action filter_type
action find_reverse
entity Santa Cruz do Sul
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Santa Cruz do Sul']
SELECT DISTINCT ?j WHERE { ?j property:place_of_death resource:Santa_Cruz_do_Sul . ?j rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q781510
P17
Q15617994
USER
Which administrative territory is Santa Cruz do Sul situated in ?
(Q781510,P17,c(Q15617994))
action filter_type
action find
entity Q781510
relation P17
type Q15617994
['Q781510', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . resource:Q781510 property:P17 ?k }
Santa Cruz do Sul
action filter_type
action find
entity Santa Cruz do Sul
relation country
type designation for an administrative territorial entity
['Santa Cruz do Sul', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Santa_Cruz_do_Sul property:country ?k }
[]
designation for an administrative territorial entity
Q155
SYSTEM
Brazil
Q155
(Q781510,P17,c(Q15617994))
action filter_type
action find
entity Q781510
relation P17
type Q15617994
Santa Cruz do Sul is situated in [ANSWER]
['Q781510', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . resource:Q781510 property:P17 ?k }
Brazil
Santa Cruz do Sul is situated in Brazil
Brazil
action filter_type
action find
entity Santa Cruz do Sul
relation country
type designation for an administrative territorial entity
['Santa Cruz do Sul', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Santa_Cruz_do_Sul property:country ?k }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q201658 Q7725634
USER
How many administrative territories are the origin of less number of film genres and literary works than that administrative territory ?
(c(Q201658)|c(Q7725634),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q155
relation P495
type Q201658
type Q7725634
[[{'concept': 'Q201658'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?h WHERE { VALUES ( ?n ) { ( ontology:Q201658 ) ( ontology:Q7725634 ) } . ?y rdf:type ?n } GROUP BY ?h } . FILTER ( ?z < ?o ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { ?t property:P495 resource:Q155 . { { ?t rdf:type ontology:Q201658 } UNION { ?t rdf:type ontology:Q7725634 } } } } }
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity Brazil
relation country of origin
type film genre
type literary work
[[{'concept': 'film genre'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?h WHERE { VALUES ( ?n ) { ( ontology:film_genre ) ( ontology:literary_work ) } . ?y rdf:type ?n } GROUP BY ?h } . FILTER ( ?z < ?o ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { ?t property:country_of_origin resource:Brazil . { { ?t rdf:type ontology:film_genre } UNION { ?t rdf:type ontology:literary_work } } } } }
[]
designation for an administrative territorial entity film genre literary work
SYSTEM
159
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q41 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q928 Q39 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 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 Q672 Q176 Q863 Q869 Q953
(c(Q201658)|c(Q7725634),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q155
relation P495
type Q201658
type Q7725634
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?h WHERE { VALUES ( ?n ) { ( ontology:Q201658 ) ( ontology:Q7725634 ) } . ?y rdf:type ?n } GROUP BY ?h } . FILTER ( ?z < ?o ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { ?t property:P495 resource:Q155 . { { ?t rdf:type ontology:Q201658 } UNION { ?t rdf:type ontology:Q7725634 } } } } }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina 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 Greece 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 Philippines Switzerland 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 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 Tuvalu Quebec Tajikistan Thailand Zambia
159
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity Brazil
relation country of origin
type film genre
type literary work
[[{'concept': 'film genre'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?h WHERE { VALUES ( ?n ) { ( ontology:film_genre ) ( ontology:literary_work ) } . ?y rdf:type ?n } GROUP BY ?h } . FILTER ( ?z < ?o ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { ?t property:country_of_origin resource:Brazil . { { ?t rdf:type ontology:film_genre } UNION { ?t rdf:type ontology:literary_work } } } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P495
Q1048835 Q201658 Q2088357
USER
Which political territories did max number of film genres or musical ensembles originate ?
(c(Q201658)|c(Q2088357),P495,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q201658
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2088357
[[{'concept': 'Q201658'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) ?m WHERE { { ?m rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q201658 . ?z property:P495 ?m } UNION { ?z property:P495 ?m . ?z rdf:type ontology:Q2088357 . ?m rdf:type ontology:Q1048835 } } GROUP BY ?m } } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?l WHERE { ?x rdf:type ?e . VALUES ( ?e ) { ( ontology:Q201658 ) ( ontology:Q2088357 ) } } GROUP BY ?l } . FILTER ( ?a = ?g ) }
action argmax
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type musical ensemble
[[{'concept': 'film genre'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) ?m WHERE { { ?m rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:film_genre . ?z property:country_of_origin ?m } UNION { ?z property:country_of_origin ?m . ?z rdf:type ontology:musical_ensemble . ?m rdf:type ontology:political_territorial_entity } } GROUP BY ?m } } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?l WHERE { ?x rdf:type ?e . VALUES ( ?e ) { ( ontology:film_genre ) ( ontology:musical_ensemble ) } } GROUP BY ?l } . FILTER ( ?a = ?g ) }
[]
political territorial entity film genre musical ensemble
Q16
SYSTEM
Canada
Q16
(c(Q201658)|c(Q2088357),P495,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q201658
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2088357
Max number of film genres or musical ensembles originated from [ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) ?m WHERE { { ?m rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q201658 . ?z property:P495 ?m } UNION { ?z property:P495 ?m . ?z rdf:type ontology:Q2088357 . ?m rdf:type ontology:Q1048835 } } GROUP BY ?m } } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?l WHERE { ?x rdf:type ?e . VALUES ( ?e ) { ( ontology:Q201658 ) ( ontology:Q2088357 ) } } GROUP BY ?l } . FILTER ( ?a = ?g ) }
Canada
Max number of film genres or musical ensembles originated from Canada
Canada
action argmax
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type musical ensemble
[[{'concept': 'film genre'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) ?m WHERE { { ?m rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:film_genre . ?z property:country_of_origin ?m } UNION { ?z property:country_of_origin ?m . ?z rdf:type ontology:musical_ensemble . ?m rdf:type ontology:political_territorial_entity } } GROUP BY ?m } } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?l WHERE { ?x rdf:type ?e . VALUES ( ?e ) { ( ontology:film_genre ) ( ontology:musical_ensemble ) } } GROUP BY ?l } . FILTER ( ?a = ?g ) }
[]