Simple Question (Direct)
Simple Question
Q5993305
P641
Q349
USER
Which sport did Igor Grkajac participate in ?
(Q5993305,P641,c(Q349))
action filter_type
action find
entity Q5993305
relation P641
type Q349
['Q5993305', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { resource:Q5993305 property:P641 ?k . ?k rdf:type ontology:Q349 }
Igor Grkajac
action filter_type
action find
entity Igor Grkajac
relation sport
type sport
['Igor Grkajac', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { resource:Igor_Grkajac property:sport ?k . ?k rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q5993305,P641,c(Q349))
action filter_type
action find
entity Q5993305
relation P641
type Q349
Igor Grkajac participated in [ANSWER]
['Q5993305', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { resource:Q5993305 property:P641 ?k . ?k rdf:type ontology:Q349 }
association football
Igor Grkajac participated in association football
association football
action filter_type
action find
entity Igor Grkajac
relation sport
type sport
['Igor Grkajac', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { resource:Igor_Grkajac property:sport ?k . ?k rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5993305
P54
Q618123
USER
What is the team that Igor Grkajac is a member of ?
(Q5993305,P54,c(Q618123))
action filter_type
action find
entity Q5993305
relation P54
type Q618123
['Q5993305', 'P54', {'concept': 'Q618123'}]
SELECT DISTINCT ?k WHERE { resource:Q5993305 property:P54 ?k . ?k rdf:type ontology:Q618123 }
Igor Grkajac
action filter_type
action find
entity Igor Grkajac
relation member of sports team
type geographical object
['Igor Grkajac', 'member of sports team', {'concept': 'geographical object'}]
SELECT DISTINCT ?k WHERE { resource:Igor_Grkajac property:member_of_sports_team ?k . ?k rdf:type ontology:geographical_object }
[]
geographical object
Q3544941
SYSTEM
FK Timok
Q3544941
(Q5993305,P54,c(Q618123))
action filter_type
action find
entity Q5993305
relation P54
type Q618123
The team that Igor Grkajac is a member of is the [ANSWER]
['Q5993305', 'P54', {'concept': 'Q618123'}]
SELECT DISTINCT ?k WHERE { resource:Q5993305 property:P54 ?k . ?k rdf:type ontology:Q618123 }
FK Timok
The team that Igor Grkajac is a member of is the FK Timok
FK Timok
action filter_type
action find
entity Igor Grkajac
relation member of sports team
type geographical object
['Igor Grkajac', 'member of sports team', {'concept': 'geographical object'}]
SELECT DISTINCT ?k WHERE { resource:Igor_Grkajac property:member_of_sports_team ?k . ?k rdf:type ontology:geographical_object }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5993305
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q3544941,P27,c(Q15617994))
action filter_type
action find
entity Q5993305
relation P27
type Q15617994
['Q3544941', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q5993305 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Igor Grkajac
action filter_type
action find
entity Igor Grkajac
relation country of citizenship
type designation for an administrative territorial entity
['FK Timok', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Igor_Grkajac property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q403
SYSTEM
Serbia
Q403
(Q3544941,P27,c(Q15617994))
action filter_type
action find
entity Q5993305
relation P27
type Q15617994
[ANSWER] is the country of citizenship of that person
['Q3544941', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q5993305 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Serbia
Serbia is the country of citizenship of that person
Serbia
action filter_type
action find
entity Igor Grkajac
relation country of citizenship
type designation for an administrative territorial entity
['FK Timok', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Igor_Grkajac property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q298
P495
Q15617994 Q15416 Q2088357
USER
How many administrative territories are the origin of less number of television programs and musical ensembles than Chile ?
(c(Q15416)|c(Q2088357),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q298
relation P495
type Q15416
type Q2088357
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) ?k WHERE { VALUES ( ?i ) { ( ontology:Q15416 ) ( ontology:Q2088357 ) } . ?c rdf:type ?i } GROUP BY ?k } . FILTER ( ?g < ?a ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { ?d property:P495 resource:Q298 . { { ?d rdf:type ontology:Q2088357 } UNION { ?d rdf:type ontology:Q15416 } } } } }
Chile
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
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 Chile
relation country of origin
type television program
type musical ensemble
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) ?k WHERE { VALUES ( ?i ) { ( ontology:television_program ) ( ontology:musical_ensemble ) } . ?c rdf:type ?i } GROUP BY ?k } . FILTER ( ?g < ?a ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { ?d property:country_of_origin resource:Chile . { { ?d rdf:type ontology:musical_ensemble } UNION { ?d rdf:type ontology:television_program } } } } }
[]
designation for an administrative territorial entity television program musical ensemble
SYSTEM
146
Q805 Q804 Q801 Q800 Q1462 Q419 Q12536 Q262 Q783 Q265 Q37 Q36678 Q712 Q711 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q41 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q32 Q924 Q39 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 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(Q15416)|c(Q2088357),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q298
relation P495
type Q15416
type Q2088357
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) ?k WHERE { VALUES ( ?i ) { ( ontology:Q15416 ) ( ontology:Q2088357 ) } . ?c rdf:type ?i } GROUP BY ?k } . FILTER ( ?g < ?a ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { ?d property:P495 resource:Q298 . { { ?d rdf:type ontology:Q2088357 } UNION { ?d rdf:type ontology:Q15416 } } } } }
Yemen Panama Israel Costa Rica Sardinia Peru Abbasid caliphate Algeria Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Greece El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Luxembourg Tanzania Switzerland 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 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 Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana 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
146
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
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 Chile
relation country of origin
type television program
type musical ensemble
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) ?k WHERE { VALUES ( ?i ) { ( ontology:television_program ) ( ontology:musical_ensemble ) } . ?c rdf:type ?i } GROUP BY ?k } . FILTER ( ?g < ?a ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { ?d property:country_of_origin resource:Chile . { { ?d rdf:type ontology:musical_ensemble } UNION { ?d rdf:type ontology:television_program } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q912
P495
Q15617994 Q15416 Q2088357
USER
And also tell me about Mali?
(c(Q15416)|c(Q2088357),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q912
relation P495
type Q15416
type Q2088357
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) ?d WHERE { { ?k property:P495 ?d . ?d rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15416 } UNION { ?d rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q2088357 . ?k property:P495 ?d } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:P495 resource:Q912 . { ?h rdf:type ?g . VALUES ( ?g ) { ( ontology:Q15416 ) ( ontology:Q2088357 ) } } } } . FILTER ( ?j < ?f ) }
Mali
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
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 Mali
relation country of origin
type television program
type musical ensemble
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) ?d WHERE { { ?k property:country_of_origin ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:television_program } UNION { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:musical_ensemble . ?k property:country_of_origin ?d } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:country_of_origin resource:Mali . { ?h rdf:type ?g . VALUES ( ?g ) { ( ontology:television_program ) ( ontology:musical_ensemble ) } } } } . FILTER ( ?j < ?f ) }
[]
designation for an administrative territorial entity television program musical ensemble
SYSTEM
80
Q805 Q804 Q1462 Q12536 Q783 Q265 Q36678 Q712 Q711 Q1460 Q657 Q792 Q796 Q954 Q889 Q958 Q986 Q826 Q242 Q244 Q811 Q153136 Q924 Q423 Q983 Q851 Q733 Q819 Q730 Q1013 Q159626 Q233 Q238 Q1045 Q1044 Q1049 Q1025 Q1027 Q1020 Q1029 Q1028 Q227 Q223 Q221 Q347 Q1036 Q1037 Q1032 Q1030 Q965 Q967 Q962 Q963 Q115 Q917 Q1007 Q1006 Q1005 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q774 Q948 Q817 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q953
(c(Q15416)|c(Q2088357),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q912
relation P495
type Q15416
type Q2088357
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) ?d WHERE { { ?k property:P495 ?d . ?d rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15416 } UNION { ?d rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q2088357 . ?k property:P495 ?d } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:P495 resource:Q912 . { ?h rdf:type ?g . VALUES ( ?g ) { ( ontology:Q15416 ) ( ontology:Q2088357 ) } } } } . FILTER ( ?j < ?f ) }
Yemen Panama Sardinia Abbasid caliphate Honduras Uzbekistan West Bank Fiji Mongolia Sicily Chad El Salvador Iraq Zimbabwe Afghanistan South Sudan Eritrea Maldives Belize Barbados Nicaragua Habsburg Empire Tanzania North Korea Equatorial Guinea Saudi Arabia Paraguay Laos Suriname Lesotho Württemberg Malta San Marino Somalia Sierra Leone Sudan Mauritania Mauritius Malawi Mozambique Morocco Azerbaijan Greenland Republic of Macedonia Liechtenstein Uganda Rwanda Niger Namibia Burkina Faso Burundi Benin Botswana Ethiopia Bhutan Guinea-Bissau Guinea Gambia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Guatemala Tunisia Kuwait Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Zambia
80
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
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 Mali
relation country of origin
type television program
type musical ensemble
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) ?d WHERE { { ?k property:country_of_origin ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:television_program } UNION { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:musical_ensemble . ?k property:country_of_origin ?d } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:country_of_origin resource:Mali . { ?h rdf:type ?g . VALUES ( ?g ) { ( ontology:television_program ) ( ontology:musical_ensemble ) } } } } . FILTER ( ?j < ?f ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q403
P47
Q15617994
USER
Which administrative territories do Serbia share a border with ?
(c(Q15617994),P47,Q403)
action filter_type
action find
entity Q403
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q403']
SELECT DISTINCT ?o WHERE { resource:Q403 property:P47 ?o . ?o rdf:type ontology:Q15617994 }
Serbia
action filter_type
action find
entity Serbia
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Serbia']
SELECT DISTINCT ?o WHERE { resource:Serbia property:shares_border_with ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q218 Q225 Q28
SYSTEM
Romania, Bosnia and Herzegovina, Hungary
Q236 Q224 Q222 Q221 Q218 Q219 Q225 Q28
(c(Q15617994),P47,Q403)
action filter_type
action find
entity Q403
relation P47
type Q15617994
[ANSWERS] Serbia share a border with
[{'concept': 'Q15617994'}, 'P47', 'Q403']
SELECT DISTINCT ?o WHERE { resource:Q403 property:P47 ?o . ?o rdf:type ontology:Q15617994 }
Montenegro Croatia Albania Republic of Macedonia Romania Bulgaria Bosnia and Herzegovina Hungary
Romania, Bosnia and Herzegovina and Hungary Serbia share a border with
Romania Bosnia and Herzegovina Hungary
action filter_type
action find
entity Serbia
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Serbia']
SELECT DISTINCT ?o WHERE { resource:Serbia property:shares_border_with ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q218 Q225 Q28
P163
Q14660
USER
Which flags are associated with Romania, Bosnia and Herzegovina and Hungary ?
(Q218,P163,c(Q14660)) (Q225,P163,c(Q14660)) (Q28,P163,c(Q14660))
action union
action filter_type
action find
entity Q218
relation P163
type Q14660
action filter_type
action find
entity Q225
relation P163
type Q14660
action filter_type
action find
entity Q28
relation P163
type Q14660
['Q218', 'P163', {'concept': 'Q14660'}] ['Q225', 'P163', {'concept': 'Q14660'}] ['Q28', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?m WHERE { ?r property:P163 ?m . VALUES ( ?r ) { ( resource:Q218 ) ( resource:Q225 ) } }
Romania Bosnia and Herzegovina Hungary
action union
action filter_type
action find
entity Romania
relation flag
type flag
action filter_type
action find
entity Bosnia and Herzegovina
relation flag
type flag
action filter_type
action find
entity Hungary
relation flag
type flag
['Romania', 'flag', {'concept': 'flag'}] ['Bosnia and Herzegovina', 'flag', {'concept': 'flag'}] ['Hungary', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?m WHERE { ?r property:flag ?m . VALUES ( ?r ) { ( resource:Romania ) ( resource:Bosnia_and_Herzegovina ) } }
[]
flag
Q130811 Q162033 Q81970
SYSTEM
Flag of Romania, flag of Bosnia and Herzegovina, flag of Hungary
Q130811 Q162033 Q81970
(Q218,P163,c(Q14660)) (Q225,P163,c(Q14660)) (Q28,P163,c(Q14660))
action union
action filter_type
action find
entity Q218
relation P163
type Q14660
action filter_type
action find
entity Q225
relation P163
type Q14660
action filter_type
action find
entity Q28
relation P163
type Q14660
[ANSWERS] are associated with Romania, Bosnia and Herzegovina and Hungary
['Q218', 'P163', {'concept': 'Q14660'}] ['Q225', 'P163', {'concept': 'Q14660'}] ['Q28', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?m WHERE { ?r property:P163 ?m . VALUES ( ?r ) { ( resource:Q218 ) ( resource:Q225 ) } }
Flag of Romania flag of Bosnia and Herzegovina flag of Hungary
Flag of Romania, flag of Bosnia and Herzegovina and flag of Hungary are associated with Romania, Bosnia and Herzegovina and Hungary
Flag of Romania flag of Bosnia and Herzegovina flag of Hungary
action union
action filter_type
action find
entity Romania
relation flag
type flag
action filter_type
action find
entity Bosnia and Herzegovina
relation flag
type flag
action filter_type
action find
entity Hungary
relation flag
type flag
['Romania', 'flag', {'concept': 'flag'}] ['Bosnia and Herzegovina', 'flag', {'concept': 'flag'}] ['Hungary', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?m WHERE { ?r property:flag ?m . VALUES ( ?r ) { ( resource:Romania ) ( resource:Bosnia_and_Herzegovina ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q130811
P462
Q1075
USER
Which color is that flag associated with ?
(Q130811,P462,c(Q1075))
action filter_type
action find
entity Q130811
relation P462
type Q1075
['Q130811', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?r WHERE { resource:Q130811 property:P462 ?r . ?r rdf:type ontology:Q1075 }
Flag of Romania
action filter_type
action find
entity Flag of Romania
relation color
type color
['Flag of Romania', 'color', {'concept': 'color'}]
SELECT DISTINCT ?r WHERE { resource:Flag_of_Romania property:color ?r . ?r rdf:type ontology:color }
[]
color
Clarification for simple ques.
Q81970
SYSTEM
Did you mean flag of Hungary ?
Q130811 Q162033 Q81970
(Q130811,P462,c(Q1075)) (Q162033,P462,c(Q1075)) (Q81970,P462,c(Q1075))
[ANSWER]
['Q130811', 'P462', {'concept': 'Q1075'}] ['Q162033', 'P462', {'concept': 'Q1075'}] ['Q81970', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?r WHERE { resource:Q130811 property:P462 ?r . ?r rdf:type ontology:Q1075 }
Flag of Romania flag of Bosnia and Herzegovina flag of Hungary
Did you mean flag of Hungary ?
flag of Hungary
['Flag of Romania', 'color', {'concept': 'color'}] ['flag of Bosnia and Herzegovina', 'color', {'concept': 'color'}] ['flag of Hungary', 'color', {'concept': 'color'}]
SELECT DISTINCT ?r WHERE { resource:Flag_of_Romania property:color ?r . ?r rdf:type ontology:color }
[]
Simple Question (Coreferenced)
USER
No, I meant Flag of Romania. Could you tell me the answer for that?
(Q130811,P462,c(Q1075))
Q130811
['Q130811', 'P462', {'concept': 'Q1075'}]
['Flag of Romania', 'color', {'concept': 'color'}]
[]
Q943
SYSTEM
yellow
Q943
(Q130811,P462,c(Q1075))
action filter_type
action find
entity Q130811
relation P462
type Q1075
That flag is associated with [ANSWER]
['Q130811', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?r WHERE { resource:Q130811 property:P462 ?r . ?r rdf:type ontology:Q1075 }
yellow
That flag is associated with yellow
yellow
action filter_type
action find
entity Flag of Romania
relation color
type color
['Flag of Romania', 'color', {'concept': 'color'}]
SELECT DISTINCT ?r WHERE { resource:Flag_of_Romania property:color ?r . ?r rdf:type ontology:color }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q943
P1340
Q6619679
USER
Who has that one as the color of iris ?
(c(Q6619679),P1340,Q943)
action filter_type
action find_reverse
entity Q943
relation P1340
type Q6619679
[{'concept': 'Q6619679'}, 'P1340', 'Q943']
SELECT DISTINCT ?y WHERE { ?y property:P1340 resource:Q943 . ?y rdf:type ontology:Q6619679 }
yellow
action filter_type
action find_reverse
entity yellow
relation eye color
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'eye color', 'yellow']
SELECT DISTINCT ?y WHERE { ?y property:eye_color resource:yellow . ?y rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Q2300118
SYSTEM
Mileena
Q2300118
(c(Q6619679),P1340,Q943)
action filter_type
action find_reverse
entity Q943
relation P1340
type Q6619679
[ANSWER] has that one as the color of iris
[{'concept': 'Q6619679'}, 'P1340', 'Q943']
SELECT DISTINCT ?y WHERE { ?y property:P1340 resource:Q943 . ?y rdf:type ontology:Q6619679 }
Mileena
Mileena has that one as the color of iris
Mileena
action filter_type
action find_reverse
entity yellow
relation eye color
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'eye color', 'yellow']
SELECT DISTINCT ?y WHERE { ?y property:eye_color resource:yellow . ?y rdf:type ontology:fictional_humanoid }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q471775 Q298
P161 P6
Q502895
USER
Which people are Chile the head of goverment of or starred in The Wind's Fierce ?
OR((Q298,P6,c(Q502895)), (Q471775,P161,c(Q502895)))
action filter_type
action union
action find
entity Q298
relation P6
action find
entity Q471775
relation P161
type Q502895
{'OR': [['Q298', 'P6', {'concept': 'Q502895'}], ['Q471775', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q298 property:P6 ?g } UNION { resource:Q471775 property:P161 ?g } } . ?g rdf:type ontology:Q502895 }
The Wind's Fierce Chile
action filter_type
action union
action find
entity Chile
relation head of government
action find
entity The Wind's Fierce
relation cast member
type common name
{'OR': [['Chile', 'head of government', {'concept': 'common name'}], ["The Wind's Fierce", 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Chile property:head_of_government ?g } UNION { resource:The_Wind's_Fierce property:cast_member ?g } } . ?g rdf:type ontology:common_name }
[]
common name
Q320 Q243430 Q106743 Q983626 Q1691157 Q293117 Q6169281
SYSTEM
Michelle Bachelet, Terence Hill, Fernando Rey, Manuel Alexandre, Manuel De Blas, Maria Grazia Buccella, William Layton
Q320 Q243430 Q106743 Q983626 Q1691157 Q293117 Q6169281
OR((Q298,P6,c(Q502895)), (Q471775,P161,c(Q502895)))
action filter_type
action union
action find
entity Q298
relation P6
action find
entity Q471775
relation P161
type Q502895
[ANSWERS] are Chile the head of goverment of or starred in The Wind's Fierce
{'OR': [['Q298', 'P6', {'concept': 'Q502895'}], ['Q471775', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q298 property:P6 ?g } UNION { resource:Q471775 property:P161 ?g } } . ?g rdf:type ontology:Q502895 }
Michelle Bachelet Terence Hill Fernando Rey Manuel Alexandre Manuel De Blas Maria Grazia Buccella William Layton
Michelle Bachelet, Terence Hill, Fernando Rey, Manuel Alexandre, Manuel De Blas, Maria Grazia Buccella and William Layton are Chile the head of goverment of or starred in The Wind's Fierce
Michelle Bachelet Terence Hill Fernando Rey Manuel Alexandre Manuel De Blas Maria Grazia Buccella William Layton
action filter_type
action union
action find
entity Chile
relation head of government
action find
entity The Wind's Fierce
relation cast member
type common name
{'OR': [['Chile', 'head of government', {'concept': 'common name'}], ["The Wind's Fierce", 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Chile property:head_of_government ?g } UNION { resource:The_Wind's_Fierce property:cast_member ?g } } . ?g rdf:type ontology:common_name }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P57
Q15416 Q838948
USER
How many television programs or works of art are that person a director of ?
(c(Q15416),P57,Q243430) (c(Q838948),P57,Q243430) (c(Q15416),P57,Q320) (c(Q838948),P57,Q320) (c(Q15416),P57,Q243430) (c(Q838948),P57,Q243430) (c(Q15416),P57,Q106743) (c(Q838948),P57,Q106743) (c(Q15416),P57,Q983626) (c(Q838948),P57,Q983626) (c(Q15416),P57,Q1691157) (c(Q838948),P57,Q1691157) (c(Q15416),P57,Q293117) (c(Q838948),P57,Q293117) (c(Q15416),P57,Q6169281) (c(Q838948),P57,Q6169281)
[{'concept': 'Q15416'}, 'P57', 'Q243430'] [{'concept': 'Q838948'}, 'P57', 'Q243430'] [{'concept': 'Q15416'}, 'P57', 'Q320'] [{'concept': 'Q838948'}, 'P57', 'Q320'] [{'concept': 'Q15416'}, 'P57', 'Q243430'] [{'concept': 'Q838948'}, 'P57', 'Q243430'] [{'concept': 'Q15416'}, 'P57', 'Q106743'] [{'concept': 'Q838948'}, 'P57', 'Q106743'] [{'concept': 'Q15416'}, 'P57', 'Q983626'] [{'concept': 'Q838948'}, 'P57', 'Q983626'] [{'concept': 'Q15416'}, 'P57', 'Q1691157'] [{'concept': 'Q838948'}, 'P57', 'Q1691157'] [{'concept': 'Q15416'}, 'P57', 'Q293117'] [{'concept': 'Q838948'}, 'P57', 'Q293117'] [{'concept': 'Q15416'}, 'P57', 'Q6169281'] [{'concept': 'Q838948'}, 'P57', 'Q6169281']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q5280518 resource:Q243430 } UNION { ?y property:Q5280518 resource:Q243430 } UNION { ?z property:Q5280518 resource:Q320 } UNION { ?y property:Q5280518 resource:Q320 } UNION { ?z property:Q5280518 resource:Q243430 } UNION { ?y property:Q5280518 resource:Q243430 } UNION { ?z property:Q5280518 resource:Q106743 } UNION { ?y property:Q5280518 resource:Q106743 } UNION { ?z property:Q5280518 resource:Q983626 } UNION { ?y property:Q5280518 resource:Q983626 } UNION { ?z property:Q5280518 resource:Q1691157 } UNION { ?y property:Q5280518 resource:Q1691157 } UNION { ?z property:Q5280518 resource:Q293117 } UNION { ?y property:Q5280518 resource:Q293117 } UNION { ?z property:Q5280518 resource:Q8014377 } UNION { ?y property:Q5280518 resource:Q8014377 } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q838948 }
[{'concept': 'television program'}, 'director', 'Terence Hill'] [{'concept': 'work of art'}, 'director', 'Terence Hill'] [{'concept': 'television program'}, 'director', 'Michelle Bachelet'] [{'concept': 'work of art'}, 'director', 'Michelle Bachelet'] [{'concept': 'television program'}, 'director', 'Terence Hill'] [{'concept': 'work of art'}, 'director', 'Terence Hill'] [{'concept': 'television program'}, 'director', 'Fernando Rey'] [{'concept': 'work of art'}, 'director', 'Fernando Rey'] [{'concept': 'television program'}, 'director', 'Manuel Alexandre'] [{'concept': 'work of art'}, 'director', 'Manuel Alexandre'] [{'concept': 'television program'}, 'director', 'Manuel De Blas'] [{'concept': 'work of art'}, 'director', 'Manuel De Blas'] [{'concept': 'television program'}, 'director', 'Maria Grazia Buccella'] [{'concept': 'work of art'}, 'director', 'Maria Grazia Buccella'] [{'concept': 'television program'}, 'director', 'William Layton'] [{'concept': 'work of art'}, 'director', 'William Layton']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:director resource:Terence_Hill } UNION { ?y property:director resource:Terence_Hill } UNION { ?z property:director resource:Michelle_Bachelet } UNION { ?y property:director resource:Michelle_Bachelet } UNION { ?z property:director resource:Terence_Hill } UNION { ?y property:director resource:Terence_Hill } UNION { ?z property:director resource:Fernando_Rey } UNION { ?y property:director resource:Fernando_Rey } UNION { ?z property:director resource:Manuel_Alexandre } UNION { ?y property:director resource:Manuel_Alexandre } UNION { ?z property:director resource:Manuel_De_Blas } UNION { ?y property:director resource:Manuel_De_Blas } UNION { ?z property:director resource:Maria_Grazia_Buccella } UNION { ?y property:director resource:Maria_Grazia_Buccella } UNION { ?z property:director resource:William_Layton } UNION { ?y property:director resource:William_Layton } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:work_of_art }
[]
television program work of art
Quantitative|Count|Mult. entity type|Clarification
Q243430
SYSTEM
Did you mean Terence Hill ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q5280518 resource:Q243430 } UNION { ?y property:Q5280518 resource:Q243430 } UNION { ?z property:Q5280518 resource:Q320 } UNION { ?y property:Q5280518 resource:Q320 } UNION { ?z property:Q5280518 resource:Q243430 } UNION { ?y property:Q5280518 resource:Q243430 } UNION { ?z property:Q5280518 resource:Q106743 } UNION { ?y property:Q5280518 resource:Q106743 } UNION { ?z property:Q5280518 resource:Q983626 } UNION { ?y property:Q5280518 resource:Q983626 } UNION { ?z property:Q5280518 resource:Q1691157 } UNION { ?y property:Q5280518 resource:Q1691157 } UNION { ?z property:Q5280518 resource:Q293117 } UNION { ?y property:Q5280518 resource:Q293117 } UNION { ?z property:Q5280518 resource:Q8014377 } UNION { ?y property:Q5280518 resource:Q8014377 } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q838948 }
Did you mean Terence Hill ?
Terence Hill
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:director resource:Terence_Hill } UNION { ?y property:director resource:Terence_Hill } UNION { ?z property:director resource:Michelle_Bachelet } UNION { ?y property:director resource:Michelle_Bachelet } UNION { ?z property:director resource:Terence_Hill } UNION { ?y property:director resource:Terence_Hill } UNION { ?z property:director resource:Fernando_Rey } UNION { ?y property:director resource:Fernando_Rey } UNION { ?z property:director resource:Manuel_Alexandre } UNION { ?y property:director resource:Manuel_Alexandre } UNION { ?z property:director resource:Manuel_De_Blas } UNION { ?y property:director resource:Manuel_De_Blas } UNION { ?z property:director resource:Maria_Grazia_Buccella } UNION { ?y property:director resource:Maria_Grazia_Buccella } UNION { ?z property:director resource:William_Layton } UNION { ?y property:director resource:William_Layton } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q15416),P57,Q243430) (c(Q838948),P57,Q243430) (c(Q15416),P57,Q320) (c(Q838948),P57,Q320) (c(Q15416),P57,Q243430) (c(Q838948),P57,Q243430) (c(Q15416),P57,Q106743) (c(Q838948),P57,Q106743) (c(Q15416),P57,Q983626) (c(Q838948),P57,Q983626) (c(Q15416),P57,Q1691157) (c(Q838948),P57,Q1691157) (c(Q15416),P57,Q293117) (c(Q838948),P57,Q293117) (c(Q15416),P57,Q6169281) (c(Q838948),P57,Q6169281)
[{'concept': 'Q15416'}, 'P57', 'Q243430'] [{'concept': 'Q838948'}, 'P57', 'Q243430'] [{'concept': 'Q15416'}, 'P57', 'Q320'] [{'concept': 'Q838948'}, 'P57', 'Q320'] [{'concept': 'Q15416'}, 'P57', 'Q243430'] [{'concept': 'Q838948'}, 'P57', 'Q243430'] [{'concept': 'Q15416'}, 'P57', 'Q106743'] [{'concept': 'Q838948'}, 'P57', 'Q106743'] [{'concept': 'Q15416'}, 'P57', 'Q983626'] [{'concept': 'Q838948'}, 'P57', 'Q983626'] [{'concept': 'Q15416'}, 'P57', 'Q1691157'] [{'concept': 'Q838948'}, 'P57', 'Q1691157'] [{'concept': 'Q15416'}, 'P57', 'Q293117'] [{'concept': 'Q838948'}, 'P57', 'Q293117'] [{'concept': 'Q15416'}, 'P57', 'Q6169281'] [{'concept': 'Q838948'}, 'P57', 'Q6169281']
[{'concept': 'television program'}, 'director', 'Terence Hill'] [{'concept': 'work of art'}, 'director', 'Terence Hill'] [{'concept': 'television program'}, 'director', 'Michelle Bachelet'] [{'concept': 'work of art'}, 'director', 'Michelle Bachelet'] [{'concept': 'television program'}, 'director', 'Terence Hill'] [{'concept': 'work of art'}, 'director', 'Terence Hill'] [{'concept': 'television program'}, 'director', 'Fernando Rey'] [{'concept': 'work of art'}, 'director', 'Fernando Rey'] [{'concept': 'television program'}, 'director', 'Manuel Alexandre'] [{'concept': 'work of art'}, 'director', 'Manuel Alexandre'] [{'concept': 'television program'}, 'director', 'Manuel De Blas'] [{'concept': 'work of art'}, 'director', 'Manuel De Blas'] [{'concept': 'television program'}, 'director', 'Maria Grazia Buccella'] [{'concept': 'work of art'}, 'director', 'Maria Grazia Buccella'] [{'concept': 'television program'}, 'director', 'William Layton'] [{'concept': 'work of art'}, 'director', 'William Layton']
[]
SYSTEM
5
Q1165306 Q908533 Q473829 Q751099 Q1233715
(c(Q15416),P57,Q243430) (c(Q838948),P57,Q243430) (c(Q15416),P57,Q320) (c(Q838948),P57,Q320) (c(Q15416),P57,Q243430) (c(Q838948),P57,Q243430) (c(Q15416),P57,Q106743) (c(Q838948),P57,Q106743) (c(Q15416),P57,Q983626) (c(Q838948),P57,Q983626) (c(Q15416),P57,Q1691157) (c(Q838948),P57,Q1691157) (c(Q15416),P57,Q293117) (c(Q838948),P57,Q293117) (c(Q15416),P57,Q6169281) (c(Q838948),P57,Q6169281)
[ANSWER]
[{'concept': 'Q15416'}, 'P57', 'Q243430'] [{'concept': 'Q838948'}, 'P57', 'Q243430'] [{'concept': 'Q15416'}, 'P57', 'Q320'] [{'concept': 'Q838948'}, 'P57', 'Q320'] [{'concept': 'Q15416'}, 'P57', 'Q243430'] [{'concept': 'Q838948'}, 'P57', 'Q243430'] [{'concept': 'Q15416'}, 'P57', 'Q106743'] [{'concept': 'Q838948'}, 'P57', 'Q106743'] [{'concept': 'Q15416'}, 'P57', 'Q983626'] [{'concept': 'Q838948'}, 'P57', 'Q983626'] [{'concept': 'Q15416'}, 'P57', 'Q1691157'] [{'concept': 'Q838948'}, 'P57', 'Q1691157'] [{'concept': 'Q15416'}, 'P57', 'Q293117'] [{'concept': 'Q838948'}, 'P57', 'Q293117'] [{'concept': 'Q15416'}, 'P57', 'Q6169281'] [{'concept': 'Q838948'}, 'P57', 'Q6169281']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q5280518 resource:Q243430 } UNION { ?y property:Q5280518 resource:Q243430 } UNION { ?z property:Q5280518 resource:Q320 } UNION { ?y property:Q5280518 resource:Q320 } UNION { ?z property:Q5280518 resource:Q243430 } UNION { ?y property:Q5280518 resource:Q243430 } UNION { ?z property:Q5280518 resource:Q106743 } UNION { ?y property:Q5280518 resource:Q106743 } UNION { ?z property:Q5280518 resource:Q983626 } UNION { ?y property:Q5280518 resource:Q983626 } UNION { ?z property:Q5280518 resource:Q1691157 } UNION { ?y property:Q5280518 resource:Q1691157 } UNION { ?z property:Q5280518 resource:Q293117 } UNION { ?y property:Q5280518 resource:Q293117 } UNION { ?z property:Q5280518 resource:Q8014377 } UNION { ?y property:Q5280518 resource:Q8014377 } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q838948 }
Lucky Luke The World of Don Camillo Troublemakers Lucky Luke Doc West
5
[{'concept': 'television program'}, 'director', 'Terence Hill'] [{'concept': 'work of art'}, 'director', 'Terence Hill'] [{'concept': 'television program'}, 'director', 'Michelle Bachelet'] [{'concept': 'work of art'}, 'director', 'Michelle Bachelet'] [{'concept': 'television program'}, 'director', 'Terence Hill'] [{'concept': 'work of art'}, 'director', 'Terence Hill'] [{'concept': 'television program'}, 'director', 'Fernando Rey'] [{'concept': 'work of art'}, 'director', 'Fernando Rey'] [{'concept': 'television program'}, 'director', 'Manuel Alexandre'] [{'concept': 'work of art'}, 'director', 'Manuel Alexandre'] [{'concept': 'television program'}, 'director', 'Manuel De Blas'] [{'concept': 'work of art'}, 'director', 'Manuel De Blas'] [{'concept': 'television program'}, 'director', 'Maria Grazia Buccella'] [{'concept': 'work of art'}, 'director', 'Maria Grazia Buccella'] [{'concept': 'television program'}, 'director', 'William Layton'] [{'concept': 'work of art'}, 'director', 'William Layton']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:director resource:Terence_Hill } UNION { ?y property:director resource:Terence_Hill } UNION { ?z property:director resource:Michelle_Bachelet } UNION { ?y property:director resource:Michelle_Bachelet } UNION { ?z property:director resource:Terence_Hill } UNION { ?y property:director resource:Terence_Hill } UNION { ?z property:director resource:Fernando_Rey } UNION { ?y property:director resource:Fernando_Rey } UNION { ?z property:director resource:Manuel_Alexandre } UNION { ?y property:director resource:Manuel_Alexandre } UNION { ?z property:director resource:Manuel_De_Blas } UNION { ?y property:director resource:Manuel_De_Blas } UNION { ?z property:director resource:Maria_Grazia_Buccella } UNION { ?y property:director resource:Maria_Grazia_Buccella } UNION { ?z property:director resource:William_Layton } UNION { ?y property:director resource:William_Layton } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q15324 Q2221906 Q14660
USER
Which flags demonstrate min number of bodies of water and geographic locations ?
(c(Q14660),P180,c(Q15324)|c(Q2221906))
action argmin
action union
action find_tuple_counts
relation P180
type Q14660
type Q15324
action find_tuple_counts
relation P180
type Q14660
type Q2221906
[{'concept': 'Q14660'}, 'P180', [{'concept': 'Q15324'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?n ) { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?z ) WHERE { ?m rdf:type ?i . VALUES ( ?i ) { ( ontology:Q2221906 ) ( ontology:Q15324 ) } } GROUP BY ?r } } . FILTER ( ?l = ?n ) . { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?l ) WHERE { { ?c property:P180 ?p . ?c rdf:type ontology:Q14660 . ?p rdf:type ontology:Q15324 } UNION { ?c rdf:type ontology:Q14660 . ?p rdf:type ontology:Q2221906 . ?c property:P180 ?p } } GROUP BY ?c } }
action argmin
action union
action find_tuple_counts
relation depicts
type flag
type body of water
action find_tuple_counts
relation depicts
type flag
type geographic location
[{'concept': 'flag'}, 'depicts', [{'concept': 'body of water'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?n ) { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?z ) WHERE { ?m rdf:type ?i . VALUES ( ?i ) { ( ontology:geographic_location ) ( ontology:body_of_water ) } } GROUP BY ?r } } . FILTER ( ?l = ?n ) . { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?l ) WHERE { { ?c property:depicts ?p . ?c rdf:type ontology:flag . ?p rdf:type ontology:body_of_water } UNION { ?c rdf:type ontology:flag . ?p rdf:type ontology:geographic_location . ?c property:depicts ?p } } GROUP BY ?c } }
[]
body of water geographic location flag
Q82194 Q81676 Q185271
SYSTEM
flag of Brazil, flag of Australia, Flag of Papua New Guinea
Q270377 Q159872 Q83392 Q1165949 Q235829 Q168935 Q128480 Q42537 Q1426561 Q185285 Q1091279 Q1074327 Q134521 Q484249 Q127179 Q601976 Q252995 Q207518 Q599323 Q330517 Q156564 Q163832 Q160260 Q169192 Q124020 Q693558 Q60149 Q162999 Q48409 Q103037 Q36005 Q130458 Q336328 Q105643 Q392167 Q24577771 Q81952 Q104351 Q124329 Q43175 Q127296 Q912854 Q162789 Q79874 Q512175 Q328895 Q130774 Q82194 Q188477 Q41673 Q134874 Q1426630 Q2062018 Q34599 Q19427 Q673117 Q82236 Q81526 Q167119 Q128347 Q4633 Q83278 Q188609 Q19373 Q1418784 Q162033 Q1122078 Q102977 Q520966 Q131147 Q202189 Q185271 Q284396 Q604735 Q301628 Q637134 Q79198 Q170814 Q429900 Q165641 Q80110 Q47214 Q632491 Q165230 Q1064042 Q81676 Q182514 Q1426379
(c(Q14660),P180,c(Q15324)|c(Q2221906))
action argmin
action union
action find_tuple_counts
relation P180
type Q14660
type Q15324
action find_tuple_counts
relation P180
type Q14660
type Q2221906
[ANSWERS] demonstrate min number of bodies of water and geographic locations
[{'concept': 'Q14660'}, 'P180', [{'concept': 'Q15324'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?n ) { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?z ) WHERE { ?m rdf:type ?i . VALUES ( ?i ) { ( ontology:Q2221906 ) ( ontology:Q15324 ) } } GROUP BY ?r } } . FILTER ( ?l = ?n ) . { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?l ) WHERE { { ?c property:P180 ?p . ?c rdf:type ontology:Q14660 . ?p rdf:type ontology:Q15324 } UNION { ?c rdf:type ontology:Q14660 . ?p rdf:type ontology:Q2221906 . ?c property:P180 ?p } } GROUP BY ?c } }
Flag of Tokelau Flag of Cameroon Flag of Algeria Flag of Ontario flag of Guam Flag of Malaysia flag of Israel flag of the United States of America Flag of the Northwest Territories Flag of Vanuatu flag of Western Australia flag of Tasmania Flag of Bhutan Flag of Mozambique flag of Bangladesh Flag of Nova Scotia flag of the Australian Capital Territory flag of Northern Cyprus flag of the Northern Territory Flag of California flag of Alaska Flag of Serbia flag of New Zealand flag of Belize flag of Switzerland flag of Saskatchewan Flag of Denmark Flag of Cambodia flag of Albania Flag of Uganda flag of Lebanon flag of Egypt Flag of Christmas Island Flag of Tuvalu flag of Quebec flag of the People's Republic of Benin flag of Turkey Flag of Barbados Flag of Angola Flag of Japan Flag of South Korea flag of South Australia Flag of Tunisia flag of Afghanistan Flag of Manitoba Flag of the Cocos (Keeling) Islands flag of Argentina flag of Brazil flag of Samoa flag of India Flag of Bolivia Flag of Nunavut flag of Yukon Flag of Libya flag of Oregon Flag of Indiana Flag of Azerbaijan flag of Andorra Flag of the Republic of Macedonia Flag of Pakistan Flag of Cyprus flag of the United Kingdom Flag of Palau Flag of South Carolina Flag of New Brunswick flag of Bosnia and Herzegovina Flag of Alberta Flag of Mauritania Flag of Rhode Island Flag of the People's Republic of China Flag of Niue Flag of Papua New Guinea Flag of Kansas Flag of Sint Maarten Flag of Mississippi flag of British Columbia Flag of Vatican City Flag of Zambia Flag of Saba flag of Kyrgyzstan flag of Canada flag of the Russian Soviet Federative Socialist Republic Flag of Arizona flag of the Soviet Union flag of New South Wales flag of Australia Flag of Fiji Flag of Amsterdam
Flag of Brazil, flag of Australia and Flag of Papua New Guinea demonstrate min number of bodies of water and geographic locations
flag of Brazil flag of Australia Flag of Papua New Guinea
action argmin
action union
action find_tuple_counts
relation depicts
type flag
type body of water
action find_tuple_counts
relation depicts
type flag
type geographic location
[{'concept': 'flag'}, 'depicts', [{'concept': 'body of water'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?n ) { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?z ) WHERE { ?m rdf:type ?i . VALUES ( ?i ) { ( ontology:geographic_location ) ( ontology:body_of_water ) } } GROUP BY ?r } } . FILTER ( ?l = ?n ) . { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?l ) WHERE { { ?c property:depicts ?p . ?c rdf:type ontology:flag . ?p rdf:type ontology:body_of_water } UNION { ?c rdf:type ontology:flag . ?p rdf:type ontology:geographic_location . ?c property:depicts ?p } } GROUP BY ?c } }
[]