Simple Question (Direct)
Simple Question
Q392584
P21
Q290
USER
What is the sex of Štěpán Urban ?
(Q392584,P21,c(Q290))
action filter_type
action find
entity Q392584
relation P21
type Q290
['Q392584', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q392584 property:P21 ?z . ?z rdf:type ontology:Q290 }
Štěpán Urban
action filter_type
action find
entity Štěpán Urban
relation gender
type sex
['Štěpán Urban', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Štěpán_Urban property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q392584,P21,c(Q290))
action filter_type
action find
entity Q392584
relation P21
type Q290
The sex of Štěpán Urban is the [ANSWER]
['Q392584', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q392584 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
The sex of Štěpán Urban is the male
male
action filter_type
action find
entity Štěpán Urban
relation gender
type sex
['Štěpán Urban', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Štěpán_Urban property:gender ?z . ?z rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q392584
P106
Q12737077
USER
Which occupations are the professions of Štěpán Urban ?
(Q392584,P106,c(Q12737077))
action filter_type
action find
entity Q392584
relation P106
type Q12737077
['Q392584', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q392584 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Štěpán Urban
action filter_type
action find
entity Štěpán Urban
relation occupation
type occupation
['Štěpán Urban', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Štěpán_Urban property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q24067349 Q36834 Q36180
SYSTEM
classical guitarist, composer, writer
Q24067349 Q36834 Q36180
(Q392584,P106,c(Q12737077))
action filter_type
action find
entity Q392584
relation P106
type Q12737077
[ANSWERS] are the professions of Štěpán Urban
['Q392584', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q392584 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
classical guitarist composer writer
Classical guitarist, composer and writer are the professions of Štěpán Urban
classical guitarist composer writer
action filter_type
action find
entity Štěpán Urban
relation occupation
type occupation
['Štěpán Urban', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Štěpán_Urban property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1353027
Q12737077
USER
And also tell me about Ri Song Chol?
(Q1353027,P106,c(Q12737077))
action filter_type
action find
entity Q1353027
relation P106
type Q12737077
['Q1353027', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q1353027 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
Ri Song Chol
action filter_type
action find
entity Ri Song Chol
relation occupation
type occupation
['Ri Song Chol', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Ri_Song_Chol property:occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q13219587
SYSTEM
figure skater
Q13219587
(Q1353027,P106,c(Q12737077))
action filter_type
action find
entity Q1353027
relation P106
type Q12737077
[ANSWER]
['Q1353027', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q1353027 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
figure skater
figure skater
action filter_type
action find
entity Ri Song Chol
relation occupation
type occupation
['Ri Song Chol', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Ri_Song_Chol property:occupation ?y . ?y rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16236564 Q1353027
P27
Q15617994
USER
Which administrative territories do Ri Song Chol or Krasimir Stanoev belong to ?
OR((Q1353027,P27,c(Q15617994)), (Q16236564,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1353027
relation P27
action find
entity Q16236564
relation P27
type Q15617994
{'OR': [['Q1353027', 'P27', {'concept': 'Q15617994'}], ['Q16236564', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q1353027 property:P27 ?o } UNION { resource:Q16236564 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
Krasimir Stanoev Ri Song Chol
action filter_type
action union
action find
entity Ri Song Chol
relation country of citizenship
action find
entity Krasimir Stanoev
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Ri Song Chol', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Krasimir Stanoev', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Ri_Song_Chol property:country_of_citizenship ?o } UNION { resource:Krasimir_Stanoev property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q423 Q219
SYSTEM
North Korea, Bulgaria
Q423 Q219
OR((Q1353027,P27,c(Q15617994)), (Q16236564,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1353027
relation P27
action find
entity Q16236564
relation P27
type Q15617994
Ri Song Chol or Krasimir Stanoev belong to both [ANSWERS]
{'OR': [['Q1353027', 'P27', {'concept': 'Q15617994'}], ['Q16236564', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q1353027 property:P27 ?o } UNION { resource:Q16236564 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
North Korea Bulgaria
Ri Song Chol or Krasimir Stanoev belong to both North Korea and Bulgaria
North Korea Bulgaria
action filter_type
action union
action find
entity Ri Song Chol
relation country of citizenship
action find
entity Krasimir Stanoev
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Ri Song Chol', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Krasimir Stanoev', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Ri_Song_Chol property:country_of_citizenship ?o } UNION { resource:Krasimir_Stanoev property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q24343214
P530
Q1048835
USER
Do Broughton and Bretton have diplomatic relations with those administrative territories ?
(Q24343214,P530,Q423) (Q24343214,P530,Q219)
action is_in
entity prev_answer
action find
entity Q24343214
relation P530
['Q24343214', 'P530', 'Q423'] ['Q24343214', 'P530', 'Q219']
ASK WHERE { resource:Q24343214 property:P530 ?x . VALUES ( ?x ) { ( resource:Q423 ) ( resource:Q219 ) } }
Broughton and Bretton
action is_in
entity prev_answer
action find
entity Broughton and Bretton
relation diplomatic relation
['Broughton and Bretton', 'diplomatic relation', 'North Korea'] ['Broughton and Bretton', 'diplomatic relation', 'Bulgaria']
ASK WHERE { resource:Broughton_and_Bretton property:diplomatic_relation ?x . VALUES ( ?x ) { ( resource:North_Korea ) ( resource:Bulgaria ) } }
[]
political territorial entity
SYSTEM
NO
(Q24343214,P530,Q423) (Q24343214,P530,Q219)
action is_in
entity prev_answer
action find
entity Q24343214
relation P530
[ANSWER]
['Q24343214', 'P530', 'Q423'] ['Q24343214', 'P530', 'Q219']
ASK WHERE { resource:Q24343214 property:P530 ?x . VALUES ( ?x ) { ( resource:Q423 ) ( resource:Q219 ) } }
No
action is_in
entity prev_answer
action find
entity Broughton and Bretton
relation diplomatic relation
['Broughton and Bretton', 'diplomatic relation', 'North Korea'] ['Broughton and Bretton', 'diplomatic relation', 'Bulgaria']
ASK WHERE { resource:Broughton_and_Bretton property:diplomatic_relation ?x . VALUES ( ?x ) { ( resource:North_Korea ) ( resource:Bulgaria ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q948
P530
Q15617994 Q15617994
USER
How many administrative territories have a diplomatic relationship with around the same number of administrative territories as Tunisia ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q948
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?z ) WHERE { ?m rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 . ?l property:P530 ?m } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { ?h rdf:type ontology:Q15617994 . resource:Q948 property:P530 ?h } } . FILTER ( ?z = ?g ) }
Tunisia
action count
action approx
action find_reverse_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 Tunisia
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 ( ?m ) AS ?u ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?z ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l property:diplomatic_relation ?m } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Tunisia property:diplomatic_relation ?h } } . FILTER ( ?z = ?g ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
152
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 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 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 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q948
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?z ) WHERE { ?m rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 . ?l property:P530 ?m } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { ?h rdf:type ontology:Q15617994 . resource:Q948 property:P530 ?h } } . FILTER ( ?z = ?g ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Chad South Africa Portugal 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 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 Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand Zambia
152
action count
action approx
action find_reverse_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 Tunisia
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 ( ?m ) AS ?u ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?z ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l property:diplomatic_relation ?m } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Tunisia property:diplomatic_relation ?h } } . FILTER ( ?z = ?g ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q219
P35
Q502895
USER
Who is the chief of state of Bulgaria ?
(Q219,P35,c(Q502895))
action filter_type
action find
entity Q219
relation P35
type Q502895
['Q219', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q219 property:P35 ?x . ?x rdf:type ontology:Q502895 }
Bulgaria
action filter_type
action find
entity Bulgaria
relation head of state
type common name
['Bulgaria', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Bulgaria property:head_of_state ?x . ?x rdf:type ontology:common_name }
[]
common name
Q295212
SYSTEM
Rosen Plevneliev
Q295212
(Q219,P35,c(Q502895))
action filter_type
action find
entity Q219
relation P35
type Q502895
The chief of state of Bulgaria is the [ANSWER]
['Q219', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q219 property:P35 ?x . ?x rdf:type ontology:Q502895 }
Rosen Plevneliev
The chief of state of Bulgaria is the Rosen Plevneliev
Rosen Plevneliev
action filter_type
action find
entity Bulgaria
relation head of state
type common name
['Bulgaria', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Bulgaria property:head_of_state ?x . ?x rdf:type ontology:common_name }
[]