Simple Question (Direct)
Simple Question
Q558300
P166
Q618779
USER
What were awarded to Nikolay Goryushkin ?
(Q558300,P166,c(Q618779))
action filter_type
action find
entity Q558300
relation P166
type Q618779
['Q558300', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?c WHERE { resource:Q558300 property:P166 ?c . ?c rdf:type ontology:Q618779 }
Nikolay Goryushkin
action filter_type
action find
entity Nikolay Goryushkin
relation award received
type award
['Nikolay Goryushkin', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?c WHERE { resource:Nikolay_Goryushkin property:award_received ?c . ?c rdf:type ontology:award }
[]
award
Q185493 Q11798924 Q337463
SYSTEM
Order of Lenin, Order of Alexander Nevsky (USSR), Order of the Red Banner
Q337463 Q185493 Q178473 Q11798924
(Q558300,P166,c(Q618779))
action filter_type
action find
entity Q558300
relation P166
type Q618779
The [ANSWERS] were awarded to Nikolay Goryushkin
['Q558300', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?c WHERE { resource:Q558300 property:P166 ?c . ?c rdf:type ontology:Q618779 }
Order of the Red Banner Order of Lenin Hero of the Soviet Union Order of Alexander Nevsky (USSR)
The Order of Lenin, Order of Alexander Nevsky (USSR) and Order of the Red Banner were awarded to Nikolay Goryushkin
Order of Lenin Order of Alexander Nevsky (USSR) Order of the Red Banner
action filter_type
action find
entity Nikolay Goryushkin
relation award received
type award
['Nikolay Goryushkin', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?c WHERE { resource:Nikolay_Goryushkin property:award_received ?c . ?c rdf:type ontology:award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q558300
P119
Q56061
USER
Where is the place of burial for Nikolay Goryushkin located ?
(Q558300,P119,c(Q56061))
action filter_type
action find
entity Q558300
relation P119
type Q56061
['Q558300', 'P119', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q558300 property:P119 ?o . ?o rdf:type ontology:Q56061 }
Nikolay Goryushkin
action filter_type
action find
entity Nikolay Goryushkin
relation place of burial
type administrative territorial entity
['Nikolay Goryushkin', 'place of burial', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Nikolay_Goryushkin property:place_of_burial ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q572366
SYSTEM
Dovzhansk
Q572366
(Q558300,P119,c(Q56061))
action filter_type
action find
entity Q558300
relation P119
type Q56061
The place of burial for Nikolay Goryushkin is located in [ANSWER]
['Q558300', 'P119', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q558300 property:P119 ?o . ?o rdf:type ontology:Q56061 }
Dovzhansk
The place of burial for Nikolay Goryushkin is located in Dovzhansk
Dovzhansk
action filter_type
action find
entity Nikolay Goryushkin
relation place of burial
type administrative territorial entity
['Nikolay Goryushkin', 'place of burial', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Nikolay_Goryushkin property:place_of_burial ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q558300
P19
Q56061
USER
Which administrative territory was that person born at ?
(Q572366,P19,c(Q56061))
action filter_type
action find
entity Q558300
relation P19
type Q56061
['Q572366', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q558300 property:P19 ?f . ?f rdf:type ontology:Q56061 }
Nikolay Goryushkin
action filter_type
action find
entity Nikolay Goryushkin
relation place of birth
type administrative territorial entity
['Dovzhansk', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Nikolay_Goryushkin property:place_of_birth ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q572366
SYSTEM
Dovzhansk
Q572366
(Q572366,P19,c(Q56061))
action filter_type
action find
entity Q558300
relation P19
type Q56061
That person was born in [ANSWER]
['Q572366', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q558300 property:P19 ?f . ?f rdf:type ontology:Q56061 }
Dovzhansk
That person was born in Dovzhansk
Dovzhansk
action filter_type
action find
entity Nikolay Goryushkin
relation place of birth
type administrative territorial entity
['Dovzhansk', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Nikolay_Goryushkin property:place_of_birth ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q572366 Q509155 Q123790
P17
Q15617994
USER
Is that administrative territory present in Heiligenberg and Castelbellino ?
(Q572366,P17,Q509155) (Q572366,P17,Q123790)
action is_in
entity Q572366
action intersection
action find_reverse
entity Q509155
relation P17
action find_reverse
entity Q123790
relation P17
['Q572366', 'P17', 'Q509155'] ['Q572366', 'P17', 'Q123790']
ASK WHERE { resource:Q572366 property:P17 resource:Q509155 . resource:Q572366 property:P17 resource:Q123790 }
Dovzhansk Heiligenberg Castelbellino
action is_in
entity Dovzhansk
action intersection
action find_reverse
entity Heiligenberg
relation country
action find_reverse
entity Castelbellino
relation country
['Dovzhansk', 'country', 'Heiligenberg'] ['Dovzhansk', 'country', 'Castelbellino']
ASK WHERE { resource:Dovzhansk property:country resource:Heiligenberg . resource:Dovzhansk property:country resource:Castelbellino }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q572366,P17,Q509155) (Q572366,P17,Q123790)
action is_in
entity Q572366
action intersection
action find_reverse
entity Q509155
relation P17
action find_reverse
entity Q123790
relation P17
[ANSWER]
['Q572366', 'P17', 'Q509155'] ['Q572366', 'P17', 'Q123790']
ASK WHERE { resource:Q572366 property:P17 resource:Q509155 . resource:Q572366 property:P17 resource:Q123790 }
No
action is_in
entity Dovzhansk
action intersection
action find_reverse
entity Heiligenberg
relation country
action find_reverse
entity Castelbellino
relation country
['Dovzhansk', 'country', 'Heiligenberg'] ['Dovzhansk', 'country', 'Castelbellino']
ASK WHERE { resource:Dovzhansk property:country resource:Heiligenberg . resource:Dovzhansk property:country resource:Castelbellino }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5117852 Q572366
P17
Q15617994
USER
Which administrative territories do Dovzhansk or Church of the Gesù belong to ?
OR((Q572366,P17,c(Q15617994)), (Q5117852,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q572366
relation P17
action find
entity Q5117852
relation P17
type Q15617994
{'OR': [['Q572366', 'P17', {'concept': 'Q15617994'}], ['Q5117852', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?z ) { ( resource:Q572366 ) ( resource:Q5117852 ) } . ?z property:P17 ?k } . ?k rdf:type ontology:Q15617994 }
Church of the Gesù Dovzhansk
action filter_type
action union
action find
entity Dovzhansk
relation country
action find
entity Church of the Gesù
relation country
type designation for an administrative territorial entity
{'OR': [['Dovzhansk', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Church of the Gesù', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?z ) { ( resource:Dovzhansk ) ( resource:Church_of_the_Gesù ) } . ?z property:country ?k } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q212 Q928
SYSTEM
Ukraine, Philippines
Q212 Q928
OR((Q572366,P17,c(Q15617994)), (Q5117852,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q572366
relation P17
action find
entity Q5117852
relation P17
type Q15617994
Dovzhansk or Church of the Gesù belong to [ANSWERS]
{'OR': [['Q572366', 'P17', {'concept': 'Q15617994'}], ['Q5117852', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?z ) { ( resource:Q572366 ) ( resource:Q5117852 ) } . ?z property:P17 ?k } . ?k rdf:type ontology:Q15617994 }
Ukraine Philippines
Dovzhansk or Church of the Gesù belong to Ukraine and Philippines
Ukraine Philippines
action filter_type
action union
action find
entity Dovzhansk
relation country
action find
entity Church of the Gesù
relation country
type designation for an administrative territorial entity
{'OR': [['Dovzhansk', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Church of the Gesù', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?z ) { ( resource:Dovzhansk ) ( resource:Church_of_the_Gesù ) } . ?z property:country ?k } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q408
P530
Q1048835
USER
Do Australia have ambassadorial relations with those administrative territories ?
(Q408,P530,Q212) (Q408,P530,Q928)
action is_in
entity prev_answer
action find
entity Q408
relation P530
['Q408', 'P530', 'Q212'] ['Q408', 'P530', 'Q928']
ASK WHERE { resource:Q408 property:P530 ?b . VALUES ( ?b ) { ( resource:Q212 ) ( resource:Q928 ) } }
Australia
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Ukraine'] ['Australia', 'diplomatic relation', 'Philippines']
ASK WHERE { resource:Australia property:diplomatic_relation ?b . VALUES ( ?b ) { ( resource:Ukraine ) ( resource:Philippines ) } }
[]
political territorial entity
SYSTEM
YES
(Q408,P530,Q212) (Q408,P530,Q928)
action is_in
entity prev_answer
action find
entity Q408
relation P530
[ANSWER]
['Q408', 'P530', 'Q212'] ['Q408', 'P530', 'Q928']
ASK WHERE { resource:Q408 property:P530 ?b . VALUES ( ?b ) { ( resource:Q212 ) ( resource:Q928 ) } }
Yes
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Ukraine'] ['Australia', 'diplomatic relation', 'Philippines']
ASK WHERE { resource:Australia property:diplomatic_relation ?b . VALUES ( ?b ) { ( resource:Ukraine ) ( resource:Philippines ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q743236
P609
Q56061 Q83620 Q12280
USER
Which administrative territories serves as the terminus locations of more number of thoroughfares and bridges than Diest ?
(c(Q83620)|c(Q12280),P609,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P609
type Q56061
type Q83620
action find_reverse_tuple_counts
relation P609
type Q56061
type Q12280
action count
action filter_multi_types
action find_reverse
entity Q743236
relation P609
type Q83620
type Q12280
[[{'concept': 'Q83620'}, {'concept': 'Q12280'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) ?s WHERE { { ?d property:P609 ?s . ?d rdf:type ontology:Q83620 . ?s rdf:type ontology:Q56061 } UNION { ?d property:P609 ?s . ?s rdf:type ontology:Q56061 . ?d rdf:type ontology:Q12280 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:P609 resource:Q743236 . { { ?x rdf:type ontology:Q83620 } UNION { ?x rdf:type ontology:Q12280 } } } } . FILTER ( ?h > ?u ) }
Diest
action greater
action union
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type bridge
action count
action filter_multi_types
action find_reverse
entity Diest
relation terminus location
type thoroughfare
type bridge
[[{'concept': 'thoroughfare'}, {'concept': 'bridge'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) ?s WHERE { { ?d property:terminus_location ?s . ?d rdf:type ontology:thoroughfare . ?s rdf:type ontology:administrative_territorial_entity } UNION { ?d property:terminus_location ?s . ?s rdf:type ontology:administrative_territorial_entity . ?d rdf:type ontology:bridge } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:terminus_location resource:Diest . { { ?x rdf:type ontology:thoroughfare } UNION { ?x rdf:type ontology:bridge } } } } . FILTER ( ?h > ?u ) }
[]
administrative territorial entity thoroughfare bridge
Q1085 Q649 Q8686
SYSTEM
Prague, Moscow, Shanghai
Q803 Q2588702 Q746718 Q886915 Q2305106 Q2635319 Q180139 Q38511 Q23311 Q11885222 Q12443 Q942842 Q2688228 Q2376652 Q1022954 Q851041 Q1784816 Q490595 Q153745 Q611919 Q1018448 Q1019462 Q2002936 Q599201 Q1774840 Q1026676 Q499174 Q1784987 Q6506 Q984437 Q4093 Q16568 Q269980 Q23337 Q7017057 Q488924 Q2656 Q748747 Q33264 Q1425428 Q143782 Q2233872 Q754868 Q985268 Q131335 Q219656 Q36989 Q1026371 Q4076763 Q923799 Q749 Q1527123 Q960454 Q49244 Q4357016 Q3315792 Q90 Q1022789 Q2606846 Q4357626 Q675049 Q2161723 Q904462 Q6931019 Q2227172 Q2132 Q6816 Q2669870 Q982854 Q3204894 Q3532 Q1020419 Q430316 Q5259257 Q3240318 Q2374507 Q12892 Q257446 Q1011062 Q988761 Q945084 Q3907766 Q971223 Q79889 Q212826 Q755600 Q506586 Q3239732 Q1108196 Q1948672 Q2566692 Q1042366 Q10661123 Q34739 Q1615894 Q2668887 Q1978857 Q103717 Q1004397 Q783210 Q2618803 Q5168 Q156080 Q953583 Q1043381 Q952097 Q8336 Q6383632 Q2055138 Q5336994 Q28218 Q7306457 Q2008706 Q2297876 Q1983451 Q298489 Q1344696 Q883 Q7291165 Q23436 Q611065 Q3776352 Q81137 Q5316449 Q828753 Q374501 Q1924946 Q2345413 Q26430 Q192896 Q2432500 Q239 Q12994 Q486472 Q49940 Q16556 Q992 Q8686 Q2279962 Q1233089 Q844908 Q1639484 Q33518 Q973864 Q483000 Q756103 Q1737120 Q79783 Q2266985 Q131491 Q170263 Q985524 Q1748 Q891359 Q2480177 Q3110254 Q84 Q1022447 Q1589316 Q2523431 Q472 Q1009668 Q740149 Q755393 Q34863 Q806903 Q970792 Q1946253 Q831527 Q200036 Q780785 Q954194 Q470380 Q3355046 Q482976 Q2056925 Q1934815 Q780532 Q988156 Q184587 Q755106 Q664060 Q4412622 Q862684 Q1828035 Q1781266 Q40738 Q15054735 Q579854 Q249022 Q2598092 Q1490 Q5326549 Q203889 Q2118905 Q174224 Q1010422 Q5016557 Q1962451 Q2342197 Q983790 Q753830 Q3511360 Q1927386 Q986664 Q2738845 Q202158 Q772940 Q2551418 Q179224 Q156974 Q191914 Q3646335 Q4006479 Q201002 Q2577946 Q26345 Q1025055 Q220 Q525880 Q208262 Q160493 Q5881488 Q3261960 Q2738898 Q14935506 Q631666 Q5858099 Q868869 Q1538358 Q134902 Q118958 Q3243599 Q755569 Q1492862 Q58900 Q616877 Q1755020 Q44989 Q1043368 Q989288 Q2233170 Q134121 Q2388026 Q1110140 Q592438 Q833668 Q4830086 Q1004085 Q64 Q65 Q255781 Q2499899 Q5062158 Q386862 Q14657 Q2194010 Q12439 Q83065 Q755748 Q931778 Q177861 Q1027111 Q504803 Q2115537 Q3126359 Q49225 Q2732640 Q2756084 Q2549819 Q937736 Q841979 Q2278965 Q1782644 Q8385 Q18681973 Q868637 Q1232203 Q49255 Q2192403 Q2563265 Q727 Q649 Q989919 Q1996607 Q577960 Q24826 Q990130 Q3091189 Q79842 Q203000 Q1988986 Q213325 Q887 Q34370 Q813431 Q28237 Q24454 Q889888 Q47164 Q576149 Q384544 Q2076290 Q2188667 Q2199102 Q40844 Q1020364 Q1299618 Q10686 Q1617033 Q143334 Q888491 Q49267 Q369947 Q986634 Q448970 Q1781568 Q755773 Q1013540 Q4411341 Q1781556 Q1950746 Q2361780 Q537120 Q975 Q183551 Q2294176 Q146351 Q129610 Q1782100 Q4411580 Q2659606 Q2152099 Q1190876 Q974325 Q1017 Q83813 Q1887976 Q2415663 Q179385 Q946361 Q1085 Q3354991
(c(Q83620)|c(Q12280),P609,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P609
type Q56061
type Q83620
action find_reverse_tuple_counts
relation P609
type Q56061
type Q12280
action count
action filter_multi_types
action find_reverse
entity Q743236
relation P609
type Q83620
type Q12280
[ANSWERS] serve as the terminus locations of more number of thoroughfares and bridges than Diest
[[{'concept': 'Q83620'}, {'concept': 'Q12280'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) ?s WHERE { { ?d property:P609 ?s . ?d rdf:type ontology:Q83620 . ?s rdf:type ontology:Q56061 } UNION { ?d property:P609 ?s . ?s rdf:type ontology:Q56061 . ?d rdf:type ontology:Q12280 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:P609 resource:Q743236 . { { ?x rdf:type ontology:Q83620 } UNION { ?x rdf:type ontology:Q12280 } } } } . FILTER ( ?h > ?u ) }
Utrecht Shankill Birkenhead Blythe White Menominee Hradec Králové Turku City of London Ojakylä Marquette Smíchov Toronto Ludborough St. Clair Shores Glendora Korsør Daytona Beach Beuel Shannon, County Clare Washington Natalia Ironwood Hayti Hugo Norrmalm Barstow Aspudden Varna Hoogkerk Glasgow Jacksonville Newry Salt Lake City Newbridge, Edinburgh Oceanside Palermo New Buffalo Las Cruces Newcastle upon Tyne North Las Vegas Ontario Cumberland Inver Grove Heights Sioux Falls Macon Pardubice Kinnegad Ballymascanlan Santee Groningen Girton Holyport Santa Ana Ulvsunda industriområde Sätra Paris Munising Norwich Farstanäset Flandreau Ludington Riddarholmen Muchea Sunfish Lake Victoria Ulan-Ude Kilcullen Leon Valley Newcastle Hemel Hempstead Madison National City Dennyloanhead Sapulpa Redfield Antwerp Holyhead Maldon Denham Elko Strensham Buxton Casa Grande West Bromwich Milford Newark Sulphur Coleshill Carlin Crookhaven Lilla Essingen Sandarna Dayton Cheadle New Lenox Forest Lake Rovaniemi Coldwater Bracknell Colome Makhachkala Opava Littleton Reimersholme Muskegon Hockenheim Huvudsta Heavener Edenfield Baton Rouge Redwick Elkhart Chevening Platte Östermalm Enterprise Novosibirsk Rancho Peñasquitos Edinburgh Farington Downings Olomouc Durham Coronado Tabor Canfield Hardtner Tilburg Carlisle Ishpeming Brussels Bruges Kansas City Newark-on-Trent Phoenix Amersfoort Shanghai Highmore Totton and Eling Crawley Huyton Dover Nocona Farmington Lewes Wilmot Nogales Essington Brighton Chester Fallon Copenhagen Bolingbrook Norway Kapolei London Cleckheaton Traneberg Stadshagen Sofia Otterburn Södermalm New Castle Oklahoma City Banning Del Rio St. Ignace Djurgården Volos Långholmen Springfield Přerov Marieberg Brigham City Tripp Milies Negaunee Slidell Grand Rapids Rehoboth Beach Cloncurry Hjorthagen Yucca Valley Lisburn Courtmacsherry Bursa Kungsholmen Gamla stan Traralgon Shorne Tokyo Earlswood Luton Purley Wilmington Inverkeithing Cadnam Mollington Eccles West Wendover Redlands St John's Town of Dalry Madill Springsure Cheboygan Hämeenlinna Bandar-e Emam Khomeyni South Mimms Dover Ústí nad Labem Hachinohe Vasastan Urmston Liljeholmen Mullaghmore, County Sligo Kalmar Kruiningen Rome Hollis Eastbourne Inverness Hollingworth Gröndal Crystal Falls Morven Holtville Khosravi Harlingen Workington Stoke-on-Trent Leuven Lennox Pocomoke City Los Algodones Doncaster Louny Tynemouth Tulsa Stora Essingen Yankton Charlotte Namur Exminster Colman Kalavryta Boise City Awkley Craigavon Berlin Los Angeles Wendover Highnam Fulwood, Lancashire Sylvania Vyborg Sunbury-on-Thames Detroit Leicester Stonington Calipatria Faribault Kengtung Krumbach Viola Hambrook Reno Topcliffe Johanneshov Seaton Burn Hot Springs Mansfield Henryetta Årsta Ostrava Kedonperä Macclesfield Diakopto Tampa Elkton Carrigaholt Amsterdam Moscow Farmington Hills Lake Norden O'Fallon Liverpool Hook of Holland Uddingston Flagstaff Perth Mitchell Rapid City Yekaterinburg Rotterdam Beaumont Lansing Troisvierges Bodmin Santa Monica Columbia Karlovy Vary Wells Selden Chadderton Breda Swanley Ehestorf Belfast Worsley Ishim Oslo Henderson El Cajon Sault Ste. Marie Alvik Nockeby Harrington Dupree Södra Hammarbyhamnen Gärdet Mount Surprise Chapel-en-le-Frith Walker San Antonio Waterford Stroud Liberec Galway Farsta strand Fredhäll Caldwell Worthing Bromsgrove Palmview Aachen Savannah Anthony Petoskey Greenwich Bamber Bridge Prague Kristineberg
Prague, Moscow and Shanghai serve as the terminus locations of more number of thoroughfares and bridges than Diest
Prague Moscow Shanghai
action greater
action union
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type bridge
action count
action filter_multi_types
action find_reverse
entity Diest
relation terminus location
type thoroughfare
type bridge
[[{'concept': 'thoroughfare'}, {'concept': 'bridge'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) ?s WHERE { { ?d property:terminus_location ?s . ?d rdf:type ontology:thoroughfare . ?s rdf:type ontology:administrative_territorial_entity } UNION { ?d property:terminus_location ?s . ?s rdf:type ontology:administrative_territorial_entity . ?d rdf:type ontology:bridge } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:terminus_location resource:Diest . { { ?x rdf:type ontology:thoroughfare } UNION { ?x rdf:type ontology:bridge } } } } . FILTER ( ?h > ?u ) }
[]