Simple Question (Direct)
Simple Question
Q3450880
P47
Q79007
USER
Which streets share border with rue de Miromesnil ?
(Q3450880,P47,c(Q79007))
action filter_type
action find
entity Q3450880
relation P47
type Q79007
['Q3450880', 'P47', {'concept': 'Q79007'}]
SELECT DISTINCT ?a WHERE { resource:Q3450880 property:P47 ?a . ?a rdf:type ontology:Q79007 }
rue de Miromesnil
action filter_type
action find
entity rue de Miromesnil
relation shares border with
type street
['rue de Miromesnil', 'shares border with', {'concept': 'street'}]
SELECT DISTINCT ?a WHERE { resource:rue_de_Miromesnil property:shares_border_with ?a . ?a rdf:type ontology:street }
[]
street
Q895076 Q2921874 Q2921974
SYSTEM
boulevard Haussmann, boulevard Malesherbes, boulevard de Courcelles
Q2921874 Q2921974 Q2873927 Q895076
(Q3450880,P47,c(Q79007))
action filter_type
action find
entity Q3450880
relation P47
type Q79007
[ANSWERS] share border with rue de Miromesnil
['Q3450880', 'P47', {'concept': 'Q79007'}]
SELECT DISTINCT ?a WHERE { resource:Q3450880 property:P47 ?a . ?a rdf:type ontology:Q79007 }
boulevard Malesherbes boulevard de Courcelles avenue de Messine boulevard Haussmann
Boulevard Haussmann, boulevard Malesherbes and boulevard de Courcelles share border with rue de Miromesnil
boulevard Haussmann boulevard Malesherbes boulevard de Courcelles
action filter_type
action find
entity rue de Miromesnil
relation shares border with
type street
['rue de Miromesnil', 'shares border with', {'concept': 'street'}]
SELECT DISTINCT ?a WHERE { resource:rue_de_Miromesnil property:shares_border_with ?a . ?a rdf:type ontology:street }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2921874
P138
Q502895
USER
Which person is the etymology of that street ?
(Q2921874,P138,c(Q502895))
action filter_type
action find
entity Q2921874
relation P138
type Q502895
['Q2921874', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q2921874 property:P138 ?j . ?j rdf:type ontology:Q502895 }
boulevard Malesherbes
action filter_type
action find
entity boulevard Malesherbes
relation named after
type common name
['boulevard Malesherbes', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:boulevard_Malesherbes property:named_after ?j . ?j rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q2921974
SYSTEM
Did you mean boulevard de Courcelles ?
Q895076 Q2921874 Q2921974
(Q895076,P138,c(Q502895)) (Q2921874,P138,c(Q502895)) (Q2921974,P138,c(Q502895))
[ANSWER]
['Q895076', 'P138', {'concept': 'Q502895'}] ['Q2921874', 'P138', {'concept': 'Q502895'}] ['Q2921974', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q2921874 property:P138 ?j . ?j rdf:type ontology:Q502895 }
boulevard Haussmann boulevard Malesherbes boulevard de Courcelles
Did you mean boulevard de Courcelles ?
boulevard de Courcelles
['boulevard Haussmann', 'named after', {'concept': 'common name'}] ['boulevard Malesherbes', 'named after', {'concept': 'common name'}] ['boulevard de Courcelles', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:boulevard_Malesherbes property:named_after ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant boulevard Malesherbes. Could you tell me the answer for that?
(Q2921874,P138,c(Q502895))
Q2921874
['Q2921874', 'P138', {'concept': 'Q502895'}]
['boulevard Malesherbes', 'named after', {'concept': 'common name'}]
[]
Q551456
SYSTEM
Guillaume-Chrétien de Lamoignon de Malesherbes
Q551456
(Q2921874,P138,c(Q502895))
action filter_type
action find
entity Q2921874
relation P138
type Q502895
[ANSWER] is the etymology of that street
['Q2921874', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q2921874 property:P138 ?j . ?j rdf:type ontology:Q502895 }
Guillaume-Chrétien de Lamoignon de Malesherbes
Guillaume-Chrétien de Lamoignon de Malesherbes is the etymology of that street
Guillaume-Chrétien de Lamoignon de Malesherbes
action filter_type
action find
entity boulevard Malesherbes
relation named after
type common name
['boulevard Malesherbes', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:boulevard_Malesherbes property:named_after ?j . ?j rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q551456 Q2030876
P27
Q15617994
USER
Is Western Area Rural District the country of citizenship of that person ?
(Q551456,P27,Q2030876)
action is_in
entity Q2030876
action find
entity Q551456
relation P27
['Q551456', 'P27', 'Q2030876']
ASK WHERE { resource:Q551456 property:P27 resource:Q2030876 }
Guillaume-Chrétien de Lamoignon de Malesherbes Western Area Rural District
action is_in
entity Western Area Rural District
action find
entity Guillaume-Chrétien de Lamoignon de Malesherbes
relation country of citizenship
['Guillaume-Chrétien de Lamoignon de Malesherbes', 'country of citizenship', 'Western Area Rural District']
ASK WHERE { resource:Guillaume-Chrétien_de_Lamoignon_de_Malesherbes property:country_of_citizenship resource:Western_Area_Rural_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q551456,P27,Q2030876)
action is_in
entity Q2030876
action find
entity Q551456
relation P27
[ANSWER]
['Q551456', 'P27', 'Q2030876']
ASK WHERE { resource:Q551456 property:P27 resource:Q2030876 }
No
action is_in
entity Western Area Rural District
action find
entity Guillaume-Chrétien de Lamoignon de Malesherbes
relation country of citizenship
['Guillaume-Chrétien de Lamoignon de Malesherbes', 'country of citizenship', 'Western Area Rural District']
ASK WHERE { resource:Guillaume-Chrétien_de_Lamoignon_de_Malesherbes property:country_of_citizenship resource:Western_Area_Rural_District }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q34484
P559
Q79007 Q34442 Q83620
USER
Which streets are the endpoints for more number of roads and thoroughfares than Bundesstraße 19 ?
(c(Q34442)|c(Q83620),P559,c(Q79007))
action greater
action union
action find_reverse_tuple_counts
relation P559
type Q79007
type Q34442
action find_reverse_tuple_counts
relation P559
type Q79007
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q34484
relation P559
type Q34442
type Q83620
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P559', {'concept': 'Q79007'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) ?r WHERE { VALUES ( ?m ) { ( ontology:Q34442 ) ( ontology:Q83620 ) } . ?y rdf:type ?m } GROUP BY ?r } . FILTER ( ?j > ?k ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { ?u property:P559 resource:Q34484 . { ?u rdf:type ?a . VALUES ( ?a ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } } } } }
Bundesstraße 19
action greater
action union
action find_reverse_tuple_counts
relation terminus
type street
type road
action find_reverse_tuple_counts
relation terminus
type street
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Bundesstraße 19
relation terminus
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus', {'concept': 'street'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) ?r WHERE { VALUES ( ?m ) { ( ontology:road ) ( ontology:thoroughfare ) } . ?y rdf:type ?m } GROUP BY ?r } . FILTER ( ?j > ?k ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { ?u property:terminus resource:Bundesstraße_19 . { ?u rdf:type ?a . VALUES ( ?a ) { ( ontology:thoroughfare ) ( ontology:road ) } } } } }
[]
street road thoroughfare
Q7911587 Q10543765 Q6453558
SYSTEM
Valhallavägen, Karlavägen, Kåkbrinken
Q10526423 Q6191749 Q7984694 Q2749083 Q12337421 Q10544304 Q10931764 Q34470 Q10949995 Q15132773 Q5328067 Q6453558 Q10941389 Q15814040 Q10622333 Q15928840 Q5510955 Q5512751 Q12011442 Q34549 Q7911587 Q2136395 Q34462 Q10881627 Q10543765 Q4887944 Q6547943
(c(Q34442)|c(Q83620),P559,c(Q79007))
action greater
action union
action find_reverse_tuple_counts
relation P559
type Q79007
type Q34442
action find_reverse_tuple_counts
relation P559
type Q79007
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q34484
relation P559
type Q34442
type Q83620
[ANSWERS] are the endpoints for more number of roads and thoroughfares than Bundesstraße 19
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P559', {'concept': 'Q79007'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) ?r WHERE { VALUES ( ?m ) { ( ontology:Q34442 ) ( ontology:Q83620 ) } . ?y rdf:type ?m } GROUP BY ?r } . FILTER ( ?j > ?k ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { ?u property:P559 resource:Q34484 . { ?u rdf:type ?a . VALUES ( ?a ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } } } } }
Hornstulls strand Jianguomen Inner Street West Chang'an Avenue Greater ring Strandboulevarden Katarina kyrkobacke Fuxingmen Outer Street Bundesstraße 12 Xuanwumen Inner Street Lorensbergsgatan East Chang'an Avenue Kåkbrinken Taipingqiao Street Im Wingert Pelikansgränd Chongwenmen Inner Street Fuxingmen Inner Street G99 Taiwan Ring Expressway Åboulevard Bundesstraße 42 Valhallavägen H. C. Andersens Boulevard Bundesstraße 9 May 4th Street Karlavägen Norra Benickebrinken Lilla Hoparegränd
Valhallavägen, Karlavägen and Kåkbrinken are the endpoints for more number of roads and thoroughfares than Bundesstraße 19
Valhallavägen Karlavägen Kåkbrinken
action greater
action union
action find_reverse_tuple_counts
relation terminus
type street
type road
action find_reverse_tuple_counts
relation terminus
type street
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Bundesstraße 19
relation terminus
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus', {'concept': 'street'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) ?r WHERE { VALUES ( ?m ) { ( ontology:road ) ( ontology:thoroughfare ) } . ?y rdf:type ?m } GROUP BY ?r } . FILTER ( ?j > ?k ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { ?u property:terminus resource:Bundesstraße_19 . { ?u rdf:type ?a . VALUES ( ?a ) { ( ontology:thoroughfare ) ( ontology:road ) } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q4887944
P559
Q79007 Q34442 Q83620
USER
And also tell me about Norra Benickebrinken?
(c(Q34442)|c(Q83620),P559,c(Q79007))
action greater
action union
action find_reverse_tuple_counts
relation P559
type Q79007
type Q34442
action find_reverse_tuple_counts
relation P559
type Q79007
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q4887944
relation P559
type Q34442
type Q83620
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P559', {'concept': 'Q79007'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { ?l property:P559 resource:Q4887944 . { VALUES ( ?f ) { ( ontology:Q34442 ) ( ontology:Q83620 ) } . ?l rdf:type ?f } } } . FILTER ( ?z > ?e ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) ?a WHERE { { ?i property:P559 ?a . ?a rdf:type ontology:Q79007 . ?i rdf:type ontology:Q34442 } UNION { ?i property:P559 ?a . ?a rdf:type ontology:Q79007 . ?i rdf:type ontology:Q83620 } } GROUP BY ?a } }
Norra Benickebrinken
action greater
action union
action find_reverse_tuple_counts
relation terminus
type street
type road
action find_reverse_tuple_counts
relation terminus
type street
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Norra Benickebrinken
relation terminus
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus', {'concept': 'street'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { ?l property:terminus resource:Norra_Benickebrinken . { VALUES ( ?f ) { ( ontology:road ) ( ontology:thoroughfare ) } . ?l rdf:type ?f } } } . FILTER ( ?z > ?e ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) ?a WHERE { { ?i property:terminus ?a . ?a rdf:type ontology:street . ?i rdf:type ontology:road } UNION { ?i property:terminus ?a . ?a rdf:type ontology:street . ?i rdf:type ontology:thoroughfare } } GROUP BY ?a } }
[]
street road thoroughfare
Q7911587 Q10543765 Q2136395
SYSTEM
Valhallavägen, Karlavägen, H. C. Andersens Boulevard
Q7984694 Q12337421 Q5328067 Q10941389 Q5510955 Q7911587 Q2136395 Q10881627 Q10543765
(c(Q34442)|c(Q83620),P559,c(Q79007))
action greater
action union
action find_reverse_tuple_counts
relation P559
type Q79007
type Q34442
action find_reverse_tuple_counts
relation P559
type Q79007
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q4887944
relation P559
type Q34442
type Q83620
[ANSWERS]
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P559', {'concept': 'Q79007'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { ?l property:P559 resource:Q4887944 . { VALUES ( ?f ) { ( ontology:Q34442 ) ( ontology:Q83620 ) } . ?l rdf:type ?f } } } . FILTER ( ?z > ?e ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) ?a WHERE { { ?i property:P559 ?a . ?a rdf:type ontology:Q79007 . ?i rdf:type ontology:Q34442 } UNION { ?i property:P559 ?a . ?a rdf:type ontology:Q79007 . ?i rdf:type ontology:Q83620 } } GROUP BY ?a } }
West Chang'an Avenue Strandboulevarden East Chang'an Avenue Taipingqiao Street Fuxingmen Inner Street Valhallavägen H. C. Andersens Boulevard May 4th Street Karlavägen
Valhallavägen Karlavägen H. C. Andersens Boulevard
action greater
action union
action find_reverse_tuple_counts
relation terminus
type street
type road
action find_reverse_tuple_counts
relation terminus
type street
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Norra Benickebrinken
relation terminus
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus', {'concept': 'street'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { ?l property:terminus resource:Norra_Benickebrinken . { VALUES ( ?f ) { ( ontology:road ) ( ontology:thoroughfare ) } . ?l rdf:type ?f } } } . FILTER ( ?z > ?e ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) ?a WHERE { { ?i property:terminus ?a . ?a rdf:type ontology:street . ?i rdf:type ontology:road } UNION { ?i property:terminus ?a . ?a rdf:type ontology:street . ?i rdf:type ontology:thoroughfare } } GROUP BY ?a } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q6112769
P559
Q12280 Q79007
USER
Which bridges are a terminus for approximately the same number of streets as Kastellholmsbron ?
(c(Q79007),P559,c(Q12280))
action approx
action find_reverse_tuple_counts
relation P559
type Q12280
type Q79007
action count
action filter_type
action find
entity Q6112769
relation P559
type Q12280
[{'concept': 'Q79007'}, 'P559', {'concept': 'Q12280'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { resource:Q6112769 property:P559 ?i . ?i rdf:type ontology:Q12280 } } . FILTER ( ?p = ?u ) . { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?p ) WHERE { ?a property:P559 ?b . ?b rdf:type ontology:Q12280 . ?a rdf:type ontology:Q79007 } GROUP BY ?b } }
Kastellholmsbron
action approx
action find_reverse_tuple_counts
relation terminus
type bridge
type street
action count
action filter_type
action find
entity Kastellholmsbron
relation terminus
type bridge
[{'concept': 'street'}, 'terminus', {'concept': 'bridge'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { resource:Kastellholmsbron property:terminus ?i . ?i rdf:type ontology:bridge } } . FILTER ( ?p = ?u ) . { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?p ) WHERE { ?a property:terminus ?b . ?b rdf:type ontology:bridge . ?a rdf:type ontology:street } GROUP BY ?b } }
[]
bridge street
Q7596524 Q580518 Q7916304
SYSTEM
Stadshusbron, Västerbron, Vasabron
Q7418754 Q846945 Q7310179 Q5261596 Q1596245 Q7916304 Q6444547 Q6547919 Q6112769 Q5221329 Q7334096 Q10438492 Q6419725 Q7597303 Q1698812 Q3545442 Q7596524 Q847479 Q12060368 Q7332355 Q3373233 Q580518 Q4348749
(c(Q79007),P559,c(Q12280))
action approx
action find_reverse_tuple_counts
relation P559
type Q12280
type Q79007
action count
action filter_type
action find
entity Q6112769
relation P559
type Q12280
[ANSWERS] are a terminus for approximately the same number of streets as Kastellholmsbron
[{'concept': 'Q79007'}, 'P559', {'concept': 'Q12280'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { resource:Q6112769 property:P559 ?i . ?i rdf:type ontology:Q12280 } } . FILTER ( ?p = ?u ) . { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?p ) WHERE { ?a property:P559 ?b . ?b rdf:type ontology:Q12280 . ?a rdf:type ontology:Q79007 } GROUP BY ?b } }
Sankt Eriksbron Skanstullsbron Reimersholmsbron Skeppsholmsbron Sault Ste. Marie International Bridge Vasabron Kungsbron Liljeholmsbron Kastellholmsbron Danvik bridge Riksbron Bällsta bridge Klarabergsviadukten Stallbron Johanneshovsbron Pitkäsilta Stadshusbron Central bridge Højbro Riddarholmsbron Barnhusbron Västerbron Lidingöbron
Stadshusbron, Västerbron and Vasabron are a terminus for approximately the same number of streets as Kastellholmsbron
Stadshusbron Västerbron Vasabron
action approx
action find_reverse_tuple_counts
relation terminus
type bridge
type street
action count
action filter_type
action find
entity Kastellholmsbron
relation terminus
type bridge
[{'concept': 'street'}, 'terminus', {'concept': 'bridge'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { resource:Kastellholmsbron property:terminus ?i . ?i rdf:type ontology:bridge } } . FILTER ( ?p = ?u ) . { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?p ) WHERE { ?a property:terminus ?b . ?b rdf:type ontology:bridge . ?a rdf:type ontology:street } GROUP BY ?b } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q5221329
P559
Q12280 Q79007
USER
And what about Danvik bridge?
(c(Q79007),P559,c(Q12280))
action approx
action find_reverse_tuple_counts
relation P559
type Q12280
type Q79007
action count
action filter_type
action find
entity Q5221329
relation P559
type Q12280
[{'concept': 'Q79007'}, 'P559', {'concept': 'Q12280'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?b ) AS ?e ) WHERE { ?b rdf:type ontology:Q79007 . ?f rdf:type ontology:Q12280 . ?b property:P559 ?f } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { resource:Q5221329 property:P559 ?k . ?k rdf:type ontology:Q12280 } } . FILTER ( ?e = ?u ) }
Danvik bridge
action approx
action find_reverse_tuple_counts
relation terminus
type bridge
type street
action count
action filter_type
action find
entity Danvik bridge
relation terminus
type bridge
[{'concept': 'street'}, 'terminus', {'concept': 'bridge'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?b ) AS ?e ) WHERE { ?b rdf:type ontology:street . ?f rdf:type ontology:bridge . ?b property:terminus ?f } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { resource:Danvik_bridge property:terminus ?k . ?k rdf:type ontology:bridge } } . FILTER ( ?e = ?u ) }
[]
bridge street
Q7596524 Q580518 Q7916304
SYSTEM
Stadshusbron, Västerbron, Vasabron
Q7418754 Q846945 Q7310179 Q5261596 Q1596245 Q7916304 Q6444547 Q6547919 Q6112769 Q5221329 Q7334096 Q10438492 Q6419725 Q7597303 Q1698812 Q3545442 Q7596524 Q847479 Q12060368 Q7332355 Q3373233 Q580518 Q4348749
(c(Q79007),P559,c(Q12280))
action approx
action find_reverse_tuple_counts
relation P559
type Q12280
type Q79007
action count
action filter_type
action find
entity Q5221329
relation P559
type Q12280
[ANSWERS]
[{'concept': 'Q79007'}, 'P559', {'concept': 'Q12280'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?b ) AS ?e ) WHERE { ?b rdf:type ontology:Q79007 . ?f rdf:type ontology:Q12280 . ?b property:P559 ?f } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { resource:Q5221329 property:P559 ?k . ?k rdf:type ontology:Q12280 } } . FILTER ( ?e = ?u ) }
Sankt Eriksbron Skanstullsbron Reimersholmsbron Skeppsholmsbron Sault Ste. Marie International Bridge Vasabron Kungsbron Liljeholmsbron Kastellholmsbron Danvik bridge Riksbron Bällsta bridge Klarabergsviadukten Stallbron Johanneshovsbron Pitkäsilta Stadshusbron Central bridge Højbro Riddarholmsbron Barnhusbron Västerbron Lidingöbron
Stadshusbron Västerbron Vasabron
action approx
action find_reverse_tuple_counts
relation terminus
type bridge
type street
action count
action filter_type
action find
entity Danvik bridge
relation terminus
type bridge
[{'concept': 'street'}, 'terminus', {'concept': 'bridge'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?b ) AS ?e ) WHERE { ?b rdf:type ontology:street . ?f rdf:type ontology:bridge . ?b property:terminus ?f } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { resource:Danvik_bridge property:terminus ?k . ?k rdf:type ontology:bridge } } . FILTER ( ?e = ?u ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q34442 Q56061 Q79007
USER
How many streets are named after approximately 1 roads or administrative territories ?
(c(Q79007),P138,c(Q34442)|c(Q56061))
action count
action approx
action union
action find_tuple_counts
relation P138
type Q79007
type Q34442
action find_tuple_counts
relation P138
type Q79007
type Q56061
value 1
[{'concept': 'Q79007'}, 'P138', [{'concept': 'Q34442'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?e ) WHERE { { ?q rdf:type ontology:Q79007 . ?y rdf:type ontology:Q34442 . ?q property:P138 ?y } UNION { ?q property:P138 ?y . ?q rdf:type ontology:Q79007 . ?y rdf:type ontology:Q56061 } } GROUP BY ?q } . FILTER ( ?e = 1 ) }
action count
action approx
action union
action find_tuple_counts
relation named after
type street
type road
action find_tuple_counts
relation named after
type street
type administrative territorial entity
value 1
[{'concept': 'street'}, 'named after', [{'concept': 'road'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?e ) WHERE { { ?q rdf:type ontology:street . ?y rdf:type ontology:road . ?q property:named_after ?y } UNION { ?q property:named_after ?y . ?q rdf:type ontology:street . ?y rdf:type ontology:administrative_territorial_entity } } GROUP BY ?q } . FILTER ( ?e = 1 ) }
[]
road administrative territorial entity street
SYSTEM
48
Q3149265 Q4381203 Q2873939 Q2873937 Q3149342 Q3149308 Q3149233 Q3149232 Q3149400 Q2401340 Q3149288 Q2873945 Q3149270 Q3149376 Q3149377 Q2921926 Q12161451 Q3149386 Q2921995 Q2921994 Q2873938 Q3149333 Q3149330 Q3149335 Q4304254 Q3149241 Q3149205 Q3149364 Q3149316 Q2921899 Q21098013 Q14629270 Q3149242 Q3149367 Q2404571 Q3149268 Q895080 Q2974744 Q2873964 Q7942263 Q2504703 Q3149218 Q3149352 Q3149357 Q10526419 Q6430207 Q2873927 Q2632681
(c(Q79007),P138,c(Q34442)|c(Q56061))
action count
action approx
action union
action find_tuple_counts
relation P138
type Q79007
type Q34442
action find_tuple_counts
relation P138
type Q79007
type Q56061
value 1
[ANSWER]
[{'concept': 'Q79007'}, 'P138', [{'concept': 'Q34442'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?e ) WHERE { { ?q rdf:type ontology:Q79007 . ?y rdf:type ontology:Q34442 . ?q property:P138 ?y } UNION { ?q property:P138 ?y . ?q rdf:type ontology:Q79007 . ?y rdf:type ontology:Q56061 } } GROUP BY ?q } . FILTER ( ?e = 1 ) }
impasse Orfila Lenin Avenue (Kolpino) avenue de Péterhof avenue de Provence impasse de la Mare impasse Tourneux impasse Gomboust impasse Girardon impasse Érard impasse Haxo impasse Saint-Denis avenue de Salonique impasse Pixérécourt impasse des Vignoles impasse du 49-Faubourg-Saint-Martin boulevard Saint-Martin Tykhorits'kyi Ln impasse du Gué boulevard de Reuilly boulevard de Reims avenue de New-York impasse de la Boule-Rouge impasse de Wattignies impasse de la Chapelle Stepana Bandery Avenue impasse Lebouis impasse Calmels impasse des Orteaux impasse de Bergame boulevard Poissonnière avenue de Paris impasse d'Amsterdam impasse Letort impasse des Panoyaux boulevard Saint-Denis impasse Philidor boulevard de Sébastopol cité de Varenne avenue de Versailles Vouliagmenis Avenue boulevard de Rochechouart impasse Crozatier impasse des Bourdonnais impasse des Cloÿs Hornskroken Konstantinoupoleos Avenue avenue de Messine Moskovsky Prospekt
48
action count
action approx
action union
action find_tuple_counts
relation named after
type street
type road
action find_tuple_counts
relation named after
type street
type administrative territorial entity
value 1
[{'concept': 'street'}, 'named after', [{'concept': 'road'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?e ) WHERE { { ?q rdf:type ontology:street . ?y rdf:type ontology:road . ?q property:named_after ?y } UNION { ?q property:named_after ?y . ?q rdf:type ontology:street . ?y rdf:type ontology:administrative_territorial_entity } } GROUP BY ?q } . FILTER ( ?e = 1 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1104802
P609
Q15700808 Q12280
USER
How many urban unit definitions are the terminus locations of greater number of bridges than Coburg North ?
(c(Q12280),P609,c(Q15700808))
action count
action greater
action find_reverse_tuple_counts
relation P609
type Q15700808
type Q12280
action count
action filter_type
action find
entity Q1104802
relation P609
type Q15700808
[{'concept': 'Q12280'}, 'P609', {'concept': 'Q15700808'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?y ) WHERE { ?s property:P609 ?j . ?j rdf:type ontology:Q15700808 . ?s rdf:type ontology:Q12280 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { resource:Q1104802 property:P609 ?v . ?v rdf:type ontology:Q15700808 } } . FILTER ( ?y > ?p ) }
Coburg North
action count
action greater
action find_reverse_tuple_counts
relation terminus location
type urban unit definition
type bridge
action count
action filter_type
action find
entity Coburg North
relation terminus location
type urban unit definition
[{'concept': 'bridge'}, 'terminus location', {'concept': 'urban unit definition'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?y ) WHERE { ?s property:terminus_location ?j . ?j rdf:type ontology:urban_unit_definition . ?s rdf:type ontology:bridge } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { resource:Coburg_North property:terminus_location ?v . ?v rdf:type ontology:urban_unit_definition } } . FILTER ( ?y > ?p ) }
[]
urban unit definition bridge
SYSTEM
4
Q910007 Q54349 Q2963212 Q1478888
(c(Q12280),P609,c(Q15700808))
action count
action greater
action find_reverse_tuple_counts
relation P609
type Q15700808
type Q12280
action count
action filter_type
action find
entity Q1104802
relation P609
type Q15700808
[ANSWER]
[{'concept': 'Q12280'}, 'P609', {'concept': 'Q15700808'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?y ) WHERE { ?s property:P609 ?j . ?j rdf:type ontology:Q15700808 . ?s rdf:type ontology:Q12280 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { resource:Q1104802 property:P609 ?v . ?v rdf:type ontology:Q15700808 } } . FILTER ( ?y > ?p ) }
Drottningholm Lidingö Johannedal Färjestaden
4
action count
action greater
action find_reverse_tuple_counts
relation terminus location
type urban unit definition
type bridge
action count
action filter_type
action find
entity Coburg North
relation terminus location
type urban unit definition
[{'concept': 'bridge'}, 'terminus location', {'concept': 'urban unit definition'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?y ) WHERE { ?s property:terminus_location ?j . ?j rdf:type ontology:urban_unit_definition . ?s rdf:type ontology:bridge } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { resource:Coburg_North property:terminus_location ?v . ?v rdf:type ontology:urban_unit_definition } } . FILTER ( ?y > ?p ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q2443083
P609
Q15700808 Q12280
USER
And how about Toorak?
(c(Q12280),P609,c(Q15700808))
action count
action greater
action find_reverse_tuple_counts
relation P609
type Q15700808
type Q12280
action count
action filter_type
action find
entity Q2443083
relation P609
type Q15700808
[{'concept': 'Q12280'}, 'P609', {'concept': 'Q15700808'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?y ) WHERE { ?x property:P609 ?p . ?x rdf:type ontology:Q12280 . ?p rdf:type ontology:Q15700808 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { resource:Q2443083 property:P609 ?c . ?c rdf:type ontology:Q15700808 } } . FILTER ( ?y > ?g ) }
Toorak
action count
action greater
action find_reverse_tuple_counts
relation terminus location
type urban unit definition
type bridge
action count
action filter_type
action find
entity Toorak
relation terminus location
type urban unit definition
[{'concept': 'bridge'}, 'terminus location', {'concept': 'urban unit definition'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?y ) WHERE { ?x property:terminus_location ?p . ?x rdf:type ontology:bridge . ?p rdf:type ontology:urban_unit_definition } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { resource:Toorak property:terminus_location ?c . ?c rdf:type ontology:urban_unit_definition } } . FILTER ( ?y > ?g ) }
[]
urban unit definition bridge
SYSTEM
4
Q910007 Q54349 Q2963212 Q1478888
(c(Q12280),P609,c(Q15700808))
action count
action greater
action find_reverse_tuple_counts
relation P609
type Q15700808
type Q12280
action count
action filter_type
action find
entity Q2443083
relation P609
type Q15700808
[ANSWER]
[{'concept': 'Q12280'}, 'P609', {'concept': 'Q15700808'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?y ) WHERE { ?x property:P609 ?p . ?x rdf:type ontology:Q12280 . ?p rdf:type ontology:Q15700808 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { resource:Q2443083 property:P609 ?c . ?c rdf:type ontology:Q15700808 } } . FILTER ( ?y > ?g ) }
Drottningholm Lidingö Johannedal Färjestaden
4
action count
action greater
action find_reverse_tuple_counts
relation terminus location
type urban unit definition
type bridge
action count
action filter_type
action find
entity Toorak
relation terminus location
type urban unit definition
[{'concept': 'bridge'}, 'terminus location', {'concept': 'urban unit definition'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?y ) WHERE { ?x property:terminus_location ?p . ?x rdf:type ontology:bridge . ?p rdf:type ontology:urban_unit_definition } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { resource:Toorak property:terminus_location ?c . ?c rdf:type ontology:urban_unit_definition } } . FILTER ( ?y > ?g ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1399807 Q7916304
P17
Q15617994
USER
Which administrative territories are Vasabron or 2013 World Fencing Championships present in ?
OR((Q7916304,P17,c(Q15617994)), (Q1399807,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7916304
relation P17
action find
entity Q1399807
relation P17
type Q15617994
{'OR': [['Q7916304', 'P17', {'concept': 'Q15617994'}], ['Q1399807', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?f ) { ( resource:Q7916304 ) ( resource:Q1399807 ) } . ?f property:P17 ?z } . ?z rdf:type ontology:Q15617994 }
2013 World Fencing Championships Vasabron
action filter_type
action union
action find
entity Vasabron
relation country
action find
entity 2013 World Fencing Championships
relation country
type designation for an administrative territorial entity
{'OR': [['Vasabron', 'country', {'concept': 'designation for an administrative territorial entity'}], ['2013 World Fencing Championships', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?f ) { ( resource:Vasabron ) ( resource:2013_World_Fencing_Championships ) } . ?f property:country ?z } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q28 Q34
SYSTEM
Hungary, Sweden
Q28 Q34
OR((Q7916304,P17,c(Q15617994)), (Q1399807,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7916304
relation P17
action find
entity Q1399807
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q7916304', 'P17', {'concept': 'Q15617994'}], ['Q1399807', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?f ) { ( resource:Q7916304 ) ( resource:Q1399807 ) } . ?f property:P17 ?z } . ?z rdf:type ontology:Q15617994 }
Hungary Sweden
Which administrative territories are Vasabron or 2013 World Fencing Championships present in
Hungary Sweden
action filter_type
action union
action find
entity Vasabron
relation country
action find
entity 2013 World Fencing Championships
relation country
type designation for an administrative territorial entity
{'OR': [['Vasabron', 'country', {'concept': 'designation for an administrative territorial entity'}], ['2013 World Fencing Championships', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?f ) { ( resource:Vasabron ) ( resource:2013_World_Fencing_Championships ) } . ?f property:country ?z } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q319788
P27
Q502895
USER
Are Fred Forbát civilians of those administrative territories ?
(Q319788,P27,Q28) (Q319788,P27,Q34)
action is_in
entity prev_answer
action find
entity Q319788
relation P27
['Q319788', 'P27', 'Q28'] ['Q319788', 'P27', 'Q34']
ASK WHERE { VALUES ( ?s ) { ( resource:Q28 ) ( resource:Q34 ) } . resource:Q319788 property:P27 ?s }
Fred Forbát
action is_in
entity prev_answer
action find
entity Fred Forbát
relation country of citizenship
['Fred Forbát', 'country of citizenship', 'Hungary'] ['Fred Forbát', 'country of citizenship', 'Sweden']
ASK WHERE { VALUES ( ?s ) { ( resource:Hungary ) ( resource:Sweden ) } . resource:Fred_Forbát property:country_of_citizenship ?s }
[]
common name
SYSTEM
YES
(Q319788,P27,Q28) (Q319788,P27,Q34)
action is_in
entity prev_answer
action find
entity Q319788
relation P27
[ANSWER]
['Q319788', 'P27', 'Q28'] ['Q319788', 'P27', 'Q34']
ASK WHERE { VALUES ( ?s ) { ( resource:Q28 ) ( resource:Q34 ) } . resource:Q319788 property:P27 ?s }
Yes
action is_in
entity prev_answer
action find
entity Fred Forbát
relation country of citizenship
['Fred Forbát', 'country of citizenship', 'Hungary'] ['Fred Forbát', 'country of citizenship', 'Sweden']
ASK WHERE { VALUES ( ?s ) { ( resource:Hungary ) ( resource:Sweden ) } . resource:Fred_Forbát property:country_of_citizenship ?s }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q34
P530
Q1048835
USER
How many political territories have diplomatic relations with Sweden ?
(Q34,P530,c(Q1048835))
action count
action filter_type
action find
entity Q34
relation P530
type Q1048835
['Q34', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { resource:Q34 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
Sweden
action count
action filter_type
action find
entity Sweden
relation diplomatic relation
type political territorial entity
['Sweden', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { resource:Sweden property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
3
Q408 Q16 Q183
(Q34,P530,c(Q1048835))
action count
action filter_type
action find
entity Q34
relation P530
type Q1048835
[ANSWER]
['Q34', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { resource:Q34 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
Australia Canada Germany
3
action count
action filter_type
action find
entity Sweden
relation diplomatic relation
type political territorial entity
['Sweden', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { resource:Sweden property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q916
Q1048835
USER
And what about Angola?
(Q916,P530,c(Q1048835))
action count
action filter_type
action find
entity Q916
relation P530
type Q1048835
['Q916', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Q916 property:P530 ?l . ?l rdf:type ontology:Q1048835 }
Angola
action count
action filter_type
action find
entity Angola
relation diplomatic relation
type political territorial entity
['Angola', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Angola property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
(Q916,P530,c(Q1048835))
action count
action filter_type
action find
entity Q916
relation P530
type Q1048835
[ANSWER]
['Q916', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Q916 property:P530 ?l . ?l rdf:type ontology:Q1048835 }
2
action count
action filter_type
action find
entity Angola
relation diplomatic relation
type political territorial entity
['Angola', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Angola property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories have tactful political relations with around 120 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 120
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?e ) WHERE { ?i rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 . ?i property:P530 ?w } GROUP BY ?i } . FILTER ( ?e = 120 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 120
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?e ) WHERE { ?i rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation ?w } GROUP BY ?i } . FILTER ( ?e = 120 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
2
Q183 Q408
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 120
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?e ) WHERE { ?i rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 . ?i property:P530 ?w } GROUP BY ?i } . FILTER ( ?e = 120 ) }
Germany Australia
2
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 120
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?e ) WHERE { ?i rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation ?w } GROUP BY ?i } . FILTER ( ?e = 120 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relationships with around 28 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 28
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?i ) WHERE { ?d property:P530 ?j . ?d rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } GROUP BY ?d } . FILTER ( ?i = 28 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 28
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?i ) WHERE { ?d property:diplomatic_relation ?j . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . FILTER ( ?i = 28 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
2
Q159 Q30
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 28
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?i ) WHERE { ?d property:P530 ?j . ?d rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } GROUP BY ?d } . FILTER ( ?i = 28 ) }
Russia United States of America
2
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 28
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?i ) WHERE { ?d property:diplomatic_relation ?j . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . FILTER ( ?i = 28 ) }
[]