Simple Question (Direct)
Simple Question
Q351927
P27
Q3024240
USER
Which former country does Vyacheslav von Plehve belong to ?
(Q351927,P27,c(Q3024240))
action filter_type
action find
entity Q351927
relation P27
type Q3024240
['Q351927', 'P27', {'concept': 'Q3024240'}]
SELECT DISTINCT ?b WHERE { resource:Q351927 property:P27 ?b . ?b rdf:type ontology:Q3024240 }
Vyacheslav von Plehve
action filter_type
action find
entity Vyacheslav von Plehve
relation country of citizenship
type former country
['Vyacheslav von Plehve', 'country of citizenship', {'concept': 'former country'}]
SELECT DISTINCT ?b WHERE { resource:Vyacheslav_von_Plehve property:country_of_citizenship ?b . ?b rdf:type ontology:former_country }
[]
former country
Q34266
SYSTEM
Russian Empire
Q34266
(Q351927,P27,c(Q3024240))
action filter_type
action find
entity Q351927
relation P27
type Q3024240
Vyacheslav von Plehve belongs the [ANSWER]
['Q351927', 'P27', {'concept': 'Q3024240'}]
SELECT DISTINCT ?b WHERE { resource:Q351927 property:P27 ?b . ?b rdf:type ontology:Q3024240 }
Russian Empire
Vyacheslav von Plehve belongs the Russian Empire
Russian Empire
action filter_type
action find
entity Vyacheslav von Plehve
relation country of citizenship
type former country
['Vyacheslav von Plehve', 'country of citizenship', {'concept': 'former country'}]
SELECT DISTINCT ?b WHERE { resource:Vyacheslav_von_Plehve property:country_of_citizenship ?b . ?b rdf:type ontology:former_country }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q351927
P166
Q618779
USER
Which awards were Vyacheslav von Plehve awarded with ?
(Q351927,P166,c(Q618779))
action filter_type
action find
entity Q351927
relation P166
type Q618779
['Q351927', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?w WHERE { resource:Q351927 property:P166 ?w . ?w rdf:type ontology:Q618779 }
Vyacheslav von Plehve
action filter_type
action find
entity Vyacheslav von Plehve
relation award received
type award
['Vyacheslav von Plehve', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?w WHERE { resource:Vyacheslav_von_Plehve property:award_received ?w . ?w rdf:type ontology:award }
[]
award
Q15972369 Q392204 Q19344746
SYSTEM
Order of Saint Anna, 1st class, Order of the White Eagle, Order of Saint Stanislaus, 1st class
Q392204 Q15972369 Q19344746 Q21148942
(Q351927,P166,c(Q618779))
action filter_type
action find
entity Q351927
relation P166
type Q618779
[ANSWERS]
['Q351927', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?w WHERE { resource:Q351927 property:P166 ?w . ?w rdf:type ontology:Q618779 }
Order of the White Eagle Order of Saint Anna, 1st class Order of Saint Stanislaus, 1st class Order of St. Vladimir, 2nd class
Vyacheslav von Plehve were awarded the Order of Saint Anna, 1st class, Order of the White Eagle and Order of Saint Stanislaus, 1st class
Order of Saint Anna, 1st class Order of the White Eagle Order of Saint Stanislaus, 1st class
action filter_type
action find
entity Vyacheslav von Plehve
relation award received
type award
['Vyacheslav von Plehve', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?w WHERE { resource:Vyacheslav_von_Plehve property:award_received ?w . ?w rdf:type ontology:award }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q351927
P21
Q290
USER
What is the sex of that person ?
(Q15972369,P21,c(Q290)) (Q392204,P21,c(Q290)) (Q19344746,P21,c(Q290))
action filter_type
action find
entity Q351927
relation P21
type Q290
['Q15972369', 'P21', {'concept': 'Q290'}] ['Q392204', 'P21', {'concept': 'Q290'}] ['Q19344746', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q351927 property:P21 ?k . ?k rdf:type ontology:Q290 }
Vyacheslav von Plehve
action filter_type
action find
entity Vyacheslav von Plehve
relation gender
type sex
['Order of Saint Anna, 1st class', 'gender', {'concept': 'sex'}] ['Order of the White Eagle', 'gender', {'concept': 'sex'}] ['Order of Saint Stanislaus, 1st class', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Vyacheslav_von_Plehve property:gender ?k . ?k rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q15972369,P21,c(Q290)) (Q392204,P21,c(Q290)) (Q19344746,P21,c(Q290))
action filter_type
action find
entity Q351927
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q15972369', 'P21', {'concept': 'Q290'}] ['Q392204', 'P21', {'concept': 'Q290'}] ['Q19344746', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q351927 property:P21 ?k . ?k rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Vyacheslav von Plehve
relation gender
type sex
['Order of Saint Anna, 1st class', 'gender', {'concept': 'sex'}] ['Order of the White Eagle', 'gender', {'concept': 'sex'}] ['Order of Saint Stanislaus, 1st class', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Vyacheslav_von_Plehve property:gender ?k . ?k rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P21
Q2591905 Q310890
USER
How many Hasidic dynasties or monotypic taxons have the gender as that sex ?
(c(Q2591905),P21,Q6581097) (c(Q310890),P21,Q6581097) (c(Q2591905),P21,Q6581097) (c(Q310890),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q2591905
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q310890
[{'concept': 'Q2591905'}, 'P21', 'Q6581097'] [{'concept': 'Q310890'}, 'P21', 'Q6581097'] [{'concept': 'Q2591905'}, 'P21', 'Q6581097'] [{'concept': 'Q310890'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { VALUES ( ?o ) { ( ontology:Q2591905 ) ( ontology:Q310890 ) } . ?z rdf:type ?o }
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type Hasidic dynasty
action filter_type
action find_reverse
entity male
relation gender
type monotypic taxon
[{'concept': 'Hasidic dynasty'}, 'gender', 'male'] [{'concept': 'monotypic taxon'}, 'gender', 'male'] [{'concept': 'Hasidic dynasty'}, 'gender', 'male'] [{'concept': 'monotypic taxon'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { VALUES ( ?o ) { ( ontology:Hasidic_dynasty ) ( ontology:monotypic_taxon ) } . ?z rdf:type ?o }
[]
Hasidic dynasty monotypic taxon
SYSTEM
4
Q7499581 Q1062425 Q15650061 Q24261514
(c(Q2591905),P21,Q6581097) (c(Q310890),P21,Q6581097) (c(Q2591905),P21,Q6581097) (c(Q310890),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q2591905
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q310890
[ANSWER]
[{'concept': 'Q2591905'}, 'P21', 'Q6581097'] [{'concept': 'Q310890'}, 'P21', 'Q6581097'] [{'concept': 'Q2591905'}, 'P21', 'Q6581097'] [{'concept': 'Q310890'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { VALUES ( ?o ) { ( ontology:Q2591905 ) ( ontology:Q310890 ) } . ?z rdf:type ?o }
Shlomo Goldman Chantek Abang Mordekhai ben Gedaly
4
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type Hasidic dynasty
action filter_type
action find_reverse
entity male
relation gender
type monotypic taxon
[{'concept': 'Hasidic dynasty'}, 'gender', 'male'] [{'concept': 'monotypic taxon'}, 'gender', 'male'] [{'concept': 'Hasidic dynasty'}, 'gender', 'male'] [{'concept': 'monotypic taxon'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { VALUES ( ?o ) { ( ontology:Hasidic_dynasty ) ( ontology:monotypic_taxon ) } . ?z rdf:type ?o }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q34266
P36
Q56061
USER
Which administrative territory is associated to Russian Empire as the capital ?
(Q34266,P36,c(Q56061))
action filter_type
action find
entity Q34266
relation P36
type Q56061
['Q34266', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q34266 property:P36 ?y . ?y rdf:type ontology:Q56061 }
Russian Empire
action filter_type
action find
entity Russian Empire
relation capital
type administrative territorial entity
['Russian Empire', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Russian_Empire property:capital ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q649
SYSTEM
Moscow
Q649
(Q34266,P36,c(Q56061))
action filter_type
action find
entity Q34266
relation P36
type Q56061
[ANSWER] is associated to Russian Empire as the capital
['Q34266', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q34266 property:P36 ?y . ?y rdf:type ontology:Q56061 }
Moscow
Moscow is associated to Russian Empire as the capital
Moscow
action filter_type
action find
entity Russian Empire
relation capital
type administrative territorial entity
['Russian Empire', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Russian_Empire property:capital ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1027
Q502895 Q48204 Q618779
USER
Which awards are granted by max number of people and voluntary associations ?
(c(Q618779),P1027,c(Q502895)|c(Q48204))
action argmax
action union
action find_tuple_counts
relation P1027
type Q618779
type Q502895
action find_tuple_counts
relation P1027
type Q618779
type Q48204
[{'concept': 'Q618779'}, 'P1027', [{'concept': 'Q502895'}, {'concept': 'Q48204'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?p WHERE { { ?y rdf:type ontology:Q502895 . ?p rdf:type ontology:Q618779 . ?p property:P1027 ?y } UNION { ?p property:P1027 ?y . ?p rdf:type ontology:Q618779 . ?y rdf:type ontology:Q48204 } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) ?m WHERE { ?u rdf:type ?s . VALUES ( ?s ) { ( ontology:Q502895 ) ( ontology:Q48204 ) } } GROUP BY ?m } . FILTER ( ?w = ?d ) }
action argmax
action union
action find_tuple_counts
relation conferred by
type award
type common name
action find_tuple_counts
relation conferred by
type award
type voluntary association
[{'concept': 'award'}, 'conferred by', [{'concept': 'common name'}, {'concept': 'voluntary association'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?p WHERE { { ?y rdf:type ontology:common_name . ?p rdf:type ontology:award . ?p property:conferred_by ?y } UNION { ?p property:conferred_by ?y . ?p rdf:type ontology:award . ?y rdf:type ontology:voluntary_association } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) ?m WHERE { ?u rdf:type ?s . VALUES ( ?s ) { ( ontology:common_name ) ( ontology:voluntary_association ) } } GROUP BY ?m } . FILTER ( ?w = ?d ) }
[]
common name voluntary association award
Q1026417 Q1043985 Q5375541
SYSTEM
Caldecott Medal, Carnegie Medal, Encore Award
Q622813 Q3405510 Q5375541 Q22074510 Q17010358 Q1472266 Q15843622 Q1320666 Q1026417 Q1043985 Q16209317 Q699538
(c(Q618779),P1027,c(Q502895)|c(Q48204))
action argmax
action union
action find_tuple_counts
relation P1027
type Q618779
type Q502895
action find_tuple_counts
relation P1027
type Q618779
type Q48204
[ANSWERS] are granted by max number of people and voluntary associations
[{'concept': 'Q618779'}, 'P1027', [{'concept': 'Q502895'}, {'concept': 'Q48204'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?p WHERE { { ?y rdf:type ontology:Q502895 . ?p rdf:type ontology:Q618779 . ?p property:P1027 ?y } UNION { ?p property:P1027 ?y . ?p rdf:type ontology:Q618779 . ?y rdf:type ontology:Q48204 } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) ?m WHERE { ?u rdf:type ?s . VALUES ( ?s ) { ( ontology:Q502895 ) ( ontology:Q48204 ) } } GROUP BY ?m } . FILTER ( ?w = ?d ) }
Newbery Medal Prix de l'essai Encore Award Leo Strauss Prize Producers Guild of America Award for Best Episodic Drama Kate Greenaway Medal SS Honor Dagger Frisch Medal Caldecott Medal Carnegie Medal Courage Award for the Arts SS-Ehrenring
Caldecott Medal, Carnegie Medal and Encore Award are granted by max number of people and voluntary associations
Caldecott Medal Carnegie Medal Encore Award
action argmax
action union
action find_tuple_counts
relation conferred by
type award
type common name
action find_tuple_counts
relation conferred by
type award
type voluntary association
[{'concept': 'award'}, 'conferred by', [{'concept': 'common name'}, {'concept': 'voluntary association'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?p WHERE { { ?y rdf:type ontology:common_name . ?p rdf:type ontology:award . ?p property:conferred_by ?y } UNION { ?p property:conferred_by ?y . ?p rdf:type ontology:award . ?y rdf:type ontology:voluntary_association } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) ?m WHERE { ?u rdf:type ?s . VALUES ( ?s ) { ( ontology:common_name ) ( ontology:voluntary_association ) } } GROUP BY ?m } . FILTER ( ?w = ?d ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q2272
P559
Q56061 Q628179 Q728937
USER
Which administrative territories are a terminus for greater number of trails or railroad lines than Skien ?
(c(Q628179)|c(Q728937),P559,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q628179
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
action count
action filter_multi_types
action find_reverse
entity Q2272
relation P559
type Q628179
type Q728937
[[{'concept': 'Q628179'}, {'concept': 'Q728937'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?y ) WHERE { VALUES ( ?h ) { ( ontology:Q628179 ) ( ontology:Q728937 ) } . ?p rdf:type ?h } GROUP BY ?x } . FILTER ( ?y > ?k ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { ?s property:P559 resource:Q2272 . { { ?s rdf:type ontology:Q628179 } UNION { ?s rdf:type ontology:Q728937 } } } } }
Skien
action greater
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type trail
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
action count
action filter_multi_types
action find_reverse
entity Skien
relation terminus
type trail
type railroad line
[[{'concept': 'trail'}, {'concept': 'railroad line'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?y ) WHERE { VALUES ( ?h ) { ( ontology:trail ) ( ontology:railroad_line ) } . ?p rdf:type ?h } GROUP BY ?x } . FILTER ( ?y > ?k ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { ?s property:terminus resource:Skien . { { ?s rdf:type ontology:trail } UNION { ?s rdf:type ontology:railroad_line } } } } }
[]
administrative territorial entity trail railroad line
Q727 Q33959 Q12191
SYSTEM
Amsterdam, Nice, Nantes
Q3112707 Q837211 Q2814 Q82490 Q172157 Q796625 Q130191 Q727 Q7986745 Q28327 Q33959 Q586 Q1017331 Q1020951 Q257034 Q1571025 Q856860 Q517381 Q1248150 Q1781385 Q375905 Q643160 Q17872 Q129610 Q766594 Q12191 Q237253 Q485186 Q1729 Q865872
(c(Q628179)|c(Q728937),P559,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q628179
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
action count
action filter_multi_types
action find_reverse
entity Q2272
relation P559
type Q628179
type Q728937
[ANSWERS] are a terminus for greater number of trails or railroad lines than Skien
[[{'concept': 'Q628179'}, {'concept': 'Q728937'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?y ) WHERE { VALUES ( ?h ) { ( ontology:Q628179 ) ( ontology:Q728937 ) } . ?p rdf:type ?h } GROUP BY ?x } . FILTER ( ?y > ?k ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { ?s property:P559 resource:Q2272 . { { ?s rdf:type ontology:Q628179 } UNION { ?s rdf:type ontology:Q728937 } } } } }
Sedbury Scheveningen Halle (Saale) Lyme Regis Winchester Edale Norwich Amsterdam West Vale Örnsköldsvik Nice Bonn Westport, County Mayo Ilkley Kemble Mullan Hammond Dillenburg Wallsend Björkhagen Deerfield Farnham Alice Springs Galway Bewdley Nantes Great Yarmouth Key West Erfurt Birstall
Amsterdam, Nice and Nantes are a terminus for greater number of trails or railroad lines than Skien
Amsterdam Nice Nantes
action greater
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type trail
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
action count
action filter_multi_types
action find_reverse
entity Skien
relation terminus
type trail
type railroad line
[[{'concept': 'trail'}, {'concept': 'railroad line'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?y ) WHERE { VALUES ( ?h ) { ( ontology:trail ) ( ontology:railroad_line ) } . ?p rdf:type ?h } GROUP BY ?x } . FILTER ( ?y > ?k ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { ?s property:terminus resource:Skien . { { ?s rdf:type ontology:trail } UNION { ?s rdf:type ontology:railroad_line } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q671348
P559
Q56061 Q628179 Q728937
USER
And what about Worthing?
(c(Q628179)|c(Q728937),P559,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q628179
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
action count
action filter_multi_types
action find_reverse
entity Q671348
relation P559
type Q628179
type Q728937
[[{'concept': 'Q628179'}, {'concept': 'Q728937'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?o ) WHERE { VALUES ( ?r ) { ( ontology:Q628179 ) ( ontology:Q728937 ) } . ?k rdf:type ?r } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { { ?s rdf:type ?z . VALUES ( ?z ) { ( ontology:Q628179 ) ( ontology:Q728937 ) } } . ?s property:P559 resource:Q671348 } } . FILTER ( ?o > ?t ) }
Worthing
action greater
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type trail
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
action count
action filter_multi_types
action find_reverse
entity Worthing
relation terminus
type trail
type railroad line
[[{'concept': 'trail'}, {'concept': 'railroad line'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?o ) WHERE { VALUES ( ?r ) { ( ontology:trail ) ( ontology:railroad_line ) } . ?k rdf:type ?r } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { { ?s rdf:type ?z . VALUES ( ?z ) { ( ontology:trail ) ( ontology:railroad_line ) } } . ?s property:terminus resource:Worthing } } . FILTER ( ?o > ?t ) }
[]
administrative territorial entity trail railroad line
Q727 Q33959 Q12191
SYSTEM
Amsterdam, Nice, Nantes
Q3112707 Q837211 Q2814 Q82490 Q172157 Q796625 Q130191 Q727 Q7986745 Q28327 Q33959 Q586 Q1017331 Q1020951 Q257034 Q1571025 Q856860 Q517381 Q1248150 Q1781385 Q375905 Q643160 Q17872 Q129610 Q766594 Q12191 Q237253 Q485186 Q1729 Q865872
(c(Q628179)|c(Q728937),P559,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q628179
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
action count
action filter_multi_types
action find_reverse
entity Q671348
relation P559
type Q628179
type Q728937
[ANSWERS]
[[{'concept': 'Q628179'}, {'concept': 'Q728937'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?o ) WHERE { VALUES ( ?r ) { ( ontology:Q628179 ) ( ontology:Q728937 ) } . ?k rdf:type ?r } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { { ?s rdf:type ?z . VALUES ( ?z ) { ( ontology:Q628179 ) ( ontology:Q728937 ) } } . ?s property:P559 resource:Q671348 } } . FILTER ( ?o > ?t ) }
Sedbury Scheveningen Halle (Saale) Lyme Regis Winchester Edale Norwich Amsterdam West Vale Örnsköldsvik Nice Bonn Westport, County Mayo Ilkley Kemble Mullan Hammond Dillenburg Wallsend Björkhagen Deerfield Farnham Alice Springs Galway Bewdley Nantes Great Yarmouth Key West Erfurt Birstall
Amsterdam Nice Nantes
action greater
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type trail
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
action count
action filter_multi_types
action find_reverse
entity Worthing
relation terminus
type trail
type railroad line
[[{'concept': 'trail'}, {'concept': 'railroad line'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?o ) WHERE { VALUES ( ?r ) { ( ontology:trail ) ( ontology:railroad_line ) } . ?k rdf:type ?r } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { { ?s rdf:type ?z . VALUES ( ?z ) { ( ontology:trail ) ( ontology:railroad_line ) } } . ?s property:terminus resource:Worthing } } . FILTER ( ?o > ?t ) }
[]