Simple Question (Direct)
Simple Question
Q1036501
P166
Q618779
USER
What was won by Carl-Heinz Kliemann ?
(Q1036501,P166,c(Q618779))
action filter_type
action find
entity Q1036501
relation P166
type Q618779
['Q1036501', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q618779 . resource:Q1036501 property:P166 ?m }
Carl-Heinz Kliemann
action filter_type
action find
entity Carl-Heinz Kliemann
relation award received
type award
['Carl-Heinz Kliemann', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:award . resource:Carl-Heinz_Kliemann property:award_received ?m }
[]
award
Q10905380
SYSTEM
Cross of the Order of Merit of the Federal Republic of Germany
Q10905380
(Q1036501,P166,c(Q618779))
action filter_type
action find
entity Q1036501
relation P166
type Q618779
Germany [ANSWER] was won by Carl-Heinz Kliemann
['Q1036501', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q618779 . resource:Q1036501 property:P166 ?m }
Cross of the Order of Merit of the Federal Republic of Germany
Germany Cross of the Order of Merit of the Federal Republic of Germany was won by Carl-Heinz Kliemann
Cross of the Order of Merit of the Federal Republic of Germany
action filter_type
action find
entity Carl-Heinz Kliemann
relation award received
type award
['Carl-Heinz Kliemann', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:award . resource:Carl-Heinz_Kliemann property:award_received ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1036501
P734
Q82799
USER
Who has the surname that person ?
(Q10905380,P734,c(Q82799))
action filter_type
action find
entity Q1036501
relation P734
type Q82799
['Q10905380', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q1036501 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Carl-Heinz Kliemann
action filter_type
action find
entity Carl-Heinz Kliemann
relation family name
type name
['Cross of the Order of Merit of the Federal Republic of Germany', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Carl-Heinz_Kliemann property:family_name ?u . ?u rdf:type ontology:name }
[]
name
Q23831621
SYSTEM
Kliemann
Q23831621
(Q10905380,P734,c(Q82799))
action filter_type
action find
entity Q1036501
relation P734
type Q82799
[ANSWER] has the surname that person
['Q10905380', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q1036501 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Kliemann
Kliemann has the surname that person
Kliemann
action filter_type
action find
entity Carl-Heinz Kliemann
relation family name
type name
['Cross of the Order of Merit of the Federal Republic of Germany', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Carl-Heinz_Kliemann property:family_name ?u . ?u rdf:type ontology:name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q82799 Q1792379 Q15709879
USER
Which names are demonstrated in min number of art genres or artwork series ?
(c(Q1792379)|c(Q15709879),P180,c(Q82799))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
[[{'concept': 'Q1792379'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?o ) { SELECT DISTINCT ?m ( COUNT ( ?k ) AS ?n ) WHERE { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:Q1792379 ) ( ontology:Q15709879 ) } } GROUP BY ?m } } . { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?j ) WHERE { { ?r property:P180 ?s . ?s rdf:type ontology:Q82799 . ?r rdf:type ontology:Q1792379 } UNION { ?r property:P180 ?s . ?s rdf:type ontology:Q82799 . ?r rdf:type ontology:Q15709879 } } GROUP BY ?s } . FILTER ( ?j = ?o ) }
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type name
type art genre
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
[[{'concept': 'art genre'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?o ) { SELECT DISTINCT ?m ( COUNT ( ?k ) AS ?n ) WHERE { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:art_genre ) ( ontology:artwork_series ) } } GROUP BY ?m } } . { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?j ) WHERE { { ?r property:depicts ?s . ?s rdf:type ontology:name . ?r rdf:type ontology:art_genre } UNION { ?r property:depicts ?s . ?s rdf:type ontology:name . ?r rdf:type ontology:artwork_series } } GROUP BY ?s } . FILTER ( ?j = ?o ) }
[]
name art genre artwork series
Q1807269 Q876933 Q134609
SYSTEM
leek, magi, Cynara scolymus
Q13219075 Q134609 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q2092297 Q11946202 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 Q8331 Q8335 Q846664 Q3116510 Q3537778 Q1865281 Q1192868 Q9394 Q2734060 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q43115 Q858243 Q876933 Q190294 Q7378 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q5070208 Q859257 Q10968813
(c(Q1792379)|c(Q15709879),P180,c(Q82799))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
[ANSWERS] are demonstrated in min number of art genres or artwork series
[[{'concept': 'Q1792379'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?o ) { SELECT DISTINCT ?m ( COUNT ( ?k ) AS ?n ) WHERE { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:Q1792379 ) ( ontology:Q15709879 ) } } GROUP BY ?m } } . { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?j ) WHERE { { ?r property:P180 ?s . ?s rdf:type ontology:Q82799 . ?r rdf:type ontology:Q1792379 } UNION { ?r property:P180 ?s . ?s rdf:type ontology:Q82799 . ?r rdf:type ontology:Q15709879 } } GROUP BY ?s } . FILTER ( ?j = ?o ) }
octopus Cynara scolymus toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin eagle butterfly trout cattle goose Boy cannoneer leek fox raven hawk frog donkeys whale clam rabbit reed magpie slug lizard antelope Yellow jacket saint Tree squirrel magi mouflon elephant vulture pheasant thistle snail Scipio locust wasp kangaroo fly jay
Leek, magi and Cynara scolymus are demonstrated in min number of art genres or artwork series
leek magi Cynara scolymus
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type name
type art genre
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
[[{'concept': 'art genre'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?o ) { SELECT DISTINCT ?m ( COUNT ( ?k ) AS ?n ) WHERE { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:art_genre ) ( ontology:artwork_series ) } } GROUP BY ?m } } . { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?j ) WHERE { { ?r property:depicts ?s . ?s rdf:type ontology:name . ?r rdf:type ontology:art_genre } UNION { ?r property:depicts ?s . ?s rdf:type ontology:name . ?r rdf:type ontology:artwork_series } } GROUP BY ?s } . FILTER ( ?j = ?o ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q112167 Q1036501
P27
Q1048835
USER
Which political territories are Carl-Heinz Kliemann and Boris Kodjoe a civilian of ?
AND((Q1036501,P27,c(Q1048835)), (Q112167,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q1036501
relation P27
action find
entity Q112167
relation P27
type Q1048835
{'AND': [['Q1036501', 'P27', {'concept': 'Q1048835'}], ['Q112167', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q1048835 . resource:Q1036501 property:P27 ?n . resource:Q112167 property:P27 ?n }
Boris Kodjoe Carl-Heinz Kliemann
action filter_type
action intersection
action find
entity Carl-Heinz Kliemann
relation country of citizenship
action find
entity Boris Kodjoe
relation country of citizenship
type political territorial entity
{'AND': [['Carl-Heinz Kliemann', 'country of citizenship', {'concept': 'political territorial entity'}], ['Boris Kodjoe', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:political_territorial_entity . resource:Carl-Heinz_Kliemann property:country_of_citizenship ?n . resource:Boris_Kodjoe property:country_of_citizenship ?n }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q1036501,P27,c(Q1048835)), (Q112167,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q1036501
relation P27
action find
entity Q112167
relation P27
type Q1048835
[ANSWER] is Carl-Heinz Kliemann and Boris Kodjoe a civilian of
{'AND': [['Q1036501', 'P27', {'concept': 'Q1048835'}], ['Q112167', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q1048835 . resource:Q1036501 property:P27 ?n . resource:Q112167 property:P27 ?n }
Germany
Germany is Carl-Heinz Kliemann and Boris Kodjoe a civilian of
Germany
action filter_type
action intersection
action find
entity Carl-Heinz Kliemann
relation country of citizenship
action find
entity Boris Kodjoe
relation country of citizenship
type political territorial entity
{'AND': [['Carl-Heinz Kliemann', 'country of citizenship', {'concept': 'political territorial entity'}], ['Boris Kodjoe', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:political_territorial_entity . resource:Carl-Heinz_Kliemann property:country_of_citizenship ?n . resource:Boris_Kodjoe property:country_of_citizenship ?n }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q183 Q4524446 Q695536
P530
Q1048835
USER
Does Germany have diplomatic relations with Shyroke and Laujar de Andarax ?
(Q183,P530,Q4524446) (Q183,P530,Q695536)
action is_in
entity Q183
action intersection
action find_reverse
entity Q4524446
relation P530
action find_reverse
entity Q695536
relation P530
['Q183', 'P530', 'Q4524446'] ['Q183', 'P530', 'Q695536']
ASK WHERE { resource:Q183 property:P530 resource:Q4524446 . resource:Q183 property:P530 resource:Q695536 }
Germany Shyroke Laujar de Andarax
action is_in
entity Germany
action intersection
action find_reverse
entity Shyroke
relation diplomatic relation
action find_reverse
entity Laujar de Andarax
relation diplomatic relation
['Germany', 'diplomatic relation', 'Shyroke'] ['Germany', 'diplomatic relation', 'Laujar de Andarax']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Shyroke . resource:Germany property:diplomatic_relation resource:Laujar_de_Andarax }
[]
political territorial entity
SYSTEM
NO
(Q183,P530,Q4524446) (Q183,P530,Q695536)
action is_in
entity Q183
action intersection
action find_reverse
entity Q4524446
relation P530
action find_reverse
entity Q695536
relation P530
[ANSWER]
['Q183', 'P530', 'Q4524446'] ['Q183', 'P530', 'Q695536']
ASK WHERE { resource:Q183 property:P530 resource:Q4524446 . resource:Q183 property:P530 resource:Q695536 }
No
action is_in
entity Germany
action intersection
action find_reverse
entity Shyroke
relation diplomatic relation
action find_reverse
entity Laujar de Andarax
relation diplomatic relation
['Germany', 'diplomatic relation', 'Shyroke'] ['Germany', 'diplomatic relation', 'Laujar de Andarax']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Shyroke . resource:Germany property:diplomatic_relation resource:Laujar_de_Andarax }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1020
P530
Q1048835 Q15617994
USER
Which administrative territories have ambassadorial relations with around the same number of political territories as Malawi ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1020
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { resource:Q1020 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } . FILTER ( ?t = ?i ) . { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?t ) WHERE { ?w property:P530 ?x . ?w rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?w } }
Malawi
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Malawi
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { resource:Malawi property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?t = ?i ) . { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?t ) WHERE { ?w property:diplomatic_relation ?x . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?w } }
[]
political territorial entity designation for an administrative territorial entity
Q55 Q148 Q184
SYSTEM
Netherlands, People's Republic of China, Belarus
Q702 Q804 Q800 Q805 Q419 Q668 Q414 Q55 Q262 Q148 Q783 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q32 Q31 Q924 Q928 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q184 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q117 Q754 Q750 Q213 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q858 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1020
relation P530
type Q15617994
[ANSWERS] have ambassadorial relations with around the same number of political territories as Malawi
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { resource:Q1020 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } . FILTER ( ?t = ?i ) . { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?t ) WHERE { ?w property:P530 ?x . ?w rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?w } }
Federated States of Micronesia Panama Costa Rica Yemen Peru India Argentina Netherlands Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Luxembourg Belgium Tanzania Philippines Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Oman Belarus Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ghana Trinidad and Tobago Bolivia Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Syria Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
Netherlands, People's Republic of China and Belarus have ambassadorial relations with around the same number of political territories as Malawi
Netherlands People's Republic of China Belarus
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Malawi
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { resource:Malawi property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?t = ?i ) . { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?t ) WHERE { ?w property:diplomatic_relation ?x . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?w } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q790
P530
Q1048835 Q15617994
USER
And what about Haiti?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q790
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Q790 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?n = ?j ) . { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?n ) WHERE { ?t rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 . ?t property:P530 ?q } GROUP BY ?t } }
Haiti
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Haiti
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Haiti property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?n = ?j ) . { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?n ) WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity . ?t property:diplomatic_relation ?q } GROUP BY ?t } }
[]
political territorial entity designation for an administrative territorial entity
Q32 Q1011 Q805
SYSTEM
Luxembourg, Cape Verde, Yemen
Q702 Q805 Q262 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q792 Q790 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q236 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q858 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q790
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Q790 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?n = ?j ) . { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?n ) WHERE { ?t rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 . ?t property:P530 ?q } GROUP BY ?t } }
Federated States of Micronesia Yemen Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad El Salvador Haiti South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Montenegro Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Oman Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Syria Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
Luxembourg Cape Verde Yemen
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Haiti
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Haiti property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?n = ?j ) . { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?n ) WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity . ?t property:diplomatic_relation ?q } GROUP BY ?t } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q15275719 Q35798 Q618779
USER
Which awards are a portion of max number of recurring events or executive branches ?
(c(Q618779),P361,c(Q15275719)|c(Q35798))
action argmax
action union
action find_tuple_counts
relation P361
type Q618779
type Q15275719
action find_tuple_counts
relation P361
type Q618779
type Q35798
[{'concept': 'Q618779'}, 'P361', [{'concept': 'Q15275719'}, {'concept': 'Q35798'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?o ) { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?w ) WHERE { ?p rdf:type ?v . VALUES ( ?v ) { ( ontology:Q15275719 ) ( ontology:Q35798 ) } } GROUP BY ?e } } . { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?q ) WHERE { { ?c property:P361 ?h . ?c rdf:type ontology:Q618779 . ?h rdf:type ontology:Q15275719 } UNION { ?c property:P361 ?h . ?c rdf:type ontology:Q618779 . ?h rdf:type ontology:Q35798 } } GROUP BY ?c } . FILTER ( ?q = ?o ) }
action argmax
action union
action find_tuple_counts
relation part of
type award
type recurring event
action find_tuple_counts
relation part of
type award
type executive branch
[{'concept': 'award'}, 'part of', [{'concept': 'recurring event'}, {'concept': 'executive branch'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?o ) { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?w ) WHERE { ?p rdf:type ?v . VALUES ( ?v ) { ( ontology:recurring_event ) ( ontology:executive_branch ) } } GROUP BY ?e } } . { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?q ) WHERE { { ?c property:part_of ?h . ?c rdf:type ontology:award . ?h rdf:type ontology:recurring_event } UNION { ?c property:part_of ?h . ?c rdf:type ontology:award . ?h rdf:type ontology:executive_branch } } GROUP BY ?c } . FILTER ( ?q = ?o ) }
[]
recurring event executive branch award
Q3068024 Q3910742 Q1700510
SYSTEM
First Secretary of State, Special Jury Prize, Golden Leopard
Q3068024 Q1700510 Q674146 Q21071120 Q279820 Q1071326 Q3895781 Q3910742 Q21071119
(c(Q618779),P361,c(Q15275719)|c(Q35798))
action argmax
action union
action find_tuple_counts
relation P361
type Q618779
type Q15275719
action find_tuple_counts
relation P361
type Q618779
type Q35798
[ANSWERS] are a portion of max number of recurring events or executive branches
[{'concept': 'Q618779'}, 'P361', [{'concept': 'Q15275719'}, {'concept': 'Q35798'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?o ) { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?w ) WHERE { ?p rdf:type ?v . VALUES ( ?v ) { ( ontology:Q15275719 ) ( ontology:Q35798 ) } } GROUP BY ?e } } . { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?q ) WHERE { { ?c property:P361 ?h . ?c rdf:type ontology:Q618779 . ?h rdf:type ontology:Q15275719 } UNION { ?c property:P361 ?h . ?c rdf:type ontology:Q618779 . ?h rdf:type ontology:Q35798 } } GROUP BY ?c } . FILTER ( ?q = ?o ) }
First Secretary of State Golden Leopard Leopard of Honour Toronto International Film Festival Award for Best Canadian First Feature Film Golden Calf Un Certain Regard Best Direction Award Special Jury Prize Toronto International Film Festival Award for Best Canadian Film
First Secretary of State, Special Jury Prize and Golden Leopard are a portion of max number of recurring events or executive branches
First Secretary of State Special Jury Prize Golden Leopard
action argmax
action union
action find_tuple_counts
relation part of
type award
type recurring event
action find_tuple_counts
relation part of
type award
type executive branch
[{'concept': 'award'}, 'part of', [{'concept': 'recurring event'}, {'concept': 'executive branch'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?o ) { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?w ) WHERE { ?p rdf:type ?v . VALUES ( ?v ) { ( ontology:recurring_event ) ( ontology:executive_branch ) } } GROUP BY ?e } } . { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?q ) WHERE { { ?c property:part_of ?h . ?c rdf:type ontology:award . ?h rdf:type ontology:recurring_event } UNION { ?c property:part_of ?h . ?c rdf:type ontology:award . ?h rdf:type ontology:executive_branch } } GROUP BY ?c } . FILTER ( ?q = ?o ) }
[]