Simple Question (Direct)
Simple Question
Q588381
P937
Q515
USER
What is the location where Anton Bornefeld worked ?
(Q588381,P937,c(Q515))
action filter_type
action find
entity Q588381
relation P937
type Q515
['Q588381', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q515 . resource:Q588381 property:P937 ?m }
Anton Bornefeld
action filter_type
action find
entity Anton Bornefeld
relation work location
type city
['Anton Bornefeld', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:city . resource:Anton_Bornefeld property:work_location ?m }
[]
city
Q3069
SYSTEM
Bottrop
Q3069
(Q588381,P937,c(Q515))
action filter_type
action find
entity Q588381
relation P937
type Q515
The location Anton Bornefeld worked is in [ANSWER]
['Q588381', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q515 . resource:Q588381 property:P937 ?m }
Bottrop
The location Anton Bornefeld worked is in Bottrop
Bottrop
action filter_type
action find
entity Anton Bornefeld
relation work location
type city
['Anton Bornefeld', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:city . resource:Anton_Bornefeld property:work_location ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3069
P159
Q43229
USER
Which organization has its HQ location at that city ?
(c(Q43229),P159,Q3069)
action filter_type
action find_reverse
entity Q3069
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q3069']
SELECT DISTINCT ?l WHERE { ?l property:P159 resource:Q3069 . ?l rdf:type ontology:Q43229 }
Bottrop
action filter_type
action find_reverse
entity Bottrop
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Bottrop']
SELECT DISTINCT ?l WHERE { ?l property:headquarters_location resource:Bottrop . ?l rdf:type ontology:organization }
[]
organization
Q321785
SYSTEM
Brabus
Q321785
(c(Q43229),P159,Q3069)
action filter_type
action find_reverse
entity Q3069
relation P159
type Q43229
[ANSWER] has its HQ location at that city
[{'concept': 'Q43229'}, 'P159', 'Q3069']
SELECT DISTINCT ?l WHERE { ?l property:P159 resource:Q3069 . ?l rdf:type ontology:Q43229 }
Brabus
Brabus has its HQ location at that city
Brabus
action filter_type
action find_reverse
entity Bottrop
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Bottrop']
SELECT DISTINCT ?l WHERE { ?l property:headquarters_location resource:Bottrop . ?l rdf:type ontology:organization }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q17560571
P137
Q43229 Q2424752
USER
How many products are the administrator of more number of organizations than Mi-171 ?
(c(Q2424752),P137,c(Q43229))
action count
action greater
action find_tuple_counts
relation P137
type Q2424752
type Q43229
action count
action filter_type
action find
entity Q17560571
relation P137
type Q2424752
[{'concept': 'Q2424752'}, 'P137', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?b ) WHERE { ?c property:P137 ?s . ?c rdf:type ontology:Q2424752 . ?s rdf:type ontology:Q43229 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { resource:Q17560571 property:P137 ?y . ?y rdf:type ontology:Q2424752 } } . FILTER ( ?b > ?x ) }
Mi-171
action count
action greater
action find_tuple_counts
relation operator
type product
type organization
action count
action filter_type
action find
entity Mi-171
relation operator
type product
[{'concept': 'product'}, 'operator', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?b ) WHERE { ?c property:operator ?s . ?c rdf:type ontology:product . ?s rdf:type ontology:organization } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { resource:Mi-171 property:operator ?y . ?y rdf:type ontology:product } } . FILTER ( ?b > ?x ) }
[]
organization product
SYSTEM
2
Q21234191 Q15129020
(c(Q2424752),P137,c(Q43229))
action count
action greater
action find_tuple_counts
relation P137
type Q2424752
type Q43229
action count
action filter_type
action find
entity Q17560571
relation P137
type Q2424752
[ANSWER]
[{'concept': 'Q2424752'}, 'P137', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?b ) WHERE { ?c property:P137 ?s . ?c rdf:type ontology:Q2424752 . ?s rdf:type ontology:Q43229 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { resource:Q17560571 property:P137 ?y . ?y rdf:type ontology:Q2424752 } } . FILTER ( ?b > ?x ) }
NuDat Vickers Vimy Commercial
2
action count
action greater
action find_tuple_counts
relation operator
type product
type organization
action count
action filter_type
action find
entity Mi-171
relation operator
type product
[{'concept': 'product'}, 'operator', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?b ) WHERE { ?c property:operator ?s . ?c rdf:type ontology:product . ?s rdf:type ontology:organization } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { resource:Mi-171 property:operator ?y . ?y rdf:type ontology:product } } . FILTER ( ?b > ?x ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q321785
P1454
Q1269299
USER
Which business organization is the type of legal form of Brabus ?
(Q321785,P1454,c(Q1269299))
action filter_type
action find
entity Q321785
relation P1454
type Q1269299
['Q321785', 'P1454', {'concept': 'Q1269299'}]
SELECT DISTINCT ?d WHERE { resource:Q321785 property:P1454 ?d . ?d rdf:type ontology:Q1269299 }
Brabus
action filter_type
action find
entity Brabus
relation legal form
type type of business entity
['Brabus', 'legal form', {'concept': 'type of business entity'}]
SELECT DISTINCT ?d WHERE { resource:Brabus property:legal_form ?d . ?d rdf:type ontology:type_of_business_entity }
[]
type of business entity
Q460178
SYSTEM
Gesellschaft mit beschränkter Haftung
Q460178
(Q321785,P1454,c(Q1269299))
action filter_type
action find
entity Q321785
relation P1454
type Q1269299
[ANSWER] is the type of legal form of Brabus
['Q321785', 'P1454', {'concept': 'Q1269299'}]
SELECT DISTINCT ?d WHERE { resource:Q321785 property:P1454 ?d . ?d rdf:type ontology:Q1269299 }
Gesellschaft mit beschränkter Haftung
Gesellschaft mit beschränkter Haftung is the type of legal form of Brabus
Gesellschaft mit beschränkter Haftung
action filter_type
action find
entity Brabus
relation legal form
type type of business entity
['Brabus', 'legal form', {'concept': 'type of business entity'}]
SELECT DISTINCT ?d WHERE { resource:Brabus property:legal_form ?d . ?d rdf:type ontology:type_of_business_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3069
P47
Q15617994
USER
Which administrative territory shares border with Bottrop ?
(c(Q15617994),P47,Q3069)
action filter_type
action find
entity Q3069
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q3069']
SELECT DISTINCT ?l WHERE { resource:Q3069 property:P47 ?l . ?l rdf:type ontology:Q15617994 }
Bottrop
action filter_type
action find
entity Bottrop
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Bottrop']
SELECT DISTINCT ?l WHERE { resource:Bottrop property:shares_border_with ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q2838
SYSTEM
Oberhausen
Q2838
(c(Q15617994),P47,Q3069)
action filter_type
action find
entity Q3069
relation P47
type Q15617994
[ANSWER] shares border with Bottrop
[{'concept': 'Q15617994'}, 'P47', 'Q3069']
SELECT DISTINCT ?l WHERE { resource:Q3069 property:P47 ?l . ?l rdf:type ontology:Q15617994 }
Oberhausen
Oberhausen shares border with Bottrop
Oberhausen
action filter_type
action find
entity Bottrop
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Bottrop']
SELECT DISTINCT ?l WHERE { resource:Bottrop property:shares_border_with ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3069
P740
Q43229
USER
What was formed at Bottrop ?
(c(Q43229),P740,Q3069)
action filter_type
action find_reverse
entity Q3069
relation P740
type Q43229
[{'concept': 'Q43229'}, 'P740', 'Q3069']
SELECT DISTINCT ?p WHERE { ?p property:P740 resource:Q3069 . ?p rdf:type ontology:Q43229 }
Bottrop
action filter_type
action find_reverse
entity Bottrop
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Bottrop']
SELECT DISTINCT ?p WHERE { ?p property:location_of_formation resource:Bottrop . ?p rdf:type ontology:organization }
[]
organization
Q321785
SYSTEM
Brabus
Q321785
(c(Q43229),P740,Q3069)
action filter_type
action find_reverse
entity Q3069
relation P740
type Q43229
[ANSWER] was formed at Bottrop
[{'concept': 'Q43229'}, 'P740', 'Q3069']
SELECT DISTINCT ?p WHERE { ?p property:P740 resource:Q3069 . ?p rdf:type ontology:Q43229 }
Brabus
Brabus was formed at Bottrop
Brabus
action filter_type
action find_reverse
entity Bottrop
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Bottrop']
SELECT DISTINCT ?p WHERE { ?p property:location_of_formation resource:Bottrop . ?p rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q321785
P17
Q1048835
USER
Which political territory is that organization situated in ?
(Q321785,P17,c(Q1048835))
action filter_type
action find
entity Q321785
relation P17
type Q1048835
['Q321785', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q321785 property:P17 ?a . ?a rdf:type ontology:Q1048835 }
Brabus
action filter_type
action find
entity Brabus
relation country
type political territorial entity
['Brabus', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Brabus property:country ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q321785,P17,c(Q1048835))
action filter_type
action find
entity Q321785
relation P17
type Q1048835
That organization is situated in [ANSWER]
['Q321785', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q321785 property:P17 ?a . ?a rdf:type ontology:Q1048835 }
Germany
That organization is situated in Germany
Germany
action filter_type
action find
entity Brabus
relation country
type political territorial entity
['Brabus', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Brabus property:country ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q675071 Q3069
P47 P17
Q1048835
USER
Which political territories are Bottrop present in or are bordered by Oliete ?
OR((Q3069,P17,c(Q1048835)), (Q675071,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q3069
relation P17
action find
entity Q675071
relation P47
type Q1048835
{'OR': [['Q3069', 'P17', {'concept': 'Q1048835'}], ['Q675071', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q1048835 . { { resource:Q3069 property:P17 ?n } UNION { resource:Q675071 property:P47 ?n } } }
Oliete Bottrop
action filter_type
action union
action find
entity Bottrop
relation country
action find
entity Oliete
relation shares border with
type political territorial entity
{'OR': [['Bottrop', 'country', {'concept': 'political territorial entity'}], ['Oliete', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:political_territorial_entity . { { resource:Bottrop property:country ?n } UNION { resource:Oliete property:shares_border_with ?n } } }
[]
political territorial entity
Q1653327 Q183 Q1653335 Q1772274 Q1651625 Q1653542
SYSTEM
Alloza, Germany, Alcaine, Ariño, Estercuel, Alacón
Q1653327 Q183 Q1653335 Q1772274 Q1651625 Q1653542
OR((Q3069,P17,c(Q1048835)), (Q675071,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q3069
relation P17
action find
entity Q675071
relation P47
type Q1048835
[ANSWERS]
{'OR': [['Q3069', 'P17', {'concept': 'Q1048835'}], ['Q675071', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q1048835 . { { resource:Q3069 property:P17 ?n } UNION { resource:Q675071 property:P47 ?n } } }
Alloza Germany Alcaine Ariño Estercuel Alacón
Which political territories are Bottrop present in or are bordered by Oliete
Alloza Germany Alcaine Ariño Estercuel Alacón
action filter_type
action union
action find
entity Bottrop
relation country
action find
entity Oliete
relation shares border with
type political territorial entity
{'OR': [['Bottrop', 'country', {'concept': 'political territorial entity'}], ['Oliete', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:political_territorial_entity . { { resource:Bottrop property:country ?n } UNION { resource:Oliete property:shares_border_with ?n } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q916
P530
Q1048835 Q15617994
USER
How many administrative territories have diplomatic relations with more number of political territories than Angola ?
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q916
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { FILTER ( ?r > ?a ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Q916 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . { SELECT DISTINCT ?d ( COUNT ( ?s ) AS ?r ) WHERE { ?d property:P530 ?s . ?d rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1048835 } GROUP BY ?d } }
Angola
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Angola
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { FILTER ( ?r > ?a ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Angola property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . { SELECT DISTINCT ?d ( COUNT ( ?s ) AS ?r ) WHERE { ?d property:diplomatic_relation ?s . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?d } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
37
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q155 Q889 Q884 Q33 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q851 Q230 Q20 Q27 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q916
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { FILTER ( ?r > ?a ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Q916 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . { SELECT DISTINCT ?d ( COUNT ( ?s ) AS ?r ) WHERE { ?d property:P530 ?s . ?d rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1048835 } GROUP BY ?d } }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey Brazil Afghanistan South Korea Finland United States of America Poland Sweden Switzerland Italy Colombia North Korea Saudi Arabia Georgia Norway Ireland Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
37
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Angola
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { FILTER ( ?r > ?a ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Angola property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . { SELECT DISTINCT ?d ( COUNT ( ?s ) AS ?r ) WHERE { ?d property:diplomatic_relation ?s . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?d } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q750
P530
Q1048835 Q15617994
USER
And how about Bolivia?
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q750
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?m ) WHERE { ?r property:P530 ?u . ?r rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q1048835 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { ?o rdf:type ontology:Q15617994 . resource:Q750 property:P530 ?o } } . FILTER ( ?m > ?n ) }
Bolivia
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Bolivia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?m ) WHERE { ?r property:diplomatic_relation ?u . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bolivia property:diplomatic_relation ?o } } . FILTER ( ?m > ?n ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
37
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q155 Q889 Q884 Q33 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q851 Q230 Q20 Q27 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q750
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?m ) WHERE { ?r property:P530 ?u . ?r rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q1048835 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { ?o rdf:type ontology:Q15617994 . resource:Q750 property:P530 ?o } } . FILTER ( ?m > ?n ) }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey Brazil Afghanistan South Korea Finland United States of America Poland Sweden Switzerland Italy Colombia North Korea Saudi Arabia Georgia Norway Ireland Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
37
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Bolivia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?m ) WHERE { ?r property:diplomatic_relation ?u . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bolivia property:diplomatic_relation ?o } } . FILTER ( ?m > ?n ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q17548687 Q675071
P17
Q15617994
USER
Which administrative territories are Oliete or 2 West Street, Horncastle located in ?
OR((Q675071,P17,c(Q15617994)), (Q17548687,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q675071
relation P17
action find
entity Q17548687
relation P17
type Q15617994
{'OR': [['Q675071', 'P17', {'concept': 'Q15617994'}], ['Q17548687', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?j ) { ( resource:Q675071 ) ( resource:Q17548687 ) } . ?j property:P17 ?m } . ?m rdf:type ontology:Q15617994 }
2 West Street, Horncastle Oliete
action filter_type
action union
action find
entity Oliete
relation country
action find
entity 2 West Street, Horncastle
relation country
type designation for an administrative territorial entity
{'OR': [['Oliete', 'country', {'concept': 'designation for an administrative territorial entity'}], ['2 West Street, Horncastle', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?j ) { ( resource:Oliete ) ( resource:2_West_Street,_Horncastle ) } . ?j property:country ?m } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q145
SYSTEM
Spain, United Kingdom
Q29 Q145
OR((Q675071,P17,c(Q15617994)), (Q17548687,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q675071
relation P17
action find
entity Q17548687
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q675071', 'P17', {'concept': 'Q15617994'}], ['Q17548687', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?j ) { ( resource:Q675071 ) ( resource:Q17548687 ) } . ?j property:P17 ?m } . ?m rdf:type ontology:Q15617994 }
Spain United Kingdom
Which administrative territories are Oliete or 2 West Street, Horncastle located in
Spain United Kingdom
action filter_type
action union
action find
entity Oliete
relation country
action find
entity 2 West Street, Horncastle
relation country
type designation for an administrative territorial entity
{'OR': [['Oliete', 'country', {'concept': 'designation for an administrative territorial entity'}], ['2 West Street, Horncastle', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?j ) { ( resource:Oliete ) ( resource:2_West_Street,_Horncastle ) } . ?j property:country ?m } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]