Simple Question (Direct)
Simple Question
Q607495
P119
Q39614
USER
Which cemetery is the tomb of Giuseppe De Nittis ?
(Q607495,P119,c(Q39614))
action filter_type
action find
entity Q607495
relation P119
type Q39614
['Q607495', 'P119', {'concept': 'Q39614'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q39614 . resource:Q607495 property:P119 ?i }
Giuseppe De Nittis
action filter_type
action find
entity Giuseppe De Nittis
relation place of burial
type cemetery
['Giuseppe De Nittis', 'place of burial', {'concept': 'cemetery'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:cemetery . resource:Giuseppe_De_Nittis property:place_of_burial ?i }
[]
cemetery
Q311
SYSTEM
Père Lachaise Cemetery
Q311
(Q607495,P119,c(Q39614))
action filter_type
action find
entity Q607495
relation P119
type Q39614
The tomb of Giuseppe De Nittis is in [ANSWER]
['Q607495', 'P119', {'concept': 'Q39614'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q39614 . resource:Q607495 property:P119 ?i }
Père Lachaise Cemetery
The tomb of Giuseppe De Nittis is in Père Lachaise Cemetery
Père Lachaise Cemetery
action filter_type
action find
entity Giuseppe De Nittis
relation place of burial
type cemetery
['Giuseppe De Nittis', 'place of burial', {'concept': 'cemetery'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:cemetery . resource:Giuseppe_De_Nittis property:place_of_burial ?i }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q607495
P1412
Q34770
USER
Which language does that person speak in ?
(Q311,P1412,c(Q34770))
action filter_type
action find
entity Q607495
relation P1412
type Q34770
['Q311', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { resource:Q607495 property:P1412 ?p . ?p rdf:type ontology:Q34770 }
Giuseppe De Nittis
action filter_type
action find
entity Giuseppe De Nittis
relation languages spoken, written or signed
type language
['Père Lachaise Cemetery', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { resource:Giuseppe_De_Nittis property:languages_spoken,_written_or_signed ?p . ?p rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q311,P1412,c(Q34770))
action filter_type
action find
entity Q607495
relation P1412
type Q34770
That person speaks an [ANSWER]
['Q311', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { resource:Q607495 property:P1412 ?p . ?p rdf:type ontology:Q34770 }
Italian
That person speaks an Italian
Italian
action filter_type
action find
entity Giuseppe De Nittis
relation languages spoken, written or signed
type language
['Père Lachaise Cemetery', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { resource:Giuseppe_De_Nittis property:languages_spoken,_written_or_signed ?p . ?p rdf:type ontology:language }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q607495 Q10936701
P825
Q41176
USER
How many buildings have a commitment towards Giuseppe De Nittis or Oomononushi ?
(c(Q41176),P825,Q607495) (c(Q41176),P825,Q10936701)
action count
action union
action filter_type
action find_reverse
entity Q607495
relation P825
type Q41176
action filter_type
action find_reverse
entity Q10936701
relation P825
type Q41176
[{'concept': 'Q41176'}, 'P825', 'Q607495'] [{'concept': 'Q41176'}, 'P825', 'Q10936701']
SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { ?l property:P825 ?o . VALUES ( ?o ) { ( resource:Q10936701 ) ( resource:Q607495 ) } }
Giuseppe De Nittis Oomononushi
action count
action union
action filter_type
action find_reverse
entity Giuseppe De Nittis
relation dedicated to
type building
action filter_type
action find_reverse
entity Oomononushi
relation dedicated to
type building
[{'concept': 'building'}, 'dedicated to', 'Giuseppe De Nittis'] [{'concept': 'building'}, 'dedicated to', 'Oomononushi']
SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { ?l property:dedicated_to ?o . VALUES ( ?o ) { ( resource:Oomononushi ) ( resource:Giuseppe_De_Nittis ) } }
[]
building
SYSTEM
3
Q3317243 Q546197 Q705542
(c(Q41176),P825,Q607495) (c(Q41176),P825,Q10936701)
action count
action union
action filter_type
action find_reverse
entity Q607495
relation P825
type Q41176
action filter_type
action find_reverse
entity Q10936701
relation P825
type Q41176
[ANSWER]
[{'concept': 'Q41176'}, 'P825', 'Q607495'] [{'concept': 'Q41176'}, 'P825', 'Q10936701']
SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { ?l property:P825 ?o . VALUES ( ?o ) { ( resource:Q10936701 ) ( resource:Q607495 ) } }
Miwa Shrine Ōmiwa Shrine, Ichinomiya Ōmiwa jinja
3
action count
action union
action filter_type
action find_reverse
entity Giuseppe De Nittis
relation dedicated to
type building
action filter_type
action find_reverse
entity Oomononushi
relation dedicated to
type building
[{'concept': 'building'}, 'dedicated to', 'Giuseppe De Nittis'] [{'concept': 'building'}, 'dedicated to', 'Oomononushi']
SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { ?l property:dedicated_to ?o . VALUES ( ?o ) { ( resource:Oomononushi ) ( resource:Giuseppe_De_Nittis ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q607495
P20
Q56061
USER
Which administrative territory is the place of death of Giuseppe De Nittis ?
(Q607495,P20,c(Q56061))
action filter_type
action find
entity Q607495
relation P20
type Q56061
['Q607495', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q56061 . resource:Q607495 property:P20 ?y }
Giuseppe De Nittis
action filter_type
action find
entity Giuseppe De Nittis
relation place of death
type administrative territorial entity
['Giuseppe De Nittis', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:administrative_territorial_entity . resource:Giuseppe_De_Nittis property:place_of_death ?y }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q607495,P20,c(Q56061))
action filter_type
action find
entity Q607495
relation P20
type Q56061
[ANSWER] is the place of death of Giuseppe De Nittis
['Q607495', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q56061 . resource:Q607495 property:P20 ?y }
Paris
Paris is the place of death of Giuseppe De Nittis
Paris
action filter_type
action find
entity Giuseppe De Nittis
relation place of death
type administrative territorial entity
['Giuseppe De Nittis', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:administrative_territorial_entity . resource:Giuseppe_De_Nittis property:place_of_death ?y }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q90 Q1070252
P47
Q20667921
USER
Does Cagnotte share the border with that administrative territory ?
(Q90,P47,Q1070252)
action is_in
entity Q1070252
action find
entity Q90
relation P47
['Q90', 'P47', 'Q1070252']
ASK WHERE { resource:Q90 property:P47 resource:Q1070252 }
Paris Cagnotte
action is_in
entity Cagnotte
action find
entity Paris
relation shares border with
['Paris', 'shares border with', 'Cagnotte']
ASK WHERE { resource:Paris property:shares_border_with resource:Cagnotte }
[]
type of french administrative division
SYSTEM
NO
(Q90,P47,Q1070252)
action is_in
entity Q1070252
action find
entity Q90
relation P47
[ANSWER]
['Q90', 'P47', 'Q1070252']
ASK WHERE { resource:Q90 property:P47 resource:Q1070252 }
No
action is_in
entity Cagnotte
action find
entity Paris
relation shares border with
['Paris', 'shares border with', 'Cagnotte']
ASK WHERE { resource:Paris property:shares_border_with resource:Cagnotte }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3016844 Q311
P17
Q15617994
USER
Which administrative territories are Père Lachaise Cemetery or Nyac Airport situated in ?
OR((Q311,P17,c(Q15617994)), (Q3016844,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q311
relation P17
action find
entity Q3016844
relation P17
type Q15617994
{'OR': [['Q311', 'P17', {'concept': 'Q15617994'}], ['Q3016844', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . { ?g property:P17 ?e . VALUES ( ?g ) { ( resource:Q311 ) ( resource:Q3016844 ) } } }
Nyac Airport Père Lachaise Cemetery
action filter_type
action union
action find
entity Père Lachaise Cemetery
relation country
action find
entity Nyac Airport
relation country
type designation for an administrative territorial entity
{'OR': [['Père Lachaise Cemetery', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Nyac Airport', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?g property:country ?e . VALUES ( ?g ) { ( resource:Père_Lachaise_Cemetery ) ( resource:Nyac_Airport ) } } }
[]
designation for an administrative territorial entity
Q142 Q30
SYSTEM
France, United States of America
Q142 Q30
OR((Q311,P17,c(Q15617994)), (Q3016844,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q311
relation P17
action find
entity Q3016844
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q311', 'P17', {'concept': 'Q15617994'}], ['Q3016844', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . { ?g property:P17 ?e . VALUES ( ?g ) { ( resource:Q311 ) ( resource:Q3016844 ) } } }
France United States of America
Which administrative territories are Père Lachaise Cemetery or Nyac Airport situated in
France United States of America
action filter_type
action union
action find
entity Père Lachaise Cemetery
relation country
action find
entity Nyac Airport
relation country
type designation for an administrative territorial entity
{'OR': [['Père Lachaise Cemetery', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Nyac Airport', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?g property:country ?e . VALUES ( ?g ) { ( resource:Père_Lachaise_Cemetery ) ( resource:Nyac_Airport ) } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1250
P194
Q701632 Q11204 Q15617994
USER
How many administrative territories have lesser number of municipal councils or legislatures as their legislative body than Friuli–Venezia Giulia ?
(c(Q15617994),P194,c(Q701632)|c(Q11204))
action count
action less
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action count
action filter_multi_types
action find
entity Q1250
relation P194
type Q701632
type Q11204
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { resource:Q1250 property:P194 ?i . { { ?i rdf:type ontology:Q701632 } UNION { ?i rdf:type ontology:Q11204 } } } } . FILTER ( ?u < ?n ) . { SELECT DISTINCT ?l ( COUNT ( ?q ) AS ?u ) WHERE { { ?l property:P194 ?q . ?q rdf:type ontology:Q701632 . ?l rdf:type ontology:Q15617994 } UNION { ?q rdf:type ontology:Q11204 . ?l rdf:type ontology:Q15617994 . ?l property:P194 ?q } } GROUP BY ?l } }
Friuli–Venezia Giulia
action count
action less
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action count
action filter_multi_types
action find
entity Friuli–Venezia Giulia
relation legislative body
type municipal council
type legislature
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { resource:Friuli–Venezia_Giulia property:legislative_body ?i . { { ?i rdf:type ontology:municipal_council } UNION { ?i rdf:type ontology:legislature } } } } . FILTER ( ?u < ?n ) . { SELECT DISTINCT ?l ( COUNT ( ?q ) AS ?u ) WHERE { { ?l property:legislative_body ?q . ?q rdf:type ontology:municipal_council . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?q rdf:type ontology:legislature . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l property:legislative_body ?q } } GROUP BY ?l } }
[]
municipal council legislature designation for an administrative territorial entity
SYSTEM
87
Q804 Q801 Q419 Q668 Q414 Q142 Q55 Q1948 Q145 Q717 Q252320 Q187035 Q3361 Q657 Q258 Q1979 Q45 Q41 Q155 Q4628 Q794 Q153529 Q1965 Q242 Q1974 Q33 Q32 Q36 Q34 Q929 Q39 Q38 Q739 Q3685392 Q733 Q29999 Q854 Q153091 Q104192 Q603676 Q747074 Q72449 Q233 Q238 Q20 Q28 Q29 Q783 Q2009 Q2007 Q184 Q2003 Q1904 Q228 Q224 Q223 Q222 Q221 Q815731 Q96 Q229 Q1989 Q697 Q298 Q754 Q750 Q212 Q213 Q211 Q6465 Q214 Q215 Q218 Q219 Q16110 Q694594 Q79 Q77 Q811 Q1011 Q1013 Q12620 Q176 Q1951 Q1952 Q2023 Q869
(c(Q15617994),P194,c(Q701632)|c(Q11204))
action count
action less
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action count
action filter_multi_types
action find
entity Q1250
relation P194
type Q701632
type Q11204
[ANSWER]
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { resource:Q1250 property:P194 ?i . { { ?i rdf:type ontology:Q701632 } UNION { ?i rdf:type ontology:Q11204 } } } } . FILTER ( ?u < ?n ) . { SELECT DISTINCT ?l ( COUNT ( ?q ) AS ?u ) WHERE { { ?l property:P194 ?q . ?q rdf:type ontology:Q701632 . ?l rdf:type ontology:Q15617994 } UNION { ?q rdf:type ontology:Q11204 . ?l rdf:type ontology:Q15617994 . ?l property:P194 ?q } } GROUP BY ?l } }
Panama Israel Peru India Argentina France Netherlands Manitoba United Kingdom Venezuela Pleinfeld Principality of Albania Doubs Chad South Africa Prince Edward Island Portugal Greece Brazil Faroe Islands Iran Duchy of Milan New Brunswick Belize British Columbia Finland Luxembourg Poland Sweden Central African Republic Switzerland Italy Colombia Municipality of Monaco Paraguay Kingdom of the Netherlands Sri Lanka Duchy of Prussia Kleinmachnow District of Keewatin comune of Italy Roccarainola Malta San Marino Norway Hungary Spain Honduras Yukon Northwest Territories Belarus Newfoundland and Labrador Ontario Andorra Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Mexico Cyprus Saskatchewan Nauru Chile Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia department of France Slovakia Slovenia Romania Bulgaria region of Italy Bremen-Verden Egypt Uruguay Nicaragua Cape Verde Lesotho Mayenne Quebec Alberta Nova Scotia Nunavut Thailand
87
action count
action less
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action count
action filter_multi_types
action find
entity Friuli–Venezia Giulia
relation legislative body
type municipal council
type legislature
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { resource:Friuli–Venezia_Giulia property:legislative_body ?i . { { ?i rdf:type ontology:municipal_council } UNION { ?i rdf:type ontology:legislature } } } } . FILTER ( ?u < ?n ) . { SELECT DISTINCT ?l ( COUNT ( ?q ) AS ?u ) WHERE { { ?l property:legislative_body ?q . ?q rdf:type ontology:municipal_council . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?q rdf:type ontology:legislature . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l property:legislative_body ?q } } GROUP BY ?l } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q800
P194
Q701632 Q11204 Q15617994
USER
And what about Costa Rica?
(c(Q15617994),P194,c(Q701632)|c(Q11204))
action count
action less
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action count
action filter_multi_types
action find
entity Q800
relation P194
type Q701632
type Q11204
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?h ) WHERE { ?s rdf:type ?b . VALUES ( ?b ) { ( ontology:Q701632 ) ( ontology:Q11204 ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { resource:Q800 property:P194 ?r . { { ?r rdf:type ontology:Q701632 } UNION { ?r rdf:type ontology:Q11204 } } } } . FILTER ( ?h < ?m ) }
Costa Rica
action count
action less
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action count
action filter_multi_types
action find
entity Costa Rica
relation legislative body
type municipal council
type legislature
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?h ) WHERE { ?s rdf:type ?b . VALUES ( ?b ) { ( ontology:municipal_council ) ( ontology:legislature ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { resource:Costa_Rica property:legislative_body ?r . { { ?r rdf:type ontology:municipal_council } UNION { ?r rdf:type ontology:legislature } } } } . FILTER ( ?h < ?m ) }
[]
municipal council legislature designation for an administrative territorial entity
SYSTEM
87
Q804 Q801 Q419 Q668 Q414 Q142 Q55 Q1948 Q145 Q717 Q252320 Q187035 Q3361 Q657 Q258 Q1979 Q45 Q41 Q155 Q4628 Q794 Q153529 Q1965 Q242 Q1974 Q33 Q32 Q36 Q34 Q929 Q39 Q38 Q739 Q3685392 Q733 Q29999 Q854 Q153091 Q104192 Q603676 Q747074 Q72449 Q233 Q238 Q20 Q28 Q29 Q783 Q2009 Q2007 Q184 Q2003 Q1904 Q228 Q224 Q223 Q222 Q221 Q815731 Q96 Q229 Q1989 Q697 Q298 Q754 Q750 Q212 Q213 Q211 Q6465 Q214 Q215 Q218 Q219 Q16110 Q694594 Q79 Q77 Q811 Q1011 Q1013 Q12620 Q176 Q1951 Q1952 Q2023 Q869
(c(Q15617994),P194,c(Q701632)|c(Q11204))
action count
action less
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action count
action filter_multi_types
action find
entity Q800
relation P194
type Q701632
type Q11204
[ANSWER]
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?h ) WHERE { ?s rdf:type ?b . VALUES ( ?b ) { ( ontology:Q701632 ) ( ontology:Q11204 ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { resource:Q800 property:P194 ?r . { { ?r rdf:type ontology:Q701632 } UNION { ?r rdf:type ontology:Q11204 } } } } . FILTER ( ?h < ?m ) }
Panama Israel Peru India Argentina France Netherlands Manitoba United Kingdom Venezuela Pleinfeld Principality of Albania Doubs Chad South Africa Prince Edward Island Portugal Greece Brazil Faroe Islands Iran Duchy of Milan New Brunswick Belize British Columbia Finland Luxembourg Poland Sweden Central African Republic Switzerland Italy Colombia Municipality of Monaco Paraguay Kingdom of the Netherlands Sri Lanka Duchy of Prussia Kleinmachnow District of Keewatin comune of Italy Roccarainola Malta San Marino Norway Hungary Spain Honduras Yukon Northwest Territories Belarus Newfoundland and Labrador Ontario Andorra Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Mexico Cyprus Saskatchewan Nauru Chile Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia department of France Slovakia Slovenia Romania Bulgaria region of Italy Bremen-Verden Egypt Uruguay Nicaragua Cape Verde Lesotho Mayenne Quebec Alberta Nova Scotia Nunavut Thailand
87
action count
action less
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action count
action filter_multi_types
action find
entity Costa Rica
relation legislative body
type municipal council
type legislature
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?h ) WHERE { ?s rdf:type ?b . VALUES ( ?b ) { ( ontology:municipal_council ) ( ontology:legislature ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { resource:Costa_Rica property:legislative_body ?r . { { ?r rdf:type ontology:municipal_council } UNION { ?r rdf:type ontology:legislature } } } } . FILTER ( ?h < ?m ) }
[]