Simple Question (Direct)
Simple Question
Q1582337
P19
Q15617994
USER
Which administrative territory was Hans Schmidt born in ?
(Q1582337,P19,c(Q15617994))
action filter_type
action find
entity Q1582337
relation P19
type Q15617994
['Q1582337', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q1582337 property:P19 ?s . ?s rdf:type ontology:Q15617994 }
Hans Schmidt
action filter_type
action find
entity Hans Schmidt
relation place of birth
type designation for an administrative territorial entity
['Hans Schmidt', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Hans_Schmidt property:place_of_birth ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q3097
SYSTEM
Remscheid
Q3097
(Q1582337,P19,c(Q15617994))
action filter_type
action find
entity Q1582337
relation P19
type Q15617994
Hans Schmidt was born in [ANSWER]
['Q1582337', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q1582337 property:P19 ?s . ?s rdf:type ontology:Q15617994 }
Remscheid
Hans Schmidt was born in Remscheid
Remscheid
action filter_type
action find
entity Hans Schmidt
relation place of birth
type designation for an administrative territorial entity
['Hans Schmidt', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Hans_Schmidt property:place_of_birth ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1582337
P512
Q3412758
USER
Which qualification does that person hold ?
(Q3097,P512,c(Q3412758))
action filter_type
action find
entity Q1582337
relation P512
type Q3412758
['Q3097', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?c WHERE { resource:Q1582337 property:P512 ?c . ?c rdf:type ontology:Q3412758 }
Hans Schmidt
action filter_type
action find
entity Hans Schmidt
relation academic degree
type qualification
['Remscheid', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?c WHERE { resource:Hans_Schmidt property:academic_degree ?c . ?c rdf:type ontology:qualification }
[]
qualification
Q849697
SYSTEM
doctoral degree
Q849697
(Q3097,P512,c(Q3412758))
action filter_type
action find
entity Q1582337
relation P512
type Q3412758
That person holds a [ANSWER]
['Q3097', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?c WHERE { resource:Q1582337 property:P512 ?c . ?c rdf:type ontology:Q3412758 }
doctoral degree
That person holds a doctoral degree
doctoral degree
action filter_type
action find
entity Hans Schmidt
relation academic degree
type qualification
['Remscheid', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?c WHERE { resource:Hans_Schmidt property:academic_degree ?c . ?c rdf:type ontology:qualification }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q849697 Q19665820
P512
Q502895
USER
Does Arnaldo de Peralta have the diploma that qualification ?
(Q19665820,P512,Q849697)
action is_in
entity Q19665820
action find
entity Q849697
relation P512
['Q19665820', 'P512', 'Q849697']
ASK WHERE { resource:Q849697 property:P512 resource:Q19665820 }
doctoral degree Arnaldo de Peralta
action is_in
entity Arnaldo de Peralta
action find
entity doctoral degree
relation academic degree
['Arnaldo de Peralta', 'academic degree', 'doctoral degree']
ASK WHERE { resource:doctoral_degree property:academic_degree resource:Arnaldo_de_Peralta }
[]
common name
SYSTEM
NO
(Q19665820,P512,Q849697)
action is_in
entity Q19665820
action find
entity Q849697
relation P512
[ANSWER]
['Q19665820', 'P512', 'Q849697']
ASK WHERE { resource:Q849697 property:P512 resource:Q19665820 }
No
action is_in
entity Arnaldo de Peralta
action find
entity doctoral degree
relation academic degree
['Arnaldo de Peralta', 'academic degree', 'doctoral degree']
ASK WHERE { resource:doctoral_degree property:academic_degree resource:Arnaldo_de_Peralta }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q3097 Q1772518
P17
Q1048835
USER
Is Remscheid situated in Nova Soure ?
(Q3097,P17,Q1772518)
action is_in
entity Q1772518
action find
entity Q3097
relation P17
['Q3097', 'P17', 'Q1772518']
ASK WHERE { resource:Q3097 property:P17 resource:Q1772518 }
Remscheid Nova Soure
action is_in
entity Nova Soure
action find
entity Remscheid
relation country
['Remscheid', 'country', 'Nova Soure']
ASK WHERE { resource:Remscheid property:country resource:Nova_Soure }
[]
political territorial entity
SYSTEM
NO
(Q3097,P17,Q1772518)
action is_in
entity Q1772518
action find
entity Q3097
relation P17
[ANSWER]
['Q3097', 'P17', 'Q1772518']
ASK WHERE { resource:Q3097 property:P17 resource:Q1772518 }
No
action is_in
entity Nova Soure
action find
entity Remscheid
relation country
['Remscheid', 'country', 'Nova Soure']
ASK WHERE { resource:Remscheid property:country resource:Nova_Soure }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1582337
P138
Q17444909
USER
Which astronomical object type comes from Hans Schmidt ?
(c(Q17444909),P138,Q1582337)
action filter_type
action find_reverse
entity Q1582337
relation P138
type Q17444909
[{'concept': 'Q17444909'}, 'P138', 'Q1582337']
SELECT DISTINCT ?j WHERE { ?j property:P138 resource:Q1582337 . ?j rdf:type ontology:Q17444909 }
Hans Schmidt
action filter_type
action find_reverse
entity Hans Schmidt
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Hans Schmidt']
SELECT DISTINCT ?j WHERE { ?j property:named_after resource:Hans_Schmidt . ?j rdf:type ontology:astronomical_object_type }
[]
astronomical object type
Q1083973
SYSTEM
13177 Hansschmidt
Q1083973
(c(Q17444909),P138,Q1582337)
action filter_type
action find_reverse
entity Q1582337
relation P138
type Q17444909
[ANSWER] comes from Hans Schmidt
[{'concept': 'Q17444909'}, 'P138', 'Q1582337']
SELECT DISTINCT ?j WHERE { ?j property:P138 resource:Q1582337 . ?j rdf:type ontology:Q17444909 }
13177 Hansschmidt
13177 Hansschmidt comes from Hans Schmidt
13177 Hansschmidt
action filter_type
action find_reverse
entity Hans Schmidt
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Hans Schmidt']
SELECT DISTINCT ?j WHERE { ?j property:named_after resource:Hans_Schmidt . ?j rdf:type ontology:astronomical_object_type }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q159
P85
Q484692 Q7725634 Q15617994
USER
Which administrative territories have approximately the same number of hymns or literary works as their anthem as Russia ?
(c(Q15617994),P85,c(Q484692)|c(Q7725634))
action approx
action union
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action count
action filter_multi_types
action find
entity Q159
relation P85
type Q484692
type Q7725634
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) ?k WHERE { { ?k property:P85 ?u . ?k rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q484692 } UNION { ?k property:P85 ?u . ?k rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q7725634 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { resource:Q159 property:P85 ?l . { ?l rdf:type ?x . VALUES ( ?x ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } } } } . FILTER ( ?g = ?h ) }
Russia
action approx
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find
entity Russia
relation anthem
type hymn
type literary work
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) ?k WHERE { { ?k property:anthem ?u . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:hymn } UNION { ?k property:anthem ?u . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:literary_work } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { resource:Russia property:anthem ?l . { ?l rdf:type ?x . VALUES ( ?x ) { ( ontology:hymn ) ( ontology:literary_work ) } } } } . FILTER ( ?g = ?h ) }
[]
hymn literary work designation for an administrative territorial entity
Q159 Q242 Q1045
SYSTEM
Russia, Belize, Somalia
Q159 Q242 Q1045
(c(Q15617994),P85,c(Q484692)|c(Q7725634))
action approx
action union
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action count
action filter_multi_types
action find
entity Q159
relation P85
type Q484692
type Q7725634
[ANSWERS] have approximately the same number of hymns or literary works as their anthem as Russia
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) ?k WHERE { { ?k property:P85 ?u . ?k rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q484692 } UNION { ?k property:P85 ?u . ?k rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q7725634 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { resource:Q159 property:P85 ?l . { ?l rdf:type ?x . VALUES ( ?x ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } } } } . FILTER ( ?g = ?h ) }
Russia Belize Somalia
Russia, Belize and Somalia have approximately the same number of hymns or literary works as their anthem as Russia
Russia Belize Somalia
action approx
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find
entity Russia
relation anthem
type hymn
type literary work
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) ?k WHERE { { ?k property:anthem ?u . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:hymn } UNION { ?k property:anthem ?u . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:literary_work } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { resource:Russia property:anthem ?l . { ?l rdf:type ?x . VALUES ( ?x ) { ( ontology:hymn ) ( ontology:literary_work ) } } } } . FILTER ( ?g = ?h ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q55
P530
Q15617994 Q15617994
USER
How many administrative territories have ambassadorial relations with less number of administrative territories than Netherlands ?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q55
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:Q55 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?c < ?h ) . { SELECT DISTINCT ?l ( COUNT ( ?s ) AS ?c ) WHERE { ?l property:P530 ?s . ?s rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?l } }
Netherlands
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Netherlands
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:Netherlands property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?c < ?h ) . { SELECT DISTINCT ?l ( COUNT ( ?s ) AS ?c ) WHERE { ?l property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
52
Q702 Q804 Q262 Q265 Q712 Q837 Q657 Q792 Q986 Q242 Q811 Q924 Q29999 Q854 Q819 Q424 Q730 Q232 Q921 Q1027 Q1020 Q1028 Q786 Q1036 Q1037 Q974 Q1032 Q1030 Q965 Q967 Q963 Q697 Q695 Q115 Q117 Q754 Q912 Q1007 Q1006 Q1005 Q1009 Q1008 Q971 Q683 Q686 Q836 Q774 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q55
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:Q55 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?c < ?h ) . { SELECT DISTINCT ?l ( COUNT ( ?s ) AS ?c ) WHERE { ?l property:P530 ?s . ?s rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?l } }
Federated States of Micronesia Panama Algeria Uzbekistan Fiji Nepal Chad El Salvador Eritrea Belize Nicaragua Tanzania Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Kazakhstan Brunei Mauritius Malawi Morocco Dominican Republic Uganda Rwanda Democratic Republic of the Congo Niger Namibia Burkina Faso Burundi Botswana Nauru Palau Ethiopia Ghana Trinidad and Tobago Mali Guinea-Bissau Guinea Gambia Cameroon Côte d'Ivoire Republic of the Congo Samoa Vanuatu Myanmar Guatemala Kuwait Madagascar Togo Tonga New Caledonia
52
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Netherlands
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:Netherlands property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?c < ?h ) . { SELECT DISTINCT ?l ( COUNT ( ?s ) AS ?c ) WHERE { ?l property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q574
P530
Q15617994 Q15617994
USER
And also tell me about East Timor?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q574
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?u ) WHERE { ?b property:P530 ?a . ?b rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?b } . FILTER ( ?u < ?z ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { resource:Q574 property:P530 ?k . ?k rdf:type ontology:Q15617994 } } }
East Timor
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity East Timor
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?u ) WHERE { ?b property:diplomatic_relation ?a . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . FILTER ( ?u < ?z ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { resource:East_Timor property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
52
Q702 Q804 Q262 Q265 Q712 Q837 Q657 Q792 Q986 Q242 Q811 Q924 Q29999 Q854 Q819 Q424 Q730 Q232 Q921 Q1027 Q1020 Q1028 Q786 Q1036 Q1037 Q974 Q1032 Q1030 Q965 Q967 Q963 Q697 Q695 Q115 Q117 Q754 Q912 Q1007 Q1006 Q1005 Q1009 Q1008 Q971 Q683 Q686 Q836 Q774 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q574
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?u ) WHERE { ?b property:P530 ?a . ?b rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?b } . FILTER ( ?u < ?z ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { resource:Q574 property:P530 ?k . ?k rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Algeria Uzbekistan Fiji Nepal Chad El Salvador Eritrea Belize Nicaragua Tanzania Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Kazakhstan Brunei Mauritius Malawi Morocco Dominican Republic Uganda Rwanda Democratic Republic of the Congo Niger Namibia Burkina Faso Burundi Botswana Nauru Palau Ethiopia Ghana Trinidad and Tobago Mali Guinea-Bissau Guinea Gambia Cameroon Côte d'Ivoire Republic of the Congo Samoa Vanuatu Myanmar Guatemala Kuwait Madagascar Togo Tonga New Caledonia
52
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity East Timor
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?u ) WHERE { ?b property:diplomatic_relation ?a . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . FILTER ( ?u < ?z ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { resource:East_Timor property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have a diplomatic relationship with exactly 1 administrative territory ?
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?s ) WHERE { ?e property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q1048835 } GROUP BY ?e } . FILTER ( ?s = 1 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?s ) WHERE { ?e property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:political_territorial_entity } GROUP BY ?e } . FILTER ( ?s = 1 ) }
[]
political territorial entity designation for an administrative territorial entity
Q1000 Q769 Q778
SYSTEM
Gabon, Grenada, The Bahamas
Q1000 Q781 Q778 Q769
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[ANSWERS] have a diplomatic relationship with exactly 1 administrative territory
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?s ) WHERE { ?e property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q1048835 } GROUP BY ?e } . FILTER ( ?s = 1 ) }
Gabon Antigua and Barbuda The Bahamas Grenada
Gabon, Grenada and The Bahamas have a diplomatic relationship with exactly 1 administrative territory
Gabon Grenada The Bahamas
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?s ) WHERE { ?e property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:political_territorial_entity } GROUP BY ?e } . FILTER ( ?s = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q159
P35
Q502895
USER
Which people are the heads of state of Russia ?
(Q159,P35,c(Q502895))
action filter_type
action find
entity Q159
relation P35
type Q502895
['Q159', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q159 property:P35 ?i . ?i rdf:type ontology:Q502895 }
Russia
action filter_type
action find
entity Russia
relation head of state
type common name
['Russia', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Russia property:head_of_state ?i . ?i rdf:type ontology:common_name }
[]
common name
Q34453 Q23530 Q7747
SYSTEM
Boris Yeltsin, Dmitry Medvedev, Vladimir Putin
Q34453 Q23530 Q7747
(Q159,P35,c(Q502895))
action filter_type
action find
entity Q159
relation P35
type Q502895
The [ANSWERS] are the heads of state of Russia
['Q159', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q159 property:P35 ?i . ?i rdf:type ontology:Q502895 }
Boris Yeltsin Dmitry Medvedev Vladimir Putin
The Boris Yeltsin, Dmitry Medvedev and Vladimir Putin are the heads of state of Russia
Boris Yeltsin Dmitry Medvedev Vladimir Putin
action filter_type
action find
entity Russia
relation head of state
type common name
['Russia', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Russia property:head_of_state ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5589359
Q502895
USER
And how about Government of the 19th Dáil?
(Q5589359,P35,c(Q502895))
action filter_type
action find
entity Q5589359
relation P35
type Q502895
['Q5589359', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q5589359 property:P35 ?t . ?t rdf:type ontology:Q502895 }
Government of the 19th Dáil
action filter_type
action find
entity Government of the 19th Dáil
relation head of state
type common name
['Government of the 19th Dáil', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Government_of_the_19th_Dáil property:head_of_state ?t . ?t rdf:type ontology:common_name }
[]
common name
Q173347
SYSTEM
Éamon de Valera
Q173347
(Q5589359,P35,c(Q502895))
action filter_type
action find
entity Q5589359
relation P35
type Q502895
[ANSWER]
['Q5589359', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q5589359 property:P35 ?t . ?t rdf:type ontology:Q502895 }
Éamon de Valera
Éamon de Valera
action filter_type
action find
entity Government of the 19th Dáil
relation head of state
type common name
['Government of the 19th Dáil', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Government_of_the_19th_Dáil property:head_of_state ?t . ?t rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P35
Q35798
USER
How many executive branches have that person as their head of state ?
(c(Q35798),P35,Q173347)
action count
action filter_type
action find_reverse
entity Q173347
relation P35
type Q35798
[{'concept': 'Q35798'}, 'P35', 'Q173347']
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { ?j property:P35 resource:Q173347 . ?j rdf:type ontology:Q35798 }
action count
action filter_type
action find_reverse
entity Éamon de Valera
relation head of state
type executive branch
[{'concept': 'executive branch'}, 'head of state', 'Éamon de Valera']
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { ?j property:head_of_state resource:Éamon_de_Valera . ?j rdf:type ontology:executive_branch }
[]
executive branch
SYSTEM
5
Q5589363 Q5589359 Q5589357 Q5589355 Q5589358
(c(Q35798),P35,Q173347)
action count
action filter_type
action find_reverse
entity Q173347
relation P35
type Q35798
[ANSWER]
[{'concept': 'Q35798'}, 'P35', 'Q173347']
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { ?j property:P35 resource:Q173347 . ?j rdf:type ontology:Q35798 }
Government of the 20th Dáil Government of the 19th Dáil Government of the 17th Dáil Government of the 16th Dáil Government of the 18th Dáil
5
action count
action filter_type
action find_reverse
entity Éamon de Valera
relation head of state
type executive branch
[{'concept': 'executive branch'}, 'head of state', 'Éamon de Valera']
SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { ?j property:head_of_state resource:Éamon_de_Valera . ?j rdf:type ontology:executive_branch }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q159
P47
Q15617994
USER
How many administrative territories share border with Russia ?
(Q159,P47,c(Q15617994))
action count
action filter_type
action find
entity Q159
relation P47
type Q15617994
['Q159', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { resource:Q159 property:P47 ?f . ?f rdf:type ontology:Q15617994 }
Russia
action count
action filter_type
action find
entity Russia
relation shares border with
type designation for an administrative territorial entity
['Russia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { resource:Russia property:shares_border_with ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
16
Q227 Q20 Q423 Q211 Q230 Q232 Q191 Q184 Q711 Q33 Q17 Q30 Q37 Q36 Q212 Q148
(Q159,P47,c(Q15617994))
action count
action filter_type
action find
entity Q159
relation P47
type Q15617994
[ANSWER]
['Q159', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { resource:Q159 property:P47 ?f . ?f rdf:type ontology:Q15617994 }
Azerbaijan Norway North Korea Latvia Georgia Kazakhstan Estonia Belarus Mongolia Finland Japan United States of America Lithuania Poland Ukraine People's Republic of China
16
action count
action filter_type
action find
entity Russia
relation shares border with
type designation for an administrative territorial entity
['Russia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { resource:Russia property:shares_border_with ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q17306
P47
Q15617994
USER
And how about Carezzano?
(Q17306,P47,c(Q15617994))
action count
action filter_type
action find
entity Q17306
relation P47
type Q15617994
['Q17306', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { resource:Q17306 property:P47 ?c . ?c rdf:type ontology:Q15617994 }
Carezzano
action count
action filter_type
action find
entity Carezzano
relation shares border with
type designation for an administrative territorial entity
['Carezzano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { resource:Carezzano property:shares_border_with ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
7
Q17632 Q17349 Q17324 Q17318 Q17696 Q17686 Q17665
(Q17306,P47,c(Q15617994))
action count
action filter_type
action find
entity Q17306
relation P47
type Q15617994
[ANSWER]
['Q17306', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { resource:Q17306 property:P47 ?c . ?c rdf:type ontology:Q15617994 }
Paderna Costa Vescovato Castellania Cassano Spinola Villalvernia Tortona Sant'Agata Fossili
7
action count
action filter_type
action find
entity Carezzano
relation shares border with
type designation for an administrative territorial entity
['Carezzano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { resource:Carezzano property:shares_border_with ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q24963
Q15617994
USER
And what about Caresanablot?
(Q24963,P47,c(Q15617994))
action count
action filter_type
action find
entity Q24963
relation P47
type Q15617994
['Q24963', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { resource:Q24963 property:P47 ?h . ?h rdf:type ontology:Q15617994 }
Caresanablot
action count
action filter_type
action find
entity Caresanablot
relation shares border with
type designation for an administrative territorial entity
['Caresanablot', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { resource:Caresanablot property:shares_border_with ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
5
(Q24963,P47,c(Q15617994))
action count
action filter_type
action find
entity Q24963
relation P47
type Q15617994
[ANSWER]
['Q24963', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { resource:Q24963 property:P47 ?h . ?h rdf:type ontology:Q15617994 }
5
action count
action filter_type
action find
entity Caresanablot
relation shares border with
type designation for an administrative territorial entity
['Caresanablot', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { resource:Caresanablot property:shares_border_with ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7747
P127
Q39367
USER
Which dog breeds are owned by Vladimir Putin ?
(c(Q39367),P127,Q7747)
action filter_type
action find_reverse
entity Q7747
relation P127
type Q39367
[{'concept': 'Q39367'}, 'P127', 'Q7747']
SELECT DISTINCT ?o WHERE { ?o property:P127 resource:Q7747 . ?o rdf:type ontology:Q39367 }
Vladimir Putin
action filter_type
action find_reverse
entity Vladimir Putin
relation owned by
type dog breed
[{'concept': 'dog breed'}, 'owned by', 'Vladimir Putin']
SELECT DISTINCT ?o WHERE { ?o property:owned_by resource:Vladimir_Putin . ?o rdf:type ontology:dog_breed }
[]
dog breed
Q1320354 Q27305072
SYSTEM
Koni, Yume
Q1320354 Q27305072
(c(Q39367),P127,Q7747)
action filter_type
action find_reverse
entity Q7747
relation P127
type Q39367
[ANSWERS] are owned by Vladimir Putin
[{'concept': 'Q39367'}, 'P127', 'Q7747']
SELECT DISTINCT ?o WHERE { ?o property:P127 resource:Q7747 . ?o rdf:type ontology:Q39367 }
Koni Yume
Koni and Yume are owned by Vladimir Putin
Koni Yume
action filter_type
action find_reverse
entity Vladimir Putin
relation owned by
type dog breed
[{'concept': 'dog breed'}, 'owned by', 'Vladimir Putin']
SELECT DISTINCT ?o WHERE { ?o property:owned_by resource:Vladimir_Putin . ?o rdf:type ontology:dog_breed }
[]