Simple Question (Direct)
Simple Question
Q19571938
P19
Q56061
USER
Where was Andy Stirling born ?
(Q19571938,P19,c(Q56061))
action filter_type
action find
entity Q19571938
relation P19
type Q56061
['Q19571938', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q56061 . resource:Q19571938 property:P19 ?d }
Andy Stirling
action filter_type
action find
entity Andy Stirling
relation place of birth
type administrative territorial entity
['Andy Stirling', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:administrative_territorial_entity . resource:Andy_Stirling property:place_of_birth ?d }
[]
administrative territorial entity
Q211870
SYSTEM
Paisley
Q211870
(Q19571938,P19,c(Q56061))
action filter_type
action find
entity Q19571938
relation P19
type Q56061
Andy Stirling was born in [ANSWER]
['Q19571938', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q56061 . resource:Q19571938 property:P19 ?d }
Paisley
Andy Stirling was born in Paisley
Paisley
action filter_type
action find
entity Andy Stirling
relation place of birth
type administrative territorial entity
['Andy Stirling', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:administrative_territorial_entity . resource:Andy_Stirling property:place_of_birth ?d }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q211870
P176
Q2235308
USER
What was built by that administrative territory ?
(c(Q2235308),P176,Q211870)
action filter_type
action find_reverse
entity Q211870
relation P176
type Q2235308
[{'concept': 'Q2235308'}, 'P176', 'Q211870']
SELECT DISTINCT ?y WHERE { ?y property:P176 resource:Q211870 . ?y rdf:type ontology:Q2235308 }
Paisley
action filter_type
action find_reverse
entity Paisley
relation manufacturer
type ship type
[{'concept': 'ship type'}, 'manufacturer', 'Paisley']
SELECT DISTINCT ?y WHERE { ?y property:manufacturer resource:Paisley . ?y rdf:type ontology:ship_type }
[]
ship type
Q4232616
SYSTEM
SS Bandırma
Q4232616
(c(Q2235308),P176,Q211870)
action filter_type
action find_reverse
entity Q211870
relation P176
type Q2235308
[ANSWER] was built by that administrative territory
[{'concept': 'Q2235308'}, 'P176', 'Q211870']
SELECT DISTINCT ?y WHERE { ?y property:P176 resource:Q211870 . ?y rdf:type ontology:Q2235308 }
SS Bandırma
SS Bandırma was built by that administrative territory
SS Bandırma
action filter_type
action find_reverse
entity Paisley
relation manufacturer
type ship type
[{'concept': 'ship type'}, 'manufacturer', 'Paisley']
SELECT DISTINCT ?y WHERE { ?y property:manufacturer resource:Paisley . ?y rdf:type ontology:ship_type }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2381402 Q19571938
P27
Q15617994
USER
Which administrative territories are Andy Stirling or Jeison Quiñónes a civilian of ?
OR((Q19571938,P27,c(Q15617994)), (Q2381402,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q19571938
relation P27
action find
entity Q2381402
relation P27
type Q15617994
{'OR': [['Q19571938', 'P27', {'concept': 'Q15617994'}], ['Q2381402', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { ?j property:P27 ?x . VALUES ( ?j ) { ( resource:Q19571938 ) ( resource:Q2381402 ) } } . ?x rdf:type ontology:Q15617994 }
Jeison Quiñónes Andy Stirling
action filter_type
action union
action find
entity Andy Stirling
relation country of citizenship
action find
entity Jeison Quiñónes
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Andy Stirling', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Jeison Quiñónes', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { ?j property:country_of_citizenship ?x . VALUES ( ?j ) { ( resource:Andy_Stirling ) ( resource:Jeison_Quiñónes ) } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q739 Q717 Q145
SYSTEM
Colombia, Venezuela, United Kingdom
Q739 Q717 Q145
OR((Q19571938,P27,c(Q15617994)), (Q2381402,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q19571938
relation P27
action find
entity Q2381402
relation P27
type Q15617994
[ANSWERS] are Andy Stirling or Jeison Quiñónes a civilian of
{'OR': [['Q19571938', 'P27', {'concept': 'Q15617994'}], ['Q2381402', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { ?j property:P27 ?x . VALUES ( ?j ) { ( resource:Q19571938 ) ( resource:Q2381402 ) } } . ?x rdf:type ontology:Q15617994 }
Colombia Venezuela United Kingdom
Colombia, Venezuela and United Kingdom are Andy Stirling or Jeison Quiñónes a civilian of
Colombia Venezuela United Kingdom
action filter_type
action union
action find
entity Andy Stirling
relation country of citizenship
action find
entity Jeison Quiñónes
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Andy Stirling', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Jeison Quiñónes', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { ?j property:country_of_citizenship ?x . VALUES ( ?j ) { ( resource:Andy_Stirling ) ( resource:Jeison_Quiñónes ) } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q570484
P530
Q1048835
USER
Are Ansó known to have diplomatic connections with those administrative territories ?
(Q570484,P530,Q739) (Q570484,P530,Q717) (Q570484,P530,Q145)
action is_in
entity prev_answer
action find
entity Q570484
relation P530
['Q570484', 'P530', 'Q739'] ['Q570484', 'P530', 'Q717'] ['Q570484', 'P530', 'Q145']
ASK WHERE { VALUES ( ?q ) { ( resource:Q739 ) ( resource:Q717 ) ( resource:Q145 ) } . resource:Q570484 property:P530 ?q }
Ansó
action is_in
entity prev_answer
action find
entity Ansó
relation diplomatic relation
['Ansó', 'diplomatic relation', 'Colombia'] ['Ansó', 'diplomatic relation', 'Venezuela'] ['Ansó', 'diplomatic relation', 'United Kingdom']
ASK WHERE { VALUES ( ?q ) { ( resource:Colombia ) ( resource:Venezuela ) ( resource:United_Kingdom ) } . resource:Ansó property:diplomatic_relation ?q }
[]
political territorial entity
SYSTEM
NO
(Q570484,P530,Q739) (Q570484,P530,Q717) (Q570484,P530,Q145)
action is_in
entity prev_answer
action find
entity Q570484
relation P530
[ANSWER]
['Q570484', 'P530', 'Q739'] ['Q570484', 'P530', 'Q717'] ['Q570484', 'P530', 'Q145']
ASK WHERE { VALUES ( ?q ) { ( resource:Q739 ) ( resource:Q717 ) ( resource:Q145 ) } . resource:Q570484 property:P530 ?q }
No
action is_in
entity prev_answer
action find
entity Ansó
relation diplomatic relation
['Ansó', 'diplomatic relation', 'Colombia'] ['Ansó', 'diplomatic relation', 'Venezuela'] ['Ansó', 'diplomatic relation', 'United Kingdom']
ASK WHERE { VALUES ( ?q ) { ( resource:Colombia ) ( resource:Venezuela ) ( resource:United_Kingdom ) } . resource:Ansó property:diplomatic_relation ?q }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q145 Q590227 Q269412
P35
Q502895
USER
Does United Kingdom have Edward VIII and George V as its chief of state ?
(Q145,P35,Q590227) (Q145,P35,Q269412)
action is_in
entity Q145
action intersection
action find_reverse
entity Q590227
relation P35
action find_reverse
entity Q269412
relation P35
['Q145', 'P35', 'Q590227'] ['Q145', 'P35', 'Q269412']
ASK WHERE { resource:Q145 property:P35 resource:Q269412 . resource:Q145 property:P35 resource:Q590227 }
United Kingdom Edward VIII George V
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Edward VIII
relation head of state
action find_reverse
entity George V
relation head of state
['United Kingdom', 'head of state', 'Edward VIII'] ['United Kingdom', 'head of state', 'George V']
ASK WHERE { resource:United_Kingdom property:head_of_state resource:George_V . resource:United_Kingdom property:head_of_state resource:Edward_VIII }
[]
common name
SYSTEM
YES
(Q145,P35,Q590227) (Q145,P35,Q269412)
action is_in
entity Q145
action intersection
action find_reverse
entity Q590227
relation P35
action find_reverse
entity Q269412
relation P35
[ANSWER]
['Q145', 'P35', 'Q590227'] ['Q145', 'P35', 'Q269412']
ASK WHERE { resource:Q145 property:P35 resource:Q269412 . resource:Q145 property:P35 resource:Q590227 }
Yes
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Edward VIII
relation head of state
action find_reverse
entity George V
relation head of state
['United Kingdom', 'head of state', 'Edward VIII'] ['United Kingdom', 'head of state', 'George V']
ASK WHERE { resource:United_Kingdom property:head_of_state resource:George_V . resource:United_Kingdom property:head_of_state resource:Edward_VIII }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q211870
P740
Q2088357
USER
What are the musical ensembles that were formed at Paisley ?
(c(Q2088357),P740,Q211870)
action filter_type
action find_reverse
entity Q211870
relation P740
type Q2088357
[{'concept': 'Q2088357'}, 'P740', 'Q211870']
SELECT DISTINCT ?m WHERE { ?m property:P740 resource:Q211870 . ?m rdf:type ontology:Q2088357 }
Paisley
action filter_type
action find_reverse
entity Paisley
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Paisley']
SELECT DISTINCT ?m WHERE { ?m property:location_of_formation resource:Paisley . ?m rdf:type ontology:musical_ensemble }
[]
musical ensemble
Q2979635 Q283638
SYSTEM
Close Lobsters, Stealers Wheel
Q2979635 Q283638
(c(Q2088357),P740,Q211870)
action filter_type
action find_reverse
entity Q211870
relation P740
type Q2088357
The musical ensembles that were formed at Paisley are the [ANSWERS]
[{'concept': 'Q2088357'}, 'P740', 'Q211870']
SELECT DISTINCT ?m WHERE { ?m property:P740 resource:Q211870 . ?m rdf:type ontology:Q2088357 }
Close Lobsters Stealers Wheel
The musical ensembles that were formed at Paisley are the Close Lobsters and Stealers Wheel
Close Lobsters Stealers Wheel
action filter_type
action find_reverse
entity Paisley
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Paisley']
SELECT DISTINCT ?m WHERE { ?m property:location_of_formation resource:Paisley . ?m rdf:type ontology:musical_ensemble }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q211870
P190
Q515
USER
Which city is partner town of Paisley ?
(c(Q515),P190,Q211870)
action filter_type
action find
entity Q211870
relation P190
type Q515
[{'concept': 'Q515'}, 'P190', 'Q211870']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q515 . resource:Q211870 property:P190 ?a }
Paisley
action filter_type
action find
entity Paisley
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Paisley']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:city . resource:Paisley property:sister_city ?a }
[]
city
Q3075
SYSTEM
Fürth
Q3075
(c(Q515),P190,Q211870)
action filter_type
action find
entity Q211870
relation P190
type Q515
[ANSWER] is partner town of Paisley
[{'concept': 'Q515'}, 'P190', 'Q211870']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q515 . resource:Q211870 property:P190 ?a }
Fürth
Fürth is partner town of Paisley
Fürth
action filter_type
action find
entity Paisley
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Paisley']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:city . resource:Paisley property:sister_city ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3075
P47
Q15617994
USER
Which administrative territories are bordered by that city ?
(Q3075,P47,c(Q15617994))
action filter_type
action find
entity Q3075
relation P47
type Q15617994
['Q3075', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q3075 property:P47 ?y . ?y rdf:type ontology:Q15617994 }
Fürth
action filter_type
action find
entity Fürth
relation shares border with
type designation for an administrative territorial entity
['Fürth', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Fürth property:shares_border_with ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q522025 Q524234 Q383134
SYSTEM
Cadolzburg, Veitsbronn, Seukendorf
Q524234 Q383134 Q521007 Q522025
(Q3075,P47,c(Q15617994))
action filter_type
action find
entity Q3075
relation P47
type Q15617994
[ANSWERS] are bordered by that city
['Q3075', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q3075 property:P47 ?y . ?y rdf:type ontology:Q15617994 }
Veitsbronn Seukendorf Obermichelbach Cadolzburg
Cadolzburg, Veitsbronn and Seukendorf are bordered by that city
Cadolzburg Veitsbronn Seukendorf
action filter_type
action find
entity Fürth
relation shares border with
type designation for an administrative territorial entity
['Fürth', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Fürth property:shares_border_with ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q916
P530
Q15617994 Q15617994 Q1048835
USER
How many administrative territories have diplomatic relationships with greater number of administrative territories and political territories than Angola ?
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q916
relation P530
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?o ) WHERE { VALUES ( ?p ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?z rdf:type ?p } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:P530 resource:Q916 . { { ?b rdf:type ontology:Q15617994 } UNION { ?b rdf:type ontology:Q1048835 } } } } . FILTER ( ?o > ?j ) }
Angola
action count
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Angola
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?o ) WHERE { VALUES ( ?p ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?z rdf:type ?p } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:diplomatic_relation resource:Angola . { { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?b rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?o > ?j ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
SYSTEM
24
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q711 Q252 Q403 Q258 Q159 Q43 Q155 Q796 Q794 Q30 Q38 Q347 Q17 Q79 Q1016 Q1011 Q953
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q916
relation P530
type Q15617994
type Q1048835
[ANSWER]
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?o ) WHERE { VALUES ( ?p ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?z rdf:type ?p } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:P530 resource:Q916 . { { ?b rdf:type ontology:Q15617994 } UNION { ?b rdf:type ontology:Q1048835 } } } } . FILTER ( ?o > ?j ) }
Israel Yemen India Argentina France United Kingdom People's Republic of China Mongolia Indonesia Serbia South Africa Russia Turkey Brazil Iraq Iran United States of America Italy Liechtenstein Japan Egypt Libya Cape Verde Zambia
24
action count
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Angola
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?o ) WHERE { VALUES ( ?p ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?z rdf:type ?p } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:diplomatic_relation resource:Angola . { { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?b rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?o > ?j ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1036
P530
Q15617994 Q15617994 Q1048835
USER
And what about Uganda?
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q1036
relation P530
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) ?o WHERE { { ?c property:P530 ?o . ?c rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } UNION { ?c property:P530 ?o . ?o rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { ?i property:P530 resource:Q1036 . { { ?i rdf:type ontology:Q1048835 } UNION { ?i rdf:type ontology:Q15617994 } } } } . FILTER ( ?g > ?m ) }
Uganda
action count
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Uganda
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) ?o WHERE { { ?c property:diplomatic_relation ?o . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?c property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { ?i property:diplomatic_relation resource:Uganda . { { ?i rdf:type ontology:political_territorial_entity } UNION { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?g > ?m ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
SYSTEM
88
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q241 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q233 Q20 Q27 Q1049 Q843 Q1029 Q736 Q228 Q227 Q225 Q224 Q222 Q96 Q229 Q347 Q17 Q902 Q974 Q1033 Q1030 Q963 Q298 Q115 Q114 Q750 Q212 Q213 Q211 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q1036
relation P530
type Q15617994
type Q1048835
[ANSWER]
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) ?o WHERE { { ?c property:P530 ?o . ?c rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } UNION { ?c property:P530 ?o . ?o rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { ?i property:P530 resource:Q1036 . { { ?i rdf:type ontology:Q1048835 } UNION { ?i rdf:type ontology:Q15617994 } } } } . FILTER ( ?g > ?m ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Cuba Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Malta Norway Ireland Sudan Pakistan Mozambique Ecuador Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Liechtenstein Japan Bangladesh Democratic Republic of the Congo Nigeria Namibia Botswana Chile Ethiopia Kenya Bolivia Ukraine Czech Republic Latvia Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Jordan Libya Cape Verde Spain Thailand Zambia
88
action count
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Uganda
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) ?o WHERE { { ?c property:diplomatic_relation ?o . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?c property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { ?i property:diplomatic_relation resource:Uganda . { { ?i rdf:type ontology:political_territorial_entity } UNION { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?g > ?m ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q522025
P17
Q1048835
USER
Which political territory is Cadolzburg located in ?
(Q522025,P17,c(Q1048835))
action filter_type
action find
entity Q522025
relation P17
type Q1048835
['Q522025', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { resource:Q522025 property:P17 ?z . ?z rdf:type ontology:Q1048835 }
Cadolzburg
action filter_type
action find
entity Cadolzburg
relation country
type political territorial entity
['Cadolzburg', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Cadolzburg property:country ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q522025,P17,c(Q1048835))
action filter_type
action find
entity Q522025
relation P17
type Q1048835
Cadolzburg is located in [ANSWER]
['Q522025', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { resource:Q522025 property:P17 ?z . ?z rdf:type ontology:Q1048835 }
Germany
Cadolzburg is located in Germany
Germany
action filter_type
action find
entity Cadolzburg
relation country
type political territorial entity
['Cadolzburg', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Cadolzburg property:country ?z . ?z rdf:type ontology:political_territorial_entity }
[]