Simple Question (Direct)
Simple Question
Q441054
P106
Q151885
USER
What is the profession of Emilia Bottas ?
(Q441054,P106,c(Q151885))
action filter_type
action find
entity Q441054
relation P106
type Q151885
['Q441054', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?k WHERE { resource:Q441054 property:P106 ?k . ?k rdf:type ontology:Q151885 }
Emilia Bottas
action filter_type
action find
entity Emilia Bottas
relation occupation
type concept
['Emilia Bottas', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?k WHERE { resource:Emilia_Bottas property:occupation ?k . ?k rdf:type ontology:concept }
[]
concept
Q10843402
SYSTEM
swimmer
Q10843402
(Q441054,P106,c(Q151885))
action filter_type
action find
entity Q441054
relation P106
type Q151885
The profession of Emilia Bottas is a [ANSWER]
['Q441054', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?k WHERE { resource:Q441054 property:P106 ?k . ?k rdf:type ontology:Q151885 }
swimmer
The profession of Emilia Bottas is a swimmer
swimmer
action filter_type
action find
entity Emilia Bottas
relation occupation
type concept
['Emilia Bottas', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?k WHERE { resource:Emilia_Bottas property:occupation ?k . ?k rdf:type ontology:concept }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q441054
P1344
Q2312410
USER
Which sport discipline did that person participate in ?
(Q10843402,P1344,c(Q2312410))
action filter_type
action find
entity Q441054
relation P1344
type Q2312410
['Q10843402', 'P1344', {'concept': 'Q2312410'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q2312410 . resource:Q441054 property:P1344 ?b }
Emilia Bottas
action filter_type
action find
entity Emilia Bottas
relation participant of
type sport discipline
['swimmer', 'participant of', {'concept': 'sport discipline'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:sport_discipline . resource:Emilia_Bottas property:participant_of ?b }
[]
sport discipline
Q8022145
SYSTEM
swimming at the 2016 Summer Olympics
Q8022145
(Q10843402,P1344,c(Q2312410))
action filter_type
action find
entity Q441054
relation P1344
type Q2312410
That person participated in [ANSWER]
['Q10843402', 'P1344', {'concept': 'Q2312410'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q2312410 . resource:Q441054 property:P1344 ?b }
swimming at the 2016 Summer Olympics
That person participated in swimming at the 2016 Summer Olympics
swimming at the 2016 Summer Olympics
action filter_type
action find
entity Emilia Bottas
relation participant of
type sport discipline
['swimmer', 'participant of', {'concept': 'sport discipline'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:sport_discipline . resource:Emilia_Bottas property:participant_of ?b }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q8022145 Q155
P17
Q15617994
USER
Is swimming at the 2016 Summer Olympics present in Brazil ?
(Q8022145,P17,Q155)
action is_in
entity Q155
action find
entity Q8022145
relation P17
['Q8022145', 'P17', 'Q155']
ASK WHERE { resource:Q8022145 property:P17 resource:Q155 }
swimming at the 2016 Summer Olympics Brazil
action is_in
entity Brazil
action find
entity swimming at the 2016 Summer Olympics
relation country
['swimming at the 2016 Summer Olympics', 'country', 'Brazil']
ASK WHERE { resource:swimming_at_the_2016_Summer_Olympics property:country resource:Brazil }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q8022145,P17,Q155)
action is_in
entity Q155
action find
entity Q8022145
relation P17
[ANSWER]
['Q8022145', 'P17', 'Q155']
ASK WHERE { resource:Q8022145 property:P17 resource:Q155 }
Yes
action is_in
entity Brazil
action find
entity swimming at the 2016 Summer Olympics
relation country
['swimming at the 2016 Summer Olympics', 'country', 'Brazil']
ASK WHERE { resource:swimming_at_the_2016_Summer_Olympics property:country resource:Brazil }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q14524493 Q355304 Q151885
USER
How many concepts have atleast 1 terrains or watercourses as their toponym ?
(c(Q151885),P138,c(Q14524493)|c(Q355304))
action count
action atleast
action union
action find_tuple_counts
relation P138
type Q151885
type Q14524493
action find_tuple_counts
relation P138
type Q151885
type Q355304
value 1
[{'concept': 'Q151885'}, 'P138', [{'concept': 'Q14524493'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { FILTER ( ?f >= 1 ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?v WHERE { { ?v rdf:type ontology:Q151885 . ?p rdf:type ontology:Q14524493 . ?v property:P138 ?p } UNION { ?v rdf:type ontology:Q151885 . ?p rdf:type ontology:Q355304 . ?v property:P138 ?p } } GROUP BY ?v } }
action count
action atleast
action union
action find_tuple_counts
relation named after
type concept
type terrain
action find_tuple_counts
relation named after
type concept
type watercourse
value 1
[{'concept': 'concept'}, 'named after', [{'concept': 'terrain'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { FILTER ( ?f >= 1 ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?v WHERE { { ?v rdf:type ontology:concept . ?p rdf:type ontology:terrain . ?v property:named_after ?p } UNION { ?v rdf:type ontology:concept . ?p rdf:type ontology:watercourse . ?v property:named_after ?p } } GROUP BY ?v } }
[]
terrain watercourse concept
SYSTEM
8
Q1041623 Q570798 Q2710557 Q169349 Q739604 Q1002169 Q1241067 Q2995537
(c(Q151885),P138,c(Q14524493)|c(Q355304))
action count
action atleast
action union
action find_tuple_counts
relation P138
type Q151885
type Q14524493
action find_tuple_counts
relation P138
type Q151885
type Q355304
value 1
[ANSWER]
[{'concept': 'Q151885'}, 'P138', [{'concept': 'Q14524493'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { FILTER ( ?f >= 1 ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?v WHERE { { ?v rdf:type ontology:Q151885 . ?p rdf:type ontology:Q14524493 . ?v property:P138 ?p } UNION { ?v rdf:type ontology:Q151885 . ?p rdf:type ontology:Q355304 . ?v property:P138 ?p } } GROUP BY ?v } }
Tisza culture Michelsberg culture Dnieper–Donets culture Kura–Araxes culture Körös culture Bug-Dniester culture Old Europe Soanian
8
action count
action atleast
action union
action find_tuple_counts
relation named after
type concept
type terrain
action find_tuple_counts
relation named after
type concept
type watercourse
value 1
[{'concept': 'concept'}, 'named after', [{'concept': 'terrain'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { FILTER ( ?f >= 1 ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?v WHERE { { ?v rdf:type ontology:concept . ?p rdf:type ontology:terrain . ?v property:named_after ?p } UNION { ?v rdf:type ontology:concept . ?p rdf:type ontology:watercourse . ?v property:named_after ?p } } GROUP BY ?v } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q441054
P27
Q15617994
USER
How many administrative territories are the countries of citizenship of Emilia Bottas ?
(Q441054,P27,c(Q15617994))
action count
action filter_type
action find
entity Q441054
relation P27
type Q15617994
['Q441054', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { ?g rdf:type ontology:Q15617994 . resource:Q441054 property:P27 ?g }
Emilia Bottas
action count
action filter_type
action find
entity Emilia Bottas
relation country of citizenship
type designation for an administrative territorial entity
['Emilia Bottas', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Emilia_Bottas property:country_of_citizenship ?g }
[]
designation for an administrative territorial entity
SYSTEM
1
Q33
(Q441054,P27,c(Q15617994))
action count
action filter_type
action find
entity Q441054
relation P27
type Q15617994
[ANSWER]
['Q441054', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { ?g rdf:type ontology:Q15617994 . resource:Q441054 property:P27 ?g }
Finland
1
action count
action filter_type
action find
entity Emilia Bottas
relation country of citizenship
type designation for an administrative territorial entity
['Emilia Bottas', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Emilia_Bottas property:country_of_citizenship ?g }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q926353
P19
Q56061
USER
Which administrative territory was Enzo Pérez born at ?
(Q926353,P19,c(Q56061))
action filter_type
action find
entity Q926353
relation P19
type Q56061
['Q926353', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q926353 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Enzo Pérez
action filter_type
action find
entity Enzo Pérez
relation place of birth
type administrative territorial entity
['Enzo Pérez', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Enzo_Pérez property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3117688
SYSTEM
Maipú
Q3117688
(Q926353,P19,c(Q56061))
action filter_type
action find
entity Q926353
relation P19
type Q56061
Enzo Pérez was born in [ANSWER]
['Q926353', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q926353 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Maipú
Enzo Pérez was born in Maipú
Maipú
action filter_type
action find
entity Enzo Pérez
relation place of birth
type administrative territorial entity
['Enzo Pérez', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Enzo_Pérez property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1983049 Q441054
P27
Q15617994
USER
Which administrative territories do Emilia Bottas or Martijn van de Ven belong to ?
OR((Q441054,P27,c(Q15617994)), (Q1983049,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q441054
relation P27
action find
entity Q1983049
relation P27
type Q15617994
{'OR': [['Q441054', 'P27', {'concept': 'Q15617994'}], ['Q1983049', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q441054 property:P27 ?a } UNION { resource:Q1983049 property:P27 ?a } } . ?a rdf:type ontology:Q15617994 }
Martijn van de Ven Emilia Bottas
action filter_type
action union
action find
entity Emilia Bottas
relation country of citizenship
action find
entity Martijn van de Ven
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Emilia Bottas', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Martijn van de Ven', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Emilia_Bottas property:country_of_citizenship ?a } UNION { resource:Martijn_van_de_Ven property:country_of_citizenship ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33 Q29999
SYSTEM
Finland, Kingdom of the Netherlands
Q33 Q29999
OR((Q441054,P27,c(Q15617994)), (Q1983049,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q441054
relation P27
action find
entity Q1983049
relation P27
type Q15617994
Emilia Bottas or Martijn van de Ven belong to [ANSWERS]
{'OR': [['Q441054', 'P27', {'concept': 'Q15617994'}], ['Q1983049', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q441054 property:P27 ?a } UNION { resource:Q1983049 property:P27 ?a } } . ?a rdf:type ontology:Q15617994 }
Finland Kingdom of the Netherlands
Emilia Bottas or Martijn van de Ven belong to Finland and Kingdom of the Netherlands
Finland Kingdom of the Netherlands
action filter_type
action union
action find
entity Emilia Bottas
relation country of citizenship
action find
entity Martijn van de Ven
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Emilia Bottas', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Martijn van de Ven', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Emilia_Bottas property:country_of_citizenship ?a } UNION { resource:Martijn_van_de_Ven property:country_of_citizenship ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q21567613 Q3117688
P17
Q15617994
USER
Which administrative territories are Maipú or Torbjörntorp present in ?
OR((Q3117688,P17,c(Q15617994)), (Q21567613,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q3117688
relation P17
action find
entity Q21567613
relation P17
type Q15617994
{'OR': [['Q3117688', 'P17', {'concept': 'Q15617994'}], ['Q21567613', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q3117688 property:P17 ?j } UNION { resource:Q21567613 property:P17 ?j } } . ?j rdf:type ontology:Q15617994 }
Torbjörntorp Maipú
action filter_type
action union
action find
entity Maipú
relation country
action find
entity Torbjörntorp
relation country
type designation for an administrative territorial entity
{'OR': [['Maipú', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Torbjörntorp', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Maipú property:country ?j } UNION { resource:Torbjörntorp property:country ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q414 Q34
SYSTEM
Argentina, Sweden
Q414 Q34
OR((Q3117688,P17,c(Q15617994)), (Q21567613,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q3117688
relation P17
action find
entity Q21567613
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q3117688', 'P17', {'concept': 'Q15617994'}], ['Q21567613', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q3117688 property:P17 ?j } UNION { resource:Q21567613 property:P17 ?j } } . ?j rdf:type ontology:Q15617994 }
Argentina Sweden
Which administrative territories are Maipú or Torbjörntorp present in
Argentina Sweden
action filter_type
action union
action find
entity Maipú
relation country
action find
entity Torbjörntorp
relation country
type designation for an administrative territorial entity
{'OR': [['Maipú', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Torbjörntorp', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Maipú property:country ?j } UNION { resource:Torbjörntorp property:country ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q34
P530
Q15617994 Q15617994
USER
Which administrative territories are known to have diplomatic connections with less number of administrative territories than Sweden ?
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q34
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?c ) WHERE { ?e property:P530 ?n . ?e rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { ?k rdf:type ontology:Q15617994 . resource:Q34 property:P530 ?k } } . FILTER ( ?c < ?o ) }
Sweden
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 Sweden
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 ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?c ) WHERE { ?e property:diplomatic_relation ?n . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Sweden property:diplomatic_relation ?k } } . FILTER ( ?c < ?o ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q20 Q33
SYSTEM
Netherlands, Norway, Finland
Q702 Q804 Q800 Q55 Q262 Q783 Q265 Q712 Q837 Q398 Q657 Q792 Q790 Q954 Q958 Q986 Q242 Q244 Q811 Q33 Q924 Q983 Q851 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q1029 Q1028 Q786 Q224 Q221 Q229 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q115 Q117 Q754 Q750 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q878 Q774 Q817 Q810 Q1019 Q945 Q678 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q34
relation P530
type Q15617994
[ANSWERS] are known to have diplomatic connections with less number of administrative territories than Sweden
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?c ) WHERE { ?e property:P530 ?n . ?e rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { ?k rdf:type ontology:Q15617994 . resource:Q34 property:P530 ?k } } . FILTER ( ?c < ?o ) }
Federated States of Micronesia Panama Costa Rica Netherlands Algeria Honduras Uzbekistan Fiji Nepal Bahrain Chad El Salvador Haiti Zimbabwe South Sudan Eritrea Belize Barbados Nicaragua Finland Tanzania Equatorial Guinea Saudi Arabia Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Brunei Sudan Mauritius Malawi Iceland Oman Mozambique Morocco Dominican Republic Croatia Republic of Macedonia Cyprus Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ethiopia Ghana Trinidad and Tobago Bolivia Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor United Arab Emirates Guatemala Kuwait Jordan Madagascar Togo Tonga New Caledonia Thailand
Netherlands, Norway and Finland are known to have diplomatic connections with less number of administrative territories than Sweden
Netherlands Norway Finland
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 Sweden
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 ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?c ) WHERE { ?e property:diplomatic_relation ?n . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Sweden property:diplomatic_relation ?k } } . FILTER ( ?c < ?o ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q717
P530
Q15617994 Q15617994
USER
And also tell me about Venezuela?
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q717
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { ?i rdf:type ontology:Q15617994 . resource:Q717 property:P530 ?i } } . FILTER ( ?a < ?b ) . { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?a ) WHERE { ?e property:P530 ?o . ?e rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?e } }
Venezuela
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 Venezuela
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 ?e WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Venezuela property:diplomatic_relation ?i } } . FILTER ( ?a < ?b ) . { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?a ) WHERE { ?e property:diplomatic_relation ?o . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q20 Q33
SYSTEM
Netherlands, Norway, Finland
Q702 Q804 Q800 Q55 Q262 Q783 Q265 Q712 Q837 Q398 Q657 Q792 Q790 Q954 Q958 Q986 Q242 Q244 Q811 Q33 Q924 Q983 Q851 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q1029 Q1028 Q786 Q224 Q221 Q229 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q115 Q117 Q754 Q750 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q878 Q774 Q817 Q810 Q1019 Q945 Q678 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q717
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { ?i rdf:type ontology:Q15617994 . resource:Q717 property:P530 ?i } } . FILTER ( ?a < ?b ) . { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?a ) WHERE { ?e property:P530 ?o . ?e rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?e } }
Federated States of Micronesia Panama Costa Rica Netherlands Algeria Honduras Uzbekistan Fiji Nepal Bahrain Chad El Salvador Haiti Zimbabwe South Sudan Eritrea Belize Barbados Nicaragua Finland Tanzania Equatorial Guinea Saudi Arabia Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Brunei Sudan Mauritius Malawi Iceland Oman Mozambique Morocco Dominican Republic Croatia Republic of Macedonia Cyprus Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ethiopia Ghana Trinidad and Tobago Bolivia Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor United Arab Emirates Guatemala Kuwait Jordan Madagascar Togo Tonga New Caledonia Thailand
Netherlands Norway Finland
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 Venezuela
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 ?e WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Venezuela property:diplomatic_relation ?i } } . FILTER ( ?a < ?b ) . { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?a ) WHERE { ?e property:diplomatic_relation ?o . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4540 Q34
P47 P530
Q1048835
USER
Which political territories holds diplomatic relationship with Sweden or share border with Eschen ?
OR((Q34,P530,c(Q1048835)), (Q4540,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q34
relation P530
action find
entity Q4540
relation P47
type Q1048835
{'OR': [['Q34', 'P530', {'concept': 'Q1048835'}], ['Q4540', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q34 property:P530 ?t } UNION { resource:Q4540 property:P47 ?t } } . ?t rdf:type ontology:Q1048835 }
Eschen Sweden
action filter_type
action union
action find
entity Sweden
relation diplomatic relation
action find
entity Eschen
relation shares border with
type political territorial entity
{'OR': [['Sweden', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Eschen', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Sweden property:diplomatic_relation ?t } UNION { resource:Eschen property:shares_border_with ?t } } . ?t rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q408 Q16 Q49662 Q49660 Q49661 Q49657 Q49655
SYSTEM
Germany, Australia, Canada, Gamprin, Planken, Mauren, Schaan, Schellenberg
Q183 Q408 Q16 Q49662 Q49660 Q49661 Q49657 Q49655
OR((Q34,P530,c(Q1048835)), (Q4540,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q34
relation P530
action find
entity Q4540
relation P47
type Q1048835
[ANSWERS] hold diplomatic relationship with Sweden or share border with Eschen
{'OR': [['Q34', 'P530', {'concept': 'Q1048835'}], ['Q4540', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q34 property:P530 ?t } UNION { resource:Q4540 property:P47 ?t } } . ?t rdf:type ontology:Q1048835 }
Germany Australia Canada Gamprin Planken Mauren Schaan Schellenberg
Germany, Australia, Canada, Gamprin, Planken, Mauren, Schaan and Schellenberg hold diplomatic relationship with Sweden or share border with Eschen
Germany Australia Canada Gamprin Planken Mauren Schaan Schellenberg
action filter_type
action union
action find
entity Sweden
relation diplomatic relation
action find
entity Eschen
relation shares border with
type political territorial entity
{'OR': [['Sweden', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Eschen', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Sweden property:diplomatic_relation ?t } UNION { resource:Eschen property:shares_border_with ?t } } . ?t rdf:type ontology:political_territorial_entity }
[]