Simple Question (Direct)
Simple Question
Q2713300
P241
Q781132
USER
Which military branch is Allenby Chilton affiliated to ?
(Q2713300,P241,c(Q781132))
action filter_type
action find
entity Q2713300
relation P241
type Q781132
['Q2713300', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?e WHERE { resource:Q2713300 property:P241 ?e . ?e rdf:type ontology:Q781132 }
Allenby Chilton
action filter_type
action find
entity Allenby Chilton
relation military branch
type military branch
['Allenby Chilton', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?e WHERE { resource:Allenby_Chilton property:military_branch ?e . ?e rdf:type ontology:military_branch }
[]
military branch
Q222595
SYSTEM
British Army
Q222595
(Q2713300,P241,c(Q781132))
action filter_type
action find
entity Q2713300
relation P241
type Q781132
Allenby Chilton is affiliated with [ANSWER]
['Q2713300', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?e WHERE { resource:Q2713300 property:P241 ?e . ?e rdf:type ontology:Q781132 }
British Army
Allenby Chilton is affiliated with British Army
British Army
action filter_type
action find
entity Allenby Chilton
relation military branch
type military branch
['Allenby Chilton', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?e WHERE { resource:Allenby_Chilton property:military_branch ?e . ?e rdf:type ontology:military_branch }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q222595
P127
Q1076486
USER
Which sports venue is under posessision of that military branch ?
(c(Q1076486),P127,Q222595)
action filter_type
action find_reverse
entity Q222595
relation P127
type Q1076486
[{'concept': 'Q1076486'}, 'P127', 'Q222595']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1076486 . ?f property:P127 resource:Q222595 }
British Army
action filter_type
action find_reverse
entity British Army
relation owned by
type sports venue
[{'concept': 'sports venue'}, 'owned by', 'British Army']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:sports_venue . ?f property:owned_by resource:British_Army }
[]
sports venue
Q4713732
SYSTEM
Aldershot Military Stadium
Q4713732
(c(Q1076486),P127,Q222595)
action filter_type
action find_reverse
entity Q222595
relation P127
type Q1076486
[ANSWER] is under posessision of that military branch
[{'concept': 'Q1076486'}, 'P127', 'Q222595']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1076486 . ?f property:P127 resource:Q222595 }
Aldershot Military Stadium
Aldershot Military Stadium is under posessision of that military branch
Aldershot Military Stadium
action filter_type
action find_reverse
entity British Army
relation owned by
type sports venue
[{'concept': 'sports venue'}, 'owned by', 'British Army']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:sports_venue . ?f property:owned_by resource:British_Army }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q4713732 Q8048042
P17
Q15617994
USER
Is that sports venue located in Yamhill Carlton School District ?
(Q4713732,P17,Q8048042)
action is_in
entity Q8048042
action find
entity Q4713732
relation P17
['Q4713732', 'P17', 'Q8048042']
ASK WHERE { resource:Q4713732 property:P17 resource:Q8048042 }
Aldershot Military Stadium Yamhill Carlton School District
action is_in
entity Yamhill Carlton School District
action find
entity Aldershot Military Stadium
relation country
['Aldershot Military Stadium', 'country', 'Yamhill Carlton School District']
ASK WHERE { resource:Aldershot_Military_Stadium property:country resource:Yamhill_Carlton_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q4713732,P17,Q8048042)
action is_in
entity Q8048042
action find
entity Q4713732
relation P17
[ANSWER]
['Q4713732', 'P17', 'Q8048042']
ASK WHERE { resource:Q4713732 property:P17 resource:Q8048042 }
No
action is_in
entity Yamhill Carlton School District
action find
entity Aldershot Military Stadium
relation country
['Aldershot Military Stadium', 'country', 'Yamhill Carlton School District']
ASK WHERE { resource:Aldershot_Military_Stadium property:country resource:Yamhill_Carlton_School_District }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4713732
P466
Q874405
USER
Who was the inhabitant of Aldershot Military Stadium ?
(Q4713732,P466,c(Q874405))
action filter_type
action find
entity Q4713732
relation P466
type Q874405
['Q4713732', 'P466', {'concept': 'Q874405'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q874405 . resource:Q4713732 property:P466 ?o }
Aldershot Military Stadium
action filter_type
action find
entity Aldershot Military Stadium
relation occupant
type social group
['Aldershot Military Stadium', 'occupant', {'concept': 'social group'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:social_group . resource:Aldershot_Military_Stadium property:occupant ?o }
[]
social group
Q4794138
SYSTEM
Army Football Association
Q4794138
(Q4713732,P466,c(Q874405))
action filter_type
action find
entity Q4713732
relation P466
type Q874405
The inhabitant of Aldershot Military Stadium was the [ANSWER]
['Q4713732', 'P466', {'concept': 'Q874405'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q874405 . resource:Q4713732 property:P466 ?o }
Army Football Association
The inhabitant of Aldershot Military Stadium was the Army Football Association
Army Football Association
action filter_type
action find
entity Aldershot Military Stadium
relation occupant
type social group
['Aldershot Military Stadium', 'occupant', {'concept': 'social group'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:social_group . resource:Aldershot_Military_Stadium property:occupant ?o }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q4794138 Q5827676 Q985507
P159
Q56061
USER
Does Army Football Association have the principal seat at Anguzhan and Morungaba ?
(Q4794138,P159,Q5827676) (Q4794138,P159,Q985507)
action is_in
entity Q4794138
action intersection
action find_reverse
entity Q5827676
relation P159
action find_reverse
entity Q985507
relation P159
['Q4794138', 'P159', 'Q5827676'] ['Q4794138', 'P159', 'Q985507']
ASK WHERE { resource:Q4794138 property:P159 resource:Q5827676 . resource:Q4794138 property:P159 resource:Q985507 }
Army Football Association Anguzhan Morungaba
action is_in
entity Army Football Association
action intersection
action find_reverse
entity Anguzhan
relation headquarters location
action find_reverse
entity Morungaba
relation headquarters location
['Army Football Association', 'headquarters location', 'Anguzhan'] ['Army Football Association', 'headquarters location', 'Morungaba']
ASK WHERE { resource:Army_Football_Association property:headquarters_location resource:Anguzhan . resource:Army_Football_Association property:headquarters_location resource:Morungaba }
[]
administrative territorial entity
SYSTEM
NO
(Q4794138,P159,Q5827676) (Q4794138,P159,Q985507)
action is_in
entity Q4794138
action intersection
action find_reverse
entity Q5827676
relation P159
action find_reverse
entity Q985507
relation P159
[ANSWER]
['Q4794138', 'P159', 'Q5827676'] ['Q4794138', 'P159', 'Q985507']
ASK WHERE { resource:Q4794138 property:P159 resource:Q5827676 . resource:Q4794138 property:P159 resource:Q985507 }
No
action is_in
entity Army Football Association
action intersection
action find_reverse
entity Anguzhan
relation headquarters location
action find_reverse
entity Morungaba
relation headquarters location
['Army Football Association', 'headquarters location', 'Anguzhan'] ['Army Football Association', 'headquarters location', 'Morungaba']
ASK WHERE { resource:Army_Football_Association property:headquarters_location resource:Anguzhan . resource:Army_Football_Association property:headquarters_location resource:Morungaba }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q171839
P138
Q22988604 Q874405
USER
How many mythological Greek characters are around the same number of social groups named after as Menelaus ?
(c(Q874405),P138,c(Q22988604))
action count
action approx
action find_reverse_tuple_counts
relation P138
type Q22988604
type Q874405
action count
action filter_type
action find
entity Q171839
relation P138
type Q22988604
[{'concept': 'Q874405'}, 'P138', {'concept': 'Q22988604'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?u ) AS ?n ) WHERE { ?v rdf:type ontology:Q22988604 . ?u rdf:type ontology:Q874405 . ?u property:P138 ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { resource:Q171839 property:P138 ?r . ?r rdf:type ontology:Q22988604 } } . FILTER ( ?n = ?s ) }
Menelaus
action count
action approx
action find_reverse_tuple_counts
relation named after
type mythological Greek character
type social group
action count
action filter_type
action find
entity Menelaus
relation named after
type mythological Greek character
[{'concept': 'social group'}, 'named after', {'concept': 'mythological Greek character'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?u ) AS ?n ) WHERE { ?v rdf:type ontology:mythological_Greek_character . ?u rdf:type ontology:social_group . ?u property:named_after ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { resource:Menelaus property:named_after ?r . ?r rdf:type ontology:mythological_Greek_character } } . FILTER ( ?n = ?s ) }
[]
mythological Greek character social group
SYSTEM
91
Q184353 Q207681 Q858116 Q182019 Q570434 Q163920 Q25074 Q131203 Q192407 Q45967 Q164061 Q606422 Q208256 Q172725 Q1358973 Q47231 Q194012 Q1330532 Q1120723 Q129866 Q192485 Q106240 Q184874 Q105019 Q170473 Q660196 Q617753 Q1178583 Q192107 Q196865 Q658523 Q45713 Q203236 Q496595 Q2723619 Q165769 Q644921 Q192469 Q2316900 Q1317994 Q373916 Q308398 Q6612 Q271891 Q749966 Q193433 Q37340 Q7145232 Q379828 Q690613 Q622504 Q2391785 Q200073 Q131157 Q184570 Q83223 Q781867 Q278930 Q140001 Q182101 Q762520 Q1061782 Q151480 Q130832 Q580862 Q23168 Q180287 Q178641 Q502156 Q331327 Q878246 Q41419 Q102561 Q223152 Q1884324 Q210303 Q41410 Q207663 Q572133 Q392631 Q41746 Q189347 Q171839 Q223690 Q476682 Q334817 Q27613 Q332324 Q193609 Q374275 Q1469237
(c(Q874405),P138,c(Q22988604))
action count
action approx
action find_reverse_tuple_counts
relation P138
type Q22988604
type Q874405
action count
action filter_type
action find
entity Q171839
relation P138
type Q22988604
[ANSWER]
[{'concept': 'Q874405'}, 'P138', {'concept': 'Q22988604'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?u ) AS ?n ) WHERE { ?v rdf:type ontology:Q22988604 . ?u rdf:type ontology:Q874405 . ?u property:P138 ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { resource:Q171839 property:P138 ?r . ?r rdf:type ontology:Q22988604 } } . FILTER ( ?n = ?s ) }
Charites Cassiopeia Cepheus, King of Aethiopia Leda Idomeneus Adonis Tantalus Nyx Orestes Persephone Helen of Troy Arcas Diomedes Ajax the Great Oecles Odysseus Morpheus Lycomedes Pheme Minotaur Pelops Deimos Ariadne Phobos Priam Ascalaphus Belus Laodice Hemera Zethos Hermione Titan Pasiphaë Alcinous Agasthenes Penelope Erichthonius Atreus Leucippus Aletheia nymph Midas Charon Ixion Oeneus Hecuba Apollo Patreus Penthesilea Tlepolemus Thyestes Queen Rhodope Lamia Clytemnestra Iris Asclepius Menestheus Epeius Eris Tantalus Sarpedon Rhesus of Thrace sphinx Perseus Antiope Minos Moirae Peleus Pirithous Telamon Cinyras Hestia Sisyphus Adrastus Magnes Hippolyta Hades Augeias of Elis Anteros Agenor Achilles Hypnos Menelaus Ino Anemoi Polynices Cadmus Laomedon Rhadamanthus Anius Sciron
91
action count
action approx
action find_reverse_tuple_counts
relation named after
type mythological Greek character
type social group
action count
action filter_type
action find
entity Menelaus
relation named after
type mythological Greek character
[{'concept': 'social group'}, 'named after', {'concept': 'mythological Greek character'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?u ) AS ?n ) WHERE { ?v rdf:type ontology:mythological_Greek_character . ?u rdf:type ontology:social_group . ?u property:named_after ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { resource:Menelaus property:named_after ?r . ?r rdf:type ontology:mythological_Greek_character } } . FILTER ( ?n = ?s ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q189347
P138
Q22988604 Q874405
USER
And also tell me about Hypnos?
(c(Q874405),P138,c(Q22988604))
action count
action approx
action find_reverse_tuple_counts
relation P138
type Q22988604
type Q874405
action count
action filter_type
action find
entity Q189347
relation P138
type Q22988604
[{'concept': 'Q874405'}, 'P138', {'concept': 'Q22988604'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d rdf:type ontology:Q22988604 . resource:Q189347 property:P138 ?d } } . FILTER ( ?i = ?k ) . { SELECT DISTINCT ?g ( COUNT ( ?f ) AS ?i ) WHERE { ?f property:P138 ?g . ?g rdf:type ontology:Q22988604 . ?f rdf:type ontology:Q874405 } GROUP BY ?g } }
Hypnos
action count
action approx
action find_reverse_tuple_counts
relation named after
type mythological Greek character
type social group
action count
action filter_type
action find
entity Hypnos
relation named after
type mythological Greek character
[{'concept': 'social group'}, 'named after', {'concept': 'mythological Greek character'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d rdf:type ontology:mythological_Greek_character . resource:Hypnos property:named_after ?d } } . FILTER ( ?i = ?k ) . { SELECT DISTINCT ?g ( COUNT ( ?f ) AS ?i ) WHERE { ?f property:named_after ?g . ?g rdf:type ontology:mythological_Greek_character . ?f rdf:type ontology:social_group } GROUP BY ?g } }
[]
mythological Greek character social group
SYSTEM
91
Q184353 Q207681 Q858116 Q182019 Q570434 Q163920 Q25074 Q131203 Q192407 Q45967 Q164061 Q606422 Q208256 Q172725 Q1358973 Q47231 Q194012 Q1330532 Q1120723 Q129866 Q192485 Q106240 Q184874 Q105019 Q170473 Q660196 Q617753 Q1178583 Q192107 Q196865 Q658523 Q45713 Q203236 Q496595 Q2723619 Q165769 Q644921 Q192469 Q2316900 Q1317994 Q373916 Q308398 Q6612 Q271891 Q749966 Q193433 Q37340 Q7145232 Q379828 Q690613 Q622504 Q2391785 Q200073 Q131157 Q184570 Q83223 Q781867 Q278930 Q140001 Q182101 Q762520 Q1061782 Q151480 Q130832 Q580862 Q23168 Q180287 Q178641 Q502156 Q331327 Q878246 Q41419 Q102561 Q223152 Q1884324 Q210303 Q41410 Q207663 Q572133 Q392631 Q41746 Q189347 Q171839 Q223690 Q476682 Q334817 Q27613 Q332324 Q193609 Q374275 Q1469237
(c(Q874405),P138,c(Q22988604))
action count
action approx
action find_reverse_tuple_counts
relation P138
type Q22988604
type Q874405
action count
action filter_type
action find
entity Q189347
relation P138
type Q22988604
[ANSWER]
[{'concept': 'Q874405'}, 'P138', {'concept': 'Q22988604'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d rdf:type ontology:Q22988604 . resource:Q189347 property:P138 ?d } } . FILTER ( ?i = ?k ) . { SELECT DISTINCT ?g ( COUNT ( ?f ) AS ?i ) WHERE { ?f property:P138 ?g . ?g rdf:type ontology:Q22988604 . ?f rdf:type ontology:Q874405 } GROUP BY ?g } }
Charites Cassiopeia Cepheus, King of Aethiopia Leda Idomeneus Adonis Tantalus Nyx Orestes Persephone Helen of Troy Arcas Diomedes Ajax the Great Oecles Odysseus Morpheus Lycomedes Pheme Minotaur Pelops Deimos Ariadne Phobos Priam Ascalaphus Belus Laodice Hemera Zethos Hermione Titan Pasiphaë Alcinous Agasthenes Penelope Erichthonius Atreus Leucippus Aletheia nymph Midas Charon Ixion Oeneus Hecuba Apollo Patreus Penthesilea Tlepolemus Thyestes Queen Rhodope Lamia Clytemnestra Iris Asclepius Menestheus Epeius Eris Tantalus Sarpedon Rhesus of Thrace sphinx Perseus Antiope Minos Moirae Peleus Pirithous Telamon Cinyras Hestia Sisyphus Adrastus Magnes Hippolyta Hades Augeias of Elis Anteros Agenor Achilles Hypnos Menelaus Ino Anemoi Polynices Cadmus Laomedon Rhadamanthus Anius Sciron
91
action count
action approx
action find_reverse_tuple_counts
relation named after
type mythological Greek character
type social group
action count
action filter_type
action find
entity Hypnos
relation named after
type mythological Greek character
[{'concept': 'social group'}, 'named after', {'concept': 'mythological Greek character'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d rdf:type ontology:mythological_Greek_character . resource:Hypnos property:named_after ?d } } . FILTER ( ?i = ?k ) . { SELECT DISTINCT ?g ( COUNT ( ?f ) AS ?i ) WHERE { ?f property:named_after ?g . ?g rdf:type ontology:mythological_Greek_character . ?f rdf:type ontology:social_group } GROUP BY ?g } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q17541524 Q4713732
P17
Q15617994
USER
Which administrative territories are Aldershot Military Stadium or Church Of St John The Baptist located in ?
OR((Q4713732,P17,c(Q15617994)), (Q17541524,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q4713732
relation P17
action find
entity Q17541524
relation P17
type Q15617994
{'OR': [['Q4713732', 'P17', {'concept': 'Q15617994'}], ['Q17541524', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?o ) { ( resource:Q4713732 ) ( resource:Q17541524 ) } . ?o property:P17 ?b } . ?b rdf:type ontology:Q15617994 }
Church Of St John The Baptist Aldershot Military Stadium
action filter_type
action union
action find
entity Aldershot Military Stadium
relation country
action find
entity Church Of St John The Baptist
relation country
type designation for an administrative territorial entity
{'OR': [['Aldershot Military Stadium', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Church Of St John The Baptist', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?o ) { ( resource:Aldershot_Military_Stadium ) ( resource:Church_Of_St_John_The_Baptist ) } . ?o property:country ?b } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
OR((Q4713732,P17,c(Q15617994)), (Q17541524,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q4713732
relation P17
action find
entity Q17541524
relation P17
type Q15617994
[ANSWER] is Aldershot Military Stadium or Church Of St John The Baptist located in
{'OR': [['Q4713732', 'P17', {'concept': 'Q15617994'}], ['Q17541524', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?o ) { ( resource:Q4713732 ) ( resource:Q17541524 ) } . ?o property:P17 ?b } . ?b rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is Aldershot Military Stadium or Church Of St John The Baptist located in
United Kingdom
action filter_type
action union
action find
entity Aldershot Military Stadium
relation country
action find
entity Church Of St John The Baptist
relation country
type designation for an administrative territorial entity
{'OR': [['Aldershot Military Stadium', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Church Of St John The Baptist', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?o ) { ( resource:Aldershot_Military_Stadium ) ( resource:Church_Of_St_John_The_Baptist ) } . ?o property:country ?b } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q145 Q26279573
P17
Q3947
USER
Is Oldlands Home Farmhouse present in that administrative territory ?
(Q26279573,P17,Q145)
action is_in
entity Q145
action find
entity Q26279573
relation P17
['Q26279573', 'P17', 'Q145']
ASK WHERE { resource:Q26279573 property:P17 resource:Q145 }
United Kingdom Oldlands Home Farmhouse
action is_in
entity United Kingdom
action find
entity Oldlands Home Farmhouse
relation country
['Oldlands Home Farmhouse', 'country', 'United Kingdom']
ASK WHERE { resource:Oldlands_Home_Farmhouse property:country resource:United_Kingdom }
[]
house
SYSTEM
YES
(Q26279573,P17,Q145)
action is_in
entity Q145
action find
entity Q26279573
relation P17
[ANSWER]
['Q26279573', 'P17', 'Q145']
ASK WHERE { resource:Q26279573 property:P17 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity Oldlands Home Farmhouse
relation country
['Oldlands Home Farmhouse', 'country', 'United Kingdom']
ASK WHERE { resource:Oldlands_Home_Farmhouse property:country resource:United_Kingdom }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q145
P47
Q1048835 Q15617994
USER
How many political territories or administrative territories have a shared border with United Kingdom ?
(Q145,P47,c(Q1048835)) (Q145,P47,c(Q15617994))
action count
action union
action filter_type
action find
entity Q145
relation P47
type Q1048835
action filter_type
action find
entity Q145
relation P47
type Q15617994
['Q145', 'P47', {'concept': 'Q1048835'}] ['Q145', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { resource:Q145 property:P47 ?s . ?s rdf:type ontology:Q1048835 } UNION { resource:Q145 property:P47 ?s . ?s rdf:type ontology:Q15617994 } }
United Kingdom
action count
action union
action filter_type
action find
entity United Kingdom
relation shares border with
type political territorial entity
action filter_type
action find
entity United Kingdom
relation shares border with
type designation for an administrative territorial entity
['United Kingdom', 'shares border with', {'concept': 'political territorial entity'}] ['United Kingdom', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { resource:United_Kingdom property:shares_border_with ?s . ?s rdf:type ontology:political_territorial_entity } UNION { resource:United_Kingdom property:shares_border_with ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
4
Q142 Q717 Q35 Q27
(Q145,P47,c(Q1048835)) (Q145,P47,c(Q15617994))
action count
action union
action filter_type
action find
entity Q145
relation P47
type Q1048835
action filter_type
action find
entity Q145
relation P47
type Q15617994
[ANSWER]
['Q145', 'P47', {'concept': 'Q1048835'}] ['Q145', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { resource:Q145 property:P47 ?s . ?s rdf:type ontology:Q1048835 } UNION { resource:Q145 property:P47 ?s . ?s rdf:type ontology:Q15617994 } }
France Venezuela Denmark Ireland
4
action count
action union
action filter_type
action find
entity United Kingdom
relation shares border with
type political territorial entity
action filter_type
action find
entity United Kingdom
relation shares border with
type designation for an administrative territorial entity
['United Kingdom', 'shares border with', {'concept': 'political territorial entity'}] ['United Kingdom', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { resource:United_Kingdom property:shares_border_with ?s . ?s rdf:type ontology:political_territorial_entity } UNION { resource:United_Kingdom property:shares_border_with ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
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 relations with atmost 19 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 19
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?s ) WHERE { ?d property:P530 ?a . ?a rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 } GROUP BY ?a } . FILTER ( ?s <= 19 ) }
action count
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 19
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?s ) WHERE { ?d property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . FILTER ( ?s <= 19 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
161
Q702 Q804 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 19
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?s ) WHERE { ?d property:P530 ?a . ?a rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 } GROUP BY ?a } . FILTER ( ?s <= 19 ) }
Federated States of Micronesia Panama Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
161
action count
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 19
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?s ) WHERE { ?d property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . FILTER ( ?s <= 19 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P30
Q2221906
USER
Which geographic location is United Kingdom situated in ?
(Q145,P30,c(Q2221906))
action filter_type
action find
entity Q145
relation P30
type Q2221906
['Q145', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q2221906 . resource:Q145 property:P30 ?y }
United Kingdom
action filter_type
action find
entity United Kingdom
relation continent
type geographic location
['United Kingdom', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:geographic_location . resource:United_Kingdom property:continent ?y }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q145,P30,c(Q2221906))
action filter_type
action find
entity Q145
relation P30
type Q2221906
United Kingdom is situated in [ANSWER]
['Q145', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q2221906 . resource:Q145 property:P30 ?y }
Europe
United Kingdom is situated in Europe
Europe
action filter_type
action find
entity United Kingdom
relation continent
type geographic location
['United Kingdom', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:geographic_location . resource:United_Kingdom property:continent ?y }
[]