Simple Question (Direct)
Simple Question
Q5826502
P21
Q290
USER
Which sex does Ernst Jacobsson belong to ?
(Q5826502,P21,c(Q290))
action filter_type
action find
entity Q5826502
relation P21
type Q290
['Q5826502', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q5826502 property:P21 ?g . ?g rdf:type ontology:Q290 }
Ernst Jacobsson
action filter_type
action find
entity Ernst Jacobsson
relation gender
type sex
['Ernst Jacobsson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Ernst_Jacobsson property:gender ?g . ?g rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5826502,P21,c(Q290))
action filter_type
action find
entity Q5826502
relation P21
type Q290
Ernst Jacobsson belongs to [ANSWER]
['Q5826502', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q5826502 property:P21 ?g . ?g rdf:type ontology:Q290 }
male
Ernst Jacobsson belongs to male
male
action filter_type
action find
entity Ernst Jacobsson
relation gender
type sex
['Ernst Jacobsson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Ernst_Jacobsson property:gender ?g . ?g rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5826502
P84
Q16970
USER
What was Ernst Jacobsson an architect of ?
(c(Q16970),P84,Q5826502)
action filter_type
action find_reverse
entity Q5826502
relation P84
type Q16970
[{'concept': 'Q16970'}, 'P84', 'Q5826502']
SELECT DISTINCT ?e WHERE { ?e property:P84 resource:Q5826502 . ?e rdf:type ontology:Q16970 }
Ernst Jacobsson
action filter_type
action find_reverse
entity Ernst Jacobsson
relation architect
type church
[{'concept': 'church'}, 'architect', 'Ernst Jacobsson']
SELECT DISTINCT ?e WHERE { ?e property:architect resource:Ernst_Jacobsson . ?e rdf:type ontology:church }
[]
church
Q1742892
SYSTEM
Jokkmokk New Church
Q1742892
(c(Q16970),P84,Q5826502)
action filter_type
action find_reverse
entity Q5826502
relation P84
type Q16970
[ANSWER] Ernst Jacobsson was an architect
[{'concept': 'Q16970'}, 'P84', 'Q5826502']
SELECT DISTINCT ?e WHERE { ?e property:P84 resource:Q5826502 . ?e rdf:type ontology:Q16970 }
Jokkmokk New Church
Jokkmokk New Church Ernst Jacobsson was an architect
Jokkmokk New Church
action filter_type
action find_reverse
entity Ernst Jacobsson
relation architect
type church
[{'concept': 'church'}, 'architect', 'Ernst Jacobsson']
SELECT DISTINCT ?e WHERE { ?e property:architect resource:Ernst_Jacobsson . ?e rdf:type ontology:church }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5826502
P800
Q16970
USER
Which church is notable work of that person ?
(Q1742892,P800,c(Q16970))
action filter_type
action find
entity Q5826502
relation P800
type Q16970
['Q1742892', 'P800', {'concept': 'Q16970'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q16970 . resource:Q5826502 property:P800 ?u }
Ernst Jacobsson
action filter_type
action find
entity Ernst Jacobsson
relation notable work
type church
['Jokkmokk New Church', 'notable work', {'concept': 'church'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:church . resource:Ernst_Jacobsson property:notable_work ?u }
[]
church
Q1742892
SYSTEM
Jokkmokk New Church
Q1742892
(Q1742892,P800,c(Q16970))
action filter_type
action find
entity Q5826502
relation P800
type Q16970
[ANSWER] is notable work of that person
['Q1742892', 'P800', {'concept': 'Q16970'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q16970 . resource:Q5826502 property:P800 ?u }
Jokkmokk New Church
Jokkmokk New Church is notable work of that person
Jokkmokk New Church
action filter_type
action find
entity Ernst Jacobsson
relation notable work
type church
['Jokkmokk New Church', 'notable work', {'concept': 'church'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:church . resource:Ernst_Jacobsson property:notable_work ?u }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P186
Q79529 Q8063 Q16970
USER
Which churches are constructed atleast 2 chemical substances or rocks ?
(c(Q16970),P186,c(Q79529)|c(Q8063))
action atleast
action union
action find_tuple_counts
relation P186
type Q16970
type Q79529
action find_tuple_counts
relation P186
type Q16970
type Q8063
value 2
[{'concept': 'Q16970'}, 'P186', [{'concept': 'Q79529'}, {'concept': 'Q8063'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) ?w WHERE { { ?w rdf:type ontology:Q16970 . ?k rdf:type ontology:Q79529 . ?w property:P186 ?k } UNION { ?w property:P186 ?k . ?w rdf:type ontology:Q16970 . ?k rdf:type ontology:Q8063 } } GROUP BY ?w } . FILTER ( ?b >= 2 ) }
action atleast
action union
action find_tuple_counts
relation material used
type church
type chemical substance
action find_tuple_counts
relation material used
type church
type rock
value 2
[{'concept': 'church'}, 'material used', [{'concept': 'chemical substance'}, {'concept': 'rock'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) ?w WHERE { { ?w rdf:type ontology:church . ?k rdf:type ontology:chemical_substance . ?w property:material_used ?k } UNION { ?w property:material_used ?k . ?w rdf:type ontology:church . ?k rdf:type ontology:rock } } GROUP BY ?w } . FILTER ( ?b >= 2 ) }
[]
chemical substance rock church
Q7592338
SYSTEM
St Andrew's Church, Cranford
Q7592338
(c(Q16970),P186,c(Q79529)|c(Q8063))
action atleast
action union
action find_tuple_counts
relation P186
type Q16970
type Q79529
action find_tuple_counts
relation P186
type Q16970
type Q8063
value 2
[ANSWER] is constructed atleast 2 chemical substances or rocks
[{'concept': 'Q16970'}, 'P186', [{'concept': 'Q79529'}, {'concept': 'Q8063'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) ?w WHERE { { ?w rdf:type ontology:Q16970 . ?k rdf:type ontology:Q79529 . ?w property:P186 ?k } UNION { ?w property:P186 ?k . ?w rdf:type ontology:Q16970 . ?k rdf:type ontology:Q8063 } } GROUP BY ?w } . FILTER ( ?b >= 2 ) }
St Andrew's Church, Cranford
St Andrew's Church, Cranford is constructed atleast 2 chemical substances or rocks
St Andrew's Church, Cranford
action atleast
action union
action find_tuple_counts
relation material used
type church
type chemical substance
action find_tuple_counts
relation material used
type church
type rock
value 2
[{'concept': 'church'}, 'material used', [{'concept': 'chemical substance'}, {'concept': 'rock'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) ?w WHERE { { ?w rdf:type ontology:church . ?k rdf:type ontology:chemical_substance . ?w property:material_used ?k } UNION { ?w property:material_used ?k . ?w rdf:type ontology:church . ?k rdf:type ontology:rock } } GROUP BY ?w } . FILTER ( ?b >= 2 ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q7592338 Q145
P17
Q15617994
USER
Is that church present in United Kingdom ?
(Q7592338,P17,Q145)
action is_in
entity Q145
action find
entity Q7592338
relation P17
['Q7592338', 'P17', 'Q145']
ASK WHERE { resource:Q7592338 property:P17 resource:Q145 }
St Andrew's Church, Cranford United Kingdom
action is_in
entity United Kingdom
action find
entity St Andrew's Church, Cranford
relation country
["St Andrew's Church, Cranford", 'country', 'United Kingdom']
ASK WHERE { resource:St_Andrew's_Church,_Cranford property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q7592338,P17,Q145)
action is_in
entity Q145
action find
entity Q7592338
relation P17
[ANSWER]
['Q7592338', 'P17', 'Q145']
ASK WHERE { resource:Q7592338 property:P17 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity St Andrew's Church, Cranford
relation country
["St Andrew's Church, Cranford", 'country', 'United Kingdom']
ASK WHERE { resource:St_Andrew's_Church,_Cranford property:country resource:United_Kingdom }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1742892 Q34 Q256868
P17
Q15617994
USER
Is Jokkmokk New Church situated in Sweden and Aholming ?
(Q1742892,P17,Q34) (Q1742892,P17,Q256868)
action is_in
entity Q1742892
action intersection
action find_reverse
entity Q34
relation P17
action find_reverse
entity Q256868
relation P17
['Q1742892', 'P17', 'Q34'] ['Q1742892', 'P17', 'Q256868']
ASK WHERE { resource:Q1742892 property:P17 resource:Q34 . resource:Q1742892 property:P17 resource:Q256868 }
Jokkmokk New Church Sweden Aholming
action is_in
entity Jokkmokk New Church
action intersection
action find_reverse
entity Sweden
relation country
action find_reverse
entity Aholming
relation country
['Jokkmokk New Church', 'country', 'Sweden'] ['Jokkmokk New Church', 'country', 'Aholming']
ASK WHERE { resource:Jokkmokk_New_Church property:country resource:Sweden . resource:Jokkmokk_New_Church property:country resource:Aholming }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q1742892,P17,Q34) (Q1742892,P17,Q256868)
action is_in
entity Q1742892
action intersection
action find_reverse
entity Q34
relation P17
action find_reverse
entity Q256868
relation P17
[ANSWER]
['Q1742892', 'P17', 'Q34'] ['Q1742892', 'P17', 'Q256868']
ASK WHERE { resource:Q1742892 property:P17 resource:Q34 . resource:Q1742892 property:P17 resource:Q256868 }
YES and NO respectively
action is_in
entity Jokkmokk New Church
action intersection
action find_reverse
entity Sweden
relation country
action find_reverse
entity Aholming
relation country
['Jokkmokk New Church', 'country', 'Sweden'] ['Jokkmokk New Church', 'country', 'Aholming']
ASK WHERE { resource:Jokkmokk_New_Church property:country resource:Sweden . resource:Jokkmokk_New_Church property:country resource:Aholming }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q1742892
P800 P21
Q502895
USER
Which people have Jokkmokk New Church as a notable work and have the gender as male ?
AND((c(Q502895),P800,Q1742892), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1742892
relation P800
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P800', 'Q1742892'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?j WHERE { ?j property:P800 resource:Q1742892 . ?j property:P21 resource:Q6581097 . ?j rdf:type ontology:Q502895 }
male Jokkmokk New Church
action filter_type
action intersection
action find_reverse
entity Jokkmokk New Church
relation notable work
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'notable work', 'Jokkmokk New Church'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?j WHERE { ?j property:notable_work resource:Jokkmokk_New_Church . ?j property:gender resource:male . ?j rdf:type ontology:common_name }
[]
common name
Q5826502
SYSTEM
Ernst Jacobsson
Q5826502
AND((c(Q502895),P800,Q1742892), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1742892
relation P800
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Jokkmokk New Church as a notable work and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P800', 'Q1742892'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?j WHERE { ?j property:P800 resource:Q1742892 . ?j property:P21 resource:Q6581097 . ?j rdf:type ontology:Q502895 }
Ernst Jacobsson
Ernst Jacobsson have Jokkmokk New Church as a notable work and have the gender as male
Ernst Jacobsson
action filter_type
action intersection
action find_reverse
entity Jokkmokk New Church
relation notable work
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'notable work', 'Jokkmokk New Church'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?j WHERE { ?j property:notable_work resource:Jokkmokk_New_Church . ?j property:gender resource:male . ?j rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can around 3293 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3293
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:P1303 ?i . ?i rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 } GROUP BY ?i } . FILTER ( ?h = 3293 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3293
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:instrument ?i . ?i rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name } GROUP BY ?i } . FILTER ( ?h = 3293 ) }
[]
musical instrument common name
SYSTEM
3
Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3293
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:P1303 ?i . ?i rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 } GROUP BY ?i } . FILTER ( ?h = 3293 ) }
violin organ drum kit
3
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3293
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:instrument ?i . ?i rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name } GROUP BY ?i } . FILTER ( ?h = 3293 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q650678
P138
Q56061 Q15619164 Q16970
USER
Which churches are the eponym of more number of administrative territories or abstract beings than Mantua Cathedral ?
(c(Q16970),P138,c(Q56061)|c(Q15619164))
action greater
action union
action find_tuple_counts
relation P138
type Q16970
type Q56061
action find_tuple_counts
relation P138
type Q16970
type Q15619164
action count
action filter_multi_types
action find
entity Q650678
relation P138
type Q56061
type Q15619164
[{'concept': 'Q16970'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q15619164'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?k ) WHERE { { ?e property:P138 ?s . ?e rdf:type ontology:Q16970 . ?s rdf:type ontology:Q56061 } UNION { ?e property:P138 ?s . ?e rdf:type ontology:Q16970 . ?s rdf:type ontology:Q15619164 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { { ?j rdf:type ontology:Q15619164 } UNION { ?j rdf:type ontology:Q56061 } } . resource:Q650678 property:P138 ?j } } . FILTER ( ?k > ?b ) }
Mantua Cathedral
action greater
action union
action find_tuple_counts
relation named after
type church
type administrative territorial entity
action find_tuple_counts
relation named after
type church
type abstract being
action count
action filter_multi_types
action find
entity Mantua Cathedral
relation named after
type administrative territorial entity
type abstract being
[{'concept': 'church'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'abstract being'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?k ) WHERE { { ?e property:named_after ?s . ?e rdf:type ontology:church . ?s rdf:type ontology:administrative_territorial_entity } UNION { ?e property:named_after ?s . ?e rdf:type ontology:church . ?s rdf:type ontology:abstract_being } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { { ?j rdf:type ontology:abstract_being } UNION { ?j rdf:type ontology:administrative_territorial_entity } } . resource:Mantua_Cathedral property:named_after ?j } } . FILTER ( ?k > ?b ) }
[]
administrative territorial entity abstract being church
Q194474 Q1087295 Q15958499
SYSTEM
Cathedral of Christ the Saviour, Christ Church, Parish Church of the Transfiguration
Q1087295 Q15958499 Q1087267 Q15958501 Q153437 Q194474
(c(Q16970),P138,c(Q56061)|c(Q15619164))
action greater
action union
action find_tuple_counts
relation P138
type Q16970
type Q56061
action find_tuple_counts
relation P138
type Q16970
type Q15619164
action count
action filter_multi_types
action find
entity Q650678
relation P138
type Q56061
type Q15619164
[ANSWERS] are the eponym of more number of administrative territories or abstract beings than Mantua Cathedral
[{'concept': 'Q16970'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q15619164'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?k ) WHERE { { ?e property:P138 ?s . ?e rdf:type ontology:Q16970 . ?s rdf:type ontology:Q56061 } UNION { ?e property:P138 ?s . ?e rdf:type ontology:Q16970 . ?s rdf:type ontology:Q15619164 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { { ?j rdf:type ontology:Q15619164 } UNION { ?j rdf:type ontology:Q56061 } } . resource:Q650678 property:P138 ?j } } . FILTER ( ?k > ?b ) }
Christ Church Parish Church of the Transfiguration Christuskirche Old Church of the Transfiguration Altenberger Dom Cathedral of Christ the Saviour
Cathedral of Christ the Saviour, Christ Church and Parish Church of the Transfiguration are the eponym of more number of administrative territories or abstract beings than Mantua Cathedral
Cathedral of Christ the Saviour Christ Church Parish Church of the Transfiguration
action greater
action union
action find_tuple_counts
relation named after
type church
type administrative territorial entity
action find_tuple_counts
relation named after
type church
type abstract being
action count
action filter_multi_types
action find
entity Mantua Cathedral
relation named after
type administrative territorial entity
type abstract being
[{'concept': 'church'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'abstract being'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?k ) WHERE { { ?e property:named_after ?s . ?e rdf:type ontology:church . ?s rdf:type ontology:administrative_territorial_entity } UNION { ?e property:named_after ?s . ?e rdf:type ontology:church . ?s rdf:type ontology:abstract_being } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { { ?j rdf:type ontology:abstract_being } UNION { ?j rdf:type ontology:administrative_territorial_entity } } . resource:Mantua_Cathedral property:named_after ?j } } . FILTER ( ?k > ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q16857088
P138
Q56061 Q15619164 Q16970
USER
And how about St. Martin?
(c(Q16970),P138,c(Q56061)|c(Q15619164))
action greater
action union
action find_tuple_counts
relation P138
type Q16970
type Q56061
action find_tuple_counts
relation P138
type Q16970
type Q15619164
action count
action filter_multi_types
action find
entity Q16857088
relation P138
type Q56061
type Q15619164
[{'concept': 'Q16970'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q15619164'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Q16857088 property:P138 ?q . { { ?q rdf:type ontology:Q56061 } UNION { ?q rdf:type ontology:Q15619164 } } } } . FILTER ( ?a > ?r ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) ?u WHERE { ?d rdf:type ?n . VALUES ( ?n ) { ( ontology:Q15619164 ) ( ontology:Q56061 ) } } GROUP BY ?u } }
St. Martin
action greater
action union
action find_tuple_counts
relation named after
type church
type administrative territorial entity
action find_tuple_counts
relation named after
type church
type abstract being
action count
action filter_multi_types
action find
entity St. Martin
relation named after
type administrative territorial entity
type abstract being
[{'concept': 'church'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'abstract being'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:St._Martin property:named_after ?q . { { ?q rdf:type ontology:administrative_territorial_entity } UNION { ?q rdf:type ontology:abstract_being } } } } . FILTER ( ?a > ?r ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) ?u WHERE { ?d rdf:type ?n . VALUES ( ?n ) { ( ontology:abstract_being ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?u } }
[]
administrative territorial entity abstract being church
Q194474 Q1087295 Q15958499
SYSTEM
Cathedral of Christ the Saviour, Christ Church, Parish Church of the Transfiguration
Q1087295 Q15958499 Q1087267 Q15958501 Q153437 Q194474
(c(Q16970),P138,c(Q56061)|c(Q15619164))
action greater
action union
action find_tuple_counts
relation P138
type Q16970
type Q56061
action find_tuple_counts
relation P138
type Q16970
type Q15619164
action count
action filter_multi_types
action find
entity Q16857088
relation P138
type Q56061
type Q15619164
[ANSWERS]
[{'concept': 'Q16970'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q15619164'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Q16857088 property:P138 ?q . { { ?q rdf:type ontology:Q56061 } UNION { ?q rdf:type ontology:Q15619164 } } } } . FILTER ( ?a > ?r ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) ?u WHERE { ?d rdf:type ?n . VALUES ( ?n ) { ( ontology:Q15619164 ) ( ontology:Q56061 ) } } GROUP BY ?u } }
Christ Church Parish Church of the Transfiguration Christuskirche Old Church of the Transfiguration Altenberger Dom Cathedral of Christ the Saviour
Cathedral of Christ the Saviour Christ Church Parish Church of the Transfiguration
action greater
action union
action find_tuple_counts
relation named after
type church
type administrative territorial entity
action find_tuple_counts
relation named after
type church
type abstract being
action count
action filter_multi_types
action find
entity St. Martin
relation named after
type administrative territorial entity
type abstract being
[{'concept': 'church'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'abstract being'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:St._Martin property:named_after ?q . { { ?q rdf:type ontology:administrative_territorial_entity } UNION { ?q rdf:type ontology:abstract_being } } } } . FILTER ( ?a > ?r ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) ?u WHERE { ?d rdf:type ?n . VALUES ( ?n ) { ( ontology:abstract_being ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?u } }
[]