Simple Question (Direct)
Simple Question
Q695115
P641
Q349
USER
What was the sport that Richard Lambourne was a part of ?
(Q695115,P641,c(Q349))
action filter_type
action find
entity Q695115
relation P641
type Q349
['Q695115', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?s WHERE { resource:Q695115 property:P641 ?s . ?s rdf:type ontology:Q349 }
Richard Lambourne
action filter_type
action find
entity Richard Lambourne
relation sport
type sport
['Richard Lambourne', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?s WHERE { resource:Richard_Lambourne property:sport ?s . ?s rdf:type ontology:sport }
[]
sport
Q1734
SYSTEM
volleyball
Q1734
(Q695115,P641,c(Q349))
action filter_type
action find
entity Q695115
relation P641
type Q349
The sport that Richard Lambourne was a part of was h [ANSWER]
['Q695115', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?s WHERE { resource:Q695115 property:P641 ?s . ?s rdf:type ontology:Q349 }
volleyball
The sport that Richard Lambourne was a part of was h volleyball
volleyball
action filter_type
action find
entity Richard Lambourne
relation sport
type sport
['Richard Lambourne', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?s WHERE { resource:Richard_Lambourne property:sport ?s . ?s rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q695115
P19
Q56061
USER
Which administrative territory was that person born at ?
(Q1734,P19,c(Q56061))
action filter_type
action find
entity Q695115
relation P19
type Q56061
['Q1734', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . resource:Q695115 property:P19 ?h }
Richard Lambourne
action filter_type
action find
entity Richard Lambourne
relation place of birth
type administrative territorial entity
['volleyball', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:Richard_Lambourne property:place_of_birth ?h }
[]
administrative territorial entity
Q43668
SYSTEM
Louisville
Q43668
(Q1734,P19,c(Q56061))
action filter_type
action find
entity Q695115
relation P19
type Q56061
That person was born in [ANSWER]
['Q1734', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . resource:Q695115 property:P19 ?h }
Louisville
That person was born in Louisville
Louisville
action filter_type
action find
entity Richard Lambourne
relation place of birth
type administrative territorial entity
['volleyball', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:Richard_Lambourne property:place_of_birth ?h }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q695115
P21
Q290
USER
What is the sex of that person ?
(Q43668,P21,c(Q290))
action filter_type
action find
entity Q695115
relation P21
type Q290
['Q43668', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q695115 property:P21 ?y . ?y rdf:type ontology:Q290 }
Richard Lambourne
action filter_type
action find
entity Richard Lambourne
relation gender
type sex
['Louisville', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Richard_Lambourne property:gender ?y . ?y rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q43668,P21,c(Q290))
action filter_type
action find
entity Q695115
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q43668', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q695115 property:P21 ?y . ?y rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Richard Lambourne
relation gender
type sex
['Louisville', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Richard_Lambourne property:gender ?y . ?y rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q26404085
P21
Q502895
USER
Does Francis William Barlow have the gender as that sex ?
(Q26404085,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q26404085
relation P21
['Q26404085', 'P21', 'Q6581097']
ASK WHERE { resource:Q26404085 property:P21 resource:Q6581097 }
male Francis William Barlow
action is_in
entity male
action find
entity Francis William Barlow
relation gender
['Francis William Barlow', 'gender', 'male']
ASK WHERE { resource:Francis_William_Barlow property:gender resource:male }
[]
common name
SYSTEM
YES
(Q26404085,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q26404085
relation P21
[ANSWER]
['Q26404085', 'P21', 'Q6581097']
ASK WHERE { resource:Q26404085 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Francis William Barlow
relation gender
['Francis William Barlow', 'gender', 'male']
ASK WHERE { resource:Francis_William_Barlow property:gender resource:male }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P180
Q3305213
USER
Which painting expressess that sex ?
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q3305213
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q3305213 . ?p property:P180 resource:Q6581097 }
male
action filter_type
action find_reverse
entity male
relation depicts
type painting
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:painting . ?p property:depicts resource:male }
[]
painting
Q18713957
SYSTEM
Raja Surendra Vikram Shah at the age of 15 with his prime minister
Q18713957
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q3305213
[ANSWER] expressess that sex
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q3305213 . ?p property:P180 resource:Q6581097 }
Raja Surendra Vikram Shah at the age of 15 with his prime minister
Raja Surendra Vikram Shah at the age of 15 with his prime minister expressess that sex
Raja Surendra Vikram Shah at the age of 15 with his prime minister
action filter_type
action find_reverse
entity male
relation depicts
type painting
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:painting . ?p property:depicts resource:male }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q18713957 Q4055537
P17
Q15617994
USER
Does that painting belong to Avdeyevo ?
(Q18713957,P17,Q4055537)
action is_in
entity Q4055537
action find
entity Q18713957
relation P17
['Q18713957', 'P17', 'Q4055537']
ASK WHERE { resource:Q18713957 property:P17 resource:Q4055537 }
Raja Surendra Vikram Shah at the age of 15 with his prime minister Avdeyevo
action is_in
entity Avdeyevo
action find
entity Raja Surendra Vikram Shah at the age of 15 with his prime minister
relation country
['Raja Surendra Vikram Shah at the age of 15 with his prime minister', 'country', 'Avdeyevo']
ASK WHERE { resource:Raja_Surendra_Vikram_Shah_at_the_age_of_15_with_his_prime_minister property:country resource:Avdeyevo }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q18713957,P17,Q4055537)
action is_in
entity Q4055537
action find
entity Q18713957
relation P17
[ANSWER]
['Q18713957', 'P17', 'Q4055537']
ASK WHERE { resource:Q18713957 property:P17 resource:Q4055537 }
No
action is_in
entity Avdeyevo
action find
entity Raja Surendra Vikram Shah at the age of 15 with his prime minister
relation country
['Raja Surendra Vikram Shah at the age of 15 with his prime minister', 'country', 'Avdeyevo']
ASK WHERE { resource:Raja_Surendra_Vikram_Shah_at_the_age_of_15_with_his_prime_minister property:country resource:Avdeyevo }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1729
P559
Q56061 Q728937 Q34442
USER
Which administrative territories are the endpoints for less number of railroad lines or roads than Erfurt ?
(c(Q728937)|c(Q34442),P559,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q1729
relation P559
type Q728937
type Q34442
[[{'concept': 'Q728937'}, {'concept': 'Q34442'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { ?f property:P559 resource:Q1729 . { { ?f rdf:type ontology:Q728937 } UNION { ?f rdf:type ontology:Q34442 } } } } . FILTER ( ?a < ?v ) . { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?a ) WHERE { ?u rdf:type ?m . VALUES ( ?m ) { ( ontology:Q728937 ) ( ontology:Q34442 ) } } GROUP BY ?s } }
Erfurt
action less
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
action count
action filter_multi_types
action find_reverse
entity Erfurt
relation terminus
type railroad line
type road
[[{'concept': 'railroad line'}, {'concept': 'road'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { ?f property:terminus resource:Erfurt . { { ?f rdf:type ontology:railroad_line } UNION { ?f rdf:type ontology:road } } } } . FILTER ( ?a < ?v ) . { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?a ) WHERE { ?u rdf:type ?m . VALUES ( ?m ) { ( ontology:railroad_line ) ( ontology:road ) } } GROUP BY ?s } }
[]
administrative territorial entity railroad line road
Q1085 Q649 Q65
SYSTEM
Prague, Moscow, Los Angeles
Q938820 Q9832 Q3051477 Q1020217 Q3112707 Q11851639 Q23436 Q837211 Q69639 Q1017610 Q10084 Q375314 Q12439 Q7567083 Q541055 Q723164 Q82490 Q4825403 Q172157 Q575557 Q985313 Q23311 Q687333 Q932159 Q49550 Q38511 Q3469728 Q796625 Q185453 Q588804 Q130191 Q3001 Q5902931 Q723372 Q167155 Q2272 Q986100 Q6023 Q7811572 Q7651719 Q171357 Q134620 Q956 Q959 Q992420 Q556989 Q1011611 Q727 Q649 Q2065223 Q211059 Q42159 Q7986745 Q1009428 Q18808 Q1011221 Q7050868 Q24826 Q6509 Q671348 Q28327 Q5477618 Q4093 Q4356873 Q33959 Q11839080 Q586 Q585 Q987170 Q1017331 Q35433 Q1763 Q1449 Q66208 Q2796951 Q848909 Q1420136 Q754868 Q687945 Q125080 Q782155 Q12714367 Q1757 Q36989 Q49218 Q990112 Q100 Q2734845 Q6820370 Q1020951 Q40840 Q542966 Q1616042 Q643944 Q257034 Q1571025 Q756103 Q25330 Q856860 Q517381 Q3992 Q190847 Q1318695 Q1248150 Q2073801 Q1781385 Q1759693 Q369947 Q84 Q2300663 Q2132 Q2703030 Q2133814 Q794802 Q7944369 Q646784 Q79499 Q184383 Q6275457 Q375905 Q263954 Q10561690 Q12892 Q643160 Q6816 Q1735 Q17872 Q129610 Q766594 Q466054 Q953081 Q180717 Q2086787 Q79804 Q895452 Q40325 Q1229951 Q953719 Q580016 Q2290 Q244289 Q237253 Q485186 Q588417 Q634172 Q146659 Q522362 Q790938 Q530309 Q865872 Q65 Q1085
(c(Q728937)|c(Q34442),P559,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q1729
relation P559
type Q728937
type Q34442
[ANSWERS] are the endpoints for less number of railroad lines or roads than Erfurt
[[{'concept': 'Q728937'}, {'concept': 'Q34442'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { ?f property:P559 resource:Q1729 . { { ?f rdf:type ontology:Q728937 } UNION { ?f rdf:type ontology:Q34442 } } } } . FILTER ( ?a < ?v ) . { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?a ) WHERE { ?u rdf:type ?m . VALUES ( ?m ) { ( ontology:Q728937 ) ( ontology:Q34442 ) } } GROUP BY ?s } }
Virrat Eindhoven Ellewoutsdijk Minehead Sedbury Annalankangas Edinburgh Scheveningen Göschenen Horgoš Vlissingen Folkestone Detroit South Drain Oijen Pop Lyme Regis Austrepollen Winchester Grand Tower Ingleton City of London Middleton-by-Wirksworth Hart Maó-Mahón Turku Salford Quays Edale Multan Badrinath Norwich Paramaribo Horda, Norway Narva-Jõesuu Kalamazoo Skien Ridder Lapua Tobermory, Ontario Svartnes Kecskemét Jyväskylä Beijing Vladivostok Fjærland Ankeny Portpatrick Amsterdam Moscow Port Grimaud Jõhvi Hanam West Vale Drymen Pyongyang Kincardine Nordrepollen Liverpool Burgas Worthing Örnsköldsvik Frafjord Glasgow Mariehäll Nice Akdere, Silifke Bonn Oslo Inčukalns Westport, County Mayo Saint-Rhémy-en-Bosses Murmansk Genoa Frutigen Cumberland Gap Fort William Herøya Cumberland San Bernardino Vaasa Jarrow Granvin Helsinki Pardubice Rochester Littlehampton Boston Henley-in-Arden Merritton, Ontario Ilkley Tampere Angren, Uzbekistan Hessle Asaluyeh Kemble Mullan Lewes Trenton Hammond Dillenburg Liège Alexandroupoli Apoera Wallsend Helmsley Björkhagen South Boston El Cajon London Gaylord Victoria Kilsby St Nicholas-at-Wade Otira Värpinge Moffat Helena Zeebrugge Jong, Norway Deerfield Afobaka Lilla Alby Antwerp Farnham Ulan-Ude Innsbruck Alice Springs Galway Bewdley Mahdia Orivesi Sousse Manitou Springs Sitka Bowling, West Dunbartonshire Springfield L'Estaque South Haven Albina Porsgrunn Athis-Mons Great Yarmouth Key West Sewell, Chile Banihal Clapham Bad Säckingen Aviemore Karkkila Birstall Los Angeles Prague
Prague, Moscow and Los Angeles are the endpoints for less number of railroad lines or roads than Erfurt
Prague Moscow Los Angeles
action less
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
action count
action filter_multi_types
action find_reverse
entity Erfurt
relation terminus
type railroad line
type road
[[{'concept': 'railroad line'}, {'concept': 'road'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { ?f property:terminus resource:Erfurt . { { ?f rdf:type ontology:railroad_line } UNION { ?f rdf:type ontology:road } } } } . FILTER ( ?a < ?v ) . { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?a ) WHERE { ?u rdf:type ?m . VALUES ( ?m ) { ( ontology:railroad_line ) ( ontology:road ) } } GROUP BY ?s } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q2814
P559
Q56061 Q728937 Q34442
USER
And what about Halle (Saale)?
(c(Q728937)|c(Q34442),P559,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q2814
relation P559
type Q728937
type Q34442
[[{'concept': 'Q728937'}, {'concept': 'Q34442'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?u ) AS ?m ) WHERE { ?u rdf:type ?j . VALUES ( ?j ) { ( ontology:Q728937 ) ( ontology:Q34442 ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { ?w property:P559 resource:Q2814 . { { ?w rdf:type ontology:Q728937 } UNION { ?w rdf:type ontology:Q34442 } } } } . FILTER ( ?m < ?h ) }
Halle (Saale)
action less
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
action count
action filter_multi_types
action find_reverse
entity Halle (Saale)
relation terminus
type railroad line
type road
[[{'concept': 'railroad line'}, {'concept': 'road'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?u ) AS ?m ) WHERE { ?u rdf:type ?j . VALUES ( ?j ) { ( ontology:railroad_line ) ( ontology:road ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { ?w property:terminus resource:Halle_(Saale) . { { ?w rdf:type ontology:railroad_line } UNION { ?w rdf:type ontology:road } } } } . FILTER ( ?m < ?h ) }
[]
administrative territorial entity railroad line road
Q1085 Q649 Q65
SYSTEM
Prague, Moscow, Los Angeles
Q938820 Q9832 Q3051477 Q1020217 Q3112707 Q11851639 Q23436 Q837211 Q69639 Q1017610 Q10084 Q375314 Q12439 Q7567083 Q541055 Q723164 Q82490 Q4825403 Q172157 Q575557 Q985313 Q23311 Q687333 Q932159 Q49550 Q38511 Q3469728 Q796625 Q185453 Q588804 Q130191 Q3001 Q5902931 Q723372 Q167155 Q2272 Q986100 Q6023 Q7811572 Q7651719 Q171357 Q134620 Q956 Q959 Q992420 Q556989 Q1011611 Q727 Q649 Q2065223 Q211059 Q42159 Q7986745 Q1009428 Q18808 Q1011221 Q7050868 Q24826 Q6509 Q671348 Q28327 Q5477618 Q4093 Q4356873 Q33959 Q11839080 Q586 Q585 Q987170 Q1017331 Q35433 Q1763 Q1449 Q66208 Q2796951 Q848909 Q1420136 Q754868 Q687945 Q125080 Q782155 Q12714367 Q1757 Q36989 Q49218 Q990112 Q100 Q2734845 Q6820370 Q1020951 Q40840 Q542966 Q1616042 Q643944 Q257034 Q1571025 Q756103 Q25330 Q856860 Q517381 Q3992 Q190847 Q1318695 Q1248150 Q2073801 Q1781385 Q1759693 Q369947 Q84 Q2300663 Q2132 Q2703030 Q2133814 Q794802 Q7944369 Q646784 Q79499 Q184383 Q6275457 Q375905 Q263954 Q10561690 Q12892 Q643160 Q6816 Q1735 Q17872 Q129610 Q766594 Q466054 Q953081 Q180717 Q2086787 Q79804 Q895452 Q40325 Q1229951 Q953719 Q580016 Q2290 Q244289 Q237253 Q485186 Q588417 Q634172 Q146659 Q522362 Q790938 Q530309 Q865872 Q65 Q1085
(c(Q728937)|c(Q34442),P559,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q2814
relation P559
type Q728937
type Q34442
[ANSWERS]
[[{'concept': 'Q728937'}, {'concept': 'Q34442'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?u ) AS ?m ) WHERE { ?u rdf:type ?j . VALUES ( ?j ) { ( ontology:Q728937 ) ( ontology:Q34442 ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { ?w property:P559 resource:Q2814 . { { ?w rdf:type ontology:Q728937 } UNION { ?w rdf:type ontology:Q34442 } } } } . FILTER ( ?m < ?h ) }
Virrat Eindhoven Ellewoutsdijk Minehead Sedbury Annalankangas Edinburgh Scheveningen Göschenen Horgoš Vlissingen Folkestone Detroit South Drain Oijen Pop Lyme Regis Austrepollen Winchester Grand Tower Ingleton City of London Middleton-by-Wirksworth Hart Maó-Mahón Turku Salford Quays Edale Multan Badrinath Norwich Paramaribo Horda, Norway Narva-Jõesuu Kalamazoo Skien Ridder Lapua Tobermory, Ontario Svartnes Kecskemét Jyväskylä Beijing Vladivostok Fjærland Ankeny Portpatrick Amsterdam Moscow Port Grimaud Jõhvi Hanam West Vale Drymen Pyongyang Kincardine Nordrepollen Liverpool Burgas Worthing Örnsköldsvik Frafjord Glasgow Mariehäll Nice Akdere, Silifke Bonn Oslo Inčukalns Westport, County Mayo Saint-Rhémy-en-Bosses Murmansk Genoa Frutigen Cumberland Gap Fort William Herøya Cumberland San Bernardino Vaasa Jarrow Granvin Helsinki Pardubice Rochester Littlehampton Boston Henley-in-Arden Merritton, Ontario Ilkley Tampere Angren, Uzbekistan Hessle Asaluyeh Kemble Mullan Lewes Trenton Hammond Dillenburg Liège Alexandroupoli Apoera Wallsend Helmsley Björkhagen South Boston El Cajon London Gaylord Victoria Kilsby St Nicholas-at-Wade Otira Värpinge Moffat Helena Zeebrugge Jong, Norway Deerfield Afobaka Lilla Alby Antwerp Farnham Ulan-Ude Innsbruck Alice Springs Galway Bewdley Mahdia Orivesi Sousse Manitou Springs Sitka Bowling, West Dunbartonshire Springfield L'Estaque South Haven Albina Porsgrunn Athis-Mons Great Yarmouth Key West Sewell, Chile Banihal Clapham Bad Säckingen Aviemore Karkkila Birstall Los Angeles Prague
Prague Moscow Los Angeles
action less
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
action count
action filter_multi_types
action find_reverse
entity Halle (Saale)
relation terminus
type railroad line
type road
[[{'concept': 'railroad line'}, {'concept': 'road'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?u ) AS ?m ) WHERE { ?u rdf:type ?j . VALUES ( ?j ) { ( ontology:railroad_line ) ( ontology:road ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { ?w property:terminus resource:Halle_(Saale) . { { ?w rdf:type ontology:railroad_line } UNION { ?w rdf:type ontology:road } } } } . FILTER ( ?m < ?h ) }
[]