Simple Question (Direct)
Simple Question
Q887475
P19
Q56061
USER
Which administrative territory was John Tayler born at ?
(Q887475,P19,c(Q56061))
action filter_type
action find
entity Q887475
relation P19
type Q56061
['Q887475', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q56061 . resource:Q887475 property:P19 ?v }
John Tayler
action filter_type
action find
entity John Tayler
relation place of birth
type administrative territorial entity
['John Tayler', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:administrative_territorial_entity . resource:John_Tayler property:place_of_birth ?v }
[]
administrative territorial entity
Q60
SYSTEM
New York City
Q60
(Q887475,P19,c(Q56061))
action filter_type
action find
entity Q887475
relation P19
type Q56061
John Tayler was born in [ANSWER]
['Q887475', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q56061 . resource:Q887475 property:P19 ?v }
New York City
John Tayler was born in New York City
New York City
action filter_type
action find
entity John Tayler
relation place of birth
type administrative territorial entity
['John Tayler', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:administrative_territorial_entity . resource:John_Tayler property:place_of_birth ?v }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q887475
P20
Q56061
USER
Which administrative territory is the place of death of John Tayler ?
(Q887475,P20,c(Q56061))
action filter_type
action find
entity Q887475
relation P20
type Q56061
['Q887475', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q887475 property:P20 ?d . ?d rdf:type ontology:Q56061 }
John Tayler
action filter_type
action find
entity John Tayler
relation place of death
type administrative territorial entity
['John Tayler', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:John_Tayler property:place_of_death ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q24861
SYSTEM
Albany
Q24861
(Q887475,P20,c(Q56061))
action filter_type
action find
entity Q887475
relation P20
type Q56061
[ANSWER] is the place of death of John Tayler
['Q887475', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q887475 property:P20 ?d . ?d rdf:type ontology:Q56061 }
Albany
Albany is the place of death of John Tayler
Albany
action filter_type
action find
entity John Tayler
relation place of death
type administrative territorial entity
['John Tayler', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:John_Tayler property:place_of_death ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q24861 Q2001152
P190
Q56061
USER
Is Hutton-le-Hole twin town of that one ?
(Q24861,P190,Q2001152)
action is_in
entity Q2001152
action find
entity Q24861
relation P190
['Q24861', 'P190', 'Q2001152']
ASK WHERE { resource:Q24861 property:P190 resource:Q2001152 }
Albany Hutton-le-Hole
action is_in
entity Hutton-le-Hole
action find
entity Albany
relation sister city
['Albany', 'sister city', 'Hutton-le-Hole']
ASK WHERE { resource:Albany property:sister_city resource:Hutton-le-Hole }
[]
administrative territorial entity
SYSTEM
NO
(Q24861,P190,Q2001152)
action is_in
entity Q2001152
action find
entity Q24861
relation P190
[ANSWER]
['Q24861', 'P190', 'Q2001152']
ASK WHERE { resource:Q24861 property:P190 resource:Q2001152 }
No
action is_in
entity Hutton-le-Hole
action find
entity Albany
relation sister city
['Albany', 'sister city', 'Hutton-le-Hole']
ASK WHERE { resource:Albany property:sister_city resource:Hutton-le-Hole }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1338037 Q60
P19 P1376
Q15617994
USER
Which administrative territories have New York City as their capital or are the birthplace of Emma Heinrich ?
OR((Q60,P1376,c(Q15617994)), (Q1338037,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q60
relation P1376
action find
entity Q1338037
relation P19
type Q15617994
{'OR': [['Q60', 'P1376', {'concept': 'Q15617994'}], ['Q1338037', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q1338037 property:P19 ?f } UNION { resource:Q60 property:P1376 ?f } } . ?f rdf:type ontology:Q15617994 }
Emma Heinrich New York City
action filter_type
action union
action find
entity New York City
relation capital of
action find
entity Emma Heinrich
relation place of birth
type designation for an administrative territorial entity
{'OR': [['New York City', 'capital of', {'concept': 'designation for an administrative territorial entity'}], ['Emma Heinrich', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Emma_Heinrich property:place_of_birth ?f } UNION { resource:New_York_City property:capital_of ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q559010 Q30
SYSTEM
Parchim, United States of America
Q559010 Q30
OR((Q60,P1376,c(Q15617994)), (Q1338037,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q60
relation P1376
action find
entity Q1338037
relation P19
type Q15617994
[ANSWERS] have New York City as their capital or are the birthplace of Emma Heinrich
{'OR': [['Q60', 'P1376', {'concept': 'Q15617994'}], ['Q1338037', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q1338037 property:P19 ?f } UNION { resource:Q60 property:P1376 ?f } } . ?f rdf:type ontology:Q15617994 }
Parchim United States of America
Parchim and United States of America have New York City as their capital or are the birthplace of Emma Heinrich
Parchim United States of America
action filter_type
action union
action find
entity New York City
relation capital of
action find
entity Emma Heinrich
relation place of birth
type designation for an administrative territorial entity
{'OR': [['New York City', 'capital of', {'concept': 'designation for an administrative territorial entity'}], ['Emma Heinrich', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Emma_Heinrich property:place_of_birth ?f } UNION { resource:New_York_City property:capital_of ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1338037
P21
Q290
USER
What is the sex of Emma Heinrich ?
(Q1338037,P21,c(Q290))
action filter_type
action find
entity Q1338037
relation P21
type Q290
['Q1338037', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q1338037 property:P21 ?r . ?r rdf:type ontology:Q290 }
Emma Heinrich
action filter_type
action find
entity Emma Heinrich
relation gender
type sex
['Emma Heinrich', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Emma_Heinrich property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q1338037,P21,c(Q290))
action filter_type
action find
entity Q1338037
relation P21
type Q290
The sex of Emma Heinrich is the [ANSWER]
['Q1338037', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q1338037 property:P21 ?r . ?r rdf:type ontology:Q290 }
female
The sex of Emma Heinrich is the female
female
action filter_type
action find
entity Emma Heinrich
relation gender
type sex
['Emma Heinrich', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Emma_Heinrich property:gender ?r . ?r rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P30
Q2221906
USER
Which geographic locations are United States of America located in ?
(Q30,P30,c(Q2221906))
action filter_type
action find
entity Q30
relation P30
type Q2221906
['Q30', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?v WHERE { resource:Q30 property:P30 ?v . ?v rdf:type ontology:Q2221906 }
United States of America
action filter_type
action find
entity United States of America
relation continent
type geographic location
['United States of America', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?v WHERE { resource:United_States_of_America property:continent ?v . ?v rdf:type ontology:geographic_location }
[]
geographic location
Q49 Q538
SYSTEM
North America, Oceania
Q49 Q538
(Q30,P30,c(Q2221906))
action filter_type
action find
entity Q30
relation P30
type Q2221906
United States of America are located in [ANSWERS]
['Q30', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?v WHERE { resource:Q30 property:P30 ?v . ?v rdf:type ontology:Q2221906 }
North America Oceania
United States of America are located in North America and Oceania
North America Oceania
action filter_type
action find
entity United States of America
relation continent
type geographic location
['United States of America', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?v WHERE { resource:United_States_of_America property:continent ?v . ?v rdf:type ontology:geographic_location }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q15226 Q30
P30
Q2221906
USER
Or Brienzer Rothorn?
OR((Q30,P30,c(Q2221906)), (Q15226,P30,c(Q2221906)))
action filter_type
action union
action find
entity Q30
relation P30
action find
entity Q15226
relation P30
type Q2221906
{'OR': [['Q30', 'P30', {'concept': 'Q2221906'}], ['Q15226', 'P30', {'concept': 'Q2221906'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q30 property:P30 ?h } UNION { resource:Q15226 property:P30 ?h } } . ?h rdf:type ontology:Q2221906 }
Brienzer Rothorn United States of America
action filter_type
action union
action find
entity United States of America
relation continent
action find
entity Brienzer Rothorn
relation continent
type geographic location
{'OR': [['United States of America', 'continent', {'concept': 'geographic location'}], ['Brienzer Rothorn', 'continent', {'concept': 'geographic location'}]]}
SELECT DISTINCT ?h WHERE { { { resource:United_States_of_America property:continent ?h } UNION { resource:Brienzer_Rothorn property:continent ?h } } . ?h rdf:type ontology:geographic_location }
[]
geographic location
Q46 Q538 Q49
SYSTEM
Europe, Oceania, North America
Q46 Q538 Q49
OR((Q30,P30,c(Q2221906)), (Q15226,P30,c(Q2221906)))
action filter_type
action union
action find
entity Q30
relation P30
action find
entity Q15226
relation P30
type Q2221906
[ANSWERS]
{'OR': [['Q30', 'P30', {'concept': 'Q2221906'}], ['Q15226', 'P30', {'concept': 'Q2221906'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q30 property:P30 ?h } UNION { resource:Q15226 property:P30 ?h } } . ?h rdf:type ontology:Q2221906 }
Europe Oceania North America
Europe Oceania North America
action filter_type
action union
action find
entity United States of America
relation continent
action find
entity Brienzer Rothorn
relation continent
type geographic location
{'OR': [['United States of America', 'continent', {'concept': 'geographic location'}], ['Brienzer Rothorn', 'continent', {'concept': 'geographic location'}]]}
SELECT DISTINCT ?h WHERE { { { resource:United_States_of_America property:continent ?h } UNION { resource:Brienzer_Rothorn property:continent ?h } } . ?h rdf:type ontology:geographic_location }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P706
Q2221906 Q8502
USER
Which mountains have their location as max number of geographic locations ?
(c(Q8502),P706,c(Q2221906))
action argmax
action find_tuple_counts
relation P706
type Q8502
type Q2221906
[{'concept': 'Q8502'}, 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?k ) { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?c ) WHERE { ?e property:P706 ?t . ?e rdf:type ontology:Q8502 . ?t rdf:type ontology:Q2221906 } GROUP BY ?e } } . { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?z ) WHERE { ?p property:P706 ?u . ?p rdf:type ontology:Q8502 . ?u rdf:type ontology:Q2221906 } GROUP BY ?p } . FILTER ( ?z = ?k ) }
action argmax
action find_tuple_counts
relation located on terrain feature
type mountain
type geographic location
[{'concept': 'mountain'}, 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?k ) { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?c ) WHERE { ?e property:located_on_terrain_feature ?t . ?e rdf:type ontology:mountain . ?t rdf:type ontology:geographic_location } GROUP BY ?e } } . { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?z ) WHERE { ?p property:located_on_terrain_feature ?u . ?p rdf:type ontology:mountain . ?u rdf:type ontology:geographic_location } GROUP BY ?p } . FILTER ( ?z = ?k ) }
[]
geographic location mountain
Q6919808 Q7808780 Q1514665
SYSTEM
Mount Boyce, Tip Top Mountain, Ishpatina Ridge
Q6919808 Q7808780 Q1514665
(c(Q8502),P706,c(Q2221906))
action argmax
action find_tuple_counts
relation P706
type Q8502
type Q2221906
As [ANSWERS] have their location as max number of geographic locations
[{'concept': 'Q8502'}, 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?k ) { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?c ) WHERE { ?e property:P706 ?t . ?e rdf:type ontology:Q8502 . ?t rdf:type ontology:Q2221906 } GROUP BY ?e } } . { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?z ) WHERE { ?p property:P706 ?u . ?p rdf:type ontology:Q8502 . ?u rdf:type ontology:Q2221906 } GROUP BY ?p } . FILTER ( ?z = ?k ) }
Mount Boyce Tip Top Mountain Ishpatina Ridge
As Mount Boyce, Tip Top Mountain and Ishpatina Ridge have their location as max number of geographic locations
Mount Boyce Tip Top Mountain Ishpatina Ridge
action argmax
action find_tuple_counts
relation located on terrain feature
type mountain
type geographic location
[{'concept': 'mountain'}, 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?k ) { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?c ) WHERE { ?e property:located_on_terrain_feature ?t . ?e rdf:type ontology:mountain . ?t rdf:type ontology:geographic_location } GROUP BY ?e } } . { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?z ) WHERE { ?p property:located_on_terrain_feature ?u . ?p rdf:type ontology:mountain . ?u rdf:type ontology:geographic_location } GROUP BY ?p } . FILTER ( ?z = ?k ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q5401
P30
Q2221906 Q8502 Q34763
USER
How many geographic locations are more number of mountains or peninsulas a part of than Eurasia ?
(c(Q8502)|c(Q34763),P30,c(Q2221906))
action count
action greater
action union
action find_reverse_tuple_counts
relation P30
type Q2221906
type Q8502
action find_reverse_tuple_counts
relation P30
type Q2221906
type Q34763
action count
action filter_multi_types
action find_reverse
entity Q5401
relation P30
type Q8502
type Q34763
[[{'concept': 'Q8502'}, {'concept': 'Q34763'}], 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) ?s WHERE { { ?m property:P30 ?s . ?s rdf:type ontology:Q2221906 . ?m rdf:type ontology:Q34763 } UNION { ?m property:P30 ?s . ?s rdf:type ontology:Q2221906 . ?m rdf:type ontology:Q8502 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { ?c property:P30 resource:Q5401 . { { ?c rdf:type ontology:Q8502 } UNION { ?c rdf:type ontology:Q34763 } } } } . FILTER ( ?a > ?v ) }
Eurasia
action count
action greater
action union
action find_reverse_tuple_counts
relation continent
type geographic location
type mountain
action find_reverse_tuple_counts
relation continent
type geographic location
type peninsula
action count
action filter_multi_types
action find_reverse
entity Eurasia
relation continent
type mountain
type peninsula
[[{'concept': 'mountain'}, {'concept': 'peninsula'}], 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) ?s WHERE { { ?m property:continent ?s . ?s rdf:type ontology:geographic_location . ?m rdf:type ontology:peninsula } UNION { ?m property:continent ?s . ?s rdf:type ontology:geographic_location . ?m rdf:type ontology:mountain } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { ?c property:continent resource:Eurasia . { { ?c rdf:type ontology:mountain } UNION { ?c rdf:type ontology:peninsula } } } } . FILTER ( ?a > ?v ) }
[]
geographic location mountain peninsula
SYSTEM
7
Q51 Q46 Q828 Q48 Q49 Q18 Q538
(c(Q8502)|c(Q34763),P30,c(Q2221906))
action count
action greater
action union
action find_reverse_tuple_counts
relation P30
type Q2221906
type Q8502
action find_reverse_tuple_counts
relation P30
type Q2221906
type Q34763
action count
action filter_multi_types
action find_reverse
entity Q5401
relation P30
type Q8502
type Q34763
[ANSWER]
[[{'concept': 'Q8502'}, {'concept': 'Q34763'}], 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) ?s WHERE { { ?m property:P30 ?s . ?s rdf:type ontology:Q2221906 . ?m rdf:type ontology:Q34763 } UNION { ?m property:P30 ?s . ?s rdf:type ontology:Q2221906 . ?m rdf:type ontology:Q8502 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { ?c property:P30 resource:Q5401 . { { ?c rdf:type ontology:Q8502 } UNION { ?c rdf:type ontology:Q34763 } } } } . FILTER ( ?a > ?v ) }
Antarctica Europe Americas Asia North America South America Oceania
7
action count
action greater
action union
action find_reverse_tuple_counts
relation continent
type geographic location
type mountain
action find_reverse_tuple_counts
relation continent
type geographic location
type peninsula
action count
action filter_multi_types
action find_reverse
entity Eurasia
relation continent
type mountain
type peninsula
[[{'concept': 'mountain'}, {'concept': 'peninsula'}], 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) ?s WHERE { { ?m property:continent ?s . ?s rdf:type ontology:geographic_location . ?m rdf:type ontology:peninsula } UNION { ?m property:continent ?s . ?s rdf:type ontology:geographic_location . ?m rdf:type ontology:mountain } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { ?c property:continent resource:Eurasia . { { ?c rdf:type ontology:mountain } UNION { ?c rdf:type ontology:peninsula } } } } . FILTER ( ?a > ?v ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q3960
P30
Q2221906 Q8502 Q34763
USER
And also tell me about Australia?
(c(Q8502)|c(Q34763),P30,c(Q2221906))
action count
action greater
action union
action find_reverse_tuple_counts
relation P30
type Q2221906
type Q8502
action find_reverse_tuple_counts
relation P30
type Q2221906
type Q34763
action count
action filter_multi_types
action find_reverse
entity Q3960
relation P30
type Q8502
type Q34763
[[{'concept': 'Q8502'}, {'concept': 'Q34763'}], 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { FILTER ( ?v > ?e ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { ?a property:P30 resource:Q3960 . { ?a rdf:type ?r . VALUES ( ?r ) { ( ontology:Q8502 ) ( ontology:Q34763 ) } } } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) ?p WHERE { { ?t property:P30 ?p . ?p rdf:type ontology:Q2221906 . ?t rdf:type ontology:Q8502 } UNION { ?t property:P30 ?p . ?p rdf:type ontology:Q2221906 . ?t rdf:type ontology:Q34763 } } GROUP BY ?p } }
Australia
action count
action greater
action union
action find_reverse_tuple_counts
relation continent
type geographic location
type mountain
action find_reverse_tuple_counts
relation continent
type geographic location
type peninsula
action count
action filter_multi_types
action find_reverse
entity Australia
relation continent
type mountain
type peninsula
[[{'concept': 'mountain'}, {'concept': 'peninsula'}], 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { FILTER ( ?v > ?e ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { ?a property:continent resource:Australia . { ?a rdf:type ?r . VALUES ( ?r ) { ( ontology:mountain ) ( ontology:peninsula ) } } } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) ?p WHERE { { ?t property:continent ?p . ?p rdf:type ontology:geographic_location . ?t rdf:type ontology:mountain } UNION { ?t property:continent ?p . ?p rdf:type ontology:geographic_location . ?t rdf:type ontology:peninsula } } GROUP BY ?p } }
[]
geographic location mountain peninsula
SYSTEM
7
Q51 Q46 Q828 Q48 Q49 Q18 Q538
(c(Q8502)|c(Q34763),P30,c(Q2221906))
action count
action greater
action union
action find_reverse_tuple_counts
relation P30
type Q2221906
type Q8502
action find_reverse_tuple_counts
relation P30
type Q2221906
type Q34763
action count
action filter_multi_types
action find_reverse
entity Q3960
relation P30
type Q8502
type Q34763
[ANSWER]
[[{'concept': 'Q8502'}, {'concept': 'Q34763'}], 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { FILTER ( ?v > ?e ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { ?a property:P30 resource:Q3960 . { ?a rdf:type ?r . VALUES ( ?r ) { ( ontology:Q8502 ) ( ontology:Q34763 ) } } } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) ?p WHERE { { ?t property:P30 ?p . ?p rdf:type ontology:Q2221906 . ?t rdf:type ontology:Q8502 } UNION { ?t property:P30 ?p . ?p rdf:type ontology:Q2221906 . ?t rdf:type ontology:Q34763 } } GROUP BY ?p } }
Antarctica Europe Americas Asia North America South America Oceania
7
action count
action greater
action union
action find_reverse_tuple_counts
relation continent
type geographic location
type mountain
action find_reverse_tuple_counts
relation continent
type geographic location
type peninsula
action count
action filter_multi_types
action find_reverse
entity Australia
relation continent
type mountain
type peninsula
[[{'concept': 'mountain'}, {'concept': 'peninsula'}], 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { FILTER ( ?v > ?e ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { ?a property:continent resource:Australia . { ?a rdf:type ?r . VALUES ( ?r ) { ( ontology:mountain ) ( ontology:peninsula ) } } } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) ?p WHERE { { ?t property:continent ?p . ?p rdf:type ontology:geographic_location . ?t rdf:type ontology:mountain } UNION { ?t property:continent ?p . ?p rdf:type ontology:geographic_location . ?t rdf:type ontology:peninsula } } GROUP BY ?p } }
[]