Simple Question (Direct)
Simple Question
Q2211122
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Karim Touzani ?
(Q2211122,P27,c(Q15617994))
action filter_type
action find
entity Q2211122
relation P27
type Q15617994
['Q2211122', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q2211122 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Karim Touzani
action filter_type
action find
entity Karim Touzani
relation country of citizenship
type designation for an administrative territorial entity
['Karim Touzani', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Karim_Touzani property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29999
SYSTEM
Kingdom of the Netherlands
Q29999
(Q2211122,P27,c(Q15617994))
action filter_type
action find
entity Q2211122
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Karim Touzani
['Q2211122', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q2211122 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Kingdom of the Netherlands
Kingdom of the Netherlands is the country of citizenship of Karim Touzani
Kingdom of the Netherlands
action filter_type
action find
entity Karim Touzani
relation country of citizenship
type designation for an administrative territorial entity
['Karim Touzani', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Karim_Touzani property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2211122
P641
Q349
USER
What did that person participate in ?
(Q29999,P641,c(Q349))
action filter_type
action find
entity Q2211122
relation P641
type Q349
['Q29999', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?w WHERE { resource:Q2211122 property:P641 ?w . ?w rdf:type ontology:Q349 }
Karim Touzani
action filter_type
action find
entity Karim Touzani
relation sport
type sport
['Kingdom of the Netherlands', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?w WHERE { resource:Karim_Touzani property:sport ?w . ?w rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q29999,P641,c(Q349))
action filter_type
action find
entity Q2211122
relation P641
type Q349
That person participated in [ANSWER]
['Q29999', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?w WHERE { resource:Q2211122 property:P641 ?w . ?w rdf:type ontology:Q349 }
association football
That person participated in association football
association football
action filter_type
action find
entity Karim Touzani
relation sport
type sport
['Kingdom of the Netherlands', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?w WHERE { resource:Karim_Touzani property:sport ?w . ?w rdf:type ontology:sport }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2817205 Q2211122
P19
Q56061
USER
Which administrative territories were Karim Touzani or Bojan Dubljević born ?
OR((Q2211122,P19,c(Q56061)), (Q2817205,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2211122
relation P19
action find
entity Q2817205
relation P19
type Q56061
{'OR': [['Q2211122', 'P19', {'concept': 'Q56061'}], ['Q2817205', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q2211122 property:P19 ?j } UNION { resource:Q2817205 property:P19 ?j } } . ?j rdf:type ontology:Q56061 }
Bojan Dubljević Karim Touzani
action filter_type
action union
action find
entity Karim Touzani
relation place of birth
action find
entity Bojan Dubljević
relation place of birth
type administrative territorial entity
{'OR': [['Karim Touzani', 'place of birth', {'concept': 'administrative territorial entity'}], ['Bojan Dubljević', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Karim_Touzani property:place_of_birth ?j } UNION { resource:Bojan_Dubljević property:place_of_birth ?j } } . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q727 Q200733
SYSTEM
Amsterdam, Nikšić
Q727 Q200733
OR((Q2211122,P19,c(Q56061)), (Q2817205,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2211122
relation P19
action find
entity Q2817205
relation P19
type Q56061
Karim Touzani or Bojan Dubljević were born in [ANSWERS]
{'OR': [['Q2211122', 'P19', {'concept': 'Q56061'}], ['Q2817205', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q2211122 property:P19 ?j } UNION { resource:Q2817205 property:P19 ?j } } . ?j rdf:type ontology:Q56061 }
Amsterdam Nikšić
Karim Touzani or Bojan Dubljević were born in Amsterdam and Nikšić
Amsterdam Nikšić
action filter_type
action union
action find
entity Karim Touzani
relation place of birth
action find
entity Bojan Dubljević
relation place of birth
type administrative territorial entity
{'OR': [['Karim Touzani', 'place of birth', {'concept': 'administrative territorial entity'}], ['Bojan Dubljević', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Karim_Touzani property:place_of_birth ?j } UNION { resource:Bojan_Dubljević property:place_of_birth ?j } } . ?j rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q42212 Q2817205
P47 P27
Q15617994
USER
Which administrative territories are the native countriesof Bojan Dubljević or have a shared border with Porto Mantovano ?
OR((Q2817205,P27,c(Q15617994)), (Q42212,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q2817205
relation P27
action find
entity Q42212
relation P47
type Q15617994
{'OR': [['Q2817205', 'P27', {'concept': 'Q15617994'}], ['Q42212', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q2817205 property:P27 ?z } UNION { resource:Q42212 property:P47 ?z } } . ?z rdf:type ontology:Q15617994 }
Porto Mantovano Bojan Dubljević
action filter_type
action union
action find
entity Bojan Dubljević
relation country of citizenship
action find
entity Porto Mantovano
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Bojan Dubljević', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Porto Mantovano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Bojan_Dubljević property:country_of_citizenship ?z } UNION { resource:Porto_Mantovano property:shares_border_with ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q236 Q42945 Q42357 Q42351 Q43025 Q42324 Q42319 Q6247
SYSTEM
Montenegro, Goito, San Giorgio di Mantova, Marmirolo, Curtatone, Rodigo, Roverbella, Mantua
Q236 Q42945 Q42357 Q42351 Q43025 Q42324 Q42319 Q6247
OR((Q2817205,P27,c(Q15617994)), (Q42212,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q2817205
relation P27
action find
entity Q42212
relation P47
type Q15617994
[ANSWERS] are the native countriesof Bojan Dubljević or have a shared border with Porto Mantovano
{'OR': [['Q2817205', 'P27', {'concept': 'Q15617994'}], ['Q42212', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q2817205 property:P27 ?z } UNION { resource:Q42212 property:P47 ?z } } . ?z rdf:type ontology:Q15617994 }
Montenegro Goito San Giorgio di Mantova Marmirolo Curtatone Rodigo Roverbella Mantua
Montenegro, Goito, San Giorgio di Mantova, Marmirolo, Curtatone, Rodigo, Roverbella and Mantua are the native countriesof Bojan Dubljević or have a shared border with Porto Mantovano
Montenegro Goito San Giorgio di Mantova Marmirolo Curtatone Rodigo Roverbella Mantua
action filter_type
action union
action find
entity Bojan Dubljević
relation country of citizenship
action find
entity Porto Mantovano
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Bojan Dubljević', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Porto Mantovano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Bojan_Dubljević property:country_of_citizenship ?z } UNION { resource:Porto_Mantovano property:shares_border_with ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P609
Q56061 Q34442 Q12280
USER
How many administrative territories serves as the terminus locations of atleast 9 roads or bridges ?
(c(Q34442)|c(Q12280),P609,c(Q56061))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P609
type Q56061
type Q34442
action find_reverse_tuple_counts
relation P609
type Q56061
type Q12280
value 9
[[{'concept': 'Q34442'}, {'concept': 'Q12280'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) ?f WHERE { ?m rdf:type ?y . VALUES ( ?y ) { ( ontology:Q34442 ) ( ontology:Q12280 ) } } GROUP BY ?f } . FILTER ( ?l >= 9 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type road
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type bridge
value 9
[[{'concept': 'road'}, {'concept': 'bridge'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) ?f WHERE { ?m rdf:type ?y . VALUES ( ?y ) { ( ontology:road ) ( ontology:bridge ) } } GROUP BY ?f } . FILTER ( ?l >= 9 ) }
[]
administrative territorial entity road bridge
SYSTEM
3
Q1026676 Q740149 Q956
(c(Q34442)|c(Q12280),P609,c(Q56061))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P609
type Q56061
type Q34442
action find_reverse_tuple_counts
relation P609
type Q56061
type Q12280
value 9
[ANSWER]
[[{'concept': 'Q34442'}, {'concept': 'Q12280'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) ?f WHERE { ?m rdf:type ?y . VALUES ( ?y ) { ( ontology:Q34442 ) ( ontology:Q12280 ) } } GROUP BY ?f } . FILTER ( ?l >= 9 ) }
Norrmalm Södermalm Beijing
3
action count
action atleast
action union
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type road
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type bridge
value 9
[[{'concept': 'road'}, {'concept': 'bridge'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) ?f WHERE { ?m rdf:type ?y . VALUES ( ?y ) { ( ontology:road ) ( ontology:bridge ) } } GROUP BY ?f } . FILTER ( ?l >= 9 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P37
Q5962346 Q34770 Q15617994
USER
Which administrative territories are around 2 classification schemes or languages associated to as the official language ?
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action approx
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
value 2
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?n ) WHERE { ?j rdf:type ?b . VALUES ( ?b ) { ( ontology:Q5962346 ) ( ontology:Q34770 ) } } GROUP BY ?a } . FILTER ( ?n = 2 ) }
action approx
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?n ) WHERE { ?j rdf:type ?b . VALUES ( ?b ) { ( ontology:classification_scheme ) ( ontology:language ) } } GROUP BY ?a } . FILTER ( ?n = 2 ) }
[]
classification scheme language designation for an administrative territorial entity
Q29 Q750
SYSTEM
Spain, Bolivia
Q29 Q750
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action approx
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
value 2
[ANSWERS] are around 2 classification schemes or languages associated to as the official language
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?n ) WHERE { ?j rdf:type ?b . VALUES ( ?b ) { ( ontology:Q5962346 ) ( ontology:Q34770 ) } } GROUP BY ?a } . FILTER ( ?n = 2 ) }
Spain Bolivia
Spain and Bolivia are around 2 classification schemes or languages associated to as the official language
Spain Bolivia
action approx
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?n ) WHERE { ?j rdf:type ?b . VALUES ( ?b ) { ( ontology:classification_scheme ) ( ontology:language ) } } GROUP BY ?a } . FILTER ( ?n = 2 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q783
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relationships with lesser number of administrative territories than Honduras ?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q783
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?n ) AS ?i ) WHERE { ?m property:P530 ?n . ?m rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { resource:Q783 property:P530 ?j . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?i < ?d ) }
Honduras
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Honduras
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?n ) AS ?i ) WHERE { ?m property:diplomatic_relation ?n . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { resource:Honduras property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?i < ?d ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
25
Q702 Q804 Q265 Q712 Q837 Q242 Q811 Q929 Q29999 Q854 Q730 Q232 Q1027 Q1032 Q697 Q695 Q754 Q912 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q783
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?n ) AS ?i ) WHERE { ?m property:P530 ?n . ?m rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { resource:Q783 property:P530 ?j . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?i < ?d ) }
Federated States of Micronesia Panama Uzbekistan Fiji Nepal Belize Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Kazakhstan Mauritius Niger Nauru Palau Trinidad and Tobago Mali Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
25
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Honduras
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?n ) AS ?i ) WHERE { ?m property:diplomatic_relation ?n . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?d ) WHERE { resource:Honduras property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?i < ?d ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q236
P530
Q15617994
USER
How many administrative territories have diplomatic relationships with Montenegro ?
(Q236,P530,c(Q15617994))
action count
action filter_type
action find
entity Q236
relation P530
type Q15617994
['Q236', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { ?q rdf:type ontology:Q15617994 . resource:Q236 property:P530 ?q }
Montenegro
action count
action filter_type
action find
entity Montenegro
relation diplomatic relation
type designation for an administrative territorial entity
['Montenegro', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Montenegro property:diplomatic_relation ?q }
[]
designation for an administrative territorial entity
SYSTEM
1
Q38
(Q236,P530,c(Q15617994))
action count
action filter_type
action find
entity Q236
relation P530
type Q15617994
[ANSWER]
['Q236', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { ?q rdf:type ontology:Q15617994 . resource:Q236 property:P530 ?q }
Italy
1
action count
action filter_type
action find
entity Montenegro
relation diplomatic relation
type designation for an administrative territorial entity
['Montenegro', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Montenegro property:diplomatic_relation ?q }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q33
P530
Q1048835 Q15617994 Q15617994
USER
How many administrative territories have tactful political relations with more number of political territories or administrative territories than Finland ?
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action count
action greater
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q33
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) ?f WHERE { { ?f property:P530 ?q . ?f rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } UNION { ?f rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 . ?f property:P530 ?q } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { resource:Q33 property:P530 ?r . { { ?r rdf:type ontology:Q15617994 } UNION { ?r rdf:type ontology:Q1048835 } } } } . FILTER ( ?k > ?c ) }
Finland
action count
action greater
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Finland
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) ?f WHERE { { ?f property:diplomatic_relation ?q . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity . ?f property:diplomatic_relation ?q } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { resource:Finland property:diplomatic_relation ?r . { { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?r rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?k > ?c ) }
[]
political territorial entity designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
49
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q31 Q30 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q230 Q27 Q843 Q184 Q225 Q222 Q347 Q17 Q902 Q114 Q212 Q213 Q218 Q79 Q77 Q858 Q948 Q1011 Q953
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action count
action greater
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q33
relation P530
type Q1048835
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) ?f WHERE { { ?f property:P530 ?q . ?f rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } UNION { ?f rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 . ?f property:P530 ?q } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { resource:Q33 property:P530 ?r . { { ?r rdf:type ontology:Q15617994 } UNION { ?r rdf:type ontology:Q1048835 } } } } . FILTER ( ?k > ?c ) }
Israel Yemen India Argentina France United Kingdom People's Republic of China Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Belgium United States of America Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Georgia Ireland Pakistan Belarus Bosnia and Herzegovina Albania Liechtenstein Japan Bangladesh Kenya Ukraine Czech Republic Romania Egypt Uruguay Syria Tunisia Cape Verde Zambia
49
action count
action greater
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Finland
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) ?f WHERE { { ?f property:diplomatic_relation ?q . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity . ?f property:diplomatic_relation ?q } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { resource:Finland property:diplomatic_relation ?r . { { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?r rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?k > ?c ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q236
P1001
Q12737077 Q14660
USER
How many occupations or flags have control over the jurisdiction of Montenegro ?
(c(Q12737077),P1001,Q236) (c(Q14660),P1001,Q236)
action count
action union
action filter_type
action find_reverse
entity Q236
relation P1001
type Q12737077
action filter_type
action find_reverse
entity Q236
relation P1001
type Q14660
[{'concept': 'Q12737077'}, 'P1001', 'Q236'] [{'concept': 'Q14660'}, 'P1001', 'Q236']
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { { ?i property:P1001 resource:Q236 . ?i rdf:type ontology:Q12737077 } UNION { ?i property:P1001 resource:Q236 . ?i rdf:type ontology:Q14660 } }
Montenegro
action count
action union
action filter_type
action find_reverse
entity Montenegro
relation applies to jurisdiction
type occupation
action filter_type
action find_reverse
entity Montenegro
relation applies to jurisdiction
type flag
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Montenegro'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Montenegro']
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { { ?i property:applies_to_jurisdiction resource:Montenegro . ?i rdf:type ontology:occupation } UNION { ?i property:applies_to_jurisdiction resource:Montenegro . ?i rdf:type ontology:flag } }
[]
occupation flag
SYSTEM
4
Q162980 Q21328576 Q1149153 Q2353252
(c(Q12737077),P1001,Q236) (c(Q14660),P1001,Q236)
action count
action union
action filter_type
action find_reverse
entity Q236
relation P1001
type Q12737077
action filter_type
action find_reverse
entity Q236
relation P1001
type Q14660
[ANSWER]
[{'concept': 'Q12737077'}, 'P1001', 'Q236'] [{'concept': 'Q14660'}, 'P1001', 'Q236']
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { { ?i property:P1001 resource:Q236 . ?i rdf:type ontology:Q12737077 } UNION { ?i property:P1001 resource:Q236 . ?i rdf:type ontology:Q14660 } }
Flag of Montenegro Member of the Parliament of Montenegro President of Montenegro Prime Minister of Montenegro
4
action count
action union
action filter_type
action find_reverse
entity Montenegro
relation applies to jurisdiction
type occupation
action filter_type
action find_reverse
entity Montenegro
relation applies to jurisdiction
type flag
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Montenegro'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Montenegro']
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { { ?i property:applies_to_jurisdiction resource:Montenegro . ?i rdf:type ontology:occupation } UNION { ?i property:applies_to_jurisdiction resource:Montenegro . ?i rdf:type ontology:flag } }
[]