Simple Question (Direct)
Simple Question
Q20954075
P106
Q12737077
USER
What is the profession of Manlio Bertolin ?
(Q20954075,P106,c(Q12737077))
action filter_type
action find
entity Q20954075
relation P106
type Q12737077
['Q20954075', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q20954075 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Manlio Bertolin
action filter_type
action find
entity Manlio Bertolin
relation occupation
type occupation
['Manlio Bertolin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Manlio_Bertolin property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q20954075,P106,c(Q12737077))
action filter_type
action find
entity Q20954075
relation P106
type Q12737077
The profession of Manlio Bertolin is an [ANSWER]
['Q20954075', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q20954075 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
association football player
The profession of Manlio Bertolin is an association football player
association football player
action filter_type
action find
entity Manlio Bertolin
relation occupation
type occupation
['Manlio Bertolin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Manlio_Bertolin property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q20954075
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
(Q937857,P27,c(Q15617994))
action filter_type
action find
entity Q20954075
relation P27
type Q15617994
['Q937857', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q20954075 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Manlio Bertolin
action filter_type
action find
entity Manlio Bertolin
relation country of citizenship
type designation for an administrative territorial entity
['association football player', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Manlio_Bertolin property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q937857,P27,c(Q15617994))
action filter_type
action find
entity Q20954075
relation P27
type Q15617994
The [ANSWER] is that person an inhabitant of
['Q937857', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q20954075 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Italy
The Italy is that person an inhabitant of
Italy
action filter_type
action find
entity Manlio Bertolin
relation country of citizenship
type designation for an administrative territorial entity
['association football player', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Manlio_Bertolin property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3426059 Q937857
P425 P641
Q349
USER
Which sports are associated with the field of occupation association football player or did René Cédolin participate in ?
OR((Q937857,P425,c(Q349)), (Q3426059,P641,c(Q349)))
action filter_type
action union
action find
entity Q937857
relation P425
action find
entity Q3426059
relation P641
type Q349
{'OR': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q3426059', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q937857 property:P425 ?z } UNION { resource:Q3426059 property:P641 ?z } } . ?z rdf:type ontology:Q349 }
René Cédolin association football player
action filter_type
action union
action find
entity association football player
relation field of this occupation
action find
entity René Cédolin
relation sport
type sport
{'OR': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['René Cédolin', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?z WHERE { { { resource:association_football_player property:field_of_this_occupation ?z } UNION { resource:René_Cédolin property:sport ?z } } . ?z rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
OR((Q937857,P425,c(Q349)), (Q3426059,P641,c(Q349)))
action filter_type
action union
action find
entity Q937857
relation P425
action find
entity Q3426059
relation P641
type Q349
Team [ANSWER] is associated with the field of occupation [ANSWER] player or did René Cédolin participate in
{'OR': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q3426059', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q937857 property:P425 ?z } UNION { resource:Q3426059 property:P641 ?z } } . ?z rdf:type ontology:Q349 }
association football
Team association football is associated with the field of occupation association football player or did René Cédolin participate in
association football
action filter_type
action union
action find
entity association football player
relation field of this occupation
action find
entity René Cédolin
relation sport
type sport
{'OR': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['René Cédolin', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?z WHERE { { { resource:association_football_player property:field_of_this_occupation ?z } UNION { resource:René_Cédolin property:sport ?z } } . ?z rdf:type ontology:sport }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2736 Q820323
P641
Q502895
USER
Does Bergsveinn Birgisson play that sport ?
(Q820323,P641,Q2736)
action is_in
entity Q820323
action find
entity Q2736
relation P641
['Q820323', 'P641', 'Q2736']
ASK WHERE { resource:Q2736 property:P641 resource:Q820323 }
association football Bergsveinn Birgisson
action is_in
entity Bergsveinn Birgisson
action find
entity association football
relation sport
['Bergsveinn Birgisson', 'sport', 'association football']
ASK WHERE { resource:association_football property:sport resource:Bergsveinn_Birgisson }
[]
common name
SYSTEM
NO
(Q820323,P641,Q2736)
action is_in
entity Q820323
action find
entity Q2736
relation P641
[ANSWER]
['Q820323', 'P641', 'Q2736']
ASK WHERE { resource:Q2736 property:P641 resource:Q820323 }
No
action is_in
entity Bergsveinn Birgisson
action find
entity association football
relation sport
['Bergsveinn Birgisson', 'sport', 'association football']
ASK WHERE { resource:association_football property:sport resource:Bergsveinn_Birgisson }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q731906 Q820323
P19
Q56061
USER
Which administrative territories were Bergsveinn Birgisson or Asclepiodotus of Alexandria born at ?
OR((Q820323,P19,c(Q56061)), (Q731906,P19,c(Q56061)))
action filter_type
action union
action find
entity Q820323
relation P19
action find
entity Q731906
relation P19
type Q56061
{'OR': [['Q820323', 'P19', {'concept': 'Q56061'}], ['Q731906', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?g ) { ( resource:Q820323 ) ( resource:Q731906 ) } . ?g property:P19 ?l } . ?l rdf:type ontology:Q56061 }
Asclepiodotus of Alexandria Bergsveinn Birgisson
action filter_type
action union
action find
entity Bergsveinn Birgisson
relation place of birth
action find
entity Asclepiodotus of Alexandria
relation place of birth
type administrative territorial entity
{'OR': [['Bergsveinn Birgisson', 'place of birth', {'concept': 'administrative territorial entity'}], ['Asclepiodotus of Alexandria', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?g ) { ( resource:Bergsveinn_Birgisson ) ( resource:Asclepiodotus_of_Alexandria ) } . ?g property:place_of_birth ?l } . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q87 Q1764
SYSTEM
Alexandria, Reykjavík
Q87 Q1764
OR((Q820323,P19,c(Q56061)), (Q731906,P19,c(Q56061)))
action filter_type
action union
action find
entity Q820323
relation P19
action find
entity Q731906
relation P19
type Q56061
[ANSWERS] were Bergsveinn Birgisson or Asclepiodotus of Alexandria born at
{'OR': [['Q820323', 'P19', {'concept': 'Q56061'}], ['Q731906', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?g ) { ( resource:Q820323 ) ( resource:Q731906 ) } . ?g property:P19 ?l } . ?l rdf:type ontology:Q56061 }
Alexandria Reykjavík
Alexandria and Reykjavík were Bergsveinn Birgisson or Asclepiodotus of Alexandria born at
Alexandria Reykjavík
action filter_type
action union
action find
entity Bergsveinn Birgisson
relation place of birth
action find
entity Asclepiodotus of Alexandria
relation place of birth
type administrative territorial entity
{'OR': [['Bergsveinn Birgisson', 'place of birth', {'concept': 'administrative territorial entity'}], ['Asclepiodotus of Alexandria', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?g ) { ( resource:Bergsveinn_Birgisson ) ( resource:Asclepiodotus_of_Alexandria ) } . ?g property:place_of_birth ?l } . ?l rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q76434 Q20954075
P19
Q15617994
USER
Which administrative territories are the birthplace of Manlio Bertolin or Georges Depping ?
OR((Q20954075,P19,c(Q15617994)), (Q76434,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q20954075
relation P19
action find
entity Q76434
relation P19
type Q15617994
{'OR': [['Q20954075', 'P19', {'concept': 'Q15617994'}], ['Q76434', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { ?a property:P19 ?j . VALUES ( ?a ) { ( resource:Q20954075 ) ( resource:Q76434 ) } } . ?j rdf:type ontology:Q15617994 }
Georges Depping Manlio Bertolin
action filter_type
action union
action find
entity Manlio Bertolin
relation place of birth
action find
entity Georges Depping
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Manlio Bertolin', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Georges Depping', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { ?a property:place_of_birth ?j . VALUES ( ?a ) { ( resource:Manlio_Bertolin ) ( resource:Georges_Depping ) } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q53157 Q2742
SYSTEM
Casarsa della Delizia, Münster
Q53157 Q2742
OR((Q20954075,P19,c(Q15617994)), (Q76434,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q20954075
relation P19
action find
entity Q76434
relation P19
type Q15617994
[ANSWERS] are the birthplace of Manlio Bertolin or Georges Depping
{'OR': [['Q20954075', 'P19', {'concept': 'Q15617994'}], ['Q76434', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { ?a property:P19 ?j . VALUES ( ?a ) { ( resource:Q20954075 ) ( resource:Q76434 ) } } . ?j rdf:type ontology:Q15617994 }
Casarsa della Delizia Münster
Casarsa della Delizia and Münster are the birthplace of Manlio Bertolin or Georges Depping
Casarsa della Delizia Münster
action filter_type
action union
action find
entity Manlio Bertolin
relation place of birth
action find
entity Georges Depping
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Manlio Bertolin', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Georges Depping', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { ?a property:place_of_birth ?j . VALUES ( ?a ) { ( resource:Manlio_Bertolin ) ( resource:Georges_Depping ) } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q12549
P1376
Q15617994 Q56061 Q515
USER
Which administrative territories have greater number of administrative territories and cities have their center of administration than Ille-et-Vilaine ?
(c(Q56061)|c(Q515),P1376,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action count
action filter_multi_types
action find_reverse
entity Q12549
relation P1376
type Q56061
type Q515
[[{'concept': 'Q56061'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) ?o WHERE { ?d rdf:type ?j . VALUES ( ?j ) { ( ontology:Q56061 ) ( ontology:Q515 ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:Q56061 ) ( ontology:Q515 ) } } . ?k property:P1376 resource:Q12549 } } . FILTER ( ?x > ?e ) }
Ille-et-Vilaine
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find_reverse
entity Ille-et-Vilaine
relation capital of
type administrative territorial entity
type city
[[{'concept': 'administrative territorial entity'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) ?o WHERE { ?d rdf:type ?j . VALUES ( ?j ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } } . ?k property:capital_of resource:Ille-et-Vilaine } } . FILTER ( ?x > ?e ) }
[]
designation for an administrative territorial entity administrative territorial entity city
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q805 Q252 Q258 Q155 Q1020 Q41 Q30 Q38 Q1033 Q199688 Q12536 Q517333 Q924 Q17 Q160307
(c(Q56061)|c(Q515),P1376,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action count
action filter_multi_types
action find_reverse
entity Q12549
relation P1376
type Q56061
type Q515
[ANSWERS] have greater number of administrative territories and cities have their center of administration than Ille-et-Vilaine
[[{'concept': 'Q56061'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) ?o WHERE { ?d rdf:type ?j . VALUES ( ?j ) { ( ontology:Q56061 ) ( ontology:Q515 ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:Q56061 ) ( ontology:Q515 ) } } . ?k property:P1376 resource:Q12549 } } . FILTER ( ?x > ?e ) }
Yemen Indonesia South Africa Brazil Malawi Greece United States of America Italy Nigeria Almohad Abbasid caliphate Principality of Polotsk Tanzania Japan Fatimid caliphate
Italy, Brazil and United States of America have greater number of administrative territories and cities have their center of administration than Ille-et-Vilaine
Italy Brazil United States of America
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find_reverse
entity Ille-et-Vilaine
relation capital of
type administrative territorial entity
type city
[[{'concept': 'administrative territorial entity'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) ?o WHERE { ?d rdf:type ?j . VALUES ( ?j ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } } . ?k property:capital_of resource:Ille-et-Vilaine } } . FILTER ( ?x > ?e ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q165763
P1376
Q15617994 Q56061 Q515
USER
And what about Waldeck?
(c(Q56061)|c(Q515),P1376,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action count
action filter_multi_types
action find_reverse
entity Q165763
relation P1376
type Q56061
type Q515
[[{'concept': 'Q56061'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?x ) WHERE { { ?d property:P1376 ?b . ?b rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q56061 } UNION { ?d property:P1376 ?b . ?b rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q515 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { ?y property:P1376 resource:Q165763 . { ?y rdf:type ?s . VALUES ( ?s ) { ( ontology:Q56061 ) ( ontology:Q515 ) } } } } . FILTER ( ?x > ?p ) }
Waldeck
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find_reverse
entity Waldeck
relation capital of
type administrative territorial entity
type city
[[{'concept': 'administrative territorial entity'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?x ) WHERE { { ?d property:capital_of ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:administrative_territorial_entity } UNION { ?d property:capital_of ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:city } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { ?y property:capital_of resource:Waldeck . { ?y rdf:type ?s . VALUES ( ?s ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } } } } . FILTER ( ?x > ?p ) }
[]
designation for an administrative territorial entity administrative territorial entity city
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q805 Q252 Q258 Q155 Q1020 Q41 Q30 Q38 Q1033 Q199688 Q12536 Q517333 Q924 Q17 Q160307
(c(Q56061)|c(Q515),P1376,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action count
action filter_multi_types
action find_reverse
entity Q165763
relation P1376
type Q56061
type Q515
[ANSWERS]
[[{'concept': 'Q56061'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?x ) WHERE { { ?d property:P1376 ?b . ?b rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q56061 } UNION { ?d property:P1376 ?b . ?b rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q515 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { ?y property:P1376 resource:Q165763 . { ?y rdf:type ?s . VALUES ( ?s ) { ( ontology:Q56061 ) ( ontology:Q515 ) } } } } . FILTER ( ?x > ?p ) }
Yemen Indonesia South Africa Brazil Malawi Greece United States of America Italy Nigeria Almohad Abbasid caliphate Principality of Polotsk Tanzania Japan Fatimid caliphate
Italy Brazil United States of America
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find_reverse
entity Waldeck
relation capital of
type administrative territorial entity
type city
[[{'concept': 'administrative territorial entity'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?x ) WHERE { { ?d property:capital_of ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:administrative_territorial_entity } UNION { ?d property:capital_of ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:city } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { ?y property:capital_of resource:Waldeck . { ?y rdf:type ?s . VALUES ( ?s ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } } } } . FILTER ( ?x > ?p ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3548963 Q155
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relationships with Brazil or are the countries of citizenship of Alan Ledesma ?
OR((Q155,P530,c(Q15617994)), (Q3548963,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q155
relation P530
action find
entity Q3548963
relation P27
type Q15617994
{'OR': [['Q155', 'P530', {'concept': 'Q15617994'}], ['Q3548963', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q155 property:P530 ?m } UNION { resource:Q3548963 property:P27 ?m } } . ?m rdf:type ontology:Q15617994 }
Alan Ledesma Brazil
action filter_type
action union
action find
entity Brazil
relation diplomatic relation
action find
entity Alan Ledesma
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Alan Ledesma', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Brazil property:diplomatic_relation ?m } UNION { resource:Alan_Ledesma property:country_of_citizenship ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q241 Q159 Q750 Q917 Q794 Q958 Q77 Q43 Q843 Q739
SYSTEM
Some of them are Cuba, Russia, Bolivia, Bhutan, Iran, South Sudan, Uruguay, Turkey, Pakistan, Colombia
Q783 Q801 Q800 Q843 Q1029 Q822 Q241 Q419 Q244 Q668 Q414 Q574 Q142 Q145 Q148 Q96 Q17 Q30 Q36 Q79 Q77 Q38 Q1016 Q739 Q423 Q717 Q983 Q733 Q1011 Q962 Q736 Q298 Q252 Q399 Q403 Q258 Q750 Q212 Q213 Q45 Q159 Q43 Q41 Q734 Q790 Q796 Q794 Q917 Q1033 Q29 Q958 Q1049 Q916
OR((Q155,P530,c(Q15617994)), (Q3548963,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q155
relation P530
action find
entity Q3548963
relation P27
type Q15617994
[ANSWERS] have diplomatic relationships with Brazil or are the countries of citizenship of Alan Ledesma
{'OR': [['Q155', 'P530', {'concept': 'Q15617994'}], ['Q3548963', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q155 property:P530 ?m } UNION { resource:Q3548963 property:P27 ?m } } . ?m rdf:type ontology:Q15617994 }
Honduras Israel Costa Rica Pakistan Mozambique Lebanon Cuba Peru Barbados India Argentina East Timor France United Kingdom People's Republic of China Mexico Japan United States of America Poland Egypt Uruguay Italy Libya Colombia North Korea Venezuela Equatorial Guinea Paraguay Cape Verde Benin Ecuador Chile Indonesia Armenia Serbia South Africa Bolivia Ukraine Czech Republic Portugal Russia Turkey Greece Guyana Haiti Iraq Iran Bhutan Nigeria Spain South Sudan Sudan Angola
Cuba, Russia, Bolivia, Bhutan, Iran, South Sudan, Uruguay, Turkey, Pakistan and Colombia have diplomatic relationships with Brazil or are the countries of citizenship of Alan Ledesma
Cuba Russia Bolivia Bhutan Iran South Sudan Uruguay Turkey Pakistan Colombia
action filter_type
action union
action find
entity Brazil
relation diplomatic relation
action find
entity Alan Ledesma
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Alan Ledesma', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Brazil property:diplomatic_relation ?m } UNION { resource:Alan_Ledesma property:country_of_citizenship ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q917
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relations with greater number of administrative territories than Bhutan ?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q917
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?e ) WHERE { ?z property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { resource:Q917 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } . FILTER ( ?e > ?j ) }
Bhutan
action count
action greater
action find_reverse_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 Bhutan
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 ( ?r ) AS ?b ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?e ) WHERE { ?z property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { resource:Bhutan property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?e > ?j ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
102
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q37 Q711 Q717 Q252 Q399 Q398 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q236 Q230 Q233 Q27 Q28 Q1049 Q189 Q843 Q184 Q1029 Q736 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q974 Q1033 Q1030 Q191 Q963 Q298 Q115 Q114 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q219 Q916 Q1009 Q1008 Q971 Q874 Q79 Q77 Q858 Q878 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q917
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?e ) WHERE { ?z property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { resource:Q917 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } . FILTER ( ?e > ?j ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Lithuania Mongolia Venezuela Indonesia Armenia Bahrain Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Montenegro Georgia Malta Ireland Hungary Sudan Iceland Pakistan Belarus Mozambique Ecuador Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Democratic Republic of the Congo Nigeria Namibia Estonia Botswana Chile Ethiopia Kenya Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Angola Cameroon Côte d'Ivoire Republic of the Congo Turkmenistan Egypt Uruguay Syria United Arab Emirates Jordan Libya Cape Verde Spain Thailand Zambia
102
action count
action greater
action find_reverse_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 Bhutan
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 ( ?r ) AS ?b ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?e ) WHERE { ?z property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { resource:Bhutan property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?e > ?j ) }
[]