Simple Question (Direct)
Simple Question
Q763914
P106
Q12737077
USER
Which occupation has Gustaf Åkerman as his/her 's career ?
(Q763914,P106,c(Q12737077))
action filter_type
action find
entity Q763914
relation P106
type Q12737077
['Q763914', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . resource:Q763914 property:P106 ?w }
Gustaf Åkerman
action filter_type
action find
entity Gustaf Åkerman
relation occupation
type occupation
['Gustaf Åkerman', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . resource:Gustaf_Åkerman property:occupation ?w }
[]
occupation
Q188094
SYSTEM
economist
Q188094
(Q763914,P106,c(Q12737077))
action filter_type
action find
entity Q763914
relation P106
type Q12737077
The [ANSWER] has Gustaf Åkerman as his/her 's career
['Q763914', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . resource:Q763914 property:P106 ?w }
economist
The economist has Gustaf Åkerman as his/her 's career
economist
action filter_type
action find
entity Gustaf Åkerman
relation occupation
type occupation
['Gustaf Åkerman', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . resource:Gustaf_Åkerman property:occupation ?w }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q763914
P27
Q15617994
USER
Which administrative territory is Gustaf Åkerman a civilian of ?
(Q763914,P27,c(Q15617994))
action filter_type
action find
entity Q763914
relation P27
type Q15617994
['Q763914', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q763914 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Gustaf Åkerman
action filter_type
action find
entity Gustaf Åkerman
relation country of citizenship
type designation for an administrative territorial entity
['Gustaf Åkerman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Gustaf_Åkerman property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q763914,P27,c(Q15617994))
action filter_type
action find
entity Q763914
relation P27
type Q15617994
[ANSWER] is Gustaf Åkerman a civilian of
['Q763914', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q763914 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Sweden
Sweden is Gustaf Åkerman a civilian of
Sweden
action filter_type
action find
entity Gustaf Åkerman
relation country of citizenship
type designation for an administrative territorial entity
['Gustaf Åkerman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Gustaf_Åkerman property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q763914
P21
Q290
USER
Which sex does that person possess ?
(Q34,P21,c(Q290))
action filter_type
action find
entity Q763914
relation P21
type Q290
['Q34', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q763914 property:P21 ?m . ?m rdf:type ontology:Q290 }
Gustaf Åkerman
action filter_type
action find
entity Gustaf Åkerman
relation gender
type sex
['Sweden', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Gustaf_Åkerman property:gender ?m . ?m rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q34,P21,c(Q290))
action filter_type
action find
entity Q763914
relation P21
type Q290
That person possesses a [ANSWER]
['Q34', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q763914 property:P21 ?m . ?m rdf:type ontology:Q290 }
male
That person possesses a male
male
action filter_type
action find
entity Gustaf Åkerman
relation gender
type sex
['Sweden', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Gustaf_Åkerman property:gender ?m . ?m rdf:type ontology:sex }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P21
Q290 Q502895
USER
How many sexes do around the same number of people possess as that sex ?
(c(Q502895),P21,c(Q290))
action count
action approx
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find
entity Q6581097
relation P21
type Q290
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { FILTER ( ?r = ?b ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { resource:Q6581097 property:P21 ?f . ?f rdf:type ontology:Q290 } } . { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?r ) WHERE { ?w property:P21 ?i . ?w rdf:type ontology:Q502895 . ?i rdf:type ontology:Q290 } GROUP BY ?i } }
action count
action approx
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find
entity male
relation gender
type sex
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { FILTER ( ?r = ?b ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { resource:male property:gender ?f . ?f rdf:type ontology:sex } } . { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?r ) WHERE { ?w property:gender ?i . ?w rdf:type ontology:common_name . ?i rdf:type ontology:sex } GROUP BY ?i } }
[]
sex common name
SYSTEM
1
Q6581097
(c(Q502895),P21,c(Q290))
action count
action approx
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find
entity Q6581097
relation P21
type Q290
[ANSWER]
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { FILTER ( ?r = ?b ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { resource:Q6581097 property:P21 ?f . ?f rdf:type ontology:Q290 } } . { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?r ) WHERE { ?w property:P21 ?i . ?w rdf:type ontology:Q502895 . ?i rdf:type ontology:Q290 } GROUP BY ?i } }
male
1
action count
action approx
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find
entity male
relation gender
type sex
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { FILTER ( ?r = ?b ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { resource:male property:gender ?f . ?f rdf:type ontology:sex } } . { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?r ) WHERE { ?w property:gender ?i . ?w rdf:type ontology:common_name . ?i rdf:type ontology:sex } GROUP BY ?i } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P530
Q15617994 Q15617994 Q1048835
USER
Which administrative territories have diplomatic relationships with min number of administrative territories or political territories ?
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?c ) { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?s ) WHERE { ?z rdf:type ?j . VALUES ( ?j ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?b } } . { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?u ) WHERE { VALUES ( ?i ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?x rdf:type ?i } GROUP BY ?o } . FILTER ( ?u = ?c ) }
action argmin
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?c ) { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?s ) WHERE { ?z rdf:type ?j . VALUES ( ?j ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?b } } . { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?u ) WHERE { VALUES ( ?i ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?x rdf:type ?i } GROUP BY ?o } . FILTER ( ?u = ?c ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
Q929 Q842 Q29999
SYSTEM
Central African Republic, Oman, Kingdom of the Netherlands
Q702 Q784 Q265 Q712 Q710 Q837 Q790 Q242 Q929 Q29999 Q854 Q730 Q1013 Q232 Q1027 Q842 Q1032 Q697 Q695 Q754 Q912 Q970 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
[ANSWERS] have diplomatic relationships with min number of administrative territories or political territories
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?c ) { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?s ) WHERE { ?z rdf:type ?j . VALUES ( ?j ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?b } } . { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?u ) WHERE { VALUES ( ?i ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?x rdf:type ?i } GROUP BY ?o } . FILTER ( ?u = ?c ) }
Federated States of Micronesia Dominica Uzbekistan Fiji Kiribati Nepal Haiti Belize Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Lesotho Kazakhstan Mauritius Oman Niger Nauru Palau Trinidad and Tobago Mali Comoros Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
Central African Republic, Oman and Kingdom of the Netherlands have diplomatic relationships with min number of administrative territories or political territories
Central African Republic Oman Kingdom of the Netherlands
action argmin
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?c ) { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?s ) WHERE { ?z rdf:type ?j . VALUES ( ?j ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?b } } . { SELECT DISTINCT ?o ( COUNT ( ?x ) AS ?u ) WHERE { VALUES ( ?i ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?x rdf:type ?i } GROUP BY ?o } . FILTER ( ?u = ?c ) }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
How many administrative territories are the countries of origin of approximately the same number of releases as that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity release
Comparative|Count over More/Less|Single entity type|Clarification
Q29999
SYSTEM
Did you mean Kingdom of the Netherlands ?
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Did you mean Kingdom of the Netherlands ?
Kingdom of the Netherlands
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q2031291),P495,c(Q15617994))
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
168
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q145 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands United Kingdom Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
168
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q929
P1001
Q1292279 Q14660
USER
How many political borders and flags have jurisdiction over Central African Republic ?
(c(Q1292279),P1001,Q929) (c(Q14660),P1001,Q929)
action count
action union
action filter_type
action find_reverse
entity Q929
relation P1001
type Q1292279
action filter_type
action find_reverse
entity Q929
relation P1001
type Q14660
[{'concept': 'Q1292279'}, 'P1001', 'Q929'] [{'concept': 'Q14660'}, 'P1001', 'Q929']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { ?z property:P1001 resource:Q929 . ?z rdf:type ontology:Q1292279 } UNION { ?z rdf:type ontology:Q14660 . ?z property:P1001 resource:Q929 } }
Central African Republic
action count
action union
action filter_type
action find_reverse
entity Central African Republic
relation applies to jurisdiction
type political border
action filter_type
action find_reverse
entity Central African Republic
relation applies to jurisdiction
type flag
[{'concept': 'political border'}, 'applies to jurisdiction', 'Central African Republic'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Central African Republic']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { ?z property:applies_to_jurisdiction resource:Central_African_Republic . ?z rdf:type ontology:political_border } UNION { ?z rdf:type ontology:flag . ?z property:applies_to_jurisdiction resource:Central_African_Republic } }
[]
political border flag
SYSTEM
6 political borders and 1 flags
Q3089058 Q3088969 Q3088974 Q3088970 Q165775 Q16802111 Q3088973
(c(Q1292279),P1001,Q929) (c(Q14660),P1001,Q929)
action count
action union
action filter_type
action find_reverse
entity Q929
relation P1001
type Q1292279
action filter_type
action find_reverse
entity Q929
relation P1001
type Q14660
[ANSWER]
[{'concept': 'Q1292279'}, 'P1001', 'Q929'] [{'concept': 'Q14660'}, 'P1001', 'Q929']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { ?z property:P1001 resource:Q929 . ?z rdf:type ontology:Q1292279 } UNION { ?z rdf:type ontology:Q14660 . ?z property:P1001 resource:Q929 } }
Central African Republic–Republic of the Congo border Central African Republic–Chad border Central African Republic–Democratic Republic of the Congo border Central African Republic–Sudan border Flag of the Central African Republic Cameroon–Central African Republic border Central African Republic–South Sudan border
6 political borders and 1 flags
action count
action union
action filter_type
action find_reverse
entity Central African Republic
relation applies to jurisdiction
type political border
action filter_type
action find_reverse
entity Central African Republic
relation applies to jurisdiction
type flag
[{'concept': 'political border'}, 'applies to jurisdiction', 'Central African Republic'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Central African Republic']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { ?z property:applies_to_jurisdiction resource:Central_African_Republic . ?z rdf:type ontology:political_border } UNION { ?z rdf:type ontology:flag . ?z property:applies_to_jurisdiction resource:Central_African_Republic } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q842
P463
Q56061 Q484652
USER
How many administrative territories and international organizations were Oman a member of ?
(Q842,P463,c(Q56061)) (Q842,P463,c(Q484652))
action count
action union
action filter_type
action find
entity Q842
relation P463
type Q56061
action filter_type
action find
entity Q842
relation P463
type Q484652
['Q842', 'P463', {'concept': 'Q56061'}] ['Q842', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { { resource:Q842 property:P463 ?d . ?d rdf:type ontology:Q56061 } UNION { resource:Q842 property:P463 ?d . ?d rdf:type ontology:Q484652 } }
Oman
action count
action union
action filter_type
action find
entity Oman
relation member of
type administrative territorial entity
action filter_type
action find
entity Oman
relation member of
type international organization
['Oman', 'member of', {'concept': 'administrative territorial entity'}] ['Oman', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { { resource:Oman property:member_of ?d . ?d rdf:type ontology:administrative_territorial_entity } UNION { resource:Oman property:member_of ?d . ?d rdf:type ontology:international_organization } }
[]
administrative territorial entity international organization
SYSTEM
1 administrative territories and 8 international organizations
Q472311 Q605326 Q7172 Q1065 Q842490 Q201054 Q217172 Q17495 Q1043527
(Q842,P463,c(Q56061)) (Q842,P463,c(Q484652))
action count
action union
action filter_type
action find
entity Q842
relation P463
type Q56061
action filter_type
action find
entity Q842
relation P463
type Q484652
[ANSWER]
['Q842', 'P463', {'concept': 'Q56061'}] ['Q842', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { { resource:Q842 property:P463 ?d . ?d rdf:type ontology:Q56061 } UNION { resource:Q842 property:P463 ?d . ?d rdf:type ontology:Q484652 } }
International Organization for Migration World Customs Organization Arab League United Nations Organisation for the Prohibition of Chemical Weapons International Maritime Organization Cooperation Council for the Arab States of the Gulf Universal Postal Union Multilateral Investment Guarantee Agency
1 administrative territories and 8 international organizations
action count
action union
action filter_type
action find
entity Oman
relation member of
type administrative territorial entity
action filter_type
action find
entity Oman
relation member of
type international organization
['Oman', 'member of', {'concept': 'administrative territorial entity'}] ['Oman', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { { resource:Oman property:member_of ?d . ?d rdf:type ontology:administrative_territorial_entity } UNION { resource:Oman property:member_of ?d . ?d rdf:type ontology:international_organization } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6141362 Q763914
P19
Q56061
USER
Which administrative territories are the places of birth of Gustaf Åkerman or James Popil ?
OR((Q763914,P19,c(Q56061)), (Q6141362,P19,c(Q56061)))
action filter_type
action union
action find
entity Q763914
relation P19
action find
entity Q6141362
relation P19
type Q56061
{'OR': [['Q763914', 'P19', {'concept': 'Q56061'}], ['Q6141362', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?s ) { ( resource:Q763914 ) ( resource:Q6141362 ) } . ?s property:P19 ?b } . ?b rdf:type ontology:Q56061 }
James Popil Gustaf Åkerman
action filter_type
action union
action find
entity Gustaf Åkerman
relation place of birth
action find
entity James Popil
relation place of birth
type administrative territorial entity
{'OR': [['Gustaf Åkerman', 'place of birth', {'concept': 'administrative territorial entity'}], ['James Popil', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?s ) { ( resource:Gustaf_Åkerman ) ( resource:James_Popil ) } . ?s property:place_of_birth ?b } . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q6593705 Q1754
SYSTEM
Redwater, Stockholm
Q6593705 Q1754
OR((Q763914,P19,c(Q56061)), (Q6141362,P19,c(Q56061)))
action filter_type
action union
action find
entity Q763914
relation P19
action find
entity Q6141362
relation P19
type Q56061
[ANSWERS] are the places of birth of Gustaf Åkerman or James Popil
{'OR': [['Q763914', 'P19', {'concept': 'Q56061'}], ['Q6141362', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?s ) { ( resource:Q763914 ) ( resource:Q6141362 ) } . ?s property:P19 ?b } . ?b rdf:type ontology:Q56061 }
Redwater Stockholm
Redwater and Stockholm are the places of birth of Gustaf Åkerman or James Popil
Redwater Stockholm
action filter_type
action union
action find
entity Gustaf Åkerman
relation place of birth
action find
entity James Popil
relation place of birth
type administrative territorial entity
{'OR': [['Gustaf Åkerman', 'place of birth', {'concept': 'administrative territorial entity'}], ['James Popil', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?s ) { ( resource:Gustaf_Åkerman ) ( resource:James_Popil ) } . ?s property:place_of_birth ?b } . ?b rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q56061 Q2235308
USER
Which ship types have their base port as exactly 1 administrative territory ?
(c(Q2235308),P532,c(Q56061))
action equal
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 1
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?a ) WHERE { ?g property:P532 ?c . ?g rdf:type ontology:Q2235308 . ?c rdf:type ontology:Q56061 } GROUP BY ?g } . FILTER ( ?a = 1 ) }
action equal
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 1
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?a ) WHERE { ?g property:port_of_registry ?c . ?g rdf:type ontology:ship_type . ?c rdf:type ontology:administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?a = 1 ) }
[]
administrative territorial entity ship type
Q35462 Q192381 Q983141
SYSTEM
RMS Aquitania, MS Oasis of the Seas, MY Sam Simon
Q2992316 Q2301456 Q983141 Q133606 Q26988086 Q168474 Q300311 Q20489530 Q5338632 Q7499755 Q2124429 Q1293488 Q1017179 Q7120838 Q7393546 Q25173 Q14493958 Q18128240 Q664284 Q26988094 Q21196329 Q10659251 Q477173 Q130373 Q19608222 Q1026780 Q22342351 Q15662618 Q16854668 Q1325547 Q761593 Q26883829 Q2124449 Q778649 Q3952367 Q11705702 Q24039469 Q751584 Q6930211 Q16629249 Q497065 Q3053251 Q1439419 Q23579589 Q4686475 Q26987769 Q11891639 Q321007 Q6720006 Q741803 Q338340 Q7120888 Q215692 Q917188 Q18213370 Q1129910 Q2714360 Q16852551 Q1514126 Q18711004 Q1339472 Q3558075 Q192381 Q493616 Q35462
(c(Q2235308),P532,c(Q56061))
action equal
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 1
[ANSWERS] have their base port as exactly 1 administrative territory
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?a ) WHERE { ?g property:P532 ?c . ?g rdf:type ontology:Q2235308 . ?c rdf:type ontology:Q56061 } GROUP BY ?g } . FILTER ( ?a = 1 ) }
HSC Condor Rapide MS Viking XPRS MY Sam Simon MS Star Meteora MV Arctic Sunrise A MS Harmony of the Seas Edith Mærsk Shoalway RMS Samaria MV Esperanza SS Burutu PS Empress Queen SS Empire Airman RMS Titanic Mærsk Mc-Kinney Møller MS Quantum of the Seas Pioneering Spirit Emma Victory SS Argentina S/S Drottningholm Emma Mærsk Admiral Makarov HSC Condor Liberation SS California Modern Express Djurgården 8 Mein Schiff 4 MT Mastera CMA CGM Marco Polo VOS Sympathy RMS St Helena Eclipse MS Norman Atlantic MV Ascension HSC Highspeed 5 MS Express Samina msy Wind Song Varnek (ship, 1974-2010) MV Baltic Ace Empire Sandy Vitus Bering MV Christinaki Adventure British Explorer SS Coccolita RMS Olympic MV Royal Daffodil RMS Mauretania MV Boudicca SS Prince of Wales HMHS Britannic MS Brilliance of the Seas Anthem of the Seas SS Potsdam MS Empress MS Epsilon MS Marco Polo MV Hoegh Osaka RMS Empress of Ireland Vieux Crabe MS Oasis of the Seas Royal Clipper RMS Aquitania
RMS Aquitania, MS Oasis of the Seas and MY Sam Simon have their base port as exactly 1 administrative territory
RMS Aquitania MS Oasis of the Seas MY Sam Simon
action equal
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 1
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?a ) WHERE { ?g property:port_of_registry ?c . ?g rdf:type ontology:ship_type . ?c rdf:type ontology:administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?a = 1 ) }
[]