Simple Question (Direct)
Simple Question
Q2871648
P27
Q15617994
USER
Which administrative territory is Augustin Trapenard an inhabitant of ?
(Q2871648,P27,c(Q15617994))
action filter_type
action find
entity Q2871648
relation P27
type Q15617994
['Q2871648', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q2871648 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Augustin Trapenard
action filter_type
action find
entity Augustin Trapenard
relation country of citizenship
type designation for an administrative territorial entity
['Augustin Trapenard', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Augustin_Trapenard property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q2871648,P27,c(Q15617994))
action filter_type
action find
entity Q2871648
relation P27
type Q15617994
[ANSWER] is Augustin Trapenard an inhabitant of
['Q2871648', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q2871648 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
France
France is Augustin Trapenard an inhabitant of
France
action filter_type
action find
entity Augustin Trapenard
relation country of citizenship
type designation for an administrative territorial entity
['Augustin Trapenard', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Augustin_Trapenard property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q142
P1444
Q2472587
USER
Which people ends its journey at that administrative territory ?
(c(Q2472587),P1444,Q142)
action filter_type
action find_reverse
entity Q142
relation P1444
type Q2472587
[{'concept': 'Q2472587'}, 'P1444', 'Q142']
SELECT DISTINCT ?r WHERE { ?r property:P1444 resource:Q142 . ?r rdf:type ontology:Q2472587 }
France
action filter_type
action find_reverse
entity France
relation destination point
type people
[{'concept': 'people'}, 'destination point', 'France']
SELECT DISTINCT ?r WHERE { ?r property:destination_point resource:France . ?r rdf:type ontology:people }
[]
people
Q5548127
SYSTEM
Georgians in France
Q5548127
(c(Q2472587),P1444,Q142)
action filter_type
action find_reverse
entity Q142
relation P1444
type Q2472587
[ANSWER] ends its journey at that administrative territory
[{'concept': 'Q2472587'}, 'P1444', 'Q142']
SELECT DISTINCT ?r WHERE { ?r property:P1444 resource:Q142 . ?r rdf:type ontology:Q2472587 }
Georgians in France
Georgians in France ends its journey at that administrative territory
Georgians in France
action filter_type
action find_reverse
entity France
relation destination point
type people
[{'concept': 'people'}, 'destination point', 'France']
SELECT DISTINCT ?r WHERE { ?r property:destination_point resource:France . ?r rdf:type ontology:people }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q142
P710
Q820655
USER
Which statutes have that administrative territory as their participant ?
(c(Q820655),P710,Q5548127)
action filter_type
action find_reverse
entity Q142
relation P710
type Q820655
[{'concept': 'Q820655'}, 'P710', 'Q5548127']
SELECT DISTINCT ?e WHERE { ?e property:P710 resource:Q142 . ?e rdf:type ontology:Q820655 }
France
action filter_type
action find_reverse
entity France
relation participant
type statute
[{'concept': 'statute'}, 'participant', 'Georgians in France']
SELECT DISTINCT ?e WHERE { ?e property:participant resource:France . ?e rdf:type ontology:statute }
[]
statute
Q243799 Q2307326
SYSTEM
Franco-Russian Alliance, Treaty of Rome
Q243799 Q2307326
(c(Q820655),P710,Q5548127)
action filter_type
action find_reverse
entity Q142
relation P710
type Q820655
[ANSWERS] have that administrative territory as their participant
[{'concept': 'Q820655'}, 'P710', 'Q5548127']
SELECT DISTINCT ?e WHERE { ?e property:P710 resource:Q142 . ?e rdf:type ontology:Q820655 }
Franco-Russian Alliance Treaty of Rome
Franco-Russian Alliance and Treaty of Rome have that administrative territory as their participant
Franco-Russian Alliance Treaty of Rome
action filter_type
action find_reverse
entity France
relation participant
type statute
[{'concept': 'statute'}, 'participant', 'Georgians in France']
SELECT DISTINCT ?e WHERE { ?e property:participant resource:France . ?e rdf:type ontology:statute }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q142
P88
Q838948 Q340169
USER
How many works of art and medias were approved by France ?
(c(Q838948),P88,Q142) (c(Q340169),P88,Q142)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P88
type Q838948
action filter_type
action find_reverse
entity Q142
relation P88
type Q340169
[{'concept': 'Q838948'}, 'P88', 'Q142'] [{'concept': 'Q340169'}, 'P88', 'Q142']
SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { ?h rdf:type ?x . VALUES ( ?x ) { ( ontology:Q838948 ) ( ontology:Q340169 ) } }
France
action count
action union
action filter_type
action find_reverse
entity France
relation commissioned by
type work of art
action filter_type
action find_reverse
entity France
relation commissioned by
type media
[{'concept': 'work of art'}, 'commissioned by', 'France'] [{'concept': 'media'}, 'commissioned by', 'France']
SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { ?h rdf:type ?x . VALUES ( ?x ) { ( ontology:work_of_art ) ( ontology:media ) } }
[]
work of art media
SYSTEM
1 works of art and 1 medias
Q2418237 Q2956370
(c(Q838948),P88,Q142) (c(Q340169),P88,Q142)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P88
type Q838948
action filter_type
action find_reverse
entity Q142
relation P88
type Q340169
[ANSWER]
[{'concept': 'Q838948'}, 'P88', 'Q142'] [{'concept': 'Q340169'}, 'P88', 'Q142']
SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { ?h rdf:type ?x . VALUES ( ?x ) { ( ontology:Q838948 ) ( ontology:Q340169 ) } }
The Kiss Chanteur florentin du XVe siècle
1 works of art and 1 medias
action count
action union
action filter_type
action find_reverse
entity France
relation commissioned by
type work of art
action filter_type
action find_reverse
entity France
relation commissioned by
type media
[{'concept': 'work of art'}, 'commissioned by', 'France'] [{'concept': 'media'}, 'commissioned by', 'France']
SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { ?h rdf:type ?x . VALUES ( ?x ) { ( ontology:work_of_art ) ( ontology:media ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q3205538 Q5548127
P1444 P495
Q15617994
USER
Which administrative territories do the journey end for Georgians in France and are the countries of origin of The Strange Color of Your Body's Tears ?
AND((Q5548127,P1444,c(Q15617994)), (Q3205538,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q5548127
relation P1444
action find
entity Q3205538
relation P495
type Q15617994
{'AND': [['Q5548127', 'P1444', {'concept': 'Q15617994'}], ['Q3205538', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { resource:Q5548127 property:P1444 ?b . resource:Q3205538 property:P495 ?b . ?b rdf:type ontology:Q15617994 }
The Strange Color of Your Body's Tears Georgians in France
action filter_type
action intersection
action find
entity Georgians in France
relation destination point
action find
entity The Strange Color of Your Body's Tears
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Georgians in France', 'destination point', {'concept': 'designation for an administrative territorial entity'}], ["The Strange Color of Your Body's Tears", 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { resource:Georgians_in_France property:destination_point ?b . resource:The_Strange_Color_of_Your_Body's_Tears property:country_of_origin ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
AND((Q5548127,P1444,c(Q15617994)), (Q3205538,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q5548127
relation P1444
action find
entity Q3205538
relation P495
type Q15617994
[ANSWER] the journey end for Georgians in [ANSWER] and are the countries of origin of The Strange Color of Your Body's Tears
{'AND': [['Q5548127', 'P1444', {'concept': 'Q15617994'}], ['Q3205538', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { resource:Q5548127 property:P1444 ?b . resource:Q3205538 property:P495 ?b . ?b rdf:type ontology:Q15617994 }
France
France the journey end for Georgians in France and are the countries of origin of The Strange Color of Your Body's Tears
France
action filter_type
action intersection
action find
entity Georgians in France
relation destination point
action find
entity The Strange Color of Your Body's Tears
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Georgians in France', 'destination point', {'concept': 'designation for an administrative territorial entity'}], ["The Strange Color of Your Body's Tears", 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { resource:Georgians_in_France property:destination_point ?b . resource:The_Strange_Color_of_Your_Body's_Tears property:country_of_origin ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P194
Q11204 Q701632 Q15617994
USER
Which administrative territories have min number of legislatures or municipal councils as their legislative body ?
(c(Q15617994),P194,c(Q11204)|c(Q701632))
action argmin
action union
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action find_tuple_counts
relation P194
type Q15617994
type Q701632
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) ?i WHERE { ?e rdf:type ?g . VALUES ( ?g ) { ( ontology:Q11204 ) ( ontology:Q701632 ) } } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) ?f WHERE { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:Q11204 ) ( ontology:Q701632 ) } } GROUP BY ?f } . FILTER ( ?d = ?y ) }
action argmin
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) ?i WHERE { ?e rdf:type ?g . VALUES ( ?g ) { ( ontology:legislature ) ( ontology:municipal_council ) } } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) ?f WHERE { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:legislature ) ( ontology:municipal_council ) } } GROUP BY ?f } . FILTER ( ?d = ?y ) }
[]
legislature municipal council designation for an administrative territorial entity
Q38 Q155 Q55
SYSTEM
Italy, Brazil, Netherlands
Q804 Q801 Q419 Q668 Q414 Q142 Q55 Q1948 Q145 Q717 Q252320 Q187035 Q3361 Q657 Q258 Q1979 Q45 Q41 Q155 Q4628 Q794 Q153529 Q1965 Q242 Q1974 Q33 Q32 Q36 Q34 Q929 Q39 Q38 Q739 Q3685392 Q733 Q29999 Q854 Q153091 Q104192 Q603676 Q747074 Q72449 Q233 Q238 Q20 Q28 Q29 Q783 Q2009 Q2007 Q184 Q2003 Q1904 Q228 Q224 Q223 Q222 Q221 Q815731 Q96 Q229 Q1989 Q697 Q298 Q754 Q750 Q212 Q213 Q211 Q6465 Q214 Q215 Q218 Q219 Q16110 Q694594 Q79 Q77 Q811 Q1011 Q1013 Q12620 Q176 Q1951 Q1952 Q2023 Q869
(c(Q15617994),P194,c(Q11204)|c(Q701632))
action argmin
action union
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action find_tuple_counts
relation P194
type Q15617994
type Q701632
[ANSWERS] have min number of legislatures or municipal councils as their legislative body
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) ?i WHERE { ?e rdf:type ?g . VALUES ( ?g ) { ( ontology:Q11204 ) ( ontology:Q701632 ) } } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) ?f WHERE { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:Q11204 ) ( ontology:Q701632 ) } } GROUP BY ?f } . FILTER ( ?d = ?y ) }
Panama Israel Peru India Argentina France Netherlands Manitoba United Kingdom Venezuela Pleinfeld Principality of Albania Doubs Chad South Africa Prince Edward Island Portugal Greece Brazil Faroe Islands Iran Duchy of Milan New Brunswick Belize British Columbia Finland Luxembourg Poland Sweden Central African Republic Switzerland Italy Colombia Municipality of Monaco Paraguay Kingdom of the Netherlands Sri Lanka Duchy of Prussia Kleinmachnow District of Keewatin comune of Italy Roccarainola Malta San Marino Norway Hungary Spain Honduras Yukon Northwest Territories Belarus Newfoundland and Labrador Ontario Andorra Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Mexico Cyprus Saskatchewan Nauru Chile Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia department of France Slovakia Slovenia Romania Bulgaria region of Italy Bremen-Verden Egypt Uruguay Nicaragua Cape Verde Lesotho Mayenne Quebec Alberta Nova Scotia Nunavut Thailand
Italy, Brazil and Netherlands have min number of legislatures or municipal councils as their legislative body
Italy Brazil Netherlands
action argmin
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) ?i WHERE { ?e rdf:type ?g . VALUES ( ?g ) { ( ontology:legislature ) ( ontology:municipal_council ) } } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) ?f WHERE { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:legislature ) ( ontology:municipal_council ) } } GROUP BY ?f } . FILTER ( ?d = ?y ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q192702
P530
Q1048835
USER
Do Ústí nad Labem Region have diplomatic associations with those administrative territories ?
(Q192702,P530,Q38) (Q192702,P530,Q155) (Q192702,P530,Q55)
action is_in
entity prev_answer
action find
entity Q192702
relation P530
['Q192702', 'P530', 'Q38'] ['Q192702', 'P530', 'Q155'] ['Q192702', 'P530', 'Q55']
ASK WHERE { VALUES ( ?u ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q419 ) } . resource:Q192702 property:P530 ?u }
Ústí nad Labem Region
action is_in
entity prev_answer
action find
entity Ústí nad Labem Region
relation diplomatic relation
['Ústí nad Labem Region', 'diplomatic relation', 'Italy'] ['Ústí nad Labem Region', 'diplomatic relation', 'Brazil'] ['Ústí nad Labem Region', 'diplomatic relation', 'Netherlands']
ASK WHERE { VALUES ( ?u ) { ( resource:Panama ) ( resource:Israel ) ( resource:Peru ) } . resource:Ústí_nad_Labem_Region property:diplomatic_relation ?u }
[]
political territorial entity
SYSTEM
NO
(Q192702,P530,Q38) (Q192702,P530,Q155) (Q192702,P530,Q55)
action is_in
entity prev_answer
action find
entity Q192702
relation P530
[ANSWER]
['Q192702', 'P530', 'Q38'] ['Q192702', 'P530', 'Q155'] ['Q192702', 'P530', 'Q55']
ASK WHERE { VALUES ( ?u ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q419 ) } . resource:Q192702 property:P530 ?u }
No
action is_in
entity prev_answer
action find
entity Ústí nad Labem Region
relation diplomatic relation
['Ústí nad Labem Region', 'diplomatic relation', 'Italy'] ['Ústí nad Labem Region', 'diplomatic relation', 'Brazil'] ['Ústí nad Labem Region', 'diplomatic relation', 'Netherlands']
ASK WHERE { VALUES ( ?u ) { ( resource:Panama ) ( resource:Israel ) ( resource:Peru ) } . resource:Ústí_nad_Labem_Region property:diplomatic_relation ?u }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q423
P85
Q7725634 Q484692 Q15617994
USER
How many administrative territories have an anthem named around the same number of literary works or hymns as North Korea ?
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action count
action approx
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action count
action filter_multi_types
action find
entity Q423
relation P85
type Q7725634
type Q484692
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) ?d WHERE { { ?d property:P85 ?w . ?d rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q7725634 } UNION { ?d rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q484692 . ?d property:P85 ?w } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:Q423 property:P85 ?z . { { ?z rdf:type ontology:Q7725634 } UNION { ?z rdf:type ontology:Q484692 } } } } . FILTER ( ?t = ?q ) }
North Korea
action count
action approx
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action count
action filter_multi_types
action find
entity North Korea
relation anthem
type literary work
type hymn
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) ?d WHERE { { ?d property:anthem ?w . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:literary_work } UNION { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:hymn . ?d property:anthem ?w } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:North_Korea property:anthem ?z . { { ?z rdf:type ontology:literary_work } UNION { ?z rdf:type ontology:hymn } } } } . FILTER ( ?t = ?q ) }
[]
literary work hymn designation for an administrative territorial entity
SYSTEM
181
Q702 Q804 Q801 Q707 Q709 Q811 Q805 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q800 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q813 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q155 Q792 Q790 Q4628 Q779011 Q794 Q954 Q889 Q884 Q881 Q739 Q826 Q796 Q241 Q244 Q1019 Q153136 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1044 Q1042 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q783 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q223 Q222 Q221 Q815731 Q96 Q229 Q347 Q1050 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q115 Q114 Q117 Q754 Q752 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q760 Q574 Q874 Q79 Q77 Q858 Q878 Q775 Q774 Q948 Q817 Q810 Q770 Q1014 Q1016 Q1011 Q945 Q678 Q29 Q1039 Q672 Q822 Q298 Q863 Q869 Q953
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action count
action approx
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action count
action filter_multi_types
action find
entity Q423
relation P85
type Q7725634
type Q484692
[ANSWER]
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) ?d WHERE { { ?d property:P85 ?w . ?d rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q7725634 } UNION { ?d rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q484692 . ?d property:P85 ?w } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:Q423 property:P85 ?z . { { ?z rdf:type ontology:Q7725634 } UNION { ?z rdf:type ontology:Q484692 } } } } . FILTER ( ?t = ?q ) }
Federated States of Micronesia Panama Israel Flevoland Marshall Islands Nicaragua Yemen Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Costa Rica Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Kyrgyzstan Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece Brazil El Salvador Haiti Faroe Islands Principality of Montenegro Iran Zimbabwe Afghanistan South Korea Vietnam Colombia Maldives Iraq Cuba Barbados Madagascar Habsburg Empire Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Sierra Leone Seychelles Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Honduras Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Mexico Cyprus Liechtenstein Swaziland Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ethiopia Kenya Ghana Trinidad and Tobago Groningen Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar Saint Lucia East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Gelderland Guatemala Tunisia Kuwait Jordan Friesland Liberia Libya Cape Verde Togo Tonga Spain Sao Tomé and Príncipe Tuvalu Lebanon Chile Tajikistan Thailand Zambia
181
action count
action approx
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action count
action filter_multi_types
action find
entity North Korea
relation anthem
type literary work
type hymn
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) ?d WHERE { { ?d property:anthem ?w . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:literary_work } UNION { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:hymn . ?d property:anthem ?w } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:North_Korea property:anthem ?z . { { ?z rdf:type ontology:literary_work } UNION { ?z rdf:type ontology:hymn } } } } . FILTER ( ?t = ?q ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P112
Q43229
USER
Which organization was started by Brazil ?
(c(Q43229),P112,Q155)
action filter_type
action find_reverse
entity Q155
relation P112
type Q43229
[{'concept': 'Q43229'}, 'P112', 'Q155']
SELECT DISTINCT ?d WHERE { ?d property:P112 resource:Q155 . ?d rdf:type ontology:Q43229 }
Brazil
action filter_type
action find_reverse
entity Brazil
relation founder
type organization
[{'concept': 'organization'}, 'founder', 'Brazil']
SELECT DISTINCT ?d WHERE { ?d property:founder resource:Brazil . ?d rdf:type ontology:organization }
[]
organization
Q7809
SYSTEM
United Nations Educational, Scientific and Cultural Organization
Q7809
(c(Q43229),P112,Q155)
action filter_type
action find_reverse
entity Q155
relation P112
type Q43229
[ANSWER] was started by Brazil
[{'concept': 'Q43229'}, 'P112', 'Q155']
SELECT DISTINCT ?d WHERE { ?d property:P112 resource:Q155 . ?d rdf:type ontology:Q43229 }
United Nations Educational, Scientific and Cultural Organization
United Nations Educational, Scientific and Cultural Organization was started by Brazil
United Nations Educational, Scientific and Cultural Organization
action filter_type
action find_reverse
entity Brazil
relation founder
type organization
[{'concept': 'organization'}, 'founder', 'Brazil']
SELECT DISTINCT ?d WHERE { ?d property:founder resource:Brazil . ?d rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7809
P127
Q838948
USER
Which work of art is owned by that organization ?
(c(Q838948),P127,Q7809)
action filter_type
action find_reverse
entity Q7809
relation P127
type Q838948
[{'concept': 'Q838948'}, 'P127', 'Q7809']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q838948 . ?i property:P127 resource:Q7809 }
United Nations Educational, Scientific and Cultural Organization
action filter_type
action find_reverse
entity United Nations Educational, Scientific and Cultural Organization
relation owned by
type work of art
[{'concept': 'work of art'}, 'owned by', 'United Nations Educational, Scientific and Cultural Organization']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:work_of_art . ?i property:owned_by resource:United_Nations_Educational,_Scientific_and_Cultural_Organization }
[]
work of art
Q3223122
SYSTEM
The Symbolic Globe
Q3223122
(c(Q838948),P127,Q7809)
action filter_type
action find_reverse
entity Q7809
relation P127
type Q838948
[ANSWER] is owned by that organization
[{'concept': 'Q838948'}, 'P127', 'Q7809']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q838948 . ?i property:P127 resource:Q7809 }
The Symbolic Globe
The Symbolic Globe is owned by that organization
The Symbolic Globe
action filter_type
action find_reverse
entity United Nations Educational, Scientific and Cultural Organization
relation owned by
type work of art
[{'concept': 'work of art'}, 'owned by', 'United Nations Educational, Scientific and Cultural Organization']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:work_of_art . ?i property:owned_by resource:United_Nations_Educational,_Scientific_and_Cultural_Organization }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q384426
P1445
Q838948 Q386724
USER
How many works are set up by less number of works of art than Pirates of the Caribbean ?
(c(Q386724),P1445,c(Q838948))
action count
action less
action find_tuple_counts
relation P1445
type Q386724
type Q838948
action count
action filter_type
action find
entity Q384426
relation P1445
type Q838948
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?a ) WHERE { ?k property:P1445 ?z . ?k rdf:type ontology:Q386724 . ?z rdf:type ontology:Q838948 } GROUP BY ?k } . FILTER ( ?a < ?l ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { resource:Q384426 property:P1445 ?r . ?r rdf:type ontology:Q838948 } } }
Pirates of the Caribbean
action count
action less
action find_tuple_counts
relation fictional universe described in
type work
type work of art
action count
action filter_type
action find
entity Pirates of the Caribbean
relation fictional universe described in
type work of art
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?a ) WHERE { ?k property:fictional_universe_described_in ?z . ?k rdf:type ontology:work . ?z rdf:type ontology:work_of_art } GROUP BY ?k } . FILTER ( ?a < ?l ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { resource:Pirates_of_the_Caribbean property:fictional_universe_described_in ?r . ?r rdf:type ontology:work_of_art } } }
[]
work of art work
SYSTEM
4
Q1203222 Q15731902 Q11927 Q3177580
(c(Q386724),P1445,c(Q838948))
action count
action less
action find_tuple_counts
relation P1445
type Q386724
type Q838948
action count
action filter_type
action find
entity Q384426
relation P1445
type Q838948
[ANSWER]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?a ) WHERE { ?k property:P1445 ?z . ?k rdf:type ontology:Q386724 . ?z rdf:type ontology:Q838948 } GROUP BY ?k } . FILTER ( ?a < ?l ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { resource:Q384426 property:P1445 ?r . ?r rdf:type ontology:Q838948 } } }
Shrek Aladdin media franchise Stargate The Walking Dead
4
action count
action less
action find_tuple_counts
relation fictional universe described in
type work
type work of art
action count
action filter_type
action find
entity Pirates of the Caribbean
relation fictional universe described in
type work of art
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?a ) WHERE { ?k property:fictional_universe_described_in ?z . ?k rdf:type ontology:work . ?z rdf:type ontology:work_of_art } GROUP BY ?k } . FILTER ( ?a < ?l ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { resource:Pirates_of_the_Caribbean property:fictional_universe_described_in ?r . ?r rdf:type ontology:work_of_art } } }
[]