Simple Question (Direct)
Simple Question
Q587060
P21
Q290
USER
Which sex does Santino Spinelli have ?
(Q587060,P21,c(Q290))
action filter_type
action find
entity Q587060
relation P21
type Q290
['Q587060', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q587060 property:P21 ?x . ?x rdf:type ontology:Q290 }
Santino Spinelli
action filter_type
action find
entity Santino Spinelli
relation gender
type sex
['Santino Spinelli', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Santino_Spinelli property:gender ?x . ?x rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q587060,P21,c(Q290))
action filter_type
action find
entity Q587060
relation P21
type Q290
Santino Spinelli has a [ANSWER]
['Q587060', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q587060 property:P21 ?x . ?x rdf:type ontology:Q290 }
male
Santino Spinelli has a male
male
action filter_type
action find
entity Santino Spinelli
relation gender
type sex
['Santino Spinelli', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Santino_Spinelli property:gender ?x . ?x rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q587060
P19
Q56061
USER
Which administrative territory is the birthplace of Santino Spinelli ?
(Q587060,P19,c(Q56061))
action filter_type
action find
entity Q587060
relation P19
type Q56061
['Q587060', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q587060 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Santino Spinelli
action filter_type
action find
entity Santino Spinelli
relation place of birth
type administrative territorial entity
['Santino Spinelli', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Santino_Spinelli property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q219330
SYSTEM
Pietrasanta
Q219330
(Q587060,P19,c(Q56061))
action filter_type
action find
entity Q587060
relation P19
type Q56061
[ANSWER] is the birthplace of Santino Spinelli
['Q587060', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q587060 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Pietrasanta
Pietrasanta is the birthplace of Santino Spinelli
Pietrasanta
action filter_type
action find
entity Santino Spinelli
relation place of birth
type administrative territorial entity
['Santino Spinelli', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Santino_Spinelli property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P190
Q56061 Q20667921
USER
How many administrative territories and french administrative divisions are twin cities of that administrative territory ?
(Q219330,P190,c(Q56061)) (Q219330,P190,c(Q20667921)) (Q219330,P190,c(Q56061)) (Q219330,P190,c(Q20667921))
action count
action union
action filter_type
action find
entity Q219330
relation P190
type Q56061
action filter_type
action find
entity Q219330
relation P190
type Q20667921
['Q219330', 'P190', {'concept': 'Q56061'}] ['Q219330', 'P190', {'concept': 'Q20667921'}] ['Q219330', 'P190', {'concept': 'Q56061'}] ['Q219330', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { resource:Q219330 property:P190 ?e . ?e rdf:type ontology:Q56061 } UNION { ?e rdf:type ontology:Q20667921 . resource:Q219330 property:P190 ?e } }
action count
action union
action filter_type
action find
entity Pietrasanta
relation sister city
type administrative territorial entity
action filter_type
action find
entity Pietrasanta
relation sister city
type type of french administrative division
['Pietrasanta', 'sister city', {'concept': 'administrative territorial entity'}] ['Pietrasanta', 'sister city', {'concept': 'type of french administrative division'}] ['Pietrasanta', 'sister city', {'concept': 'administrative territorial entity'}] ['Pietrasanta', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { resource:Pietrasanta property:sister_city ?e . ?e rdf:type ontology:administrative_territorial_entity } UNION { ?e rdf:type ontology:type_of_french_administrative_division . resource:Pietrasanta property:sister_city ?e } }
[]
administrative territorial entity type of french administrative division
SYSTEM
2 administrative territories and 1 french administrative divisions
Q200589 Q29364 Q387433
(Q219330,P190,c(Q56061)) (Q219330,P190,c(Q20667921)) (Q219330,P190,c(Q56061)) (Q219330,P190,c(Q20667921))
action count
action union
action filter_type
action find
entity Q219330
relation P190
type Q56061
action filter_type
action find
entity Q219330
relation P190
type Q20667921
[ANSWER]
['Q219330', 'P190', {'concept': 'Q56061'}] ['Q219330', 'P190', {'concept': 'Q20667921'}] ['Q219330', 'P190', {'concept': 'Q56061'}] ['Q219330', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { resource:Q219330 property:P190 ?e . ?e rdf:type ontology:Q56061 } UNION { ?e rdf:type ontology:Q20667921 . resource:Q219330 property:P190 ?e } }
Utsunomiya Montgomery Villeparisis
2 administrative territories and 1 french administrative divisions
action count
action union
action filter_type
action find
entity Pietrasanta
relation sister city
type administrative territorial entity
action filter_type
action find
entity Pietrasanta
relation sister city
type type of french administrative division
['Pietrasanta', 'sister city', {'concept': 'administrative territorial entity'}] ['Pietrasanta', 'sister city', {'concept': 'type of french administrative division'}] ['Pietrasanta', 'sister city', {'concept': 'administrative territorial entity'}] ['Pietrasanta', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { resource:Pietrasanta property:sister_city ?e . ?e rdf:type ontology:administrative_territorial_entity } UNION { ?e rdf:type ontology:type_of_french_administrative_division . resource:Pietrasanta property:sister_city ?e } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4393881 Q587060
P27
Q15617994
USER
Which administrative territories are the native countriesof Santino Spinelli or Sergei Rekhtin ?
OR((Q587060,P27,c(Q15617994)), (Q4393881,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q587060
relation P27
action find
entity Q4393881
relation P27
type Q15617994
{'OR': [['Q587060', 'P27', {'concept': 'Q15617994'}], ['Q4393881', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q587060 property:P27 ?t } UNION { resource:Q4393881 property:P27 ?t } } . ?t rdf:type ontology:Q15617994 }
Sergei Rekhtin Santino Spinelli
action filter_type
action union
action find
entity Santino Spinelli
relation country of citizenship
action find
entity Sergei Rekhtin
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Santino Spinelli', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Sergei Rekhtin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Santino_Spinelli property:country_of_citizenship ?t } UNION { resource:Sergei_Rekhtin property:country_of_citizenship ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q159
SYSTEM
Italy, Russia
Q38 Q159
OR((Q587060,P27,c(Q15617994)), (Q4393881,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q587060
relation P27
action find
entity Q4393881
relation P27
type Q15617994
[ANSWERS] are the native countriesof Santino Spinelli or Sergei Rekhtin
{'OR': [['Q587060', 'P27', {'concept': 'Q15617994'}], ['Q4393881', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q587060 property:P27 ?t } UNION { resource:Q4393881 property:P27 ?t } } . ?t rdf:type ontology:Q15617994 }
Italy Russia
Italy and Russia are the native countriesof Santino Spinelli or Sergei Rekhtin
Italy Russia
action filter_type
action union
action find
entity Santino Spinelli
relation country of citizenship
action find
entity Sergei Rekhtin
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Santino Spinelli', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Sergei Rekhtin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Santino_Spinelli property:country_of_citizenship ?t } UNION { resource:Sergei_Rekhtin property:country_of_citizenship ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4750706
P530
Q15617994
USER
Do Anacortes School District have diplomatic relations with those ones ?
(Q4750706,P530,Q38) (Q4750706,P530,Q159)
action is_in
entity prev_answer
action find
entity Q4750706
relation P530
['Q4750706', 'P530', 'Q38'] ['Q4750706', 'P530', 'Q159']
ASK WHERE { resource:Q4750706 property:P530 ?d . VALUES ( ?d ) { ( resource:Q38 ) ( resource:Q159 ) } }
Anacortes School District
action is_in
entity prev_answer
action find
entity Anacortes School District
relation diplomatic relation
['Anacortes School District', 'diplomatic relation', 'Italy'] ['Anacortes School District', 'diplomatic relation', 'Russia']
ASK WHERE { resource:Anacortes_School_District property:diplomatic_relation ?d . VALUES ( ?d ) { ( resource:Italy ) ( resource:Russia ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q4750706,P530,Q38) (Q4750706,P530,Q159)
action is_in
entity prev_answer
action find
entity Q4750706
relation P530
[ANSWER]
['Q4750706', 'P530', 'Q38'] ['Q4750706', 'P530', 'Q159']
ASK WHERE { resource:Q4750706 property:P530 ?d . VALUES ( ?d ) { ( resource:Q38 ) ( resource:Q159 ) } }
No
action is_in
entity prev_answer
action find
entity Anacortes School District
relation diplomatic relation
['Anacortes School District', 'diplomatic relation', 'Italy'] ['Anacortes School District', 'diplomatic relation', 'Russia']
ASK WHERE { resource:Anacortes_School_District property:diplomatic_relation ?d . VALUES ( ?d ) { ( resource:Italy ) ( resource:Russia ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q801
P37
Q5962346 Q34770 Q15617994
USER
Which administrative territories are more number of classification schemes and languages the official language of than Israel ?
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action greater
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action count
action filter_multi_types
action find
entity Q801
relation P37
type Q5962346
type Q34770
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?t WHERE { { ?t property:P37 ?s . ?s rdf:type ontology:Q5962346 . ?t rdf:type ontology:Q15617994 } UNION { ?t property:P37 ?s . ?s rdf:type ontology:Q34770 . ?t rdf:type ontology:Q15617994 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { resource:Q801 property:P37 ?m . { ?m rdf:type ?l . VALUES ( ?l ) { ( ontology:Q5962346 ) ( ontology:Q34770 ) } } } } . FILTER ( ?k > ?d ) }
Israel
action greater
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action count
action filter_multi_types
action find
entity Israel
relation official language
type classification scheme
type language
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?t WHERE { { ?t property:official_language ?s . ?s rdf:type ontology:classification_scheme . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?t property:official_language ?s . ?s rdf:type ontology:language . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { resource:Israel property:official_language ?m . { ?m rdf:type ?l . VALUES ( ?l ) { ( ontology:classification_scheme ) ( ontology:language ) } } } } . FILTER ( ?k > ?d ) }
[]
classification scheme language designation for an administrative territorial entity
Q38 Q55 Q953
SYSTEM
Italy, Netherlands, Zambia
Q804 Q399 Q800 Q709 Q668 Q414 Q1948 Q783 Q784 Q493428 Q712 Q710 Q717 Q2003 Q258 Q1979 Q792 Q954 Q953 Q958 Q986 Q241 Q242 Q244 Q1974 Q811 Q53381 Q101526 Q924 Q34 Q928 Q39 Q38 Q739 Q733 Q734 Q55 Q1013 Q795587 Q693658 Q145 Q238 Q20 Q1044 Q1042 Q27 Q29 Q1049 Q1020 Q843 Q736 Q786 Q1904 Q96 Q1050 Q1989 Q686312 Q1036 Q1037 Q1033 Q1030 Q963 Q298 Q695 Q114 Q117 Q754 Q750 Q213 Q1005 Q833 Q1951 Q1009 Q243220 Q683 Q34020 Q686 Q760 Q77 Q774 Q1014 Q678 Q233 Q672 Q1952 Q2023
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action greater
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action count
action filter_multi_types
action find
entity Q801
relation P37
type Q5962346
type Q34770
[ANSWERS] are more number of classification schemes and languages the official language of than Israel
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?t WHERE { { ?t property:P37 ?s . ?s rdf:type ontology:Q5962346 . ?t rdf:type ontology:Q15617994 } UNION { ?t property:P37 ?s . ?s rdf:type ontology:Q34770 . ?t rdf:type ontology:Q15617994 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { resource:Q801 property:P37 ?m . { ?m rdf:type ?l . VALUES ( ?l ) { ( ontology:Q5962346 ) ( ontology:Q34770 ) } } } } . FILTER ( ?k > ?d ) }
Panama Armenia Costa Rica Marshall Islands India Argentina Manitoba Honduras Dominica Mistretta Fiji Kiribati Venezuela Newfoundland and Labrador South Africa Prince Edward Island El Salvador Zimbabwe Zambia South Sudan Eritrea Cuba Belize Barbados British Columbia Nicaragua Tolmezzo Rovetta Tanzania Sweden Philippines Switzerland Italy Colombia Paraguay Guyana Netherlands Lesotho Escuintla Izabal Department United Kingdom San Marino Norway Sierra Leone Seychelles Ireland Spain Sudan Malawi Pakistan Ecuador Dominican Republic Ontario Mexico Swaziland Saskatchewan Duchy of Amalfi Uganda Rwanda Nigeria Namibia Botswana Chile Palau Kenya Ghana Trinidad and Tobago Bolivia Czech Republic Gambia Malaysia Alberta Cameroon Rocca di Cave Samoa Niue Vanuatu Saint Lucia Uruguay Guatemala Liberia Tonga Malta Tuvalu Nova Scotia Nunavut
Italy, Netherlands and Zambia are more number of classification schemes and languages the official language of than Israel
Italy Netherlands Zambia
action greater
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action count
action filter_multi_types
action find
entity Israel
relation official language
type classification scheme
type language
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?t WHERE { { ?t property:official_language ?s . ?s rdf:type ontology:classification_scheme . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?t property:official_language ?s . ?s rdf:type ontology:language . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { resource:Israel property:official_language ?m . { ?m rdf:type ?l . VALUES ( ?l ) { ( ontology:classification_scheme ) ( ontology:language ) } } } } . FILTER ( ?k > ?d ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q398
P37
Q5962346 Q34770 Q15617994
USER
And also tell me about Bahrain?
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action greater
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action count
action filter_multi_types
action find
entity Q398
relation P37
type Q5962346
type Q34770
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?p ) WHERE { ?m rdf:type ?x . VALUES ( ?x ) { ( ontology:Q5962346 ) ( ontology:Q34770 ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { { ?q rdf:type ?e . VALUES ( ?e ) { ( ontology:Q34770 ) ( ontology:Q5962346 ) } } . resource:Q398 property:P37 ?q } } . FILTER ( ?p > ?s ) }
Bahrain
action greater
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action count
action filter_multi_types
action find
entity Bahrain
relation official language
type classification scheme
type language
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?p ) WHERE { ?m rdf:type ?x . VALUES ( ?x ) { ( ontology:classification_scheme ) ( ontology:language ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { { ?q rdf:type ?e . VALUES ( ?e ) { ( ontology:language ) ( ontology:classification_scheme ) } } . resource:Bahrain property:official_language ?q } } . FILTER ( ?p > ?s ) }
[]
classification scheme language designation for an administrative territorial entity
Q38 Q55 Q953
SYSTEM
Italy, Netherlands, Zambia
Q804 Q399 Q800 Q709 Q668 Q414 Q1948 Q783 Q784 Q493428 Q712 Q710 Q717 Q2003 Q258 Q1979 Q792 Q954 Q953 Q958 Q986 Q241 Q242 Q244 Q1974 Q811 Q53381 Q101526 Q924 Q34 Q928 Q39 Q38 Q739 Q733 Q734 Q55 Q1013 Q795587 Q693658 Q145 Q238 Q20 Q1044 Q1042 Q27 Q29 Q1049 Q1020 Q843 Q736 Q786 Q1904 Q96 Q1050 Q1989 Q686312 Q1036 Q1037 Q1033 Q1030 Q963 Q298 Q695 Q114 Q117 Q754 Q750 Q213 Q1005 Q833 Q1951 Q1009 Q243220 Q683 Q34020 Q686 Q760 Q77 Q774 Q1014 Q678 Q233 Q672 Q1952 Q2023
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action greater
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action count
action filter_multi_types
action find
entity Q398
relation P37
type Q5962346
type Q34770
[ANSWERS]
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?p ) WHERE { ?m rdf:type ?x . VALUES ( ?x ) { ( ontology:Q5962346 ) ( ontology:Q34770 ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { { ?q rdf:type ?e . VALUES ( ?e ) { ( ontology:Q34770 ) ( ontology:Q5962346 ) } } . resource:Q398 property:P37 ?q } } . FILTER ( ?p > ?s ) }
Panama Armenia Costa Rica Marshall Islands India Argentina Manitoba Honduras Dominica Mistretta Fiji Kiribati Venezuela Newfoundland and Labrador South Africa Prince Edward Island El Salvador Zimbabwe Zambia South Sudan Eritrea Cuba Belize Barbados British Columbia Nicaragua Tolmezzo Rovetta Tanzania Sweden Philippines Switzerland Italy Colombia Paraguay Guyana Netherlands Lesotho Escuintla Izabal Department United Kingdom San Marino Norway Sierra Leone Seychelles Ireland Spain Sudan Malawi Pakistan Ecuador Dominican Republic Ontario Mexico Swaziland Saskatchewan Duchy of Amalfi Uganda Rwanda Nigeria Namibia Botswana Chile Palau Kenya Ghana Trinidad and Tobago Bolivia Czech Republic Gambia Malaysia Alberta Cameroon Rocca di Cave Samoa Niue Vanuatu Saint Lucia Uruguay Guatemala Liberia Tonga Malta Tuvalu Nova Scotia Nunavut
Italy Netherlands Zambia
action greater
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action count
action filter_multi_types
action find
entity Bahrain
relation official language
type classification scheme
type language
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?p ) WHERE { ?m rdf:type ?x . VALUES ( ?x ) { ( ontology:classification_scheme ) ( ontology:language ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { { ?q rdf:type ?e . VALUES ( ?e ) { ( ontology:language ) ( ontology:classification_scheme ) } } . resource:Bahrain property:official_language ?q } } . FILTER ( ?p > ?s ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4261705
P530
Q1048835
USER
Do Lymanivka have ambassadorial relations with those administrative territories ?
(Q4261705,P530,Q38) (Q4261705,P530,Q55) (Q4261705,P530,Q953)
action is_in
entity prev_answer
action find
entity Q4261705
relation P530
['Q4261705', 'P530', 'Q38'] ['Q4261705', 'P530', 'Q55'] ['Q4261705', 'P530', 'Q953']
ASK WHERE { VALUES ( ?k ) { ( resource:Q804 ) ( resource:Q399 ) ( resource:Q800 ) } . resource:Q4261705 property:P530 ?k }
Lymanivka
action is_in
entity prev_answer
action find
entity Lymanivka
relation diplomatic relation
['Lymanivka', 'diplomatic relation', 'Italy'] ['Lymanivka', 'diplomatic relation', 'Netherlands'] ['Lymanivka', 'diplomatic relation', 'Zambia']
ASK WHERE { VALUES ( ?k ) { ( resource:Panama ) ( resource:Armenia ) ( resource:Costa_Rica ) } . resource:Lymanivka property:diplomatic_relation ?k }
[]
political territorial entity
SYSTEM
NO
(Q4261705,P530,Q38) (Q4261705,P530,Q55) (Q4261705,P530,Q953)
action is_in
entity prev_answer
action find
entity Q4261705
relation P530
[ANSWER]
['Q4261705', 'P530', 'Q38'] ['Q4261705', 'P530', 'Q55'] ['Q4261705', 'P530', 'Q953']
ASK WHERE { VALUES ( ?k ) { ( resource:Q804 ) ( resource:Q399 ) ( resource:Q800 ) } . resource:Q4261705 property:P530 ?k }
No
action is_in
entity prev_answer
action find
entity Lymanivka
relation diplomatic relation
['Lymanivka', 'diplomatic relation', 'Italy'] ['Lymanivka', 'diplomatic relation', 'Netherlands'] ['Lymanivka', 'diplomatic relation', 'Zambia']
ASK WHERE { VALUES ( ?k ) { ( resource:Panama ) ( resource:Armenia ) ( resource:Costa_Rica ) } . resource:Lymanivka property:diplomatic_relation ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4393881
P106
Q12737077
USER
Which occupations have Sergei Rekhtin as his/her 's career ?
(Q4393881,P106,c(Q12737077))
action filter_type
action find
entity Q4393881
relation P106
type Q12737077
['Q4393881', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q4393881 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
Sergei Rekhtin
action filter_type
action find
entity Sergei Rekhtin
relation occupation
type occupation
['Sergei Rekhtin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Sergei_Rekhtin property:occupation ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q628099 Q937857
SYSTEM
association football manager, association football player
Q628099 Q937857
(Q4393881,P106,c(Q12737077))
action filter_type
action find
entity Q4393881
relation P106
type Q12737077
As [ANSWERS] have Sergei Rekhtin as his/her 's career
['Q4393881', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q4393881 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
association football manager association football player
As association football manager and association football player have Sergei Rekhtin as his/her 's career
association football manager association football player
action filter_type
action find
entity Sergei Rekhtin
relation occupation
type occupation
['Sergei Rekhtin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Sergei_Rekhtin property:occupation ?w . ?w rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q17100259
Q12737077
USER
And also tell me about Karl Kringen?
(Q17100259,P106,c(Q12737077))
action filter_type
action find
entity Q17100259
relation P106
type Q12737077
['Q17100259', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q17100259 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
Karl Kringen
action filter_type
action find
entity Karl Kringen
relation occupation
type occupation
['Karl Kringen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Karl_Kringen property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q17100259,P106,c(Q12737077))
action filter_type
action find
entity Q17100259
relation P106
type Q12737077
[ANSWER]
['Q17100259', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q17100259 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
politician
politician
action filter_type
action find
entity Karl Kringen
relation occupation
type occupation
['Karl Kringen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Karl_Kringen property:occupation ?i . ?i rdf:type ontology:occupation }
[]